mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
wineqtdecoder: Work to add a QuickTime video Splitter.
This commit is contained in:
parent
0a7b99498c
commit
2c9875e4c1
3 changed files with 1113 additions and 0 deletions
|
@ -5,6 +5,7 @@ EXTRALIBS = @QUICKTIMELIB@
|
|||
C_SRCS = \
|
||||
main.c \
|
||||
qtdatahandler.c \
|
||||
qtsplitter.c \
|
||||
qtutils.c \
|
||||
qtvdecoder.c
|
||||
|
||||
|
|
|
@ -41,17 +41,25 @@
|
|||
|
||||
#include "initguid.h"
|
||||
DEFINE_GUID(CLSID_QTVDecoder, 0x683DDACB, 0x4354, 0x490C, 0xA0,0x58, 0xE0,0x5A,0xD0,0xF2,0x05,0x37);
|
||||
DEFINE_GUID(CLSID_QTSplitter, 0xD0E70E49, 0x5927, 0x4894, 0xA3,0x86, 0x35,0x94,0x60,0xEE,0x87,0xC9);
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(qtdecoder);
|
||||
|
||||
extern IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr);
|
||||
extern IUnknown * CALLBACK QTSplitter_create(IUnknown * pUnkOuter, HRESULT* phr);
|
||||
|
||||
static const WCHAR wQTVName[] =
|
||||
{'Q','T',' ','V','i','d','e','o',' ','D','e','c','o','d','e','r',0};
|
||||
static const WCHAR wQTDName[] =
|
||||
{'Q','T',' ','V','i','d','e','o',' ','D','e','m','u','x',0};
|
||||
static WCHAR wNull[] = {'\0'};
|
||||
|
||||
static const AMOVIESETUP_MEDIATYPE amfMTvideo[] =
|
||||
{ { &MEDIATYPE_Video, &MEDIASUBTYPE_NULL } };
|
||||
static const AMOVIESETUP_MEDIATYPE amfMTaudio[] =
|
||||
{ { &MEDIATYPE_Audio, &MEDIASUBTYPE_NULL } };
|
||||
static const AMOVIESETUP_MEDIATYPE amfMTstream[] =
|
||||
{ { &MEDIATYPE_Stream, &MEDIASUBTYPE_NULL } };
|
||||
|
||||
static const AMOVIESETUP_PIN amfQTVPin[] =
|
||||
{ { wNull,
|
||||
|
@ -71,6 +79,32 @@ static const AMOVIESETUP_PIN amfQTVPin[] =
|
|||
},
|
||||
};
|
||||
|
||||
static const AMOVIESETUP_PIN amfQTDPin[] =
|
||||
{ { wNull,
|
||||
FALSE, FALSE, FALSE, FALSE,
|
||||
&GUID_NULL,
|
||||
NULL,
|
||||
1,
|
||||
amfMTstream
|
||||
},
|
||||
{
|
||||
wNull,
|
||||
FALSE, TRUE, TRUE, FALSE,
|
||||
&GUID_NULL,
|
||||
NULL,
|
||||
1,
|
||||
amfMTvideo
|
||||
},
|
||||
{
|
||||
wNull,
|
||||
FALSE, TRUE, TRUE, FALSE,
|
||||
&GUID_NULL,
|
||||
NULL,
|
||||
1,
|
||||
amfMTaudio
|
||||
},
|
||||
};
|
||||
|
||||
static const AMOVIESETUP_FILTER amfQTV =
|
||||
{ &CLSID_QTVDecoder,
|
||||
wQTVName,
|
||||
|
@ -79,6 +113,14 @@ static const AMOVIESETUP_FILTER amfQTV =
|
|||
amfQTVPin
|
||||
};
|
||||
|
||||
static const AMOVIESETUP_FILTER amfQTD =
|
||||
{ &CLSID_QTSplitter,
|
||||
wQTDName,
|
||||
MERIT_NORMAL,
|
||||
3,
|
||||
amfQTDPin
|
||||
};
|
||||
|
||||
FactoryTemplate const g_Templates[] = {
|
||||
{
|
||||
wQTVName,
|
||||
|
@ -86,6 +128,13 @@ FactoryTemplate const g_Templates[] = {
|
|||
QTVDecoder_create,
|
||||
NULL,
|
||||
&amfQTV,
|
||||
},
|
||||
{
|
||||
wQTDName,
|
||||
&CLSID_QTSplitter,
|
||||
QTSplitter_create,
|
||||
NULL,
|
||||
&amfQTD,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
1063
dlls/wineqtdecoder/qtsplitter.c
Normal file
1063
dlls/wineqtdecoder/qtsplitter.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue