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
437d304c
Commit
437d304c
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: Rename struct h264_decoder to struct video_decoder.
parent
ae584ac6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
30 deletions
+30
-30
MAINTAINERS
MAINTAINERS
+1
-1
Makefile.in
dlls/winegstreamer/Makefile.in
+1
-1
video_decoder.c
dlls/winegstreamer/video_decoder.c
+28
-28
No files found.
MAINTAINERS
View file @
437d304c
...
...
@@ -218,10 +218,10 @@ P: Zebediah Figura <z.figura12@gmail.com>
F: dlls/mf/tests/transform.c
F: dlls/winegstreamer/aac_decoder.c
F: dlls/winegstreamer/color_convert.c
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 @
437d304c
...
...
@@ -9,7 +9,6 @@ UNIX_LIBS = $(GSTREAMER_LIBS) $(PTHREAD_LIBS)
SOURCES
=
\
aac_decoder.c
\
color_convert.c
\
h264_decoder.c
\
main.c
\
media_sink.c
\
media_source.c
\
...
...
@@ -19,6 +18,7 @@ SOURCES = \
resampler.c
\
rsrc.rc
\
unixlib.c
\
video_decoder.c
\
video_processor.c
\
wg_allocator.c
\
wg_format.c
\
...
...
dlls/winegstreamer/
h264
_decoder.c
→
dlls/winegstreamer/
video
_decoder.c
View file @
437d304c
...
...
@@ -43,7 +43,7 @@ static const GUID *const video_decoder_output_types[] =
&
MFVideoFormat_YUY2
,
};
struct
h264
_decoder
struct
video
_decoder
{
IMFTransform
IMFTransform_iface
;
LONG
refcount
;
...
...
@@ -72,12 +72,12 @@ struct h264_decoder
IMFMediaBuffer
*
temp_buffer
;
};
static
struct
h264
_decoder
*
impl_from_IMFTransform
(
IMFTransform
*
iface
)
static
struct
video
_decoder
*
impl_from_IMFTransform
(
IMFTransform
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
h264
_decoder
,
IMFTransform_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
video
_decoder
,
IMFTransform_iface
);
}
static
HRESULT
try_create_wg_transform
(
struct
h264
_decoder
*
decoder
)
static
HRESULT
try_create_wg_transform
(
struct
video
_decoder
*
decoder
)
{
/* Call of Duty: Black Ops 3 doesn't care about the ProcessInput/ProcessOutput
* return values, it calls them in a specific order and expects the decoder
...
...
@@ -118,7 +118,7 @@ static HRESULT try_create_wg_transform(struct h264_decoder *decoder)
return
S_OK
;
}
static
HRESULT
create_output_media_type
(
struct
h264
_decoder
*
decoder
,
const
GUID
*
subtype
,
static
HRESULT
create_output_media_type
(
struct
video
_decoder
*
decoder
,
const
GUID
*
subtype
,
IMFMediaType
*
output_type
,
IMFMediaType
**
media_type
)
{
IMFMediaType
*
default_type
=
decoder
->
output_type
,
*
stream_type
=
output_type
?
output_type
:
decoder
->
stream_type
;
...
...
@@ -198,7 +198,7 @@ done:
return
hr
;
}
static
HRESULT
init_allocator
(
struct
h264
_decoder
*
decoder
)
static
HRESULT
init_allocator
(
struct
video
_decoder
*
decoder
)
{
HRESULT
hr
;
...
...
@@ -217,7 +217,7 @@ static HRESULT init_allocator(struct h264_decoder *decoder)
return
S_OK
;
}
static
void
uninit_allocator
(
struct
h264
_decoder
*
decoder
)
static
void
uninit_allocator
(
struct
video
_decoder
*
decoder
)
{
IMFVideoSampleAllocatorEx_UninitializeSampleAllocator
(
decoder
->
allocator
);
decoder
->
allocator_initialized
=
FALSE
;
...
...
@@ -225,7 +225,7 @@ static void uninit_allocator(struct h264_decoder *decoder)
static
HRESULT
WINAPI
transform_QueryInterface
(
IMFTransform
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, iid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
...
...
@@ -245,7 +245,7 @@ static HRESULT WINAPI transform_QueryInterface(IMFTransform *iface, REFIID iid,
static
ULONG
WINAPI
transform_AddRef
(
IMFTransform
*
iface
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
decoder
->
refcount
);
TRACE
(
"iface %p increasing refcount to %lu.
\n
"
,
decoder
,
refcount
);
...
...
@@ -255,7 +255,7 @@ static ULONG WINAPI transform_AddRef(IMFTransform *iface)
static
ULONG
WINAPI
transform_Release
(
IMFTransform
*
iface
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
decoder
->
refcount
);
TRACE
(
"iface %p decreasing refcount to %lu.
\n
"
,
decoder
,
refcount
);
...
...
@@ -309,7 +309,7 @@ static HRESULT WINAPI transform_GetStreamIDs(IMFTransform *iface, DWORD input_si
static
HRESULT
WINAPI
transform_GetInputStreamInfo
(
IMFTransform
*
iface
,
DWORD
id
,
MFT_INPUT_STREAM_INFO
*
info
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, info %p.
\n
"
,
iface
,
id
,
info
);
...
...
@@ -319,7 +319,7 @@ static HRESULT WINAPI transform_GetInputStreamInfo(IMFTransform *iface, DWORD id
static
HRESULT
WINAPI
transform_GetOutputStreamInfo
(
IMFTransform
*
iface
,
DWORD
id
,
MFT_OUTPUT_STREAM_INFO
*
info
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, info %p.
\n
"
,
iface
,
id
,
info
);
...
...
@@ -329,7 +329,7 @@ static HRESULT WINAPI transform_GetOutputStreamInfo(IMFTransform *iface, DWORD i
static
HRESULT
WINAPI
transform_GetAttributes
(
IMFTransform
*
iface
,
IMFAttributes
**
attributes
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
FIXME
(
"iface %p, attributes %p semi-stub!
\n
"
,
iface
,
attributes
);
...
...
@@ -348,7 +348,7 @@ static HRESULT WINAPI transform_GetInputStreamAttributes(IMFTransform *iface, DW
static
HRESULT
WINAPI
transform_GetOutputStreamAttributes
(
IMFTransform
*
iface
,
DWORD
id
,
IMFAttributes
**
attributes
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
FIXME
(
"iface %p, id %#lx, attributes %p semi-stub!
\n
"
,
iface
,
id
,
attributes
);
...
...
@@ -376,7 +376,7 @@ static HRESULT WINAPI transform_AddInputStreams(IMFTransform *iface, DWORD strea
static
HRESULT
WINAPI
transform_GetInputAvailableType
(
IMFTransform
*
iface
,
DWORD
id
,
DWORD
index
,
IMFMediaType
**
type
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, index %#lx, type %p.
\n
"
,
iface
,
id
,
index
,
type
);
...
...
@@ -389,7 +389,7 @@ static HRESULT WINAPI transform_GetInputAvailableType(IMFTransform *iface, DWORD
static
HRESULT
WINAPI
transform_GetOutputAvailableType
(
IMFTransform
*
iface
,
DWORD
id
,
DWORD
index
,
IMFMediaType
**
type
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, index %#lx, type %p.
\n
"
,
iface
,
id
,
index
,
type
);
...
...
@@ -401,7 +401,7 @@ static HRESULT WINAPI transform_GetOutputAvailableType(IMFTransform *iface, DWOR
return
create_output_media_type
(
decoder
,
decoder
->
output_types
[
index
],
NULL
,
type
);
}
static
HRESULT
update_output_info_size
(
struct
h264
_decoder
*
decoder
,
UINT32
width
,
UINT32
height
)
static
HRESULT
update_output_info_size
(
struct
video
_decoder
*
decoder
,
UINT32
width
,
UINT32
height
)
{
HRESULT
hr
=
E_FAIL
;
UINT32
i
,
size
;
...
...
@@ -420,7 +420,7 @@ static HRESULT update_output_info_size(struct h264_decoder *decoder, UINT32 widt
static
HRESULT
WINAPI
transform_SetInputType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
*
type
,
DWORD
flags
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
GUID
major
,
subtype
;
UINT64
frame_size
;
HRESULT
hr
;
...
...
@@ -465,7 +465,7 @@ static HRESULT WINAPI transform_SetInputType(IMFTransform *iface, DWORD id, IMFM
static
HRESULT
WINAPI
transform_SetOutputType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
*
type
,
DWORD
flags
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
UINT64
frame_size
,
stream_frame_size
;
GUID
major
,
subtype
;
HRESULT
hr
;
...
...
@@ -525,7 +525,7 @@ static HRESULT WINAPI transform_SetOutputType(IMFTransform *iface, DWORD id, IMF
static
HRESULT
WINAPI
transform_GetInputCurrentType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
**
type
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, id %#lx, type %p
\n
"
,
iface
,
id
,
type
);
...
...
@@ -541,7 +541,7 @@ static HRESULT WINAPI transform_GetInputCurrentType(IMFTransform *iface, DWORD i
static
HRESULT
WINAPI
transform_GetOutputCurrentType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
**
type
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
GUID
subtype
;
HRESULT
hr
;
...
...
@@ -556,7 +556,7 @@ static HRESULT WINAPI transform_GetOutputCurrentType(IMFTransform *iface, DWORD
static
HRESULT
WINAPI
transform_GetInputStatus
(
IMFTransform
*
iface
,
DWORD
id
,
DWORD
*
flags
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, flags %p.
\n
"
,
iface
,
id
,
flags
);
...
...
@@ -587,7 +587,7 @@ static HRESULT WINAPI transform_ProcessEvent(IMFTransform *iface, DWORD id, IMFM
static
HRESULT
WINAPI
transform_ProcessMessage
(
IMFTransform
*
iface
,
MFT_MESSAGE_TYPE
message
,
ULONG_PTR
param
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, message %#x, param %Ix.
\n
"
,
iface
,
message
,
param
);
...
...
@@ -619,7 +619,7 @@ static HRESULT WINAPI transform_ProcessMessage(IMFTransform *iface, MFT_MESSAGE_
static
HRESULT
WINAPI
transform_ProcessInput
(
IMFTransform
*
iface
,
DWORD
id
,
IMFSample
*
sample
,
DWORD
flags
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
TRACE
(
"iface %p, id %#lx, sample %p, flags %#lx.
\n
"
,
iface
,
id
,
sample
,
flags
);
...
...
@@ -629,7 +629,7 @@ static HRESULT WINAPI transform_ProcessInput(IMFTransform *iface, DWORD id, IMFS
return
wg_transform_push_mf
(
decoder
->
wg_transform
,
sample
,
decoder
->
wg_sample_queue
);
}
static
HRESULT
output_sample
(
struct
h264
_decoder
*
decoder
,
IMFSample
**
out
,
IMFSample
*
src_sample
)
static
HRESULT
output_sample
(
struct
video
_decoder
*
decoder
,
IMFSample
**
out
,
IMFSample
*
src_sample
)
{
MFT_OUTPUT_DATA_BUFFER
output
[
1
];
IMFSample
*
sample
;
...
...
@@ -659,7 +659,7 @@ static HRESULT output_sample(struct h264_decoder *decoder, IMFSample **out, IMFS
return
S_OK
;
}
static
HRESULT
handle_stream_type_change
(
struct
h264
_decoder
*
decoder
,
const
struct
wg_format
*
format
)
static
HRESULT
handle_stream_type_change
(
struct
video
_decoder
*
decoder
,
const
struct
wg_format
*
format
)
{
UINT64
frame_size
,
frame_rate
;
HRESULT
hr
;
...
...
@@ -685,7 +685,7 @@ static HRESULT handle_stream_type_change(struct h264_decoder *decoder, const str
static
HRESULT
WINAPI
transform_ProcessOutput
(
IMFTransform
*
iface
,
DWORD
flags
,
DWORD
count
,
MFT_OUTPUT_DATA_BUFFER
*
samples
,
DWORD
*
status
)
{
struct
h264
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
video
_decoder
*
decoder
=
impl_from_IMFTransform
(
iface
);
struct
wg_format
wg_format
;
UINT32
sample_size
;
LONGLONG
duration
;
...
...
@@ -801,7 +801,7 @@ static const IMFTransformVtbl transform_vtbl =
static
HRESULT
video_decoder_create_with_types
(
const
GUID
*
const
*
input_types
,
UINT
input_type_count
,
const
GUID
*
const
*
output_types
,
UINT
output_type_count
,
IMFTransform
**
ret
)
{
struct
h264
_decoder
*
decoder
;
struct
video
_decoder
*
decoder
;
HRESULT
hr
;
if
(
!
(
decoder
=
calloc
(
1
,
sizeof
(
*
decoder
))))
...
...
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