#ifndef DISABLE_ORC
#include <orc/orc.h>
#endif
-void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1,
+ int n);
+void gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1,
+ int n);
+void gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1,
+ int n);
+void gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n);
-void orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
+void gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
const guint16 * ORC_RESTRICT s1, int n);
-void gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+void gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n);
-void gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_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,
+void gst_video_scale_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);
-/* orc_merge_linear_u8 */
+/* gst_video_scale_orc_merge_linear_u8 */
#ifdef DISABLE_ORC
void
-orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
#else
static void
-_backup_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_merge_linear_u8");
- orc_program_set_backup_function (p, _backup_orc_merge_linear_u8);
+ orc_program_set_name (p, "gst_video_scale_orc_merge_linear_u8");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_merge_linear_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
#endif
-/* orc_merge_linear_u16 */
+/* gst_video_scale_orc_merge_linear_u16 */
#ifdef DISABLE_ORC
void
-orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
#else
static void
-_backup_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_merge_linear_u16");
- orc_program_set_backup_function (p, _backup_orc_merge_linear_u16);
+ orc_program_set_name (p, "gst_video_scale_orc_merge_linear_u16");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_merge_linear_u16);
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
#endif
-/* orc_splat_u16 */
+/* gst_video_scale_orc_splat_u16 */
#ifdef DISABLE_ORC
void
-orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
+gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
{
int i;
orc_union16 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
+gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_splat_u16");
- orc_program_set_backup_function (p, _backup_orc_splat_u16);
+ orc_program_set_name (p, "gst_video_scale_orc_splat_u16");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_splat_u16);
orc_program_add_destination (p, 2, "d1");
orc_program_add_parameter (p, 2, "p1");
#endif
-/* orc_splat_u32 */
+/* gst_video_scale_orc_splat_u32 */
#ifdef DISABLE_ORC
void
-orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
+gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
{
int i;
orc_union32 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
+gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_splat_u32");
- orc_program_set_backup_function (p, _backup_orc_splat_u32);
+ orc_program_set_name (p, "gst_video_scale_orc_splat_u32");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_splat_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* orc_splat_u64 */
+/* gst_video_scale_orc_splat_u64 */
#ifdef DISABLE_ORC
void
-orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
+gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1,
+ int n)
{
int i;
orc_union64 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n)
+gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1,
+ int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_splat_u64");
- orc_program_set_backup_function (p, _backup_orc_splat_u64);
+ orc_program_set_name (p, "gst_video_scale_orc_splat_u64");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_splat_u64);
orc_program_add_destination (p, 8, "d1");
orc_program_add_parameter_int64 (p, 8, "p1");
#endif
-/* orc_downsample_u8 */
+/* gst_video_scale_orc_downsample_u8 */
#ifdef DISABLE_ORC
void
-orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
- int n)
+gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1,
+ const guint8 * ORC_RESTRICT s1, int n)
{
int i;
orc_int8 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1,
- int n)
+gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1,
+ const guint8 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_downsample_u8");
- orc_program_set_backup_function (p, _backup_orc_downsample_u8);
+ orc_program_set_name (p, "gst_video_scale_orc_downsample_u8");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_downsample_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
orc_program_add_temporary (p, 1, "t1");
#endif
-/* orc_downsample_u16 */
+/* gst_video_scale_orc_downsample_u16 */
#ifdef DISABLE_ORC
void
-orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
- int n)
+gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
+ const guint16 * ORC_RESTRICT s1, int n)
{
int i;
orc_union16 *ORC_RESTRICT ptr0;
#else
static void
-_backup_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1,
- int n)
+gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1,
+ const guint16 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
static volatile int p_inited = 0;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "orc_downsample_u16");
- orc_program_set_backup_function (p, _backup_orc_downsample_u16);
+ orc_program_set_name (p, "gst_video_scale_orc_downsample_u16");
+ orc_program_set_backup_function (p,
+ _backup_gst_video_scale_orc_downsample_u16);
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_temporary (p, 2, "t1");
#endif
-/* gst_videoscale_orc_downsample_u32 */
+/* gst_video_scale_orc_downsample_u32 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_downsample_u32");
+ orc_program_set_name (p, "gst_video_scale_orc_downsample_u32");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_downsample_u32);
+ _backup_gst_video_scale_orc_downsample_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 8, "s1");
orc_program_add_temporary (p, 4, "t1");
#endif
-/* gst_videoscale_orc_downsample_yuyv */
+/* gst_video_scale_orc_downsample_yuyv */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_downsample_yuyv");
+ orc_program_set_name (p, "gst_video_scale_orc_downsample_yuyv");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_downsample_yuyv);
+ _backup_gst_video_scale_orc_downsample_yuyv);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 8, "s1");
orc_program_add_temporary (p, 4, "t1");
#endif
-/* gst_videoscale_orc_resample_nearest_u8 */
+/* gst_video_scale_orc_resample_nearest_u8 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u8");
+ orc_program_set_name (p, "gst_video_scale_orc_resample_nearest_u8");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_resample_nearest_u8);
+ _backup_gst_video_scale_orc_resample_nearest_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* gst_videoscale_orc_resample_bilinear_u8 */
+/* gst_video_scale_orc_resample_bilinear_u8 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u8");
+ orc_program_set_name (p, "gst_video_scale_orc_resample_bilinear_u8");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_resample_bilinear_u8);
+ _backup_gst_video_scale_orc_resample_bilinear_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* gst_videoscale_orc_resample_nearest_u32 */
+/* gst_video_scale_orc_resample_nearest_u32 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_resample_nearest_u32");
+ orc_program_set_name (p, "gst_video_scale_orc_resample_nearest_u32");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_resample_nearest_u32);
+ _backup_gst_video_scale_orc_resample_nearest_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* gst_videoscale_orc_resample_bilinear_u32 */
+/* gst_video_scale_orc_resample_bilinear_u32 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
int i;
#else
static void
-_backup_gst_videoscale_orc_resample_bilinear_u32 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_resample_bilinear_u32 (OrcExecutor *
+ ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1,
const guint8 * ORC_RESTRICT s1, int p1, int p2, int n)
{
OrcExecutor _ex, *ex = &_ex;
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_resample_bilinear_u32");
+ orc_program_set_name (p, "gst_video_scale_orc_resample_bilinear_u32");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_resample_bilinear_u32);
+ _backup_gst_video_scale_orc_resample_bilinear_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_parameter (p, 4, "p1");
#endif
-/* gst_videoscale_orc_resample_merge_bilinear_u32 */
+/* gst_video_scale_orc_resample_merge_bilinear_u32 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
#else
static void
-_backup_gst_videoscale_orc_resample_merge_bilinear_u32 (OrcExecutor *
+_backup_gst_video_scale_orc_resample_merge_bilinear_u32 (OrcExecutor *
ORC_RESTRICT ex)
{
int i;
}
void
-gst_videoscale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
{
p = orc_program_new ();
orc_program_set_name (p,
- "gst_videoscale_orc_resample_merge_bilinear_u32");
+ "gst_video_scale_orc_resample_merge_bilinear_u32");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_resample_merge_bilinear_u32);
+ _backup_gst_video_scale_orc_resample_merge_bilinear_u32);
orc_program_add_destination (p, 4, "d1");
orc_program_add_destination (p, 4, "d2");
orc_program_add_source (p, 4, "s1");
#endif
-/* gst_videoscale_orc_merge_bicubic_u8 */
+/* gst_video_scale_orc_merge_bicubic_u8 */
#ifdef DISABLE_ORC
void
-gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
#else
static void
-_backup_gst_videoscale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex)
+_backup_gst_video_scale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex)
{
int i;
int n = ex->n;
}
void
-gst_videoscale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1,
+gst_video_scale_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)
if (!p_inited) {
p = orc_program_new ();
- orc_program_set_name (p, "gst_videoscale_orc_merge_bicubic_u8");
+ orc_program_set_name (p, "gst_video_scale_orc_merge_bicubic_u8");
orc_program_set_backup_function (p,
- _backup_gst_videoscale_orc_merge_bicubic_u8);
+ _backup_gst_video_scale_orc_merge_bicubic_u8);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
data = dest->real_pixels;
for (i = 0; i < top; i++) {
- orc_splat_u32 ((uint32_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width);
data += stride;
}
tmp = height;
tmp2 = (left + width) * 4;
for (i = 0; i < tmp; i++) {
- orc_splat_u32 ((uint32_t *) data, v, left);
- orc_splat_u32 ((uint32_t *) (data + tmp2), v, right);
+ gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, left);
+ gst_video_scale_orc_splat_u32 ((uint32_t *) (data + tmp2), v, right);
data += stride;
}
} else {
}
for (i = 0; i < bottom; i++) {
- orc_splat_u32 ((uint32_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width);
data += stride;
}
}
data = dest->real_pixels;
for (i = 0; i < top; i++) {
- orc_splat_u16 ((uint16_t *) data, val, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width);
data += stride;
}
tmp = height;
tmp2 = (left + width) * 2;
for (i = 0; i < tmp; i++) {
- orc_splat_u16 ((uint16_t *) data, val, left);
- orc_splat_u16 ((uint16_t *) (data + tmp2), val, right);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, left);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), val, right);
data += stride;
}
} else {
}
for (i = 0; i < bottom; i++) {
- orc_splat_u16 ((uint16_t *) data, val, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width);
data += stride;
}
}
data = dest->real_pixels;
for (i = 0; i < top; i++) {
- orc_splat_u16 ((uint16_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width);
data += stride;
}
tmp = height;
tmp2 = (left + width) * 2;
for (i = 0; i < tmp; i++) {
- orc_splat_u16 ((uint16_t *) data, v, left);
- orc_splat_u16 ((uint16_t *) (data + tmp2), v, right);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, left);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right);
data += stride;
}
} else {
}
for (i = 0; i < bottom; i++) {
- orc_splat_u16 ((uint16_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width);
data += stride;
}
}
data = dest->real_pixels;
for (i = 0; i < top; i++) {
- orc_splat_u16 ((uint16_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width);
data += stride;
}
tmp = height;
tmp2 = (left + width) * 2;
for (i = 0; i < tmp; i++) {
- orc_splat_u16 ((uint16_t *) data, v, left);
- orc_splat_u16 ((uint16_t *) (data + tmp2), v, right);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, left);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right);
data += stride;
}
} else {
}
for (i = 0; i < bottom; i++) {
- orc_splat_u16 ((uint16_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width);
data += stride;
}
}
data = dest->real_pixels;
for (i = 0; i < top; i++) {
- orc_splat_u64 ((uint64_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width);
data += stride;
}
tmp = height;
tmp2 = (left + width) * 8;
for (i = 0; i < tmp; i++) {
- orc_splat_u64 ((uint64_t *) data, v, left);
- orc_splat_u64 ((uint64_t *) (data + tmp2), v, right);
+ gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, left);
+ gst_video_scale_orc_splat_u64 ((uint64_t *) (data + tmp2), v, right);
data += stride;
}
} else {
}
for (i = 0; i < bottom; i++) {
- orc_splat_u64 ((uint64_t *) data, v, real_width);
+ gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width);
data += stride;
}
}
memcpy (dest->pixels + i * dest->stride,
dest->pixels + (i - 1) * dest->stride, dest->width * 4);
} else {
- gst_videoscale_orc_resample_nearest_u32 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_resample_nearest_u32 (dest->pixels + i * dest->stride,
src->pixels + j * src->stride, 0, x_increment, dest->width);
}
#define LINE(x) ((tmpbuf) + (dest_size)*((x)&1))
acc = 0;
- gst_videoscale_orc_resample_bilinear_u32 (LINE (0), src->pixels,
+ gst_video_scale_orc_resample_bilinear_u32 (LINE (0), src->pixels,
0, x_increment, dest->width);
y1 = 0;
for (i = 0; i < dest->height; i++) {
memcpy (dest->pixels + i * dest->stride, LINE (j), dest_size);
} else {
if (j > y1) {
- gst_videoscale_orc_resample_bilinear_u32 (LINE (j),
+ gst_video_scale_orc_resample_bilinear_u32 (LINE (j),
src->pixels + j * src->stride, 0, x_increment, dest->width);
y1++;
}
if (j >= y1) {
- gst_videoscale_orc_resample_bilinear_u32 (LINE (j + 1),
+ gst_video_scale_orc_resample_bilinear_u32 (LINE (j + 1),
src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width);
y1++;
}
- orc_merge_linear_u8 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride,
LINE (j), LINE (j + 1), (x >> 8), dest->width * 4);
}
for (i = 0; i < dest->height; i++) {
j = acc >> 16;
- gst_videoscale_orc_resample_nearest_u8 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_resample_nearest_u8 (dest->pixels + i * dest->stride,
src->pixels + j * src->stride, 0, x_increment, dest->width);
acc += y_increment;
}
acc = 0;
y2 = -1;
- gst_videoscale_orc_resample_bilinear_u8 (tmp1, src->pixels,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp1, src->pixels,
0, x_increment, dest->width);
y1 = 0;
for (i = 0; i < dest->height; i++) {
} else if (j == y2) {
memcpy (dest->pixels + i * dest->stride, tmp2, dest_size);
} else {
- gst_videoscale_orc_resample_bilinear_u8 (tmp1,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp1,
src->pixels + j * src->stride, 0, x_increment, dest->width);
y1 = j;
memcpy (dest->pixels + i * dest->stride, tmp1, dest_size);
} else {
if (j == y1) {
if (j + 1 != y2) {
- gst_videoscale_orc_resample_bilinear_u8 (tmp2,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp2,
src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width);
y2 = j + 1;
}
if ((x >> 8) == 0) {
memcpy (dest->pixels + i * dest->stride, tmp1, dest->width);
} else {
- orc_merge_linear_u8 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride,
tmp1, tmp2, (x >> 8), dest->width);
}
} else if (j == y2) {
if (j + 1 != y1) {
- gst_videoscale_orc_resample_bilinear_u8 (tmp1,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp1,
src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width);
y1 = j + 1;
}
if ((x >> 8) == 0) {
memcpy (dest->pixels + i * dest->stride, tmp2, dest->width);
} else {
- orc_merge_linear_u8 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride,
tmp2, tmp1, (x >> 8), dest->width);
}
} else {
- gst_videoscale_orc_resample_bilinear_u8 (tmp1,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp1,
src->pixels + j * src->stride, 0, x_increment, dest->width);
y1 = j;
- gst_videoscale_orc_resample_bilinear_u8 (tmp2,
+ gst_video_scale_orc_resample_bilinear_u8 (tmp2,
src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width);
y2 = (j + 1);
if ((x >> 8) == 0) {
memcpy (dest->pixels + i * dest->stride, tmp1, dest->width);
} else {
- orc_merge_linear_u8 (dest->pixels + i * dest->stride,
+ gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride,
tmp1, tmp2, (x >> 8), dest->width);
}
}
#define LINE(x) ((guint16 *)((tmpbuf) + (dest_size)*((x)&1)))
acc = 0;
- //gst_videoscale_orc_resample_bilinear_u64 (LINE (0), src->pixels,
+ //gst_video_scale_orc_resample_bilinear_u64 (LINE (0), src->pixels,
// 0, x_increment, dest->width);
xacc = 0;
vs_scanline_resample_linear_AYUV64 ((guint8 *) LINE (0),
vs_scanline_resample_linear_AYUV64 ((guint8 *) LINE (j),
src->pixels + j * src->stride, src->width, dest->width, &xacc,
x_increment);
- //gst_videoscale_orc_resample_bilinear_u64 (LINE (j),
+ //gst_video_scale_orc_resample_bilinear_u64 (LINE (j),
// src->pixels + j * src->stride, 0, x_increment, dest->width);
y1++;
}
vs_scanline_resample_linear_AYUV64 ((guint8 *) LINE (j + 1),
src->pixels + (j + 1) * src->stride, src->width, dest->width, &xacc,
x_increment);
- orc_merge_linear_u16 ((guint16 *) (dest->pixels + i * dest->stride),
- LINE (j), LINE (j + 1), 65536 - x, x, dest->width * 4);
- //gst_videoscale_orc_resample_merge_bilinear_u64 (dest->pixels +
+ gst_video_scale_orc_merge_linear_u16 ((guint16 *) (dest->pixels +
+ i * dest->stride), LINE (j), LINE (j + 1), 65536 - x, x,
+ dest->width * 4);
+ //gst_video_scale_orc_resample_merge_bilinear_u64 (dest->pixels +
// i * dest->stride, LINE (j + 1), LINE (j),
// src->pixels + (j + 1) * src->stride, (x >> 8), 0, x_increment,
// dest->width);
y1++;
} else {
- orc_merge_linear_u16 ((guint16 *) (dest->pixels + i * dest->stride),
- LINE (j), LINE (j + 1), 65536 - x, x, dest->width * 4);
+ gst_video_scale_orc_merge_linear_u16 ((guint16 *) (dest->pixels +
+ i * dest->stride), LINE (j), LINE (j + 1), 65536 - x, x,
+ dest->width * 4);
}
}
void
vs_scanline_downsample_Y (uint8_t * dest, uint8_t * src, int n)
{
- orc_downsample_u8 (dest, src, n);
+ gst_video_scale_orc_downsample_u8 (dest, src, n);
}
void
vs_scanline_resample_nearest_Y (uint8_t * dest, uint8_t * src, int src_width,
int n, int *accumulator, int increment)
{
- gst_videoscale_orc_resample_nearest_u8 (dest, src,
+ gst_video_scale_orc_resample_nearest_u8 (dest, src,
*accumulator, increment, n);
*accumulator += n * increment;
vs_scanline_resample_linear_Y (uint8_t * dest, uint8_t * src, int src_width,
int n, int *accumulator, int increment)
{
- gst_videoscale_orc_resample_bilinear_u8 (dest, src,
+ gst_video_scale_orc_resample_bilinear_u8 (dest, src,
*accumulator, increment, n);
*accumulator += n * increment;
if (value == 0) {
memcpy (dest, src1, n);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, n);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n);
}
}
void
vs_scanline_downsample_Y16 (uint8_t * dest, uint8_t * src, int n)
{
- orc_downsample_u16 ((uint16_t *) dest, (uint16_t *) src, n);
+ gst_video_scale_orc_downsample_u16 ((uint16_t *) dest, (uint16_t *) src, n);
}
void
if (x == 0) {
memcpy (d, s1, n * 2);
} else {
- orc_merge_linear_u16 (d, s1, s2, 65536 - x, x, n);
+ gst_video_scale_orc_merge_linear_u16 (d, s1, s2, 65536 - x, x, n);
}
}
void
vs_scanline_downsample_RGBA (uint8_t * dest, uint8_t * src, int n)
{
- gst_videoscale_orc_downsample_u32 (dest, src, n);
+ gst_video_scale_orc_downsample_u32 (dest, src, n);
}
void
vs_scanline_resample_nearest_RGBA (uint8_t * dest, uint8_t * src, int src_width,
int n, int *accumulator, int increment)
{
- gst_videoscale_orc_resample_nearest_u32 (dest, src,
+ gst_video_scale_orc_resample_nearest_u32 (dest, src,
*accumulator, increment, n);
*accumulator += n * increment;
vs_scanline_resample_linear_RGBA (uint8_t * dest, uint8_t * src, int src_width,
int n, int *accumulator, int increment)
{
- gst_videoscale_orc_resample_bilinear_u32 (dest, src,
+ gst_video_scale_orc_resample_bilinear_u32 (dest, src,
*accumulator, increment, n);
*accumulator += n * increment;
if (value == 0) {
memcpy (dest, src1, n * 4);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, n * 4);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 4);
}
}
if (value == 0) {
memcpy (dest, src1, n * 3);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, n * 3);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 3);
}
}
void
vs_scanline_downsample_YUYV (uint8_t * dest, uint8_t * src, int n)
{
- gst_videoscale_orc_downsample_yuyv (dest, src, n);
+ gst_video_scale_orc_downsample_yuyv (dest, src, n);
}
void
if (value == 0) {
memcpy (dest, src1, quads * 4);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, quads * 4);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4);
}
}
if (value == 0) {
memcpy (dest, src1, quads * 4);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, quads * 4);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4);
}
}
if (value == 0) {
memcpy (dest, src1, n * 2);
} else {
- orc_merge_linear_u8 (dest, src1, src2, value, n * 2);
+ gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 2);
}
}