theoraencoderdllstuff.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //Copyright (C) 2003, 2004 Zentaro Kavanagh
00003 //
00004 //Redistribution and use in source and binary forms, with or without
00005 //modification, are permitted provided that the following conditions
00006 //are met:
00007 //
00008 //- Redistributions of source code must retain the above copyright
00009 //  notice, this list of conditions and the following disclaimer.
00010 //
00011 //- Redistributions in binary form must reproduce the above copyright
00012 //  notice, this list of conditions and the following disclaimer in the
00013 //  documentation and/or other materials provided with the distribution.
00014 //
00015 //- Neither the name of Zentaro Kavanagh nor the names of contributors 
00016 //  may be used to endorse or promote products derived from this software 
00017 //  without specific prior written permission.
00018 //
00019 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 //``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 //LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00022 //PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE ORGANISATION OR
00023 //CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 //EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 //PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 //LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 //NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 //SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 //===========================================================================
00031 
00032 #pragma once
00033 
00034 
00035 
00036 #include <streams.h>
00037 #include <pullpin.h>
00038 #include <initguid.h>
00039 
00040 
00041 
00042 #ifdef LIBOOOGG_EXPORTS
00043 #define LIBOOOGG_API __declspec(dllexport)
00044 #else
00045 #define LIBOOOGG_API __declspec(dllimport)
00046 #endif
00047 
00048 // {121EA765-6D3F-4519-9686-A0BA6E5281A2}
00049 DEFINE_GUID(CLSID_PropsTheoraEncoder, 
00050 0x121ea765, 0x6d3f, 0x4519, 0x96, 0x86, 0xa0, 0xba, 0x6e, 0x52, 0x81, 0xa2);
00051 
00052 // {4F063B3A-B397-4c22-AFF4-2F8DB96D292A}
00053 DEFINE_GUID(IID_ITheoraEncodeSettings, 
00054 0x4f063b3a, 0xb397, 0x4c22, 0xaf, 0xf4, 0x2f, 0x8d, 0xb9, 0x6d, 0x29, 0x2a);
00055 
00056 // {5C769985-C3E1-4f95-BEE7-1101C465F5FC}
00057 DEFINE_GUID(CLSID_TheoraEncodeFilter, 
00058 0x5c769985, 0xc3e1, 0x4f95, 0xbe, 0xe7, 0x11, 0x1, 0xc4, 0x65, 0xf5, 0xfc);
00059 
00060 // {D124B2B1-8968-4ae8-B288-FE16EA34B0CE}
00061 DEFINE_GUID(MEDIASUBTYPE_Theora, 
00062 0xd124b2b1, 0x8968, 0x4ae8, 0xb2, 0x88, 0xfe, 0x16, 0xea, 0x34, 0xb0, 0xce);
00063 
00064 // {A99F116C-DFFA-412c-95DE-725F99874826}
00065 DEFINE_GUID(FORMAT_Theora, 
00066 0xa99f116c, 0xdffa, 0x412c, 0x95, 0xde, 0x72, 0x5f, 0x99, 0x87, 0x48, 0x26);
00067 
00068 const REGPINTYPES TheoraEncodeInputTypes = {
00069     &MEDIATYPE_Video,
00070         &MEDIASUBTYPE_YV12
00071 };
00072 
00073 
00074 
00075 const REGPINTYPES TheoraEncodeOutputTypes = {
00076         &MEDIATYPE_Video,
00077         &MEDIASUBTYPE_Theora
00078 };
00079 
00080 const REGFILTERPINS TheoraEncodePinReg[] = {
00081         {
00082     L"YV12 Input",                                              //Name (obsoleted)
00083         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00084         FALSE,                                                          //Not an output pin
00085         FALSE,                                                          //Cannot have zero instances of this pin
00086         FALSE,                                                          //Cannot have more than one instance of this pin
00087         NULL,                                                           //Connects to filter (obsoleted)
00088         NULL,                                                           //Connects to pin (obsoleted)
00089         1,                                                                      //upport two media type
00090         &TheoraEncodeInputTypes                         //Pointer to media type (Video/VY12)
00091         } ,
00092 
00093         {
00094         L"Theora Output",                                               //Name (obsoleted)
00095         FALSE,                                                          //Renders from this pin ?? Not sure about this.
00096         TRUE,                                                           //Is an output pin
00097         FALSE,                                                          //Cannot have zero instances of this pin
00098         FALSE,                                                          //Cannot have more than one instance of this pin
00099         NULL,                                                           //Connects to filter (obsoleted)
00100         NULL,                                                           //Connects to pin (obsoleted)
00101         1,                                                                      //Only support one media type
00102         &TheoraEncodeOutputTypes                                        //Pointer to media type (Audio/PCM)
00103 
00104         }
00105 };
00106 
00107 
00108 
00109 const REGFILTER2 TheoraEncodeFilterReg = {
00110                 1,
00111                 MERIT_DO_NOT_USE,
00112                 2,
00113         TheoraEncodePinReg
00114                 
00115 };
00116            
00117 struct sTheoraFormatBlock {
00118         unsigned long theoraVersion;
00119         unsigned long outerFrameWidth;
00120         unsigned long outerFrameHeight;
00121         unsigned long pictureWidth;
00122         unsigned long pictureHeight;
00123         unsigned long frameRateNumerator;
00124         unsigned long frameRateDenominator;
00125         unsigned long aspectNumerator;
00126         unsigned long aspectDenominator;
00127         unsigned long maxKeyframeInterval;
00128         unsigned long targetBitrate;
00129         unsigned char targetQuality;
00130         unsigned char xOffset;
00131         unsigned char yOffset;
00132         unsigned char colourSpace;
00133 };
00134 

Generated on Tue Feb 15 14:54:17 2005 for oggdsf by  doxygen 1.3.9