mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
msdk: Fix mjpeg BGRx encode
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6401>
This commit is contained in:
parent
7d0e90b7bc
commit
249a086612
2 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,7 @@ gst_msdk_frame_lock (mfxHDL pthis, mfxMemId mid, mfxFrameData * data)
|
|||
data->V = data->U + 2;
|
||||
break;
|
||||
case VA_FOURCC_ARGB:
|
||||
case VA_FOURCC_XRGB:
|
||||
data->Pitch = mem_id->image.pitches[0];
|
||||
data->B = buf + mem_id->image.offsets[0];
|
||||
data->G = data->B + 1;
|
||||
|
|
|
@ -601,6 +601,7 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
|
|||
break;
|
||||
#endif
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
case GST_VIDEO_FORMAT_BGRx:
|
||||
thiz->param.mfx.FrameInfo.FourCC = MFX_FOURCC_RGB4;
|
||||
thiz->param.mfx.FrameInfo.ChromaFormat = MFX_CHROMAFORMAT_YUV444;
|
||||
thiz->param.mfx.FrameInfo.BitDepthLuma = 8;
|
||||
|
|
Loading…
Reference in a new issue