Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Normand
gst-plugins-bad
Commits
27ab7fb4
Commit
27ab7fb4
authored
Nov 16, 2018
by
Haihao Xiang
Committed by
Víctor Manuel Jáquez Leal
Nov 26, 2018
Browse files
msdk: adjust the RT format for P010 surface
According to VA API, VA_RT_FORMAT_YUV420_10 is expected for P010 surface
parent
eeb58f64
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/msdk/gstmsdkallocator_libva.c
View file @
27ab7fb4
...
...
@@ -95,6 +95,9 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req,
format
=
gst_msdk_get_va_rt_format_from_mfx_rt_format
(
req
->
Info
.
ChromaFormat
);
if
(
format
==
VA_RT_FORMAT_YUV420
&&
va_fourcc
==
VA_FOURCC_P010
)
format
=
VA_RT_FORMAT_YUV420_10
;
va_status
=
vaCreateSurfaces
(
gst_msdk_context_get_handle
(
context
),
format
,
req
->
Info
.
Width
,
req
->
Info
.
Height
,
surfaces
,
surfaces_num
,
&
attrib
,
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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