mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vrawpay: fix UYVP format
This commit is contained in:
parent
37af93c361
commit
8191b6fcd2
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,7 @@ gst_rtp_vraw_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
||||||
break;
|
break;
|
||||||
case GST_VIDEO_FORMAT_UYVP:
|
case GST_VIDEO_FORMAT_UYVP:
|
||||||
samplingstr = "YCbCr-4:2:2";
|
samplingstr = "YCbCr-4:2:2";
|
||||||
pgroup = 4;
|
pgroup = 5;
|
||||||
xinc = 2;
|
xinc = 2;
|
||||||
depth = 10;
|
depth = 10;
|
||||||
depthstr = "10";
|
depthstr = "10";
|
||||||
|
@ -409,6 +409,7 @@ gst_rtp_vraw_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
|
||||||
case GST_VIDEO_FORMAT_BGR:
|
case GST_VIDEO_FORMAT_BGR:
|
||||||
case GST_VIDEO_FORMAT_BGRA:
|
case GST_VIDEO_FORMAT_BGRA:
|
||||||
case GST_VIDEO_FORMAT_UYVY:
|
case GST_VIDEO_FORMAT_UYVY:
|
||||||
|
case GST_VIDEO_FORMAT_UYVP:
|
||||||
offs /= rtpvrawpay->xinc;
|
offs /= rtpvrawpay->xinc;
|
||||||
memcpy (outdata, yp + (lin * ystride) + (offs * pgroup), length);
|
memcpy (outdata, yp + (lin * ystride) + (offs * pgroup), length);
|
||||||
outdata += length;
|
outdata += length;
|
||||||
|
|
Loading…
Reference in a new issue