guint down_n_lines;
gint down_offset;
- void (*convert) (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src);
+ void (*convert) (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest);
void (*matrix) (GstVideoConverter * convert, gpointer pixels);
void (*dither16) (GstVideoConverter * convert, guint16 * pixels, int j);
};
static void video_converter_generic (GstVideoConverter * convert,
- GstVideoFrame * dest, const GstVideoFrame * src);
+ const GstVideoFrame * src, GstVideoFrame * dest);
static void video_converter_matrix8 (GstVideoConverter * convert,
gpointer pixels);
static void video_converter_matrix16 (GstVideoConverter * convert,
*/
void
gst_video_converter_frame (GstVideoConverter * convert,
- GstVideoFrame * dest, const GstVideoFrame * src)
+ const GstVideoFrame * src, GstVideoFrame * dest)
{
g_return_if_fail (convert != NULL);
- g_return_if_fail (dest != NULL);
g_return_if_fail (src != NULL);
+ g_return_if_fail (dest != NULL);
- convert->convert (convert, dest, src);
+ convert->convert (convert, src, dest);
}
#define SCALE (8)
frame->info.chroma_site, line, width);
static void
-video_converter_generic (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+video_converter_generic (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int j, k;
gint width, height, lines, max_lines;
static void
-convert_I420_YUY2 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_YUY2 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
}
static void
-convert_I420_UYVY (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_UYVY (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
}
static void
-convert_I420_AYUV (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_AYUV (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
}
static void
-convert_I420_Y42B (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_Y42B (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_I420_Y444 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_Y444 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_YUY2_I420 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_YUY2_I420 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
}
static void
-convert_YUY2_AYUV (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_YUY2_AYUV (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_YUY2_Y42B (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_YUY2_Y42B (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_YUY2_Y444 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_YUY2_Y444 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
static void
-convert_UYVY_I420 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_UYVY_I420 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
}
static void
-convert_UYVY_AYUV (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_UYVY_AYUV (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_UYVY_YUY2 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_UYVY_YUY2 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_UYVY_Y42B (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_UYVY_Y42B (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_UYVY_Y444 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_UYVY_Y444 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_I420 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_I420 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_YUY2 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_YUY2 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_UYVY (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_UYVY (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_Y42B (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_Y42B (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_Y444 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_Y444 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y42B_I420 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y42B_I420 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y42B_Y444 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y42B_Y444 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y42B_YUY2 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y42B_YUY2 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y42B_UYVY (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y42B_UYVY (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y42B_AYUV (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y42B_AYUV (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y444_I420 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y444_I420 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y444_Y42B (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y444_Y42B (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y444_YUY2 (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y444_YUY2 (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y444_UYVY (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y444_UYVY (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_Y444_AYUV (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_Y444_AYUV (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
static void
-convert_AYUV_ARGB (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_ARGB (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_BGRA (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_BGRA (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_ABGR (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_ABGR (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_AYUV_RGBA (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_AYUV_RGBA (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
gint width = convert->width;
gint height = convert->height;
}
static void
-convert_I420_BGRA (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src)
+convert_I420_BGRA (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest)
{
int i;
gint width = convert->width;
gboolean keeps_interlaced;
gboolean needs_color_matrix;
gint width_align, height_align;
- void (*convert) (GstVideoConverter * convert, GstVideoFrame * dest,
- const GstVideoFrame * src);
+ void (*convert) (GstVideoConverter * convert, const GstVideoFrame * src,
+ GstVideoFrame * dest);
} VideoTransform;
static const VideoTransform transforms[] = {