Commit 2c9875e4 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

wineqtdecoder: Work to add a QuickTime video Splitter.

parent 0a7b9949
...@@ -5,6 +5,7 @@ EXTRALIBS = @QUICKTIMELIB@ ...@@ -5,6 +5,7 @@ EXTRALIBS = @QUICKTIMELIB@
C_SRCS = \ C_SRCS = \
main.c \ main.c \
qtdatahandler.c \ qtdatahandler.c \
qtsplitter.c \
qtutils.c \ qtutils.c \
qtvdecoder.c qtvdecoder.c
......
...@@ -41,17 +41,25 @@ ...@@ -41,17 +41,25 @@
#include "initguid.h" #include "initguid.h"
DEFINE_GUID(CLSID_QTVDecoder, 0x683DDACB, 0x4354, 0x490C, 0xA0,0x58, 0xE0,0x5A,0xD0,0xF2,0x05,0x37); 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); WINE_DEFAULT_DEBUG_CHANNEL(qtdecoder);
extern IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr); extern IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr);
extern IUnknown * CALLBACK QTSplitter_create(IUnknown * pUnkOuter, HRESULT* phr);
static const WCHAR wQTVName[] = static const WCHAR wQTVName[] =
{'Q','T',' ','V','i','d','e','o',' ','D','e','c','o','d','e','r',0}; {'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 WCHAR wNull[] = {'\0'};
static const AMOVIESETUP_MEDIATYPE amfMTvideo[] = static const AMOVIESETUP_MEDIATYPE amfMTvideo[] =
{ { &MEDIATYPE_Video, &MEDIASUBTYPE_NULL } }; { { &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[] = static const AMOVIESETUP_PIN amfQTVPin[] =
{ { wNull, { { wNull,
...@@ -71,6 +79,32 @@ static const AMOVIESETUP_PIN amfQTVPin[] = ...@@ -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 = static const AMOVIESETUP_FILTER amfQTV =
{ &CLSID_QTVDecoder, { &CLSID_QTVDecoder,
wQTVName, wQTVName,
...@@ -79,6 +113,14 @@ static const AMOVIESETUP_FILTER amfQTV = ...@@ -79,6 +113,14 @@ static const AMOVIESETUP_FILTER amfQTV =
amfQTVPin amfQTVPin
}; };
static const AMOVIESETUP_FILTER amfQTD =
{ &CLSID_QTSplitter,
wQTDName,
MERIT_NORMAL,
3,
amfQTDPin
};
FactoryTemplate const g_Templates[] = { FactoryTemplate const g_Templates[] = {
{ {
wQTVName, wQTVName,
...@@ -86,6 +128,13 @@ FactoryTemplate const g_Templates[] = { ...@@ -86,6 +128,13 @@ FactoryTemplate const g_Templates[] = {
QTVDecoder_create, QTVDecoder_create,
NULL, NULL,
&amfQTV, &amfQTV,
},
{
wQTDName,
&CLSID_QTSplitter,
QTSplitter_create,
NULL,
&amfQTD,
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment