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
ae584ac6
Commit
ae584ac6
authored
Jan 23, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use the H264 decoder to implement the IV50 decoder.
parent
e1b21bf1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
3 deletions
+34
-3
MAINTAINERS
MAINTAINERS
+0
-1
Makefile.in
dlls/winegstreamer/Makefile.in
+0
-1
h264_decoder.c
dlls/winegstreamer/h264_decoder.c
+34
-1
video_decoder.c
dlls/winegstreamer/video_decoder.c
+0
-0
No files found.
MAINTAINERS
View file @
ae584ac6
...
...
@@ -222,7 +222,6 @@ F: dlls/winegstreamer/h264_decoder.c
F: dlls/winegstreamer/media_source.c
F: dlls/winegstreamer/mfplat.c
F: dlls/winegstreamer/resampler.c
F: dlls/winegstreamer/video_decoder.c
F: dlls/winegstreamer/video_processor.c
F: dlls/winegstreamer/wg_sample.c
F: dlls/winegstreamer/wg_transform.c
...
...
dlls/winegstreamer/Makefile.in
View file @
ae584ac6
...
...
@@ -19,7 +19,6 @@ SOURCES = \
resampler.c
\
rsrc.rc
\
unixlib.c
\
video_decoder.c
\
video_processor.c
\
wg_allocator.c
\
wg_format.c
\
...
...
dlls/winegstreamer/h264_decoder.c
View file @
ae584ac6
/*
H264
Decoder Transform
/*
Generic Video
Decoder Transform
*
* Copyright 2022 Rémi Bernon for CodeWeavers
* Copyright 2023 Shaun Ren for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -109,7 +110,10 @@ static HRESULT try_create_wg_transform(struct h264_decoder *decoder)
attrs
.
low_latency
=
!!
low_latency
;
if
(
!
(
decoder
->
wg_transform
=
wg_transform_create
(
&
input_format
,
&
output_format
,
&
attrs
)))
{
ERR
(
"Failed to create transform with input major_type %u.
\n
"
,
input_format
.
major_type
);
return
E_FAIL
;
}
return
S_OK
;
}
...
...
@@ -898,3 +902,32 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
IMFTransform_Release
(
iface
);
return
hr
;
}
extern
GUID
MFVideoFormat_IV50
;
static
const
GUID
*
const
iv50_decoder_input_types
[]
=
{
&
MFVideoFormat_IV50
,
};
static
const
GUID
*
const
iv50_decoder_output_types
[]
=
{
&
MFVideoFormat_YV12
,
&
MFVideoFormat_YUY2
,
&
MFVideoFormat_NV11
,
&
MFVideoFormat_NV12
,
&
MFVideoFormat_RGB32
,
&
MFVideoFormat_RGB24
,
&
MFVideoFormat_RGB565
,
&
MFVideoFormat_RGB555
,
&
MFVideoFormat_RGB8
,
};
HRESULT
WINAPI
winegstreamer_create_video_decoder
(
IMFTransform
**
out
)
{
TRACE
(
"out %p.
\n
"
,
out
);
if
(
!
init_gstreamer
())
return
E_FAIL
;
return
video_decoder_create_with_types
(
iv50_decoder_input_types
,
ARRAY_SIZE
(
iv50_decoder_input_types
),
iv50_decoder_output_types
,
ARRAY_SIZE
(
iv50_decoder_output_types
),
out
);
}
dlls/winegstreamer/video_decoder.c
deleted
100644 → 0
View file @
e1b21bf1
This diff is collapsed.
Click to expand it.
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