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
16147694
Commit
16147694
authored
Jun 24, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Add MFConvertColorInfoToDXVA().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6aeb891d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
mediatype.c
dlls/mfplat/mediatype.c
+34
-0
mfplat.spec
dlls/mfplat/mfplat.spec
+1
-1
mfapi.h
include/mfapi.h
+1
-0
No files found.
dlls/mfplat/mediatype.c
View file @
16147694
...
...
@@ -23,6 +23,7 @@
#include "initguid.h"
#include "ks.h"
#include "ksmedia.h"
#include "dxva2api.h"
#include "wine/debug.h"
...
...
@@ -2748,3 +2749,36 @@ HRESULT WINAPI MFCreateMFVideoFormatFromMFMediaType(IMFMediaType *media_type, MF
return
S_OK
;
}
/***********************************************************************
* MFConvertColorInfoToDXVA (mfplat.@)
*/
HRESULT
WINAPI
MFConvertColorInfoToDXVA
(
DWORD
*
dxva_info
,
const
MFVIDEOFORMAT
*
format
)
{
struct
{
UINT
SampleFormat
:
8
;
UINT
VideoChromaSubsampling
:
4
;
UINT
NominalRange
:
3
;
UINT
VideoTransferMatrix
:
3
;
UINT
VideoLighting
:
4
;
UINT
VideoPrimaries
:
5
;
UINT
VideoTransferFunction
:
5
;
}
*
dxva_format
=
(
void
*
)
dxva_info
;
TRACE
(
"%p, %p.
\n
"
,
dxva_info
,
format
);
if
(
format
->
videoInfo
.
InterlaceMode
==
MFVideoInterlace_MixedInterlaceOrProgressive
)
dxva_format
->
SampleFormat
=
DXVA2_SampleFieldInterleavedEvenFirst
;
else
dxva_format
->
SampleFormat
=
format
->
videoInfo
.
InterlaceMode
;
dxva_format
->
VideoChromaSubsampling
=
format
->
videoInfo
.
SourceChromaSubsampling
;
dxva_format
->
NominalRange
=
format
->
videoInfo
.
NominalRange
;
dxva_format
->
VideoTransferMatrix
=
format
->
videoInfo
.
TransferMatrix
;
dxva_format
->
VideoLighting
=
format
->
videoInfo
.
SourceLighting
;
dxva_format
->
VideoPrimaries
=
format
->
videoInfo
.
ColorPrimaries
;
dxva_format
->
VideoTransferFunction
=
format
->
videoInfo
.
TransferFunction
;
return
S_OK
;
}
dlls/mfplat/mfplat.spec
View file @
16147694
...
...
@@ -34,7 +34,7 @@
@ stdcall MFCompareFullToPartialMediaType(ptr ptr)
@ stub MFCompareSockaddrAddresses
@ stub MFConvertColorInfoFromDXVA
@ st
ub MFConvertColorInfoToDXVA
@ st
dcall MFConvertColorInfoToDXVA(ptr ptr)
@ stub MFConvertFromFP16Array
@ stub MFConvertToFP16Array
@ stdcall MFCopyImage(ptr long ptr long long long)
...
...
include/mfapi.h
View file @
16147694
...
...
@@ -494,6 +494,7 @@ HRESULT WINAPI MFCalculateImageSize(REFGUID subtype, UINT32 width, UINT32 height
HRESULT
WINAPI
MFCancelCreateFile
(
IUnknown
*
cancel_cookie
);
HRESULT
WINAPI
MFCancelWorkItem
(
MFWORKITEM_KEY
key
);
BOOL
WINAPI
MFCompareFullToPartialMediaType
(
IMFMediaType
*
full_type
,
IMFMediaType
*
partial_type
);
HRESULT
WINAPI
MFConvertColorInfoToDXVA
(
DWORD
*
dxva_info
,
const
MFVIDEOFORMAT
*
format
);
HRESULT
WINAPI
MFCopyImage
(
BYTE
*
dest
,
LONG
deststride
,
const
BYTE
*
src
,
LONG
srcstride
,
DWORD
width
,
DWORD
lines
);
HRESULT
WINAPI
MFCreate2DMediaBuffer
(
DWORD
width
,
DWORD
height
,
DWORD
fourcc
,
BOOL
bottom_up
,
IMFMediaBuffer
**
buffer
);
HRESULT
WINAPI
MFCreateAlignedMemoryBuffer
(
DWORD
max_length
,
DWORD
alignment
,
IMFMediaBuffer
**
buffer
);
...
...
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