Commit eefe6f65 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

wineqtdecoder: Initial version of the video decoder using Mac OS/X QuickTime Framework.

parent 78652a5f
......@@ -657,6 +657,7 @@ FRAMEWORK_OPENAL
COREAUDIO
DISKARBITRATIONLIB
LDEXECFLAGS
QUICKTIMELIB
IOKITLIB
COREFOUNDATIONLIB
SECURITYLIB
......@@ -6518,6 +6519,8 @@ fi
IOKITLIB="-framework IOKit -framework CoreFoundation"
QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
......@@ -6564,6 +6567,7 @@ done
LIBS="$ac_save_LIBS"
fi
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
case $host_cpu in
*powerpc*)
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
......@@ -7031,6 +7035,7 @@ $as_echo "$ac_cv_c_dll_hpux" >&6; }
;;
esac
enable_wineqtdecoder=${enable_wineqtdecoder:-no}
enable_winequartz_drv=${enable_winequartz_drv:-no}
if test "$LIBEXT" = "a"; then
......@@ -15270,6 +15275,7 @@ wine_fn_config_dll winenas.drv enable_winenas_drv
wine_fn_config_dll wineoss.drv enable_wineoss_drv
wine_fn_config_dll wineps.drv enable_wineps_drv
wine_fn_config_dll wineps16.drv16 enable_win16
wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
wine_fn_config_dll winequartz.drv enable_winequartz_drv
wine_fn_config_dll winex11.drv enable_winex11_drv
wine_fn_config_dll wing.dll16 enable_win16
......
......@@ -702,6 +702,7 @@ case $host_os in
AC_SUBST(SECURITYLIB,"-framework Security -framework CoreFoundation")
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
AC_SUBST(QUICKTIMELIB,"-framework QuickTime -framework ApplicationServices -framework CoreVideo")
AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"])
if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
then
......@@ -731,6 +732,7 @@ case $host_os in
AC_CHECK_FUNCS(IOHIDManagerCreate)
LIBS="$ac_save_LIBS"
fi
enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
case $host_cpu in
*powerpc*)
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" dnl FIXME
......@@ -838,6 +840,7 @@ case $host_os in
;;
esac
enable_wineqtdecoder=${enable_wineqtdecoder:-no}
enable_winequartz_drv=${enable_winequartz_drv:-no}
if test "$LIBEXT" = "a"; then
......@@ -2794,6 +2797,7 @@ WINE_CONFIG_DLL(winenas.drv)
WINE_CONFIG_DLL(wineoss.drv)
WINE_CONFIG_DLL(wineps.drv)
WINE_CONFIG_DLL(wineps16.drv16,enable_win16)
WINE_CONFIG_DLL(wineqtdecoder)
WINE_CONFIG_DLL(winequartz.drv)
WINE_CONFIG_DLL(winex11.drv)
WINE_CONFIG_DLL(wing.dll16,enable_win16)
......
MODULE = wineqtdecoder.dll
IMPORTS = strmiids strmbase uuid ole32 advapi32
EXTRALIBS = @QUICKTIMELIB@
C_SRCS = \
main.c \
qtvdecoder.c
@MAKE_DLL_RULES@
/*
* Directshow filter for Quicktime Toolkit on mac OS/X
*
* Copyright (C) 2010 Aric Stewart, CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#define COBJMACROS
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winerror.h"
#include "objbase.h"
#include "uuids.h"
#include "strmif.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/strmbase.h"
#include "initguid.h"
DEFINE_GUID(CLSID_QTVDecoder, 0x683DDACB, 0x4354, 0x490C, 0xA0,0x58, 0xE0,0x5A,0xD0,0xF2,0x05,0x37);
WINE_DEFAULT_DEBUG_CHANNEL(qtdecoder);
extern IUnknown * CALLBACK QTVDecoder_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 WCHAR wNull[] = {'\0'};
static const AMOVIESETUP_MEDIATYPE amfMTvideo[] =
{ { &MEDIATYPE_Video, &MEDIASUBTYPE_NULL } };
static const AMOVIESETUP_PIN amfQTVPin[] =
{ { wNull,
FALSE, FALSE, FALSE, FALSE,
&GUID_NULL,
NULL,
1,
amfMTvideo
},
{
wNull,
FALSE, TRUE, FALSE, FALSE,
&GUID_NULL,
NULL,
1,
amfMTvideo
},
};
static const AMOVIESETUP_FILTER amfQTV =
{ &CLSID_QTVDecoder,
wQTVName,
MERIT_NORMAL,
2,
amfQTVPin
};
FactoryTemplate const g_Templates[] = {
{
wQTVName,
&CLSID_QTVDecoder,
QTVDecoder_create,
NULL,
&amfQTV,
}
};
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
/***********************************************************************
* Dll EntryPoint (wineqtdecoder.@)
*/
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
return STRMBASE_DllMain(hInstDLL,fdwReason,lpv);
}
/***********************************************************************
* DllGetClassObject
*/
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
return STRMBASE_DllGetClassObject( rclsid, riid, ppv );
}
/***********************************************************************
* DllRegisterServer (wineqtdecoder.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return AMovieDllRegisterServer2(TRUE);
}
/***********************************************************************
* DllUnregisterServer (wineqtdecoder.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("\n");
return AMovieDllRegisterServer2(FALSE);
}
/***********************************************************************
* DllCanUnloadNow (wineqtdecoder.@)
*/
HRESULT WINAPI DllCanUnloadNow(void)
{
TRACE("\n");
return STRMBASE_DllCanUnloadNow();
}
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
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