mirror of
https://github.com/wine-mirror/wine
synced 2024-07-01 07:14:31 +00:00
winegstreamer: Add AVDecVideoAcceleration_H264 attribute for h264 decoder MFT.
This commit is contained in:
parent
984032823b
commit
deff1303fb
|
@ -45,6 +45,8 @@
|
||||||
|
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
|
|
||||||
|
#include "codecapi.h"
|
||||||
|
|
||||||
#include "d3d11_4.h"
|
#include "d3d11_4.h"
|
||||||
|
|
||||||
DEFINE_GUID(DMOVideoFormat_RGB24,D3DFMT_R8G8B8,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);
|
DEFINE_GUID(DMOVideoFormat_RGB24,D3DFMT_R8G8B8,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);
|
||||||
|
@ -3933,6 +3935,7 @@ static void test_h264_decoder(void)
|
||||||
ATTR_UINT32(MF_SA_D3D11_AWARE, 1),
|
ATTR_UINT32(MF_SA_D3D11_AWARE, 1),
|
||||||
ATTR_UINT32(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, 0, .todo = TRUE),
|
ATTR_UINT32(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, 0, .todo = TRUE),
|
||||||
/* more H264 decoder specific attributes from CODECAPI */
|
/* more H264 decoder specific attributes from CODECAPI */
|
||||||
|
ATTR_UINT32(AVDecVideoAcceleration_H264, 1),
|
||||||
{0},
|
{0},
|
||||||
};
|
};
|
||||||
static const DWORD input_width = 120, input_height = 248;
|
static const DWORD input_width = 120, input_height = 248;
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
|
#include "initguid.h"
|
||||||
|
|
||||||
|
#include "codecapi.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
|
WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
|
||||||
WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
||||||
|
|
||||||
|
@ -881,6 +885,9 @@ HRESULT h264_decoder_create(REFIID riid, void **ret)
|
||||||
goto failed;
|
goto failed;
|
||||||
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &MF_SA_D3D11_AWARE, TRUE)))
|
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &MF_SA_D3D11_AWARE, TRUE)))
|
||||||
goto failed;
|
goto failed;
|
||||||
|
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &AVDecVideoAcceleration_H264, TRUE)))
|
||||||
|
goto failed;
|
||||||
|
|
||||||
if (FAILED(hr = MFCreateAttributes(&decoder->output_attributes, 0)))
|
if (FAILED(hr = MFCreateAttributes(&decoder->output_attributes, 0)))
|
||||||
goto failed;
|
goto failed;
|
||||||
if (FAILED(hr = wg_sample_queue_create(&decoder->wg_sample_queue)))
|
if (FAILED(hr = wg_sample_queue_create(&decoder->wg_sample_queue)))
|
||||||
|
|
|
@ -61,4 +61,6 @@ enum eAVEncH264VLevel
|
||||||
eAVEncH264VLevel5_2 = 52
|
eAVEncH264VLevel5_2 = 52
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DEFINE_GUID(AVDecVideoAcceleration_H264, 0xf7db8a2f, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2);
|
||||||
|
|
||||||
#endif /* __CODECAPI_H */
|
#endif /* __CODECAPI_H */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user