Commit 7d584246 authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal
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
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment