};
-static void paint_setup_I420 (paintinfo * p, GstVideoFrame * frame);
-static void paint_setup_YV12 (paintinfo * p, GstVideoFrame * frame);
+static void paint_setup_I420_YV12 (paintinfo * p, GstVideoFrame * frame);
static void paint_setup_YUY2 (paintinfo * p, GstVideoFrame * frame);
static void paint_setup_UYVY (paintinfo * p, GstVideoFrame * frame);
static void paint_setup_YVYU (paintinfo * p, GstVideoFrame * frame);
{VTS_YUV, "YUV9", "YUV9", 9, paint_setup_YUV9, convert_hline_YUV9},
/* IF09 */
/* YV12 */
- {VTS_YUV, "YV12", "YV12", 12, paint_setup_YV12, convert_hline_I420},
+ {VTS_YUV, "YV12", "YV12", 12, paint_setup_I420_YV12, convert_hline_I420},
/* I420 */
- {VTS_YUV, "I420", "I420", 12, paint_setup_I420, convert_hline_I420},
+ {VTS_YUV, "I420", "I420", 12, paint_setup_I420_YV12, convert_hline_I420},
/* NV12 */
{VTS_YUV, "NV12", "NV12", 12, paint_setup_NV12, convert_hline_NV12},
/* NV21 */
gst_orc_splat_u32 (p->tmpline + offset, value, w);
}
-
-static void
-paint_setup_I420 (paintinfo * p, GstVideoFrame * frame)
-{
- p->yp = GST_VIDEO_FRAME_PLANE_DATA (frame, 0);
- p->ystride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0);
- p->up = GST_VIDEO_FRAME_PLANE_DATA (frame, 1);
- p->ustride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 1);
- p->vp = GST_VIDEO_FRAME_PLANE_DATA (frame, 2);
- p->vstride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 2);
- p->size = frame->info.size;
-}
-
static void
paint_setup_NV12 (paintinfo * p, GstVideoFrame * frame)
{
}
}
-
static void
-paint_setup_YV12 (paintinfo * p, GstVideoFrame * frame)
+paint_setup_I420_YV12 (paintinfo * p, GstVideoFrame * frame)
{
- p->yp = GST_VIDEO_FRAME_PLANE_DATA (frame, 0);
- p->ystride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0);
- p->up = GST_VIDEO_FRAME_PLANE_DATA (frame, 1);
- p->ustride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 1);
- p->vp = GST_VIDEO_FRAME_PLANE_DATA (frame, 2);
- p->vstride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 2);
+ p->yp = GST_VIDEO_FRAME_COMP_DATA (frame, GST_VIDEO_COMP_Y);
+ p->ystride = GST_VIDEO_FRAME_COMP_STRIDE (frame, GST_VIDEO_COMP_Y);
+ p->up = GST_VIDEO_FRAME_COMP_DATA (frame, GST_VIDEO_COMP_U);
+ p->ustride = GST_VIDEO_FRAME_COMP_STRIDE (frame, GST_VIDEO_COMP_U);
+ p->vp = GST_VIDEO_FRAME_COMP_DATA (frame, GST_VIDEO_COMP_V);
+ p->vstride = GST_VIDEO_FRAME_COMP_STRIDE (frame, GST_VIDEO_COMP_V);
p->size = frame->info.size;
}