gint src_width, gint src_stride, gint dest_stride, guint s_alpha) \
{ \
s_alpha = MIN (255, s_alpha); \
- orc_##method##_##name (dest, dest_stride, src, src_stride, \
+ video_mixer_orc_##method##_##name (dest, dest_stride, src, src_stride, \
s_alpha, src_width, src_height); \
}
} \
val = GUINT32_FROM_BE ((0xff << A) | (c1 << C1) | (c2 << C2) | (c3 << C3)); \
\
- orc_splat_u32 ((guint32 *) dest, val, height * width); \
+ video_mixer_orc_splat_u32 ((guint32 *) dest, val, height * width); \
}
A32_COLOR (argb, TRUE, 24, 16, 8, 0);
#define GST_ROUND_UP_1(x) (x)
PLANAR_YUV_BLEND (i420, GST_VIDEO_FORMAT_I420, GST_ROUND_UP_2,
- GST_ROUND_UP_2, memcpy, orc_blend_u8);
+ GST_ROUND_UP_2, memcpy, video_mixer_orc_blend_u8);
PLANAR_YUV_FILL_CHECKER (i420, GST_VIDEO_FORMAT_I420, memset);
PLANAR_YUV_FILL_COLOR (i420, GST_VIDEO_FORMAT_I420, memset);
PLANAR_YUV_FILL_COLOR (yv12, GST_VIDEO_FORMAT_YV12, memset);
PLANAR_YUV_BLEND (y444, GST_VIDEO_FORMAT_Y444, GST_ROUND_UP_1,
- GST_ROUND_UP_1, memcpy, orc_blend_u8);
+ GST_ROUND_UP_1, memcpy, video_mixer_orc_blend_u8);
PLANAR_YUV_FILL_CHECKER (y444, GST_VIDEO_FORMAT_Y444, memset);
PLANAR_YUV_FILL_COLOR (y444, GST_VIDEO_FORMAT_Y444, memset);
PLANAR_YUV_BLEND (y42b, GST_VIDEO_FORMAT_Y42B, GST_ROUND_UP_2,
- GST_ROUND_UP_1, memcpy, orc_blend_u8);
+ GST_ROUND_UP_1, memcpy, video_mixer_orc_blend_u8);
PLANAR_YUV_FILL_CHECKER (y42b, GST_VIDEO_FORMAT_Y42B, memset);
PLANAR_YUV_FILL_COLOR (y42b, GST_VIDEO_FORMAT_Y42B, memset);
PLANAR_YUV_BLEND (y41b, GST_VIDEO_FORMAT_Y41B, GST_ROUND_UP_4,
- GST_ROUND_UP_1, memcpy, orc_blend_u8);
+ GST_ROUND_UP_1, memcpy, video_mixer_orc_blend_u8);
PLANAR_YUV_FILL_CHECKER (y41b, GST_VIDEO_FORMAT_Y41B, memset);
PLANAR_YUV_FILL_COLOR (y41b, GST_VIDEO_FORMAT_Y41B, memset);
guint32 val; \
\
val = GUINT32_FROM_BE ((red << r) | (green << g) | (blue << b)); \
- orc_splat_u32 ((guint32 *) dest, val, width); \
+ video_mixer_orc_splat_u32 ((guint32 *) dest, val, width); \
}
-#define _orc_memcpy_u32(dest,src,len) orc_memcpy_u32((guint32 *) dest, (const guint32 *) src, len/4)
+#define _orc_memcpy_u32(dest,src,len) video_mixer_orc_memcpy_u32((guint32 *) dest, (const guint32 *) src, len/4)
-RGB_BLEND (rgb, 3, memcpy, orc_blend_u8);
+RGB_BLEND (rgb, 3, memcpy, video_mixer_orc_blend_u8);
RGB_FILL_CHECKER_C (rgb, 3, 0, 1, 2);
MEMSET_RGB_C (rgb, 0, 1, 2);
RGB_FILL_COLOR (rgb_c, 3, _memset_rgb_c);
MEMSET_RGB_C (bgr, 2, 1, 0);
RGB_FILL_COLOR (bgr_c, 3, _memset_bgr_c);
-RGB_BLEND (xrgb, 4, _orc_memcpy_u32, orc_blend_u8);
+RGB_BLEND (xrgb, 4, _orc_memcpy_u32, video_mixer_orc_blend_u8);
RGB_FILL_CHECKER_C (xrgb, 4, 1, 2, 3);
MEMSET_XRGB (xrgb, 24, 16, 0);
RGB_FILL_COLOR (xrgb, 4, _memset_xrgb);
val = GUINT32_FROM_BE ((colY << Y1) | (colY << Y2) | (colU << U) | (colV << V)); \
\
for (i = 0; i < height; i++) { \
- orc_splat_u32 ((guint32 *) dest, val, width); \
+ video_mixer_orc_splat_u32 ((guint32 *) dest, val, width); \
dest += dest_stride; \
} \
}
-PACKED_422_BLEND (yuy2, memcpy, orc_blend_u8);
+PACKED_422_BLEND (yuy2, memcpy, video_mixer_orc_blend_u8);
PACKED_422_FILL_CHECKER_C (yuy2, 0, 1, 2, 3);
PACKED_422_FILL_CHECKER_C (uyvy, 1, 0, 3, 2);
PACKED_422_FILL_COLOR (yuy2, 24, 16, 8, 0);
#ifndef DISABLE_ORC
#include <orc/orc.h>
#endif
-void orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n);
-void orc_memcpy_u32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
- int n);
-void orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
+void video_mixer_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n);
+void video_mixer_orc_memcpy_u32 (guint32 * ORC_RESTRICT d1,
+ const guint32 * ORC_RESTRICT s1, int n);
+void video_mixer_orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m);
-void orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+void video_mixer_orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m);
-void orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+void video_mixer_orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m);
-void orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+void video_mixer_orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m);
-void orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+void video_mixer_orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m);
-/* orc_splat_u32 */
+/* video_mixer_orc_splat_u32 */
#ifdef DISABLE_ORC
void
-orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
+video_mixer_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
{
int i;
orc_union32 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
+video_mixer_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_splat_u32");
- orc_program_set_backup_function (p, _backup_orc_splat_u32);
+ orc_program_set_name (p, "video_mixer_orc_splat_u32");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_splat_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* orc_memcpy_u32 */
+/* video_mixer_orc_memcpy_u32 */
#ifdef DISABLE_ORC
void
-orc_memcpy_u32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
- int n)
+video_mixer_orc_memcpy_u32 (guint32 * ORC_RESTRICT d1,
+ const guint32 * ORC_RESTRICT s1, int n)
{
int i;
orc_union32 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_memcpy_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_memcpy_u32 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_memcpy_u32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
- int n)
+video_mixer_orc_memcpy_u32 (guint32 * ORC_RESTRICT d1,
+ const guint32 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_memcpy_u32");
- orc_program_set_backup_function (p, _backup_orc_memcpy_u32);
+ orc_program_set_name (p, "video_mixer_orc_memcpy_u32");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_memcpy_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
#endif
-/* orc_blend_u8 */
+/* video_mixer_orc_blend_u8 */
#ifdef DISABLE_ORC
void
-orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
int i;
#else
static void
-_backup_orc_blend_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_blend_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int j;
}
void
-orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_u8 (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
OrcExecutor _ex, *ex = &_ex;
p = orc_program_new ();
orc_program_set_2d (p);
- orc_program_set_name (p, "orc_blend_u8");
- orc_program_set_backup_function (p, _backup_orc_blend_u8);
+ orc_program_set_name (p, "video_mixer_orc_blend_u8");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_blend_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_constant (p, 1, 0x00000008, "c1");
#endif
-/* orc_blend_argb */
+/* video_mixer_orc_blend_argb */
#ifdef DISABLE_ORC
void
-orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
int i;
#else
static void
-_backup_orc_blend_argb (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_blend_argb (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int j;
}
void
-orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
OrcExecutor _ex, *ex = &_ex;
p = orc_program_new ();
orc_program_set_2d (p);
- orc_program_set_name (p, "orc_blend_argb");
- orc_program_set_backup_function (p, _backup_orc_blend_argb);
+ orc_program_set_name (p, "video_mixer_orc_blend_argb");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_blend_argb);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 4, 0x000000ff, "c1");
#endif
-/* orc_blend_bgra */
+/* video_mixer_orc_blend_bgra */
#ifdef DISABLE_ORC
void
-orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
int i;
#else
static void
-_backup_orc_blend_bgra (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_blend_bgra (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int j;
}
void
-orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_blend_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
OrcExecutor _ex, *ex = &_ex;
p = orc_program_new ();
orc_program_set_2d (p);
- orc_program_set_name (p, "orc_blend_bgra");
- orc_program_set_backup_function (p, _backup_orc_blend_bgra);
+ orc_program_set_name (p, "video_mixer_orc_blend_bgra");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_blend_bgra);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 4, 0xff000000, "c1");
#endif
-/* orc_overlay_argb */
+/* video_mixer_orc_overlay_argb */
#ifdef DISABLE_ORC
void
-orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
int i;
#else
static void
-_backup_orc_overlay_argb (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_overlay_argb (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int j;
}
void
-orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_overlay_argb (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
OrcExecutor _ex, *ex = &_ex;
p = orc_program_new ();
orc_program_set_2d (p);
- orc_program_set_name (p, "orc_overlay_argb");
- orc_program_set_backup_function (p, _backup_orc_overlay_argb);
+ orc_program_set_name (p, "video_mixer_orc_overlay_argb");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_overlay_argb);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 4, 0xffffffff, "c1");
#endif
-/* orc_overlay_bgra */
+/* video_mixer_orc_overlay_bgra */
#ifdef DISABLE_ORC
void
-orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
int i;
#else
static void
-_backup_orc_overlay_bgra (OrcExecutor * ORC_RESTRICT ex)
+_backup_video_mixer_orc_overlay_bgra (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int j;
}
void
-orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
+video_mixer_orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride,
const guint8 * ORC_RESTRICT s1, int s1_stride, int p1, int n, int m)
{
OrcExecutor _ex, *ex = &_ex;
p = orc_program_new ();
orc_program_set_2d (p);
- orc_program_set_name (p, "orc_overlay_bgra");
- orc_program_set_backup_function (p, _backup_orc_overlay_bgra);
+ orc_program_set_name (p, "video_mixer_orc_overlay_bgra");
+ orc_program_set_backup_function (p, _backup_video_mixer_orc_overlay_bgra);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 4, 0xffffffff, "c1");