Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
43e70580
Commit
43e70580
authored
Aug 25, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add some tests for legacy media type conersion functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
9eaeebf0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
4 deletions
+83
-4
evr.spec
dlls/evr/evr.spec
+1
-1
mediatype.c
dlls/mfplat/mediatype.c
+34
-0
mfplat.spec
dlls/mfplat/mfplat.spec
+3
-3
mfplat.c
dlls/mfplat/tests/mfplat.c
+0
-0
ksmedia.h
include/ksmedia.h
+25
-0
mfapi.h
include/mfapi.h
+20
-0
No files found.
dlls/evr/evr.spec
View file @
43e70580
...
...
@@ -12,7 +12,7 @@
@ stub MFCreateVideoMediaTypeFromBitMapInfoHeader
@ stdcall -import MFCreateVideoMediaTypeFromSubtype(ptr ptr)
@ stub MFCreateVideoMediaTypeFromVideoInfoHeader2
@ st
ub MFCreateVideoMediaTypeFromVideoInfoHeader
@ st
dcall -import MFCreateVideoMediaTypeFromVideoInfoHeader(ptr long long long long int64 ptr ptr)
@ stdcall MFCreateVideoMixer(ptr ptr ptr ptr)
@ stdcall MFCreateVideoMixerAndPresenter(ptr ptr ptr ptr ptr ptr)
@ stub MFCreateVideoOTA
...
...
dlls/mfplat/mediatype.c
View file @
43e70580
...
...
@@ -3557,3 +3557,37 @@ HRESULT WINAPI MFInitVideoFormat_RGB(MFVIDEOFORMAT *format, DWORD width, DWORD h
return
S_OK
;
}
/***********************************************************************
* MFCreateVideoMediaTypeFromVideoInfoHeader (mfplat.@)
*/
HRESULT
WINAPI
MFCreateVideoMediaTypeFromVideoInfoHeader
(
const
KS_VIDEOINFOHEADER
*
vih
,
DWORD
size
,
DWORD
pixel_aspect_ratio_x
,
DWORD
pixel_aspect_ratio_y
,
MFVideoInterlaceMode
interlace_mode
,
QWORD
video_flags
,
const
GUID
*
subtype
,
IMFVideoMediaType
**
ret
)
{
FIXME
(
"%p, %lu, %lu, %lu, %d, %I64x, %s, %p.
\n
"
,
vih
,
size
,
pixel_aspect_ratio_x
,
pixel_aspect_ratio_y
,
interlace_mode
,
video_flags
,
debugstr_guid
(
subtype
),
ret
);
return
E_NOTIMPL
;
}
/***********************************************************************
* MFInitMediaTypeFromVideoInfoHeader (mfplat.@)
*/
HRESULT
WINAPI
MFInitMediaTypeFromVideoInfoHeader
(
IMFMediaType
*
media_type
,
const
VIDEOINFOHEADER
*
vih
,
UINT32
size
,
const
GUID
*
subtype
)
{
FIXME
(
"%p, %p, %u, %s.
\n
"
,
media_type
,
vih
,
size
,
debugstr_guid
(
subtype
));
return
E_NOTIMPL
;
}
/***********************************************************************
* MFInitMediaTypeFromAMMediaType (mfplat.@)
*/
HRESULT
WINAPI
MFInitMediaTypeFromAMMediaType
(
IMFMediaType
*
media_type
,
const
AM_MEDIA_TYPE
*
am_type
)
{
FIXME
(
"%p, %p.
\n
"
,
media_type
,
am_type
);
return
E_NOTIMPL
;
}
dlls/mfplat/mfplat.spec
View file @
43e70580
...
...
@@ -81,7 +81,7 @@
@ stub MFCreateVideoMediaTypeFromBitMapInfoHeaderEx
@ stdcall MFCreateVideoMediaTypeFromSubtype(ptr ptr)
@ stub MFCreateVideoMediaTypeFromVideoInfoHeader2
@ st
ub MFCreateVideoMediaTypeFromVideoInfoHeader
@ st
dcall MFCreateVideoMediaTypeFromVideoInfoHeader(ptr long long long long int64 ptr ptr)
@ stdcall MFCreateVideoSampleAllocatorEx(ptr ptr)
@ stdcall MFCreateWaveFormatExFromMFMediaType(ptr ptr ptr long)
@ stub MFDeserializeAttributesFromStream
...
...
@@ -119,12 +119,12 @@
@ stdcall MFHeapFree(ptr)
@ stub MFInitAMMediaTypeFromMFMediaType
@ stdcall MFInitAttributesFromBlob(ptr ptr long)
@ st
ub MFInitMediaTypeFromAMMediaType
@ st
dcall MFInitMediaTypeFromAMMediaType(ptr ptr)
@ stub MFInitMediaTypeFromMFVideoFormat
@ stub MFInitMediaTypeFromMPEG1VideoInfo
@ stub MFInitMediaTypeFromMPEG2VideoInfo
@ stub MFInitMediaTypeFromVideoInfoHeader2
@ st
ub MFInitMediaTypeFromVideoInfoHeader
@ st
dcall MFInitMediaTypeFromVideoInfoHeader(ptr ptr long ptr)
@ stdcall MFInitMediaTypeFromWaveFormatEx(ptr ptr long)
@ stub MFInitVideoFormat
@ stdcall MFInitVideoFormat_RGB(ptr long long long)
...
...
dlls/mfplat/tests/mfplat.c
View file @
43e70580
This diff is collapsed.
Click to expand it.
include/ksmedia.h
View file @
43e70580
...
...
@@ -143,4 +143,29 @@ typedef struct _tagKSJACK_DESCRIPTION2
typedef
struct
_tagKSJACK_DESCRIPTION2
*
PKSJACK_DESCRIPTION2
;
typedef
struct
tagKS_BITMAPINFOHEADER
{
DWORD
biSize
;
LONG
biWidth
;
LONG
biHeight
;
WORD
biPlanes
;
WORD
biBitCount
;
DWORD
biCompression
;
DWORD
biSizeImage
;
LONG
biXPelsPerMeter
;
LONG
biYPelsPerMeter
;
DWORD
biClrUsed
;
DWORD
biClrImportant
;
}
KS_BITMAPINFOHEADER
,
*
PKS_BITMAPINFOHEADER
;
typedef
struct
tagKS_VIDEOINFOHEADER
{
RECT
rcSource
;
RECT
rcTarget
;
DWORD
dwBitRate
;
DWORD
dwBitErrorRate
;
REFERENCE_TIME
AvgTimePerFrame
;
KS_BITMAPINFOHEADER
bmiHeader
;
}
KS_VIDEOINFOHEADER
,
*
PKS_VIDEOINFOHEADER
;
#endif
/* _KSMEDIA_ */
include/mfapi.h
View file @
43e70580
...
...
@@ -222,6 +222,13 @@ typedef enum _EAllocationType
eAllocationTypeIgnore
}
EAllocationType
;
typedef
enum
_MFVideoDRMFlags
{
MFVideoDRMFlag_None
=
0
,
MFVideoDRMFlag_AnalogProtected
,
MFVideoDRMFlag_DigitallyProtected
,
}
MFVideoDRMFlags
;
#ifdef MF_INIT_GUIDS
#include <initguid.h>
#endif
...
...
@@ -497,6 +504,9 @@ typedef enum
#define MF_E_DXGI_NEW_VIDEO_DEVICE ((HRESULT)0x80041001)
#define MF_E_DXGI_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002)
struct
tagVIDEOINFOHEADER
;
typedef
struct
tagVIDEOINFOHEADER
VIDEOINFOHEADER
;
HRESULT
WINAPI
MFAddPeriodicCallback
(
MFPERIODICCALLBACK
callback
,
IUnknown
*
context
,
DWORD
*
key
);
HRESULT
WINAPI
MFAllocateSerialWorkQueue
(
DWORD
target_queue
,
DWORD
*
queue
);
HRESULT
WINAPI
MFAllocateWorkQueue
(
DWORD
*
queue
);
...
...
@@ -538,6 +548,13 @@ HRESULT WINAPI MFCreateSample(IMFSample **sample);
HRESULT
WINAPI
MFCreateTempFile
(
MF_FILE_ACCESSMODE
accessmode
,
MF_FILE_OPENMODE
openmode
,
MF_FILE_FLAGS
flags
,
IMFByteStream
**
bytestream
);
HRESULT
WINAPI
MFCreateVideoMediaTypeFromSubtype
(
const
GUID
*
subtype
,
IMFVideoMediaType
**
media_type
);
#ifdef _KSMEDIA_
HRESULT
WINAPI
MFCreateVideoMediaTypeFromVideoInfoHeader
(
const
KS_VIDEOINFOHEADER
*
vih
,
DWORD
size
,
DWORD
pixel_aspect_ratio_x
,
DWORD
pixel_aspect_ratio_y
,
MFVideoInterlaceMode
interlace_mode
,
QWORD
video_flags
,
const
GUID
*
subtype
,
IMFVideoMediaType
**
media_type
);
#endif
HRESULT
WINAPI
MFCreateVideoSampleAllocatorEx
(
REFIID
riid
,
void
**
allocator
);
HRESULT
WINAPI
MFCreateMemoryBuffer
(
DWORD
max_length
,
IMFMediaBuffer
**
buffer
);
HRESULT
WINAPI
MFCreateWaveFormatExFromMFMediaType
(
IMFMediaType
*
type
,
WAVEFORMATEX
**
format
,
UINT32
*
size
,
UINT32
flags
);
...
...
@@ -567,6 +584,9 @@ HRESULT WINAPI MFTGetInfo(CLSID clsid, WCHAR **name, MFT_REGISTER_TYPE_INFO **in
MFT_REGISTER_TYPE_INFO
**
output_types
,
UINT32
*
output_types_count
,
IMFAttributes
**
attributes
);
BOOL
WINAPI
MFIsFormatYUV
(
DWORD
format
);
HRESULT
WINAPI
MFInitAttributesFromBlob
(
IMFAttributes
*
attributes
,
const
UINT8
*
buffer
,
UINT
size
);
HRESULT
WINAPI
MFInitMediaTypeFromAMMediaType
(
IMFMediaType
*
mediatype
,
const
AM_MEDIA_TYPE
*
am_type
);
HRESULT
WINAPI
MFInitMediaTypeFromVideoInfoHeader
(
IMFMediaType
*
media_type
,
const
VIDEOINFOHEADER
*
vih
,
UINT32
size
,
const
GUID
*
subtype
);
HRESULT
WINAPI
MFInitMediaTypeFromWaveFormatEx
(
IMFMediaType
*
mediatype
,
const
WAVEFORMATEX
*
format
,
UINT32
size
);
HRESULT
WINAPI
MFInitVideoFormat_RGB
(
MFVIDEOFORMAT
*
format
,
DWORD
width
,
DWORD
height
,
DWORD
d3dformat
);
HRESULT
WINAPI
MFInvokeCallback
(
IMFAsyncResult
*
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment