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
7d584246
Commit
7d584246
authored
Nov 16, 2018
by
Haihao Xiang
Committed by
Víctor Manuel Jáquez Leal
Nov 26, 2018
Browse files
msdk: VA_FOURCC_P010 frame lock
P010 and NV12 have the same layout, so we may reuse the code in gst_msdk_frame_lock()
parent
f72c8251
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/msdk/gstmsdkallocator_libva.c
View file @
7d584246
...
...
@@ -267,6 +267,7 @@ gst_msdk_frame_lock (mfxHDL pthis, mfxMemId mid, mfxFrameData * data)
switch
(
mem_id
->
image
.
format
.
fourcc
)
{
case
VA_FOURCC_NV12
:
case
VA_FOURCC_P010
:
data
->
Pitch
=
mem_id
->
image
.
pitches
[
0
];
data
->
Y
=
buf
+
mem_id
->
image
.
offsets
[
0
];
data
->
UV
=
buf
+
mem_id
->
image
.
offsets
[
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