mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst: update disted orc backup code
This commit is contained in:
parent
09e0125594
commit
82a791519c
10 changed files with 907 additions and 781 deletions
|
@ -4,9 +4,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef _ORC_INTEGER_TYPEDEFS_
|
||||
|
@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -71,14 +69,31 @@ typedef union
|
|||
orc_int16 x4[4];
|
||||
} orc_union64;
|
||||
#endif
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void add_int32 (gint32 * d1, const gint32 * s1, int n);
|
||||
void add_int16 (gint16 * d1, const gint16 * s1, int n);
|
||||
void add_int8 (gint8 * d1, const gint8 * s1, int n);
|
||||
void add_uint32 (guint32 * d1, const guint32 * s1, int n);
|
||||
void add_uint16 (guint16 * d1, const guint16 * s1, int n);
|
||||
void add_uint8 (guint8 * d1, const guint8 * s1, int n);
|
||||
void add_float32 (float *d1, const float *s1, int n);
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
void add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1,
|
||||
int n);
|
||||
void add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1,
|
||||
int n);
|
||||
void add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n);
|
||||
void add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1,
|
||||
int n);
|
||||
void add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
|
||||
int n);
|
||||
void add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
|
||||
int n);
|
||||
void add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n);
|
||||
|
||||
void gst_adder_orc_init (void);
|
||||
|
||||
|
@ -114,6 +129,7 @@ void gst_adder_orc_init (void);
|
|||
#define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
|
||||
#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
|
||||
#define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
|
@ -121,6 +137,7 @@ void gst_adder_orc_init (void);
|
|||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
/* end Orc C target preamble */
|
||||
|
||||
|
||||
|
@ -128,7 +145,7 @@ void gst_adder_orc_init (void);
|
|||
/* add_int32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_int32 (gint32 * d1, const gint32 * s1, int n)
|
||||
add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -185,7 +202,7 @@ _backup_add_int32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_int32;
|
||||
void
|
||||
add_int32 (gint32 * d1, const gint32 * s1, int n)
|
||||
add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_int32;
|
||||
|
@ -206,7 +223,7 @@ add_int32 (gint32 * d1, const gint32 * s1, int n)
|
|||
/* add_int16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_int16 (gint16 * d1, const gint16 * s1, int n)
|
||||
add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -263,7 +280,7 @@ _backup_add_int16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_int16;
|
||||
void
|
||||
add_int16 (gint16 * d1, const gint16 * s1, int n)
|
||||
add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_int16;
|
||||
|
@ -284,7 +301,7 @@ add_int16 (gint16 * d1, const gint16 * s1, int n)
|
|||
/* add_int8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_int8 (gint8 * d1, const gint8 * s1, int n)
|
||||
add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -341,7 +358,7 @@ _backup_add_int8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_int8;
|
||||
void
|
||||
add_int8 (gint8 * d1, const gint8 * s1, int n)
|
||||
add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_int8;
|
||||
|
@ -362,7 +379,7 @@ add_int8 (gint8 * d1, const gint8 * s1, int n)
|
|||
/* add_uint32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_uint32 (guint32 * d1, const guint32 * s1, int n)
|
||||
add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -423,7 +440,7 @@ _backup_add_uint32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_uint32;
|
||||
void
|
||||
add_uint32 (guint32 * d1, const guint32 * s1, int n)
|
||||
add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_uint32;
|
||||
|
@ -444,7 +461,7 @@ add_uint32 (guint32 * d1, const guint32 * s1, int n)
|
|||
/* add_uint16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_uint16 (guint16 * d1, const guint16 * s1, int n)
|
||||
add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -501,7 +518,7 @@ _backup_add_uint16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_uint16;
|
||||
void
|
||||
add_uint16 (guint16 * d1, const guint16 * s1, int n)
|
||||
add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_uint16;
|
||||
|
@ -522,7 +539,7 @@ add_uint16 (guint16 * d1, const guint16 * s1, int n)
|
|||
/* add_uint8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_uint8 (guint8 * d1, const guint8 * s1, int n)
|
||||
add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -579,7 +596,7 @@ _backup_add_uint8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_uint8;
|
||||
void
|
||||
add_uint8 (guint8 * d1, const guint8 * s1, int n)
|
||||
add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_uint8;
|
||||
|
@ -600,7 +617,7 @@ add_uint8 (guint8 * d1, const guint8 * s1, int n)
|
|||
/* add_float32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
add_float32 (float *d1, const float *s1, int n)
|
||||
add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -673,7 +690,7 @@ _backup_add_float32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_add_float32;
|
||||
void
|
||||
add_float32 (float *d1, const float *s1, int n)
|
||||
add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_add_float32;
|
||||
|
@ -698,7 +715,6 @@ gst_adder_orc_init (void)
|
|||
{
|
||||
/* add_int32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_int32");
|
||||
|
@ -709,14 +725,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addssl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_int32 = p;
|
||||
}
|
||||
{
|
||||
/* add_int16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_int16");
|
||||
|
@ -727,14 +742,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addssw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_int16 = p;
|
||||
}
|
||||
{
|
||||
/* add_int8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_int8");
|
||||
|
@ -745,14 +759,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addssb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_int8 = p;
|
||||
}
|
||||
{
|
||||
/* add_uint32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_uint32");
|
||||
|
@ -763,14 +776,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addusl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_uint32 = p;
|
||||
}
|
||||
{
|
||||
/* add_uint16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_uint16");
|
||||
|
@ -781,14 +793,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addusw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_uint16 = p;
|
||||
}
|
||||
{
|
||||
/* add_uint8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_uint8");
|
||||
|
@ -799,14 +810,13 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addusb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_uint8 = p;
|
||||
}
|
||||
{
|
||||
/* add_float32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "add_float32");
|
||||
|
@ -817,7 +827,7 @@ gst_adder_orc_init (void)
|
|||
orc_program_append_2 (p, "addf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_add_float32 = p;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -59,13 +60,22 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|||
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
||||
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
||||
#endif
|
||||
void add_int32 (gint32 * d1, const gint32 * s1, int n);
|
||||
void add_int16 (gint16 * d1, const gint16 * s1, int n);
|
||||
void add_int8 (gint8 * d1, const gint8 * s1, int n);
|
||||
void add_uint32 (guint32 * d1, const guint32 * s1, int n);
|
||||
void add_uint16 (guint16 * d1, const guint16 * s1, int n);
|
||||
void add_uint8 (guint8 * d1, const guint8 * s1, int n);
|
||||
void add_float32 (float * d1, const float * s1, int n);
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n);
|
||||
void add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n);
|
||||
void add_uint32 (guint32 * ORC_RESTRICT d1, const guint32 * ORC_RESTRICT s1, int n);
|
||||
void add_uint16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n);
|
||||
void add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void add_float32 (float * ORC_RESTRICT d1, const float * ORC_RESTRICT s1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -59,60 +60,69 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|||
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
||||
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
||||
#endif
|
||||
void orc_audio_convert_unpack_u8 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s8 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_swap (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_swap (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32 (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_swap (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_swap (gint32 * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_float_s32 (guint32 * d1, const gfloat * s1, int n);
|
||||
void orc_audio_convert_unpack_float_s32_swap (guint32 * d1, const gfloat * s1, int n);
|
||||
void orc_audio_convert_unpack_double_s32 (guint32 * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_unpack_double_s32_swap (guint32 * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_unpack_float_double (gdouble * d1, const gfloat * s1, int n);
|
||||
void orc_audio_convert_unpack_float_double_swap (gdouble * d1, const gfloat * s1, int n);
|
||||
void orc_audio_convert_unpack_double_double (gdouble * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_unpack_double_double_swap (gdouble * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_unpack_u8_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s8_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_double (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_double_swap (gdouble * d1, const guint8 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u8 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s8 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u16 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s16 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u16_swap (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s16_swap (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u32 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32 (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u32_swap (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32_swap (guint8 * d1, const gint32 * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32_float (gfloat * d1, const gint32 * s1, int n);
|
||||
void orc_audio_convert_pack_s32_float_swap (gfloat * d1, const gint32 * s1, int n);
|
||||
void orc_audio_convert_pack_s32_double (gdouble * d1, const gint32 * s1, int n);
|
||||
void orc_audio_convert_pack_s32_double_swap (gdouble * d1, const gint32 * s1, int n);
|
||||
void orc_audio_convert_pack_double_float (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_pack_double_float_swap (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_audio_convert_pack_double_u8 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s8 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u16 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s16 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u16_swap (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s16_swap (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u32 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s32 (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u32_swap (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s32_swap (guint8 * d1, const gdouble * s1, int p1, int n);
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void orc_audio_convert_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_swap (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_float_s32 (guint32 * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_double_s32 (guint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_float_double (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_float_double_swap (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_double_double (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_double_double_swap (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_unpack_u8_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s8_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_double (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s16_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_u32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32_swap (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_s32_float (gfloat * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_s32_float_swap (gfloat * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_s32_double (gdouble * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_s32_double_swap (gdouble * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_double_float (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_double_float_swap (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_audio_convert_pack_double_u8 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s8 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u16 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s16 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u16_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s16_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u32 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s32 (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_u32_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
void orc_audio_convert_pack_double_s32_swap (guint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int p1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef _ORC_INTEGER_TYPEDEFS_
|
||||
|
@ -72,31 +69,51 @@ typedef union
|
|||
orc_int16 x4[4];
|
||||
} orc_union64;
|
||||
#endif
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1,
|
||||
const orc_uint8 * s2, int p1, int n);
|
||||
void orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
|
||||
const orc_uint16 * s2, int p1, int p2, int n);
|
||||
void orc_splat_u16 (orc_uint16 * d1, int p1, int n);
|
||||
void orc_splat_u32 (orc_uint32 * d1, int p1, int n);
|
||||
void orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n);
|
||||
void orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n);
|
||||
void orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n);
|
||||
void gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n);
|
||||
void gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1,
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
|
||||
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
|
||||
int p1, int n);
|
||||
void orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
|
||||
const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
|
||||
int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1,
|
||||
int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1,
|
||||
int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
|
||||
int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
|
||||
const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n);
|
||||
void gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
|
||||
const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
|
||||
int p3, int p4, int n);
|
||||
void orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n);
|
||||
void orc_downsample_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
|
||||
const guint16 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
|
||||
const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n);
|
||||
void gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
|
||||
const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
|
||||
int p2, int p3, int p4, int n);
|
||||
|
||||
void gst_videoscale_orc_init (void);
|
||||
|
||||
|
@ -132,6 +149,7 @@ void gst_videoscale_orc_init (void);
|
|||
#define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
|
||||
#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
|
||||
#define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
|
@ -139,6 +157,7 @@ void gst_videoscale_orc_init (void);
|
|||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
/* end Orc C target preamble */
|
||||
|
||||
|
||||
|
@ -146,7 +165,8 @@ void gst_videoscale_orc_init (void);
|
|||
/* orc_merge_linear_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
|
||||
orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
|
||||
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
|
||||
int p1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -262,7 +282,8 @@ _backup_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_merge_linear_u8;
|
||||
void
|
||||
orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
|
||||
orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
|
||||
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
|
||||
int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -286,8 +307,9 @@ orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2,
|
|||
/* orc_merge_linear_u16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
|
||||
const orc_uint16 * s2, int p1, int p2, int n)
|
||||
orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
|
||||
const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
|
||||
int p1, int p2, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -384,8 +406,9 @@ _backup_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_merge_linear_u16;
|
||||
void
|
||||
orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
|
||||
const orc_uint16 * s2, int p1, int p2, int n)
|
||||
orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
|
||||
const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2,
|
||||
int p1, int p2, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_merge_linear_u16;
|
||||
|
@ -409,7 +432,7 @@ orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1,
|
|||
/* orc_splat_u16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_splat_u16 (orc_uint16 * d1, int p1, int n)
|
||||
orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -456,7 +479,7 @@ _backup_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_splat_u16;
|
||||
void
|
||||
orc_splat_u16 (orc_uint16 * d1, int p1, int n)
|
||||
orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_splat_u16;
|
||||
|
@ -477,7 +500,7 @@ orc_splat_u16 (orc_uint16 * d1, int p1, int n)
|
|||
/* orc_splat_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_splat_u32 (orc_uint32 * d1, int p1, int n)
|
||||
orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -524,7 +547,7 @@ _backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_splat_u32;
|
||||
void
|
||||
orc_splat_u32 (orc_uint32 * d1, int p1, int n)
|
||||
orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_splat_u32;
|
||||
|
@ -545,7 +568,7 @@ orc_splat_u32 (orc_uint32 * d1, int p1, int n)
|
|||
/* orc_splat_u64 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
|
||||
orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -594,7 +617,7 @@ _backup_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_splat_u64;
|
||||
void
|
||||
orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
|
||||
orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_splat_u64;
|
||||
|
@ -620,7 +643,8 @@ orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n)
|
|||
/* orc_downsample_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
|
||||
orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
|
||||
int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -681,7 +705,8 @@ _backup_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_downsample_u8;
|
||||
void
|
||||
orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
|
||||
orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
|
||||
int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_downsample_u8;
|
||||
|
@ -702,7 +727,8 @@ orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n)
|
|||
/* orc_downsample_u16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
|
||||
orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
|
||||
int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -763,7 +789,8 @@ _backup_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_downsample_u16;
|
||||
void
|
||||
orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
|
||||
orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
|
||||
int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_downsample_u16;
|
||||
|
@ -784,7 +811,8 @@ orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n)
|
|||
/* gst_videoscale_orc_downsample_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
|
||||
gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -851,7 +879,8 @@ _backup_gst_videoscale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_downsample_u32;
|
||||
void
|
||||
gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
|
||||
gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_downsample_u32;
|
||||
|
@ -872,7 +901,8 @@ gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n)
|
|||
/* gst_videoscale_orc_downsample_yuyv */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
|
||||
gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -991,7 +1021,8 @@ _backup_gst_videoscale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_downsample_yuyv;
|
||||
void
|
||||
gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
|
||||
gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_downsample_yuyv;
|
||||
|
@ -1012,8 +1043,8 @@ gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n)
|
|||
/* gst_videoscale_orc_resample_nearest_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -1058,8 +1089,8 @@ _backup_gst_videoscale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_resample_nearest_u8;
|
||||
void
|
||||
gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_resample_nearest_u8;
|
||||
|
@ -1082,8 +1113,8 @@ gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1,
|
|||
/* gst_videoscale_orc_resample_bilinear_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -1138,8 +1169,8 @@ _backup_gst_videoscale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_resample_bilinear_u8;
|
||||
void
|
||||
gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_resample_bilinear_u8;
|
||||
|
@ -1162,8 +1193,8 @@ gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1,
|
|||
/* gst_videoscale_orc_resample_nearest_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1208,8 +1239,8 @@ _backup_gst_videoscale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_resample_nearest_u32;
|
||||
void
|
||||
gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
|
||||
int p2, int n)
|
||||
gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_resample_nearest_u32;
|
||||
|
@ -1232,8 +1263,8 @@ gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1,
|
|||
/* gst_videoscale_orc_resample_bilinear_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
|
||||
int p1, int p2, int n)
|
||||
gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1310,8 +1341,8 @@ _backup_gst_videoscale_orc_resample_bilinear_u32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_resample_bilinear_u32;
|
||||
void
|
||||
gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
|
||||
int p1, int p2, int n)
|
||||
gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_resample_bilinear_u32;
|
||||
|
@ -1334,8 +1365,9 @@ gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1,
|
|||
/* gst_videoscale_orc_resample_merge_bilinear_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
|
||||
const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n)
|
||||
gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
|
||||
const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1515,8 +1547,9 @@ _backup_gst_videoscale_orc_resample_merge_bilinear_u32 (OrcExecutor *
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_resample_merge_bilinear_u32;
|
||||
void
|
||||
gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
|
||||
const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n)
|
||||
gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
|
||||
guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1,
|
||||
const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_resample_merge_bilinear_u32;
|
||||
|
@ -1542,9 +1575,10 @@ gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2,
|
|||
/* gst_videoscale_orc_merge_bicubic_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
|
||||
const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
|
||||
int p3, int p4, int n)
|
||||
gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
|
||||
const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
|
||||
int p2, int p3, int p4, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -1709,9 +1743,10 @@ _backup_gst_videoscale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_videoscale_orc_merge_bicubic_u8;
|
||||
void
|
||||
gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1,
|
||||
const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2,
|
||||
int p3, int p4, int n)
|
||||
gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
|
||||
const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2,
|
||||
const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1,
|
||||
int p2, int p3, int p4, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_videoscale_orc_merge_bicubic_u8;
|
||||
|
@ -1743,7 +1778,6 @@ gst_videoscale_orc_init (void)
|
|||
{
|
||||
/* orc_merge_linear_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_merge_linear_u8");
|
||||
|
@ -1775,14 +1809,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "addb", 0, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_merge_linear_u8 = p;
|
||||
}
|
||||
{
|
||||
/* orc_merge_linear_u16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_merge_linear_u16");
|
||||
|
@ -1807,14 +1840,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_merge_linear_u16 = p;
|
||||
}
|
||||
{
|
||||
/* orc_splat_u16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_splat_u16");
|
||||
|
@ -1825,14 +1857,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_splat_u16 = p;
|
||||
}
|
||||
{
|
||||
/* orc_splat_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_splat_u32");
|
||||
|
@ -1843,14 +1874,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_splat_u32 = p;
|
||||
}
|
||||
{
|
||||
/* orc_splat_u64 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_splat_u64");
|
||||
|
@ -1861,14 +1891,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_splat_u64 = p;
|
||||
}
|
||||
{
|
||||
/* orc_downsample_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_downsample_u8");
|
||||
|
@ -1883,14 +1912,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_downsample_u8 = p;
|
||||
}
|
||||
{
|
||||
/* orc_downsample_u16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_downsample_u16");
|
||||
|
@ -1905,14 +1933,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "avguw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_downsample_u16 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_downsample_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_downsample_u32");
|
||||
|
@ -1928,14 +1955,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "avgub", 2, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_downsample_u32 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_downsample_yuyv */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_downsample_yuyv");
|
||||
|
@ -1963,14 +1989,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T5, ORC_VAR_T6,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_downsample_yuyv = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_resample_nearest_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u8");
|
||||
|
@ -1984,14 +2009,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "ldresnearb", 0, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_P1, ORC_VAR_P2);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_resample_nearest_u8 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_resample_bilinear_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u8");
|
||||
|
@ -2005,14 +2029,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "ldreslinb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
|
||||
ORC_VAR_P2);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_resample_bilinear_u8 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_resample_nearest_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u32");
|
||||
|
@ -2026,14 +2049,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "ldresnearl", 0, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_P1, ORC_VAR_P2);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_resample_nearest_u32 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_resample_bilinear_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u32");
|
||||
|
@ -2047,14 +2069,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "ldreslinl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1,
|
||||
ORC_VAR_P2);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_resample_bilinear_u32 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_resample_merge_bilinear_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_resample_merge_bilinear_u32");
|
||||
|
@ -2092,14 +2113,13 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_resample_merge_bilinear_u32 = p;
|
||||
}
|
||||
{
|
||||
/* gst_videoscale_orc_merge_bicubic_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_videoscale_orc_merge_bicubic_u8");
|
||||
|
@ -2140,7 +2160,7 @@ gst_videoscale_orc_init (void)
|
|||
orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_videoscale_orc_merge_bicubic_u8 = p;
|
||||
}
|
||||
|
|
|
@ -60,21 +60,30 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|||
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
||||
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
||||
#endif
|
||||
void orc_merge_linear_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int p1, int n);
|
||||
void orc_merge_linear_u16 (orc_uint16 * d1, const orc_uint16 * s1, const orc_uint16 * s2, int p1, int p2, int n);
|
||||
void orc_splat_u16 (orc_uint16 * d1, int p1, int n);
|
||||
void orc_splat_u32 (orc_uint32 * d1, int p1, int n);
|
||||
void orc_splat_u64 (orc_uint64 * d1, orc_int64 p1, int n);
|
||||
void orc_downsample_u8 (guint8 * d1, const guint8 * s1, int n);
|
||||
void orc_downsample_u16 (guint16 * d1, const guint16 * s1, int n);
|
||||
void gst_videoscale_orc_downsample_u32 (guint8 * d1, const guint8 * s1, int n);
|
||||
void gst_videoscale_orc_downsample_yuyv (guint8 * d1, const guint8 * s1, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u8 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u8 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u32 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u32 (guint8 * d1, const guint8 * s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * d1, guint8 * d2, const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n);
|
||||
void gst_videoscale_orc_merge_bicubic_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, const guint8 * s4, int p1, int p2, int p3, int p4, int n);
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p1, int n);
|
||||
void orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, int p1, int p2, int n);
|
||||
void orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n);
|
||||
void orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n);
|
||||
void gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int p1, int p2, int p3, int p4, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef _ORC_INTEGER_TYPEDEFS_
|
||||
|
@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -71,11 +69,23 @@ typedef union
|
|||
orc_int16 x4[4];
|
||||
} orc_union64;
|
||||
#endif
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void gst_orc_splat_u8 (guint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_s16 (gint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_u16 (guint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_u32 (guint8 * d1, int p1, int n);
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
void gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
|
||||
void gst_videotestsrc_orc_init (void);
|
||||
|
||||
|
@ -111,6 +121,7 @@ void gst_videotestsrc_orc_init (void);
|
|||
#define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
|
||||
#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
|
||||
#define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
|
@ -118,6 +129,7 @@ void gst_videotestsrc_orc_init (void);
|
|||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
/* end Orc C target preamble */
|
||||
|
||||
|
||||
|
@ -125,7 +137,7 @@ void gst_videotestsrc_orc_init (void);
|
|||
/* gst_orc_splat_u8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_orc_splat_u8 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -172,7 +184,7 @@ _backup_gst_orc_splat_u8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_orc_splat_u8;
|
||||
void
|
||||
gst_orc_splat_u8 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_orc_splat_u8;
|
||||
|
@ -193,7 +205,7 @@ gst_orc_splat_u8 (guint8 * d1, int p1, int n)
|
|||
/* gst_orc_splat_s16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_orc_splat_s16 (gint8 * d1, int p1, int n)
|
||||
gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -240,7 +252,7 @@ _backup_gst_orc_splat_s16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_orc_splat_s16;
|
||||
void
|
||||
gst_orc_splat_s16 (gint8 * d1, int p1, int n)
|
||||
gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_orc_splat_s16;
|
||||
|
@ -261,7 +273,7 @@ gst_orc_splat_s16 (gint8 * d1, int p1, int n)
|
|||
/* gst_orc_splat_u16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_orc_splat_u16 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -308,7 +320,7 @@ _backup_gst_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_orc_splat_u16;
|
||||
void
|
||||
gst_orc_splat_u16 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_orc_splat_u16;
|
||||
|
@ -329,7 +341,7 @@ gst_orc_splat_u16 (guint8 * d1, int p1, int n)
|
|||
/* gst_orc_splat_u32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
gst_orc_splat_u32 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -376,7 +388,7 @@ _backup_gst_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_gst_orc_splat_u32;
|
||||
void
|
||||
gst_orc_splat_u32 (guint8 * d1, int p1, int n)
|
||||
gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_gst_orc_splat_u32;
|
||||
|
@ -401,7 +413,6 @@ gst_videotestsrc_orc_init (void)
|
|||
{
|
||||
/* gst_orc_splat_u8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_orc_splat_u8");
|
||||
|
@ -412,14 +423,13 @@ gst_videotestsrc_orc_init (void)
|
|||
orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_orc_splat_u8 = p;
|
||||
}
|
||||
{
|
||||
/* gst_orc_splat_s16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_orc_splat_s16");
|
||||
|
@ -430,14 +440,13 @@ gst_videotestsrc_orc_init (void)
|
|||
orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_orc_splat_s16 = p;
|
||||
}
|
||||
{
|
||||
/* gst_orc_splat_u16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_orc_splat_u16");
|
||||
|
@ -448,14 +457,13 @@ gst_videotestsrc_orc_init (void)
|
|||
orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_orc_splat_u16 = p;
|
||||
}
|
||||
{
|
||||
/* gst_orc_splat_u32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "gst_orc_splat_u32");
|
||||
|
@ -466,7 +474,7 @@ gst_videotestsrc_orc_init (void)
|
|||
orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_gst_orc_splat_u32 = p;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -59,10 +60,19 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|||
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
||||
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
||||
#endif
|
||||
void gst_orc_splat_u8 (guint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_s16 (gint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_u16 (guint8 * d1, int p1, int n);
|
||||
void gst_orc_splat_u32 (guint8 * d1, int p1, int n);
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void gst_orc_splat_u8 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_s16 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_u16 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void gst_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef _ORC_INTEGER_TYPEDEFS_
|
||||
|
@ -32,6 +29,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -71,25 +69,46 @@ typedef union
|
|||
orc_int16 x4[4];
|
||||
} orc_union64;
|
||||
#endif
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void orc_scalarmultiply_f64_ns (double *d1, double p1, int n);
|
||||
void orc_scalarmultiply_f32_ns (float *d1, float p1, int n);
|
||||
void orc_process_int32 (gint32 * d1, int p1, int n);
|
||||
void orc_process_int32_clamp (gint32 * d1, int p1, int n);
|
||||
void orc_process_int16 (gint16 * d1, int p1, int n);
|
||||
void orc_process_int16_clamp (gint16 * d1, int p1, int n);
|
||||
void orc_process_int8 (gint8 * d1, int p1, int n);
|
||||
void orc_process_int8_clamp (gint8 * d1, int p1, int n);
|
||||
void orc_memset_f64 (gdouble * d1, double p1, int n);
|
||||
void orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n);
|
||||
void orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n);
|
||||
#ifndef DISABLE_ORC
|
||||
#include <orc/orc.h>
|
||||
#endif
|
||||
void orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n);
|
||||
void orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n);
|
||||
void orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
|
||||
void orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
|
||||
void gst_volume_orc_init (void);
|
||||
|
||||
|
@ -125,6 +144,7 @@ void gst_volume_orc_init (void);
|
|||
#define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
|
||||
#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
|
||||
#define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
|
@ -132,6 +152,7 @@ void gst_volume_orc_init (void);
|
|||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
/* end Orc C target preamble */
|
||||
|
||||
|
||||
|
@ -139,7 +160,7 @@ void gst_volume_orc_init (void);
|
|||
/* orc_scalarmultiply_f64_ns */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
|
||||
orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -210,7 +231,7 @@ _backup_orc_scalarmultiply_f64_ns (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_scalarmultiply_f64_ns;
|
||||
void
|
||||
orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
|
||||
orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_scalarmultiply_f64_ns;
|
||||
|
@ -236,7 +257,7 @@ orc_scalarmultiply_f64_ns (double *d1, double p1, int n)
|
|||
/* orc_scalarmultiply_f32_ns */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
|
||||
orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -305,7 +326,7 @@ _backup_orc_scalarmultiply_f32_ns (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_scalarmultiply_f32_ns;
|
||||
void
|
||||
orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
|
||||
orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_scalarmultiply_f32_ns;
|
||||
|
@ -330,7 +351,7 @@ orc_scalarmultiply_f32_ns (float *d1, float p1, int n)
|
|||
/* orc_process_int32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int32 (gint32 * d1, int p1, int n)
|
||||
orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -395,7 +416,7 @@ _backup_orc_process_int32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int32;
|
||||
void
|
||||
orc_process_int32 (gint32 * d1, int p1, int n)
|
||||
orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int32;
|
||||
|
@ -416,7 +437,7 @@ orc_process_int32 (gint32 * d1, int p1, int n)
|
|||
/* orc_process_int32_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int32_clamp (gint32 * d1, int p1, int n)
|
||||
orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -481,7 +502,7 @@ _backup_orc_process_int32_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int32_clamp;
|
||||
void
|
||||
orc_process_int32_clamp (gint32 * d1, int p1, int n)
|
||||
orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int32_clamp;
|
||||
|
@ -502,7 +523,7 @@ orc_process_int32_clamp (gint32 * d1, int p1, int n)
|
|||
/* orc_process_int16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int16 (gint16 * d1, int p1, int n)
|
||||
orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -567,7 +588,7 @@ _backup_orc_process_int16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int16;
|
||||
void
|
||||
orc_process_int16 (gint16 * d1, int p1, int n)
|
||||
orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int16;
|
||||
|
@ -588,7 +609,7 @@ orc_process_int16 (gint16 * d1, int p1, int n)
|
|||
/* orc_process_int16_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int16_clamp (gint16 * d1, int p1, int n)
|
||||
orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -653,7 +674,7 @@ _backup_orc_process_int16_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int16_clamp;
|
||||
void
|
||||
orc_process_int16_clamp (gint16 * d1, int p1, int n)
|
||||
orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int16_clamp;
|
||||
|
@ -674,7 +695,7 @@ orc_process_int16_clamp (gint16 * d1, int p1, int n)
|
|||
/* orc_process_int8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int8 (gint8 * d1, int p1, int n)
|
||||
orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -739,7 +760,7 @@ _backup_orc_process_int8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int8;
|
||||
void
|
||||
orc_process_int8 (gint8 * d1, int p1, int n)
|
||||
orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int8;
|
||||
|
@ -760,7 +781,7 @@ orc_process_int8 (gint8 * d1, int p1, int n)
|
|||
/* orc_process_int8_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int8_clamp (gint8 * d1, int p1, int n)
|
||||
orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -825,7 +846,7 @@ _backup_orc_process_int8_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_int8_clamp;
|
||||
void
|
||||
orc_process_int8_clamp (gint8 * d1, int p1, int n)
|
||||
orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_int8_clamp;
|
||||
|
@ -846,7 +867,7 @@ orc_process_int8_clamp (gint8 * d1, int p1, int n)
|
|||
/* orc_memset_f64 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_memset_f64 (gdouble * d1, double p1, int n)
|
||||
orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -895,7 +916,7 @@ _backup_orc_memset_f64 (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_memset_f64;
|
||||
void
|
||||
orc_memset_f64 (gdouble * d1, double p1, int n)
|
||||
orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_memset_f64;
|
||||
|
@ -921,7 +942,8 @@ orc_memset_f64 (gdouble * d1, double p1, int n)
|
|||
/* orc_prepare_volumes */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
|
||||
orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -1028,7 +1050,8 @@ _backup_orc_prepare_volumes (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_prepare_volumes;
|
||||
void
|
||||
orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
|
||||
orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_prepare_volumes;
|
||||
|
@ -1049,7 +1072,8 @@ orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n)
|
|||
/* orc_process_controlled_f64_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -1122,7 +1146,8 @@ _backup_orc_process_controlled_f64_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_f64_1ch;
|
||||
void
|
||||
orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_f64_1ch;
|
||||
|
@ -1143,7 +1168,8 @@ orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_f32_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1234,7 +1260,8 @@ _backup_orc_process_controlled_f32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_f32_1ch;
|
||||
void
|
||||
orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_f32_1ch;
|
||||
|
@ -1255,7 +1282,8 @@ orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_f32_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -1372,7 +1400,8 @@ _backup_orc_process_controlled_f32_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_f32_2ch;
|
||||
void
|
||||
orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_f32_2ch;
|
||||
|
@ -1393,7 +1422,8 @@ orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_int32_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1490,7 +1520,8 @@ _backup_orc_process_controlled_int32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_int32_1ch;
|
||||
void
|
||||
orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_int32_1ch;
|
||||
|
@ -1511,7 +1542,8 @@ orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_int16_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -1638,7 +1670,8 @@ _backup_orc_process_controlled_int16_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_int16_1ch;
|
||||
void
|
||||
orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_int16_1ch;
|
||||
|
@ -1659,7 +1692,8 @@ orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_int16_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -1832,7 +1866,8 @@ _backup_orc_process_controlled_int16_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_int16_2ch;
|
||||
void
|
||||
orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_int16_2ch;
|
||||
|
@ -1853,7 +1888,8 @@ orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_int8_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -1992,7 +2028,8 @@ _backup_orc_process_controlled_int8_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_int8_1ch;
|
||||
void
|
||||
orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_int8_1ch;
|
||||
|
@ -2013,7 +2050,8 @@ orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n)
|
|||
/* orc_process_controlled_int8_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -2202,7 +2240,8 @@ _backup_orc_process_controlled_int8_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
|
||||
static OrcProgram *_orc_program_orc_process_controlled_int8_2ch;
|
||||
void
|
||||
orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n)
|
||||
orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
OrcProgram *p = _orc_program_orc_process_controlled_int8_2ch;
|
||||
|
@ -2227,7 +2266,6 @@ gst_volume_orc_init (void)
|
|||
{
|
||||
/* orc_scalarmultiply_f64_ns */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_scalarmultiply_f64_ns");
|
||||
|
@ -2238,14 +2276,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_scalarmultiply_f64_ns = p;
|
||||
}
|
||||
{
|
||||
/* orc_scalarmultiply_f32_ns */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_scalarmultiply_f32_ns");
|
||||
|
@ -2256,14 +2293,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_scalarmultiply_f32_ns = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int32 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int32");
|
||||
|
@ -2280,14 +2316,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int32 = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int32_clamp */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int32_clamp");
|
||||
|
@ -2304,14 +2339,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convsssql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int32_clamp = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int16 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int16");
|
||||
|
@ -2328,14 +2362,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int16 = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int16_clamp */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int16_clamp");
|
||||
|
@ -2352,14 +2385,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int16_clamp = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int8 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int8");
|
||||
|
@ -2376,14 +2408,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int8 = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_int8_clamp */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int8_clamp");
|
||||
|
@ -2400,14 +2431,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_int8_clamp = p;
|
||||
}
|
||||
{
|
||||
/* orc_memset_f64 */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_memset_f64");
|
||||
|
@ -2418,14 +2448,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_memset_f64 = p;
|
||||
}
|
||||
{
|
||||
/* orc_prepare_volumes */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_prepare_volumes");
|
||||
|
@ -2442,14 +2471,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_prepare_volumes = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_f64_1ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f64_1ch");
|
||||
|
@ -2460,14 +2488,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_f64_1ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_f32_1ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f32_1ch");
|
||||
|
@ -2481,14 +2508,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_f32_1ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_f32_2ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f32_2ch");
|
||||
|
@ -2505,14 +2531,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "mulf", 1, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T2,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_f32_2ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_int32_1ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int32_1ch");
|
||||
|
@ -2529,14 +2554,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_int32_1ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_int16_1ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int16_1ch");
|
||||
|
@ -2560,14 +2584,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_int16_1ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_int16_2ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int16_2ch");
|
||||
|
@ -2594,14 +2617,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssslw", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_int16_2ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_int8_1ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int8_1ch");
|
||||
|
@ -2630,14 +2652,13 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_int8_1ch = p;
|
||||
}
|
||||
{
|
||||
/* orc_process_controlled_int8_2ch */
|
||||
OrcProgram *p;
|
||||
OrcCompileResult result;
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int8_2ch");
|
||||
|
@ -2668,7 +2689,7 @@ gst_volume_orc_init (void)
|
|||
orc_program_append_2 (p, "convssswb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1,
|
||||
ORC_VAR_D1);
|
||||
|
||||
result = orc_program_compile (p);
|
||||
orc_program_compile (p);
|
||||
|
||||
_orc_program_orc_process_controlled_int8_2ch = p;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ typedef unsigned __int16 orc_uint16;
|
|||
typedef unsigned __int32 orc_uint32;
|
||||
typedef unsigned __int64 orc_uint64;
|
||||
#define ORC_UINT64_C(x) (x##Ui64)
|
||||
#define inline __inline
|
||||
#else
|
||||
#include <limits.h>
|
||||
typedef signed char orc_int8;
|
||||
|
@ -59,24 +60,33 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|||
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
||||
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
||||
#endif
|
||||
void orc_scalarmultiply_f64_ns (double * d1, double p1, int n);
|
||||
void orc_scalarmultiply_f32_ns (float * d1, float p1, int n);
|
||||
void orc_process_int32 (gint32 * d1, int p1, int n);
|
||||
void orc_process_int32_clamp (gint32 * d1, int p1, int n);
|
||||
void orc_process_int16 (gint16 * d1, int p1, int n);
|
||||
void orc_process_int16_clamp (gint16 * d1, int p1, int n);
|
||||
void orc_process_int8 (gint8 * d1, int p1, int n);
|
||||
void orc_process_int8_clamp (gint8 * d1, int p1, int n);
|
||||
void orc_memset_f64 (gdouble * d1, double p1, int n);
|
||||
void orc_prepare_volumes (gdouble * d1, const gboolean * s1, int n);
|
||||
void orc_process_controlled_f64_1ch (gdouble * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_f32_1ch (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_f32_2ch (gfloat * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int32_1ch (gint32 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int16_1ch (gint16 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int16_2ch (gint16 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int8_1ch (gint8 * d1, const gdouble * s1, int n);
|
||||
void orc_process_controlled_int8_2ch (gint8 * d1, const gdouble * s1, int n);
|
||||
#ifndef ORC_RESTRICT
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define ORC_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define ORC_RESTRICT __restrict__
|
||||
#else
|
||||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void orc_scalarmultiply_f64_ns (double * ORC_RESTRICT d1, double p1, int n);
|
||||
void orc_scalarmultiply_f32_ns (float * ORC_RESTRICT d1, float p1, int n);
|
||||
void orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
|
||||
void orc_prepare_volumes (gdouble * ORC_RESTRICT d1, const gboolean * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue