mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
volume: prefix orc functions with volume_orc_
This commit is contained in:
parent
ebb4116412
commit
624051f811
4 changed files with 186 additions and 180 deletions
|
@ -352,7 +352,7 @@ volume_process_double (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
gdouble *data = (gdouble *) bytes;
|
||||
guint num_samples = n_bytes / sizeof (gdouble);
|
||||
|
||||
orc_scalarmultiply_f64_ns (data, self->current_volume, num_samples);
|
||||
volume_orc_scalarmultiply_f64_ns (data, self->current_volume, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -365,7 +365,7 @@ volume_process_controlled_double (GstVolume * self, gpointer bytes,
|
|||
gdouble vol;
|
||||
|
||||
if (channels == 1) {
|
||||
orc_process_controlled_f64_1ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_f64_1ch (data, volume, num_samples);
|
||||
} else {
|
||||
for (i = 0; i < num_samples; i++) {
|
||||
vol = *volume++;
|
||||
|
@ -382,7 +382,7 @@ volume_process_float (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
gfloat *data = (gfloat *) bytes;
|
||||
guint num_samples = n_bytes / sizeof (gfloat);
|
||||
|
||||
orc_scalarmultiply_f32_ns (data, self->current_volume, num_samples);
|
||||
volume_orc_scalarmultiply_f32_ns (data, self->current_volume, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -395,9 +395,9 @@ volume_process_controlled_float (GstVolume * self, gpointer bytes,
|
|||
gdouble vol;
|
||||
|
||||
if (channels == 1) {
|
||||
orc_process_controlled_f32_1ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_f32_1ch (data, volume, num_samples);
|
||||
} else if (channels == 2) {
|
||||
orc_process_controlled_f32_2ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_f32_2ch (data, volume, num_samples);
|
||||
} else {
|
||||
for (i = 0; i < num_samples; i++) {
|
||||
vol = *volume++;
|
||||
|
@ -416,7 +416,7 @@ volume_process_int32 (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
|
||||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT32_BIT_SHIFT == 27);
|
||||
orc_process_int32 (data, self->current_vol_i32, num_samples);
|
||||
volume_orc_process_int32 (data, self->current_vol_i32, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -428,7 +428,7 @@ volume_process_int32_clamp (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT32_BIT_SHIFT == 27);
|
||||
|
||||
orc_process_int32_clamp (data, self->current_vol_i32, num_samples);
|
||||
volume_orc_process_int32_clamp (data, self->current_vol_i32, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -441,7 +441,7 @@ volume_process_controlled_int32_clamp (GstVolume * self, gpointer bytes,
|
|||
gdouble vol, val;
|
||||
|
||||
if (channels == 1) {
|
||||
orc_process_controlled_int32_1ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_int32_1ch (data, volume, num_samples);
|
||||
} else {
|
||||
for (i = 0; i < num_samples; i++) {
|
||||
vol = *volume++;
|
||||
|
@ -547,7 +547,7 @@ volume_process_int16 (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT16_BIT_SHIFT == 11);
|
||||
|
||||
orc_process_int16 (data, self->current_vol_i16, num_samples);
|
||||
volume_orc_process_int16 (data, self->current_vol_i16, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -559,7 +559,7 @@ volume_process_int16_clamp (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT16_BIT_SHIFT == 11);
|
||||
|
||||
orc_process_int16_clamp (data, self->current_vol_i16, num_samples);
|
||||
volume_orc_process_int16_clamp (data, self->current_vol_i16, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -572,9 +572,9 @@ volume_process_controlled_int16_clamp (GstVolume * self, gpointer bytes,
|
|||
gdouble vol, val;
|
||||
|
||||
if (channels == 1) {
|
||||
orc_process_controlled_int16_1ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_int16_1ch (data, volume, num_samples);
|
||||
} else if (channels == 2) {
|
||||
orc_process_controlled_int16_2ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_int16_2ch (data, volume, num_samples);
|
||||
} else {
|
||||
for (i = 0; i < num_samples; i++) {
|
||||
vol = *volume++;
|
||||
|
@ -595,7 +595,7 @@ volume_process_int8 (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT8_BIT_SHIFT == 3);
|
||||
|
||||
orc_process_int8 (data, self->current_vol_i8, num_samples);
|
||||
volume_orc_process_int8 (data, self->current_vol_i8, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -607,7 +607,7 @@ volume_process_int8_clamp (GstVolume * self, gpointer bytes, guint n_bytes)
|
|||
/* hard coded in volume.orc */
|
||||
g_assert (VOLUME_UNITY_INT8_BIT_SHIFT == 3);
|
||||
|
||||
orc_process_int8_clamp (data, self->current_vol_i8, num_samples);
|
||||
volume_orc_process_int8_clamp (data, self->current_vol_i8, num_samples);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -620,9 +620,9 @@ volume_process_controlled_int8_clamp (GstVolume * self, gpointer bytes,
|
|||
gdouble val, vol;
|
||||
|
||||
if (channels == 1) {
|
||||
orc_process_controlled_int8_1ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_int8_1ch (data, volume, num_samples);
|
||||
} else if (channels == 2) {
|
||||
orc_process_controlled_int8_2ch (data, volume, num_samples);
|
||||
volume_orc_process_controlled_int8_2ch (data, volume, num_samples);
|
||||
} else {
|
||||
for (i = 0; i < num_samples; i++) {
|
||||
vol = *volume++;
|
||||
|
@ -773,11 +773,11 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
|
||||
gst_object_replace ((GstObject **) & volume_cb, NULL);
|
||||
} else {
|
||||
orc_memset_f64 (self->volumes, self->current_volume, nsamples);
|
||||
volume_orc_memset_f64 (self->volumes, self->current_volume, nsamples);
|
||||
}
|
||||
|
||||
if (use_mutes) {
|
||||
orc_prepare_volumes (self->volumes, self->mutes, nsamples);
|
||||
volume_orc_prepare_volumes (self->volumes, self->mutes, nsamples);
|
||||
}
|
||||
|
||||
self->process_controlled (self, map.data, self->volumes, channels,
|
||||
|
|
|
@ -82,32 +82,33 @@ typedef union
|
|||
#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,
|
||||
void volume_orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1,
|
||||
int n);
|
||||
void volume_orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n);
|
||||
void volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
|
||||
void volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n);
|
||||
void orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_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,
|
||||
void volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n);
|
||||
|
||||
|
||||
|
@ -155,10 +156,10 @@ void orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
|||
|
||||
|
||||
|
||||
/* orc_scalarmultiply_f64_ns */
|
||||
/* volume_orc_scalarmultiply_f64_ns */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
volume_orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -192,7 +193,7 @@ orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_scalarmultiply_f64_ns (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_scalarmultiply_f64_ns (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -228,7 +229,7 @@ _backup_orc_scalarmultiply_f64_ns (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
volume_orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -240,8 +241,9 @@ orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_scalarmultiply_f64_ns");
|
||||
orc_program_set_backup_function (p, _backup_orc_scalarmultiply_f64_ns);
|
||||
orc_program_set_name (p, "volume_orc_scalarmultiply_f64_ns");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_volume_orc_scalarmultiply_f64_ns);
|
||||
orc_program_add_destination (p, 8, "d1");
|
||||
orc_program_add_parameter_double (p, 8, "p1");
|
||||
|
||||
|
@ -270,10 +272,10 @@ orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_scalarmultiply_f32_ns */
|
||||
/* volume_orc_scalarmultiply_f32_ns */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
volume_orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -307,7 +309,7 @@ orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_scalarmultiply_f32_ns (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_scalarmultiply_f32_ns (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -341,7 +343,7 @@ _backup_orc_scalarmultiply_f32_ns (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
volume_orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -353,8 +355,9 @@ orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_scalarmultiply_f32_ns");
|
||||
orc_program_set_backup_function (p, _backup_orc_scalarmultiply_f32_ns);
|
||||
orc_program_set_name (p, "volume_orc_scalarmultiply_f32_ns");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_volume_orc_scalarmultiply_f32_ns);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_parameter_float (p, 4, "p1");
|
||||
|
||||
|
@ -382,10 +385,10 @@ orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int32 */
|
||||
/* volume_orc_process_int32 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -417,7 +420,7 @@ orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int32 (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int32 (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -449,7 +452,7 @@ _backup_orc_process_int32 (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -461,8 +464,8 @@ orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int32");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int32);
|
||||
orc_program_set_name (p, "volume_orc_process_int32");
|
||||
orc_program_set_backup_function (p, _backup_volume_orc_process_int32);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_constant (p, 4, 0x0000001b, "c1");
|
||||
orc_program_add_parameter (p, 4, "p1");
|
||||
|
@ -492,10 +495,10 @@ orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int32_clamp */
|
||||
/* volume_orc_process_int32_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union32 *ORC_RESTRICT ptr0;
|
||||
|
@ -527,7 +530,7 @@ orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int32_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int32_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -559,7 +562,7 @@ _backup_orc_process_int32_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -571,8 +574,9 @@ orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int32_clamp");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int32_clamp);
|
||||
orc_program_set_name (p, "volume_orc_process_int32_clamp");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_volume_orc_process_int32_clamp);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_constant (p, 4, 0x0000001b, "c1");
|
||||
orc_program_add_parameter (p, 4, "p1");
|
||||
|
@ -602,10 +606,10 @@ orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int16 */
|
||||
/* volume_orc_process_int16 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -637,7 +641,7 @@ orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int16 (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int16 (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -669,7 +673,7 @@ _backup_orc_process_int16 (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -681,8 +685,8 @@ orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int16");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int16);
|
||||
orc_program_set_name (p, "volume_orc_process_int16");
|
||||
orc_program_set_backup_function (p, _backup_volume_orc_process_int16);
|
||||
orc_program_add_destination (p, 2, "d1");
|
||||
orc_program_add_constant (p, 4, 0x0000000b, "c1");
|
||||
orc_program_add_parameter (p, 2, "p1");
|
||||
|
@ -712,10 +716,10 @@ orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int16_clamp */
|
||||
/* volume_orc_process_int16_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union16 *ORC_RESTRICT ptr0;
|
||||
|
@ -747,7 +751,7 @@ orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int16_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int16_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -779,7 +783,7 @@ _backup_orc_process_int16_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -791,8 +795,9 @@ orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int16_clamp");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int16_clamp);
|
||||
orc_program_set_name (p, "volume_orc_process_int16_clamp");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_volume_orc_process_int16_clamp);
|
||||
orc_program_add_destination (p, 2, "d1");
|
||||
orc_program_add_constant (p, 4, 0x0000000b, "c1");
|
||||
orc_program_add_parameter (p, 2, "p1");
|
||||
|
@ -822,10 +827,10 @@ orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int8 */
|
||||
/* volume_orc_process_int8 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -857,7 +862,7 @@ orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int8 (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int8 (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -889,7 +894,7 @@ _backup_orc_process_int8 (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -901,8 +906,8 @@ orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int8");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int8);
|
||||
orc_program_set_name (p, "volume_orc_process_int8");
|
||||
orc_program_set_backup_function (p, _backup_volume_orc_process_int8);
|
||||
orc_program_add_destination (p, 1, "d1");
|
||||
orc_program_add_constant (p, 4, 0x00000003, "c1");
|
||||
orc_program_add_parameter (p, 1, "p1");
|
||||
|
@ -932,10 +937,10 @@ orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_int8_clamp */
|
||||
/* volume_orc_process_int8_clamp */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_int8 *ORC_RESTRICT ptr0;
|
||||
|
@ -967,7 +972,7 @@ orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_int8_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_int8_clamp (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -999,7 +1004,7 @@ _backup_orc_process_int8_clamp (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -1011,8 +1016,9 @@ orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_int8_clamp");
|
||||
orc_program_set_backup_function (p, _backup_orc_process_int8_clamp);
|
||||
orc_program_set_name (p, "volume_orc_process_int8_clamp");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_volume_orc_process_int8_clamp);
|
||||
orc_program_add_destination (p, 1, "d1");
|
||||
orc_program_add_constant (p, 4, 0x00000003, "c1");
|
||||
orc_program_add_parameter (p, 1, "p1");
|
||||
|
@ -1042,10 +1048,10 @@ orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_memset_f64 */
|
||||
/* volume_orc_memset_f64 */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
int i;
|
||||
orc_union64 *ORC_RESTRICT ptr0;
|
||||
|
@ -1068,7 +1074,7 @@ orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_memset_f64 (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_memset_f64 (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1093,7 +1099,7 @@ _backup_orc_memset_f64 (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
static volatile int p_inited = 0;
|
||||
|
@ -1105,8 +1111,8 @@ orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_memset_f64");
|
||||
orc_program_set_backup_function (p, _backup_orc_memset_f64);
|
||||
orc_program_set_name (p, "volume_orc_memset_f64");
|
||||
orc_program_set_backup_function (p, _backup_volume_orc_memset_f64);
|
||||
orc_program_add_destination (p, 8, "d1");
|
||||
orc_program_add_parameter_double (p, 8, "p1");
|
||||
|
||||
|
@ -1135,10 +1141,10 @@ orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n)
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_prepare_volumes */
|
||||
/* volume_orc_prepare_volumes */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1192,7 +1198,7 @@ orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_prepare_volumes (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_prepare_volumes (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1245,7 +1251,7 @@ _backup_orc_prepare_volumes (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
||||
const gboolean * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -1258,8 +1264,8 @@ orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_prepare_volumes");
|
||||
orc_program_set_backup_function (p, _backup_orc_prepare_volumes);
|
||||
orc_program_set_name (p, "volume_orc_prepare_volumes");
|
||||
orc_program_set_backup_function (p, _backup_volume_orc_prepare_volumes);
|
||||
orc_program_add_destination (p, 8, "d1");
|
||||
orc_program_add_source (p, 4, "s1");
|
||||
orc_program_add_constant_int64 (p, 8, 0x3ff0000000000000ULL, "c1");
|
||||
|
@ -1289,10 +1295,10 @@ orc_prepare_volumes (gdouble * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_f64_1ch */
|
||||
/* volume_orc_process_controlled_f64_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1329,7 +1335,7 @@ orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_f64_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_f64_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1365,7 +1371,7 @@ _backup_orc_process_controlled_f64_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -1378,9 +1384,9 @@ orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f64_1ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_f64_1ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_f64_1ch);
|
||||
_backup_volume_orc_process_controlled_f64_1ch);
|
||||
orc_program_add_destination (p, 8, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
|
||||
|
@ -1404,10 +1410,10 @@ orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_f32_1ch */
|
||||
/* volume_orc_process_controlled_f32_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1453,7 +1459,7 @@ orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_f32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_f32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1498,7 +1504,7 @@ _backup_orc_process_controlled_f32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -1511,9 +1517,9 @@ orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f32_1ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_f32_1ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_f32_1ch);
|
||||
_backup_volume_orc_process_controlled_f32_1ch);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 4, "t1");
|
||||
|
@ -1540,10 +1546,10 @@ orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_f32_2ch */
|
||||
/* volume_orc_process_controlled_f32_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1606,7 +1612,7 @@ orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_f32_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_f32_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1668,7 +1674,7 @@ _backup_orc_process_controlled_f32_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -1681,9 +1687,9 @@ orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_f32_2ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_f32_2ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_f32_2ch);
|
||||
_backup_volume_orc_process_controlled_f32_2ch);
|
||||
orc_program_add_destination (p, 8, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 4, "t1");
|
||||
|
@ -1713,10 +1719,10 @@ orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_int32_1ch */
|
||||
/* volume_orc_process_controlled_int32_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1765,7 +1771,7 @@ orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_int32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_int32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1813,7 +1819,7 @@ _backup_orc_process_controlled_int32_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -1826,9 +1832,9 @@ orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int32_1ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_int32_1ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_int32_1ch);
|
||||
_backup_volume_orc_process_controlled_int32_1ch);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 8, "t1");
|
||||
|
@ -1857,10 +1863,10 @@ orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_int16_1ch */
|
||||
/* volume_orc_process_controlled_int16_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -1924,7 +1930,7 @@ orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_int16_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_int16_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -1987,7 +1993,7 @@ _backup_orc_process_controlled_int16_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -2000,9 +2006,9 @@ orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int16_1ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_int16_1ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_int16_1ch);
|
||||
_backup_volume_orc_process_controlled_int16_1ch);
|
||||
orc_program_add_destination (p, 2, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 4, "t1");
|
||||
|
@ -2038,10 +2044,10 @@ orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_int16_2ch */
|
||||
/* volume_orc_process_controlled_int16_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -2132,7 +2138,7 @@ orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_int16_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_int16_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -2222,7 +2228,7 @@ _backup_orc_process_controlled_int16_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -2235,9 +2241,9 @@ orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int16_2ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_int16_2ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_int16_2ch);
|
||||
_backup_volume_orc_process_controlled_int16_2ch);
|
||||
orc_program_add_destination (p, 4, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 8, "t1");
|
||||
|
@ -2276,10 +2282,10 @@ orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_int8_1ch */
|
||||
/* volume_orc_process_controlled_int8_1ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -2349,7 +2355,7 @@ orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_int8_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_int8_1ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -2418,7 +2424,7 @@ _backup_orc_process_controlled_int8_1ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -2431,9 +2437,9 @@ orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int8_1ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_int8_1ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_int8_1ch);
|
||||
_backup_volume_orc_process_controlled_int8_1ch);
|
||||
orc_program_add_destination (p, 1, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 2, "t1");
|
||||
|
@ -2474,10 +2480,10 @@ orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1,
|
|||
#endif
|
||||
|
||||
|
||||
/* orc_process_controlled_int8_2ch */
|
||||
/* volume_orc_process_controlled_int8_2ch */
|
||||
#ifdef DISABLE_ORC
|
||||
void
|
||||
orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
int i;
|
||||
|
@ -2576,7 +2582,7 @@ orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
|||
|
||||
#else
|
||||
static void
|
||||
_backup_orc_process_controlled_int8_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
_backup_volume_orc_process_controlled_int8_2ch (OrcExecutor * ORC_RESTRICT ex)
|
||||
{
|
||||
int i;
|
||||
int n = ex->n;
|
||||
|
@ -2674,7 +2680,7 @@ _backup_orc_process_controlled_int8_2ch (OrcExecutor * ORC_RESTRICT ex)
|
|||
}
|
||||
|
||||
void
|
||||
orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
||||
const gdouble * ORC_RESTRICT s1, int n)
|
||||
{
|
||||
OrcExecutor _ex, *ex = &_ex;
|
||||
|
@ -2687,9 +2693,9 @@ orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1,
|
|||
if (!p_inited) {
|
||||
|
||||
p = orc_program_new ();
|
||||
orc_program_set_name (p, "orc_process_controlled_int8_2ch");
|
||||
orc_program_set_name (p, "volume_orc_process_controlled_int8_2ch");
|
||||
orc_program_set_backup_function (p,
|
||||
_backup_orc_process_controlled_int8_2ch);
|
||||
_backup_volume_orc_process_controlled_int8_2ch);
|
||||
orc_program_add_destination (p, 2, "d1");
|
||||
orc_program_add_source (p, 8, "s1");
|
||||
orc_program_add_temporary (p, 4, "t1");
|
||||
|
|
|
@ -67,24 +67,24 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16
|
|||
#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);
|
||||
void volume_orc_scalarmultiply_f64_ns (double * ORC_RESTRICT d1, double p1, int n);
|
||||
void volume_orc_scalarmultiply_f32_ns (float * ORC_RESTRICT d1, float p1, int n);
|
||||
void volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n);
|
||||
void volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n);
|
||||
void volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1, const gboolean * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
void volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
|
||||
.function orc_scalarmultiply_f64_ns
|
||||
.function volume_orc_scalarmultiply_f64_ns
|
||||
.dest 8 d1 double
|
||||
.doubleparam 8 p1
|
||||
|
||||
muld d1, d1, p1
|
||||
|
||||
.function orc_scalarmultiply_f32_ns
|
||||
.function volume_orc_scalarmultiply_f32_ns
|
||||
.dest 4 d1 float
|
||||
.floatparam 4 p1
|
||||
|
||||
mulf d1, d1, p1
|
||||
|
||||
.function orc_process_int32
|
||||
.function volume_orc_process_int32
|
||||
.dest 4 d1 gint32
|
||||
.param 4 p1
|
||||
.temp 8 t1
|
||||
|
@ -20,7 +20,7 @@ mulslq t1, d1, p1
|
|||
shrsq t1, t1, 27
|
||||
convql d1, t1
|
||||
|
||||
.function orc_process_int32_clamp
|
||||
.function volume_orc_process_int32_clamp
|
||||
.dest 4 d1 gint32
|
||||
.param 4 p1
|
||||
.temp 8 t1
|
||||
|
@ -29,7 +29,7 @@ mulslq t1, d1, p1
|
|||
shrsq t1, t1, 27
|
||||
convsssql d1, t1
|
||||
|
||||
.function orc_process_int16
|
||||
.function volume_orc_process_int16
|
||||
.dest 2 d1 gint16
|
||||
.param 2 p1
|
||||
.temp 4 t1
|
||||
|
@ -39,7 +39,7 @@ shrsl t1, t1, 11
|
|||
convlw d1, t1
|
||||
|
||||
|
||||
.function orc_process_int16_clamp
|
||||
.function volume_orc_process_int16_clamp
|
||||
.dest 2 d1 gint16
|
||||
.param 2 p1
|
||||
.temp 4 t1
|
||||
|
@ -48,7 +48,7 @@ mulswl t1, d1, p1
|
|||
shrsl t1, t1, 11
|
||||
convssslw d1, t1
|
||||
|
||||
.function orc_process_int8
|
||||
.function volume_orc_process_int8
|
||||
.dest 1 d1 gint8
|
||||
.param 1 p1
|
||||
.temp 2 t1
|
||||
|
@ -58,7 +58,7 @@ shrsw t1, t1, 3
|
|||
convwb d1, t1
|
||||
|
||||
|
||||
.function orc_process_int8_clamp
|
||||
.function volume_orc_process_int8_clamp
|
||||
.dest 1 d1 gint8
|
||||
.param 1 p1
|
||||
.temp 2 t1
|
||||
|
@ -67,13 +67,13 @@ mulsbw t1, d1, p1
|
|||
shrsw t1, t1, 3
|
||||
convssswb d1, t1
|
||||
|
||||
.function orc_memset_f64
|
||||
.function volume_orc_memset_f64
|
||||
.dest 8 d1 gdouble
|
||||
.doubleparam 8 p1
|
||||
|
||||
copyq d1, p1
|
||||
|
||||
.function orc_prepare_volumes
|
||||
.function volume_orc_prepare_volumes
|
||||
.dest 8 d1 gdouble
|
||||
.source 4 s1 gboolean
|
||||
.temp 8 t1
|
||||
|
@ -82,13 +82,13 @@ convld t1, s1
|
|||
subd t1, 0x3FF0000000000000L, t1
|
||||
muld d1, d1, t1
|
||||
|
||||
.function orc_process_controlled_f64_1ch
|
||||
.function volume_orc_process_controlled_f64_1ch
|
||||
.dest 8 d1 gdouble
|
||||
.source 8 s1 gdouble
|
||||
|
||||
muld d1, d1, s1
|
||||
|
||||
.function orc_process_controlled_f32_1ch
|
||||
.function volume_orc_process_controlled_f32_1ch
|
||||
.dest 4 d1 gfloat
|
||||
.source 8 s1 gdouble
|
||||
.temp 4 t1
|
||||
|
@ -96,7 +96,7 @@ muld d1, d1, s1
|
|||
convdf t1, s1
|
||||
mulf d1, d1, t1
|
||||
|
||||
.function orc_process_controlled_f32_2ch
|
||||
.function volume_orc_process_controlled_f32_2ch
|
||||
.dest 8 d1 gfloat
|
||||
.source 8 s1 gdouble
|
||||
.temp 4 t1
|
||||
|
@ -106,7 +106,7 @@ convdf t1, s1
|
|||
mergelq t2, t1, t1
|
||||
x2 mulf d1, d1, t2
|
||||
|
||||
.function orc_process_controlled_int32_1ch
|
||||
.function volume_orc_process_controlled_int32_1ch
|
||||
.dest 4 d1 gint32
|
||||
.source 8 s1 gdouble
|
||||
.temp 8 t1
|
||||
|
@ -115,7 +115,7 @@ convld t1, d1
|
|||
muld t1, t1, s1
|
||||
convdl d1, t1
|
||||
|
||||
.function orc_process_controlled_int16_1ch
|
||||
.function volume_orc_process_controlled_int16_1ch
|
||||
.dest 2 d1 gint16
|
||||
.source 8 s1 gdouble
|
||||
.temp 4 t1
|
||||
|
@ -128,7 +128,7 @@ mulf t1, t1, t2
|
|||
convfl t1, t1
|
||||
convssslw d1, t1
|
||||
|
||||
.function orc_process_controlled_int16_2ch
|
||||
.function volume_orc_process_controlled_int16_2ch
|
||||
.dest 4 d1 gint16
|
||||
.source 8 s1 gdouble
|
||||
.temp 8 t1
|
||||
|
@ -143,7 +143,7 @@ x2 mulf t3, t3, t1
|
|||
x2 convfl t3, t3
|
||||
x2 convssslw d1, t3
|
||||
|
||||
.function orc_process_controlled_int8_1ch
|
||||
.function volume_orc_process_controlled_int8_1ch
|
||||
.dest 1 d1 gint8
|
||||
.source 8 s1 gdouble
|
||||
.temp 2 t1
|
||||
|
@ -159,7 +159,7 @@ convfl t2, t2
|
|||
convlw t1, t2
|
||||
convssswb d1, t1
|
||||
|
||||
.function orc_process_controlled_int8_2ch
|
||||
.function volume_orc_process_controlled_int8_2ch
|
||||
.dest 2 d1 gint8
|
||||
.source 8 s1 gdouble
|
||||
.temp 4 t1
|
||||
|
|
Loading…
Reference in a new issue