static void colorspace_convert_generic (ColorspaceConvert * convert,
- guint8 * dest, guint8 * src);
+ guint8 * dest, const guint8 * src);
static void colorspace_convert_lookup_fastpath (ColorspaceConvert * convert);
static void colorspace_convert_lookup_getput (ColorspaceConvert * convert);
void
colorspace_convert_convert (ColorspaceConvert * convert,
- guint8 * dest, guint8 * src)
+ guint8 * dest, const guint8 * src)
{
convert->convert (convert, dest, src);
}
((dir) + convert-> dir ## _offset[(comp)] + convert-> dir ## _stride[(comp)] * (line))
static void
-getline_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_I420 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_I420 (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_I420 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_I420 (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 1, j >> 1),
}
static void
-getline_YV12 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_YV12 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_I420 (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_YV12 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_YV12 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_I420 (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 1, j >> 1),
}
static void
-getline_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_YUY2 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_YUY2 (dest, FRAME_GET_LINE (src, 0, j), convert->width / 2);
}
static void
-putline_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_YUY2 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_YUY2 (FRAME_GET_LINE (dest, 0, j), src, convert->width / 2);
}
static void
-getline_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_UYVY (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_UYVY (dest, FRAME_GET_LINE (src, 0, j), convert->width / 2);
}
static void
-putline_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_UYVY (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_UYVY (FRAME_GET_LINE (dest, 0, j), src, convert->width / 2);
}
static void
-getline_YVYU (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_YVYU (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_YVYU (dest, FRAME_GET_LINE (src, 0, j), convert->width / 2);
}
static void
-putline_YVYU (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_YVYU (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_YVYU (FRAME_GET_LINE (dest, 0, j), src, convert->width / 2);
}
static void
-getline_v308 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_v308 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i++) {
dest[i * 4 + 0] = 0xff;
dest[i * 4 + 1] = srcline[i * 3 + 0];
}
static void
-putline_v308 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_v308 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
}
static void
-getline_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_AYUV (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
memcpy (dest, FRAME_GET_LINE (src, 0, j), convert->width * 4);
}
static void
-putline_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_AYUV (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
memcpy (FRAME_GET_LINE (dest, 0, j), src, convert->width * 4);
}
#if 0
static void
-getline_v410 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_v410 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i++) {
dest[i * 4 + 0] = GST_READ_UINT16_LE (srcline + i * 8 + 0);
dest[i * 4 + 1] = GST_READ_UINT16_LE (srcline + i * 8 + 2);
#endif
static void
-getline_v210 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_v210 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i += 6) {
guint32 a0, a1, a2, a3;
}
static void
-putline_v210 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_v210 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
}
static void
-getline_v216 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_v216 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i++) {
dest[i * 4 + 0] = 0xff;
dest[i * 4 + 1] = GST_READ_UINT16_LE (srcline + i * 4 + 2);
}
static void
-putline_v216 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_v216 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
}
static void
-getline_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_Y42B (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_Y42B (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_Y42B (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_Y42B (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 1, j),
}
static void
-getline_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_Y444 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_Y444 (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_Y444 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_Y444 (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 1, j),
}
static void
-getline_Y800 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_Y800 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_Y800 (dest, FRAME_GET_LINE (src, 0, j), convert->width);
}
static void
-putline_Y800 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_Y800 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_Y800 (FRAME_GET_LINE (dest, 0, j), src, convert->width);
}
static void
-getline_BGRA (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_BGRA (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_BGRA (dest, FRAME_GET_LINE (src, 0, j), convert->width);
}
static void
-putline_BGRA (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_BGRA (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_BGRA (FRAME_GET_LINE (dest, 0, j), src, convert->width);
}
static void
-getline_ABGR (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_ABGR (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_ABGR (dest, FRAME_GET_LINE (src, 0, j), convert->width);
}
static void
-putline_ABGR (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_ABGR (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_ABGR (FRAME_GET_LINE (dest, 0, j), src, convert->width);
}
static void
-getline_RGBA (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_RGBA (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_RGBA (dest, FRAME_GET_LINE (src, 0, j), convert->width);
}
static void
-putline_RGBA (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_RGBA (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_RGBA (FRAME_GET_LINE (dest, 0, j), src, convert->width);
}
static void
-getline_RGB (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_RGB (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i++) {
dest[i * 4 + 0] = 0xff;
dest[i * 4 + 1] = srcline[i * 3 + 0];
}
static void
-putline_RGB (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_RGB (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
}
static void
-getline_BGR (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_BGR (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
- guint8 *srcline = FRAME_GET_LINE (src, 0, j);
+ const guint8 *srcline = FRAME_GET_LINE (src, 0, j);
for (i = 0; i < convert->width; i++) {
dest[i * 4 + 0] = 0xff;
dest[i * 4 + 1] = srcline[i * 3 + 2];
}
static void
-putline_BGR (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_BGR (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
guint8 *destline = FRAME_GET_LINE (dest, 0, j);
}
static void
-getline_NV12 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_NV12 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_NV12 (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_NV12 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_NV12 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_NV12 (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 1, j >> 1), src, convert->width / 2);
}
static void
-getline_NV21 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_NV21 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_getline_NV21 (dest,
FRAME_GET_LINE (src, 0, j),
}
static void
-putline_NV21 (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_NV21 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
cogorc_putline_NV21 (FRAME_GET_LINE (dest, 0, j),
FRAME_GET_LINE (dest, 2, j >> 1), src, convert->width / 2);
}
static void
-getline_UYVP (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+getline_UYVP (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
}
static void
-putline_UYVP (ColorspaceConvert * convert, guint8 * dest, guint8 * src, int j)
+putline_UYVP (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
+ int j)
{
int i;
typedef struct
{
GstVideoFormat format;
- void (*getline) (ColorspaceConvert * convert, guint8 * dest, guint8 * src,
- int j);
- void (*putline) (ColorspaceConvert * convert, guint8 * dest, guint8 * src,
- int j);
+ void (*getline) (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src, int j);
+ void (*putline) (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src, int j);
} ColorspaceLine;
-static ColorspaceLine lines[] = {
+static const ColorspaceLine lines[] = {
{GST_VIDEO_FORMAT_I420, getline_I420, putline_I420},
{GST_VIDEO_FORMAT_YV12, getline_YV12, putline_YV12},
{GST_VIDEO_FORMAT_YUY2, getline_YUY2, putline_YUY2},
static void
colorspace_convert_generic (ColorspaceConvert * convert, guint8 * dest,
- guint8 * src)
+ const guint8 * src)
{
int j;
/* Fast paths */
static void
-convert_I420_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_YUY2 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
}
static void
-convert_I420_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_UYVY (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
}
static void
-convert_I420_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_AYUV (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
}
static void
-convert_I420_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_Y42B (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_I420_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_Y444 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_YUY2_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_YUY2_I420 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
}
static void
-convert_YUY2_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_YUY2_AYUV (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_YUY2_AYUV (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_YUY2_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_YUY2_Y42B (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_YUY2_Y42B (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
}
static void
-convert_YUY2_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_YUY2_Y444 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_YUY2_Y444 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
static void
-convert_UYVY_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_UYVY_I420 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
}
static void
-convert_UYVY_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_UYVY_AYUV (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_UYVY_AYUV (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_UYVY_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_UYVY_YUY2 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_UYVY_YUY2 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_UYVY_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_UYVY_Y42B (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_UYVY_Y42B (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
}
static void
-convert_UYVY_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_UYVY_Y444 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_UYVY_Y444 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
}
static void
-convert_AYUV_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_I420 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_I420 (FRAME_GET_LINE (dest, 0, 0),
2 * convert->dest_stride[0], FRAME_GET_LINE (dest, 0, 1),
}
static void
-convert_AYUV_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_YUY2 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_YUY2 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_UYVY (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_UYVY (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_Y42B (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_Y42B (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
}
static void
-convert_AYUV_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_Y444 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_Y444 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (dest, 1, 0),
}
static void
-convert_Y42B_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y42B_I420 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_Y42B_Y444 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y42B_Y444 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_Y42B_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y42B_YUY2 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y42B_YUY2 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_Y42B_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y42B_UYVY (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y42B_UYVY (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_Y42B_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y42B_AYUV (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y42B_AYUV (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_Y444_I420 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y444_I420 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_Y444_Y42B (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y444_Y42B (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_memcpy_2d (FRAME_GET_LINE (dest, 0, 0), convert->dest_stride[0],
FRAME_GET_LINE (src, 0, 0), convert->src_stride[0],
}
static void
-convert_Y444_YUY2 (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y444_YUY2 (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y444_YUY2 (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_Y444_UYVY (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y444_UYVY (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y444_UYVY (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_Y444_AYUV (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_Y444_AYUV (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_Y444_AYUV (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_ARGB (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_ARGB (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_ARGB (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_BGRA (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_BGRA (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_BGRA (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_ABGR (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_ABGR (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_ABGR (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_AYUV_RGBA (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_AYUV_RGBA (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
cogorc_convert_AYUV_RGBA (FRAME_GET_LINE (dest, 0, 0),
convert->dest_stride[0], FRAME_GET_LINE (src, 0, 0),
}
static void
-convert_I420_BGRA (ColorspaceConvert * convert, guint8 * dest, guint8 * src)
+convert_I420_BGRA (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src)
{
int i;
int quality = 0;
{
GstVideoFormat from_format;
GstVideoFormat to_format;
- void (*convert) (ColorspaceConvert * convert, guint8 * dest, guint8 * src);
+ void (*convert) (ColorspaceConvert * convert, guint8 * dest,
+ const guint8 * src);
} ColorspaceTransform;
static const ColorspaceTransform transforms[] = {
{GST_VIDEO_FORMAT_I420, GST_VIDEO_FORMAT_YUY2, convert_I420_YUY2},