mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-03 06:54:47 +00:00
msdk: VA_FOURCC_P010 frame lock
P010 and NV12 have the same layout, so we may reuse the code in gst_msdk_frame_lock()
This commit is contained in:
parent
f72c825194
commit
7d58424611
1 changed files with 1 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue