sum = 0.0f;
for (j = 0; j < (filter->height >> 1); j++) {
guint32 tempsum = 0;
- orc_same_parity_sad_planar_yuv (&tempsum, f1j, f2j, noise_floor,
- filter->width);
+ fieldanalysis_orc_same_parity_sad_planar_yuv (&tempsum, f1j, f2j,
+ noise_floor, filter->width);
sum += tempsum;
f1j += stridex2;
f2j += stridex2;
sum = 0.0f;
for (j = 0; j < (filter->height >> 1); j++) {
guint32 tempsum = 0;
- orc_same_parity_ssd_planar_yuv (&tempsum, f1j, f2j, noise_floor,
- filter->width);
+ fieldanalysis_orc_same_parity_ssd_planar_yuv (&tempsum, f1j, f2j,
+ noise_floor, filter->width);
sum += tempsum;
f1j += stridex2;
f2j += stridex2;
if (diff > noise_floor)
sum += diff;
- orc_same_parity_3_tap_planar_yuv (&tempsum, f1j, &f1j[incr],
+ fieldanalysis_orc_same_parity_3_tap_planar_yuv (&tempsum, f1j, &f1j[incr],
&f1j[incr << 1], f2j, &f2j[incr], &f2j[incr << 1], noise_floor,
filter->width - 1);
sum += tempsum;
fjp2 = fj + stridex2;
tempsum = 0;
- orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjp2, fjp1, fj, fjp1, fjp2,
- noise_floor, filter->width);
+ fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjp2, fjp1, fj,
+ fjp1, fjp2, noise_floor, filter->width);
sum += tempsum;
for (j = 1; j < (filter->height >> 1) - 1; j++) {
fjp2 += stridex2;
tempsum = 0;
- orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjm2, fjm1, fj, fjp1, fjp2,
- noise_floor, filter->width);
+ fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjm2, fjm1,
+ fj, fjp1, fjp2, noise_floor, filter->width);
sum += tempsum;
}
fj = fjp2;
tempsum = 0;
- orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjm2, fjm1, fj, fjm1, fjm2,
- noise_floor, filter->width);
+ fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (&tempsum, fjm2, fjm1, fj,
+ fjm1, fjm2, noise_floor, filter->width);
sum += tempsum;
return sum / ((6.0f / 2.0f) * filter->width * filter->height); /* 1 + 4 + 1 == 3 + 3 == 6; field is half height */
#ifndef DISABLE_ORC
#include <orc/orc.h>
#endif
-void orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
+void fieldanalysis_orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n);
-void orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
+void fieldanalysis_orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n);
-void orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
+void fieldanalysis_orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
const orc_uint8 * ORC_RESTRICT s5, const orc_uint8 * ORC_RESTRICT s6,
int p2, int n);
-void orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
- const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
- const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
- const orc_uint8 * ORC_RESTRICT s5, int p2, int n);
+void fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (guint32 *
+ ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1,
+ const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3,
+ const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5,
+ int p2, int n);
/* begin Orc C target preamble */
-/* orc_same_parity_sad_planar_yuv */
+/* fieldanalysis_orc_same_parity_sad_planar_yuv */
#ifdef DISABLE_ORC
void
-orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n)
{
#else
static void
-_backup_orc_same_parity_sad_planar_yuv (OrcExecutor * ORC_RESTRICT ex)
+_backup_fieldanalysis_orc_same_parity_sad_planar_yuv (OrcExecutor *
+ ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n)
{
OrcProgram *p;
p = orc_program_new ();
- orc_program_set_name (p, "orc_same_parity_sad_planar_yuv");
+ orc_program_set_name (p, "fieldanalysis_orc_same_parity_sad_planar_yuv");
orc_program_set_backup_function (p,
- _backup_orc_same_parity_sad_planar_yuv);
+ _backup_fieldanalysis_orc_same_parity_sad_planar_yuv);
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_accumulator (p, 4, "a1");
#endif
-/* orc_same_parity_ssd_planar_yuv */
+/* fieldanalysis_orc_same_parity_ssd_planar_yuv */
#ifdef DISABLE_ORC
void
-orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n)
{
#else
static void
-_backup_orc_same_parity_ssd_planar_yuv (OrcExecutor * ORC_RESTRICT ex)
+_backup_fieldanalysis_orc_same_parity_ssd_planar_yuv (OrcExecutor *
+ ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
int p2, int n)
{
OrcProgram *p;
p = orc_program_new ();
- orc_program_set_name (p, "orc_same_parity_ssd_planar_yuv");
+ orc_program_set_name (p, "fieldanalysis_orc_same_parity_ssd_planar_yuv");
orc_program_set_backup_function (p,
- _backup_orc_same_parity_ssd_planar_yuv);
+ _backup_fieldanalysis_orc_same_parity_ssd_planar_yuv);
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_accumulator (p, 4, "a1");
#endif
-/* orc_same_parity_3_tap_planar_yuv */
+/* fieldanalysis_orc_same_parity_3_tap_planar_yuv */
#ifdef DISABLE_ORC
void
-orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
const orc_uint8 * ORC_RESTRICT s5, const orc_uint8 * ORC_RESTRICT s6,
#else
static void
-_backup_orc_same_parity_3_tap_planar_yuv (OrcExecutor * ORC_RESTRICT ex)
+_backup_fieldanalysis_orc_same_parity_3_tap_planar_yuv (OrcExecutor *
+ ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
const orc_uint8 * ORC_RESTRICT s5, const orc_uint8 * ORC_RESTRICT s6,
OrcProgram *p;
p = orc_program_new ();
- orc_program_set_name (p, "orc_same_parity_3_tap_planar_yuv");
+ orc_program_set_name (p,
+ "fieldanalysis_orc_same_parity_3_tap_planar_yuv");
orc_program_set_backup_function (p,
- _backup_orc_same_parity_3_tap_planar_yuv);
+ _backup_fieldanalysis_orc_same_parity_3_tap_planar_yuv);
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
#endif
-/* orc_opposite_parity_5_tap_planar_yuv */
+/* fieldanalysis_orc_opposite_parity_5_tap_planar_yuv */
#ifdef DISABLE_ORC
void
-orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
const orc_uint8 * ORC_RESTRICT s5, int p2, int n)
#else
static void
-_backup_orc_opposite_parity_5_tap_planar_yuv (OrcExecutor * ORC_RESTRICT ex)
+_backup_fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (OrcExecutor *
+ ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
+fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1,
const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2,
const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4,
const orc_uint8 * ORC_RESTRICT s5, int p2, int n)
OrcProgram *p;
p = orc_program_new ();
- orc_program_set_name (p, "orc_opposite_parity_5_tap_planar_yuv");
+ orc_program_set_name (p,
+ "fieldanalysis_orc_opposite_parity_5_tap_planar_yuv");
orc_program_set_backup_function (p,
- _backup_orc_opposite_parity_5_tap_planar_yuv);
+ _backup_fieldanalysis_orc_opposite_parity_5_tap_planar_yuv);
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
#define ORC_RESTRICT
#endif
#endif
-void orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p2, int n);
-void orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p2, int n);
-void orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5, const orc_uint8 * ORC_RESTRICT s6, int p2, int n);
-void orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5, int p2, int n);
+void fieldanalysis_orc_same_parity_sad_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p2, int n);
+void fieldanalysis_orc_same_parity_ssd_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p2, int n);
+void fieldanalysis_orc_same_parity_3_tap_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5, const orc_uint8 * ORC_RESTRICT s6, int p2, int n);
+void fieldanalysis_orc_opposite_parity_5_tap_planar_yuv (guint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5, int p2, int n);
#ifdef __cplusplus
}