00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
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
00049 DEFINE_GUID(CLSID_PropsTheoraEncoder,
00050 0x121ea765, 0x6d3f, 0x4519, 0x96, 0x86, 0xa0, 0xba, 0x6e, 0x52, 0x81, 0xa2);
00051
00052
00053 DEFINE_GUID(IID_ITheoraEncodeSettings,
00054 0x4f063b3a, 0xb397, 0x4c22, 0xaf, 0xf4, 0x2f, 0x8d, 0xb9, 0x6d, 0x29, 0x2a);
00055
00056
00057 DEFINE_GUID(CLSID_TheoraEncodeFilter,
00058 0x5c769985, 0xc3e1, 0x4f95, 0xbe, 0xe7, 0x11, 0x1, 0xc4, 0x65, 0xf5, 0xfc);
00059
00060
00061 DEFINE_GUID(MEDIASUBTYPE_Theora,
00062 0xd124b2b1, 0x8968, 0x4ae8, 0xb2, 0x88, 0xfe, 0x16, 0xea, 0x34, 0xb0, 0xce);
00063
00064
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",
00083 FALSE,
00084 FALSE,
00085 FALSE,
00086 FALSE,
00087 NULL,
00088 NULL,
00089 1,
00090 &TheoraEncodeInputTypes
00091 } ,
00092
00093 {
00094 L"Theora Output",
00095 FALSE,
00096 TRUE,
00097 FALSE,
00098 FALSE,
00099 NULL,
00100 NULL,
00101 1,
00102 &TheoraEncodeOutputTypes
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