winegstreamer: Implement H264 decoder GetInputStreamInfo.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4b3019142f
commit
aca4537c86
|
@ -6790,17 +6790,11 @@ static void test_h264_decoder(void)
|
|||
flags = MFT_INPUT_STREAM_WHOLE_SAMPLES | MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||
memset(&input_info, 0xcd, sizeof(input_info));
|
||||
hr = IMFTransform_GetInputStreamInfo(transform, 0, &input_info);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "GetInputStreamInfo returned %#lx\n", hr);
|
||||
todo_wine
|
||||
ok(input_info.hnsMaxLatency == 0, "got hnsMaxLatency %s\n", wine_dbgstr_longlong(input_info.hnsMaxLatency));
|
||||
todo_wine
|
||||
ok(input_info.dwFlags == flags, "got dwFlags %#lx\n", input_info.dwFlags);
|
||||
todo_wine
|
||||
ok(input_info.cbSize == 0x1000, "got cbSize %lu\n", input_info.cbSize);
|
||||
todo_wine
|
||||
ok(input_info.cbMaxLookahead == 0, "got cbMaxLookahead %#lx\n", input_info.cbMaxLookahead);
|
||||
todo_wine
|
||||
ok(input_info.cbAlignment == 0, "got cbAlignment %#lx\n", input_info.cbAlignment);
|
||||
|
||||
flags = MFT_OUTPUT_STREAM_WHOLE_SAMPLES | MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||
|
|
|
@ -217,8 +217,20 @@ static HRESULT WINAPI transform_GetStreamIDs(IMFTransform *iface, DWORD input_si
|
|||
|
||||
static HRESULT WINAPI transform_GetInputStreamInfo(IMFTransform *iface, DWORD id, MFT_INPUT_STREAM_INFO *info)
|
||||
{
|
||||
FIXME("iface %p, id %#lx, info %p stub!\n", iface, id, info);
|
||||
return E_NOTIMPL;
|
||||
struct h264_decoder *decoder = impl_from_IMFTransform(iface);
|
||||
|
||||
TRACE("iface %p, id %#lx, info %p.\n", iface, id, info);
|
||||
|
||||
if (!decoder->input_type)
|
||||
return MF_E_TRANSFORM_TYPE_NOT_SET;
|
||||
|
||||
info->hnsMaxLatency = 0;
|
||||
info->dwFlags = MFT_INPUT_STREAM_WHOLE_SAMPLES | MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||
info->cbSize = 0x1000;
|
||||
info->cbMaxLookahead = 0;
|
||||
info->cbAlignment = 0;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI transform_GetOutputStreamInfo(IMFTransform *iface, DWORD id, MFT_OUTPUT_STREAM_INFO *info)
|
||||
|
|
Loading…
Reference in New Issue