Commit 29743c3e authored by Wim Taymans's avatar Wim Taymans

videobox: prefix orc functions with video_box_orc_

parent 2c31ad23
...@@ -161,10 +161,10 @@ fill_ayuv (GstVideoBoxFill fill_type, guint b_alpha, ...@@ -161,10 +161,10 @@ fill_ayuv (GstVideoBoxFill fill_type, guint b_alpha,
stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0); stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0);
if (G_LIKELY (stride == 4 * width)) if (G_LIKELY (stride == 4 * width))
orc_splat_u32 ((guint32 *) dest, empty_pixel, width * height); video_box_orc_splat_u32 ((guint32 *) dest, empty_pixel, width * height);
else if (height) { else if (height) {
for (; height; --height) { for (; height; --height) {
orc_splat_u32 ((guint32 *) dest, empty_pixel, width); video_box_orc_splat_u32 ((guint32 *) dest, empty_pixel, width);
dest += stride; dest += stride;
} }
} }
...@@ -1786,10 +1786,10 @@ fill_rgb32 (GstVideoBoxFill fill_type, guint b_alpha, ...@@ -1786,10 +1786,10 @@ fill_rgb32 (GstVideoBoxFill fill_type, guint b_alpha,
(rgb_colors_B[fill_type] << (p[3] * 8))); (rgb_colors_B[fill_type] << (p[3] * 8)));
if (stride == width * 4) { if (stride == width * 4) {
orc_splat_u32 ((guint32 *) dest, empty_pixel, width * height); video_box_orc_splat_u32 ((guint32 *) dest, empty_pixel, width * height);
} else if (height) { } else if (height) {
for (; height; --height) { for (; height; --height) {
orc_splat_u32 ((guint32 *) dest, empty_pixel, width); video_box_orc_splat_u32 ((guint32 *) dest, empty_pixel, width);
dest += stride; dest += stride;
} }
} }
......
...@@ -82,7 +82,7 @@ typedef union ...@@ -82,7 +82,7 @@ typedef union
#ifndef DISABLE_ORC #ifndef DISABLE_ORC
#include <orc/orc.h> #include <orc/orc.h>
#endif #endif
void orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n); void video_box_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n);
/* begin Orc C target preamble */ /* begin Orc C target preamble */
...@@ -129,10 +129,10 @@ void orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n); ...@@ -129,10 +129,10 @@ void orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n);
/* orc_splat_u32 */ /* video_box_orc_splat_u32 */
#ifdef DISABLE_ORC #ifdef DISABLE_ORC
void void
orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n) video_box_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
{ {
int i; int i;
orc_union32 *ORC_RESTRICT ptr0; orc_union32 *ORC_RESTRICT ptr0;
...@@ -155,7 +155,7 @@ orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n) ...@@ -155,7 +155,7 @@ orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
#else #else
static void static void
_backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex) _backup_video_box_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
{ {
int i; int i;
int n = ex->n; int n = ex->n;
...@@ -178,7 +178,7 @@ _backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex) ...@@ -178,7 +178,7 @@ _backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
} }
void void
orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n) video_box_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
{ {
OrcExecutor _ex, *ex = &_ex; OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0; static volatile int p_inited = 0;
...@@ -190,8 +190,8 @@ orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n) ...@@ -190,8 +190,8 @@ orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n)
if (!p_inited) { if (!p_inited) {
p = orc_program_new (); p = orc_program_new ();
orc_program_set_name (p, "orc_splat_u32"); orc_program_set_name (p, "video_box_orc_splat_u32");
orc_program_set_backup_function (p, _backup_orc_splat_u32); orc_program_set_backup_function (p, _backup_video_box_orc_splat_u32);
orc_program_add_destination (p, 4, "d1"); orc_program_add_destination (p, 4, "d1");
orc_program_add_parameter (p, 4, "p1"); orc_program_add_parameter (p, 4, "p1");
......
...@@ -67,7 +67,7 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 ...@@ -67,7 +67,7 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16
#define ORC_RESTRICT #define ORC_RESTRICT
#endif #endif
#endif #endif
void orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n); void video_box_orc_splat_u32 (guint32 * ORC_RESTRICT d1, int p1, int n);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
.function orc_splat_u32 .function video_box_orc_splat_u32
.dest 4 d1 guint32 .dest 4 d1 guint32
.param 4 p1 .param 4 p1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment