guadi: prefix orc functions with gaudi_orc_

This commit is contained in:
Wim Taymans 2012-07-24 10:46:39 +02:00
parent f4220d35a5
commit 57fa9e8bb2
4 changed files with 11 additions and 11 deletions

View file

@ -256,7 +256,7 @@ gst_burn_transform_frame (GstVideoFilter * vfilter,
GST_OBJECT_UNLOCK (filter); GST_OBJECT_UNLOCK (filter);
/*** Now the image processing work.... ***/ /*** Now the image processing work.... ***/
orc_gaudi_burn (dest, src, adjustment, video_size); gaudi_orc_burn (dest, src, adjustment, video_size);
return GST_FLOW_OK; return GST_FLOW_OK;
} }

View file

@ -82,7 +82,7 @@ typedef union
#ifndef DISABLE_ORC #ifndef DISABLE_ORC
#include <orc/orc.h> #include <orc/orc.h>
#endif #endif
void orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, void gaudi_orc_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
int p1, int n); int p1, int n);
@ -130,10 +130,10 @@ void orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
/* orc_gaudi_burn */ /* gaudi_orc_burn */
#ifdef DISABLE_ORC #ifdef DISABLE_ORC
void void
orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, gaudi_orc_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
int p1, int n) int p1, int n)
{ {
int i; int i;
@ -246,7 +246,7 @@ orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
#else #else
static void static void
_backup_orc_gaudi_burn (OrcExecutor * ORC_RESTRICT ex) _backup_gaudi_orc_burn (OrcExecutor * ORC_RESTRICT ex)
{ {
int i; int i;
int n = ex->n; int n = ex->n;
@ -358,7 +358,7 @@ _backup_orc_gaudi_burn (OrcExecutor * ORC_RESTRICT ex)
} }
void void
orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, gaudi_orc_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
int p1, int n) int p1, int n)
{ {
OrcExecutor _ex, *ex = &_ex; OrcExecutor _ex, *ex = &_ex;
@ -372,8 +372,8 @@ orc_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
OrcProgram *p; OrcProgram *p;
p = orc_program_new (); p = orc_program_new ();
orc_program_set_name (p, "orc_gaudi_burn"); orc_program_set_name (p, "gaudi_orc_burn");
orc_program_set_backup_function (p, _backup_orc_gaudi_burn); orc_program_set_backup_function (p, _backup_gaudi_orc_burn);
orc_program_add_destination (p, 4, "d1"); orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1"); orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 1, 0x000000ff, "c1"); orc_program_add_constant (p, 1, 0x000000ff, "c1");

View file

@ -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_gaudi_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int p1, int n); void gaudi_orc_burn (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int p1, int n);
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -1,5 +1,5 @@
.function orc_gaudi_burn .function gaudi_orc_burn
.dest 4 dest guint32 .dest 4 dest guint32
.source 4 src guint32 .source 4 src guint32
.param 4 adj gint .param 4 adj gint
@ -23,4 +23,4 @@ x4 divluw tmp2, tmp2, a2 # tmp = tmp / a
x4 subw tmp2, c255, tmp2 # tmp = 255 - tmp x4 subw tmp2, c255, tmp2 # tmp = 255 - tmp
x4 convwb tmp, tmp2 # convert from size 2 to 1 x4 convwb tmp, tmp2 # convert from size 2 to 1
storel dest, tmp storel dest, tmp