From aefd1a5d6dfa984af65e9a72eb426c883c8bde4d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 23 Jul 2012 17:13:29 +0200 Subject: [PATCH] videoscale: ranem gst_video_scale_orc -> video_scale_orc So that functions are not exported --- gst/videoscale/gstvideoscaleorc-dist.c | 219 ++++++++++++++++----------------- gst/videoscale/gstvideoscaleorc-dist.h | 30 ++--- gst/videoscale/gstvideoscaleorc.orc | 30 ++--- gst/videoscale/vs_fill_borders.c | 40 +++--- gst/videoscale/vs_image.c | 40 +++--- gst/videoscale/vs_scanline.c | 34 +++-- 6 files changed, 190 insertions(+), 203 deletions(-) diff --git a/gst/videoscale/gstvideoscaleorc-dist.c b/gst/videoscale/gstvideoscaleorc-dist.c index 14cd6a1..661beaa 100644 --- a/gst/videoscale/gstvideoscaleorc-dist.c +++ b/gst/videoscale/gstvideoscaleorc-dist.c @@ -82,38 +82,36 @@ typedef union #ifndef DISABLE_ORC #include #endif -void gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, +void 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 gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, +void 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 gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, +void video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n); +void video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n); +void video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 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, +void video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, +void video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, +void video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, +void video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, +void video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, +void video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, +void video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, +void video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, +void 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_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, +void 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); @@ -163,10 +161,10 @@ void gst_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, -/* gst_video_scale_orc_merge_linear_u8 */ +/* video_scale_orc_merge_linear_u8 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, +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) { @@ -225,7 +223,7 @@ gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -282,7 +280,7 @@ _backup_gst_video_scale_orc_merge_linear_u8 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, +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) { @@ -296,9 +294,9 @@ gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_merge_linear_u8"); + orc_program_set_name (p, "video_scale_orc_merge_linear_u8"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_merge_linear_u8); + _backup_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"); @@ -345,10 +343,10 @@ gst_video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_merge_linear_u16 */ +/* video_scale_orc_merge_linear_u16 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, +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) { @@ -398,7 +396,7 @@ gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -446,7 +444,7 @@ _backup_gst_video_scale_orc_merge_linear_u16 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, +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) { @@ -460,9 +458,9 @@ gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_merge_linear_u16"); + orc_program_set_name (p, "video_scale_orc_merge_linear_u16"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_merge_linear_u16); + _backup_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"); @@ -503,10 +501,10 @@ gst_video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_splat_u16 */ +/* video_scale_orc_splat_u16 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) +video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -529,7 +527,7 @@ gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) #else static void -_backup_gst_video_scale_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -552,7 +550,7 @@ _backup_gst_video_scale_orc_splat_u16 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) +video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -564,9 +562,8 @@ gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { p = orc_program_new (); - 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_set_name (p, "video_scale_orc_splat_u16"); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u16); orc_program_add_destination (p, 2, "d1"); orc_program_add_parameter (p, 2, "p1"); @@ -590,10 +587,10 @@ gst_video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) #endif -/* gst_video_scale_orc_splat_u32 */ +/* video_scale_orc_splat_u32 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) +video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -616,7 +613,7 @@ gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) #else static void -_backup_gst_video_scale_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -639,7 +636,7 @@ _backup_gst_video_scale_orc_splat_u32 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) +video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static volatile int p_inited = 0; @@ -651,9 +648,8 @@ gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { p = orc_program_new (); - 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_set_name (p, "video_scale_orc_splat_u32"); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u32); orc_program_add_destination (p, 4, "d1"); orc_program_add_parameter (p, 4, "p1"); @@ -677,11 +673,10 @@ gst_video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) #endif -/* gst_video_scale_orc_splat_u64 */ +/* video_scale_orc_splat_u64 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, - int n) +video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n) { int i; orc_union64 *ORC_RESTRICT ptr0; @@ -704,7 +699,7 @@ gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, #else static void -_backup_gst_video_scale_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -729,8 +724,7 @@ _backup_gst_video_scale_orc_splat_u64 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, - int n) +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; @@ -742,9 +736,8 @@ gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, if (!p_inited) { p = orc_program_new (); - 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_set_name (p, "video_scale_orc_splat_u64"); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u64); orc_program_add_destination (p, 8, "d1"); orc_program_add_parameter_int64 (p, 8, "p1"); @@ -773,10 +766,10 @@ gst_video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, #endif -/* gst_video_scale_orc_downsample_u8 */ +/* video_scale_orc_downsample_u8 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { int i; @@ -811,7 +804,7 @@ gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -845,7 +838,7 @@ _backup_gst_video_scale_orc_downsample_u8 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; @@ -858,9 +851,9 @@ gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_downsample_u8"); + orc_program_set_name (p, "video_scale_orc_downsample_u8"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_downsample_u8); + _backup_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"); @@ -888,10 +881,10 @@ gst_video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_downsample_u16 */ +/* video_scale_orc_downsample_u16 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, +video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) { int i; @@ -926,7 +919,7 @@ gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -960,7 +953,7 @@ _backup_gst_video_scale_orc_downsample_u16 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, +video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; @@ -973,9 +966,9 @@ gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_downsample_u16"); + orc_program_set_name (p, "video_scale_orc_downsample_u16"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_downsample_u16); + _backup_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"); @@ -1003,10 +996,10 @@ gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_downsample_u32 */ +/* video_scale_orc_downsample_u32 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { int i; @@ -1044,7 +1037,7 @@ gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1081,7 +1074,7 @@ _backup_gst_video_scale_orc_downsample_u32 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; @@ -1094,9 +1087,9 @@ gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_downsample_u32"); + orc_program_set_name (p, "video_scale_orc_downsample_u32"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_downsample_u32); + _backup_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"); @@ -1124,10 +1117,10 @@ gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_downsample_yuyv */ +/* video_scale_orc_downsample_yuyv */ #ifdef DISABLE_ORC void -gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { int i; @@ -1223,7 +1216,7 @@ gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1318,7 +1311,7 @@ _backup_gst_video_scale_orc_downsample_yuyv (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, +video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n) { OrcExecutor _ex, *ex = &_ex; @@ -1331,9 +1324,9 @@ gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_downsample_yuyv"); + orc_program_set_name (p, "video_scale_orc_downsample_yuyv"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_downsample_yuyv); + _backup_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"); @@ -1373,10 +1366,10 @@ gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_resample_nearest_u8 */ +/* video_scale_orc_resample_nearest_u8 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, +video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n) { int i; @@ -1399,7 +1392,7 @@ gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1421,7 +1414,7 @@ _backup_gst_video_scale_orc_resample_nearest_u8 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, +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; @@ -1434,9 +1427,9 @@ gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_resample_nearest_u8"); + orc_program_set_name (p, "video_scale_orc_resample_nearest_u8"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_resample_nearest_u8); + _backup_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"); @@ -1464,10 +1457,10 @@ gst_video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_resample_bilinear_u8 */ +/* video_scale_orc_resample_bilinear_u8 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, +video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n) { int i; @@ -1495,7 +1488,7 @@ gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1522,7 +1515,7 @@ _backup_gst_video_scale_orc_resample_bilinear_u8 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, +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; @@ -1535,9 +1528,9 @@ gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_resample_bilinear_u8"); + orc_program_set_name (p, "video_scale_orc_resample_bilinear_u8"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_resample_bilinear_u8); + _backup_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"); @@ -1565,10 +1558,10 @@ gst_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_resample_nearest_u32 */ +/* video_scale_orc_resample_nearest_u32 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, +video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n) { int i; @@ -1591,7 +1584,7 @@ gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1613,7 +1606,7 @@ _backup_gst_video_scale_orc_resample_nearest_u32 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, +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; @@ -1626,9 +1619,9 @@ gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_resample_nearest_u32"); + orc_program_set_name (p, "video_scale_orc_resample_nearest_u32"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_resample_nearest_u32); + _backup_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"); @@ -1656,10 +1649,10 @@ gst_video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_resample_bilinear_u32 */ +/* video_scale_orc_resample_bilinear_u32 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, +video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n) { int i; @@ -1698,8 +1691,7 @@ gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_resample_bilinear_u32 (OrcExecutor * - ORC_RESTRICT ex) +_backup_video_scale_orc_resample_bilinear_u32 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -1737,7 +1729,7 @@ _backup_gst_video_scale_orc_resample_bilinear_u32 (OrcExecutor * } void -gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, +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; @@ -1750,9 +1742,9 @@ gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_resample_bilinear_u32"); + orc_program_set_name (p, "video_scale_orc_resample_bilinear_u32"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_resample_bilinear_u32); + _backup_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"); @@ -1780,10 +1772,10 @@ gst_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_resample_merge_bilinear_u32 */ +/* video_scale_orc_resample_merge_bilinear_u32 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, +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) { @@ -1874,7 +1866,7 @@ gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_resample_merge_bilinear_u32 (OrcExecutor * +_backup_video_scale_orc_resample_merge_bilinear_u32 (OrcExecutor * ORC_RESTRICT ex) { int i; @@ -1964,7 +1956,7 @@ _backup_gst_video_scale_orc_resample_merge_bilinear_u32 (OrcExecutor * } void -gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, +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) { @@ -1978,10 +1970,9 @@ gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, - "gst_video_scale_orc_resample_merge_bilinear_u32"); + orc_program_set_name (p, "video_scale_orc_resample_merge_bilinear_u32"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_resample_merge_bilinear_u32); + _backup_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"); @@ -2036,10 +2027,10 @@ gst_video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, #endif -/* gst_video_scale_orc_merge_bicubic_u8 */ +/* video_scale_orc_merge_bicubic_u8 */ #ifdef DISABLE_ORC void -gst_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, +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) @@ -2124,7 +2115,7 @@ gst_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, #else static void -_backup_gst_video_scale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_video_scale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex) { int i; int n = ex->n; @@ -2206,7 +2197,7 @@ _backup_gst_video_scale_orc_merge_bicubic_u8 (OrcExecutor * ORC_RESTRICT ex) } void -gst_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, +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) @@ -2221,9 +2212,9 @@ gst_video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { p = orc_program_new (); - orc_program_set_name (p, "gst_video_scale_orc_merge_bicubic_u8"); + orc_program_set_name (p, "video_scale_orc_merge_bicubic_u8"); orc_program_set_backup_function (p, - _backup_gst_video_scale_orc_merge_bicubic_u8); + _backup_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"); diff --git a/gst/videoscale/gstvideoscaleorc-dist.h b/gst/videoscale/gstvideoscaleorc-dist.h index 44bae00..7c6677a 100644 --- a/gst/videoscale/gstvideoscaleorc-dist.h +++ b/gst/videoscale/gstvideoscaleorc-dist.h @@ -67,21 +67,21 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 #define ORC_RESTRICT #endif #endif -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 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 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 gst_video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -void gst_video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); -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_video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -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_video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); -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_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); +void 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 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 video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n); +void video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n); +void video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n); +void video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); +void video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, const guint16 * ORC_RESTRICT s1, int n); +void video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); +void video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); +void video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); +void video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); +void video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); +void video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n); +void 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 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); #ifdef __cplusplus } diff --git a/gst/videoscale/gstvideoscaleorc.orc b/gst/videoscale/gstvideoscaleorc.orc index cc736eb..06e8c9b 100644 --- a/gst/videoscale/gstvideoscaleorc.orc +++ b/gst/videoscale/gstvideoscaleorc.orc @@ -1,5 +1,5 @@ -.function gst_video_scale_orc_merge_linear_u8 +.function video_scale_orc_merge_linear_u8 .dest 1 d1 .source 1 s1 .source 1 s2 @@ -20,7 +20,7 @@ addb d1, t, a -.function gst_video_scale_orc_merge_linear_u16 +.function video_scale_orc_merge_linear_u16 .dest 2 d1 .source 2 s1 .source 2 s2 @@ -38,28 +38,28 @@ shrul t1, t1, 16 convlw d1, t1 -.function gst_video_scale_orc_splat_u16 +.function video_scale_orc_splat_u16 .dest 2 d1 .param 2 p1 copyw d1, p1 -.function gst_video_scale_orc_splat_u32 +.function video_scale_orc_splat_u32 .dest 4 d1 .param 4 p1 copyl d1, p1 -.function gst_video_scale_orc_splat_u64 +.function video_scale_orc_splat_u64 .dest 8 d1 .longparam 8 p1 copyq d1, p1 -.function gst_video_scale_orc_downsample_u8 +.function video_scale_orc_downsample_u8 .dest 1 d1 guint8 .source 2 s1 guint8 .temp 1 t1 @@ -69,7 +69,7 @@ splitwb t1, t2, s1 avgub d1, t1, t2 -.function gst_video_scale_orc_downsample_u16 +.function video_scale_orc_downsample_u16 .dest 2 d1 guint16 .source 4 s1 guint16 .temp 2 t1 @@ -79,7 +79,7 @@ splitlw t1, t2, s1 avguw d1, t1, t2 -.function gst_video_scale_orc_downsample_u32 +.function video_scale_orc_downsample_u32 .dest 4 d1 guint8 .source 8 s1 guint8 .temp 4 t1 @@ -89,7 +89,7 @@ splitql t1, t2, s1 x4 avgub d1, t1, t2 -.function gst_video_scale_orc_downsample_yuyv +.function video_scale_orc_downsample_yuyv .dest 4 d1 guint8 .source 8 s1 guint8 .temp 4 yyyy @@ -108,7 +108,7 @@ x2 mergebw d1, yy, uv -.function gst_video_scale_orc_resample_nearest_u8 +.function video_scale_orc_resample_nearest_u8 .dest 1 d1 guint8 .source 1 s1 guint8 .param 4 p1 @@ -117,7 +117,7 @@ x2 mergebw d1, yy, uv ldresnearb d1, s1, p1, p2 -.function gst_video_scale_orc_resample_bilinear_u8 +.function video_scale_orc_resample_bilinear_u8 .dest 1 d1 guint8 .source 1 s1 guint8 .param 4 p1 @@ -126,7 +126,7 @@ ldresnearb d1, s1, p1, p2 ldreslinb d1, s1, p1, p2 -.function gst_video_scale_orc_resample_nearest_u32 +.function video_scale_orc_resample_nearest_u32 .dest 4 d1 guint8 .source 4 s1 guint8 .param 4 p1 @@ -135,7 +135,7 @@ ldreslinb d1, s1, p1, p2 ldresnearl d1, s1, p1, p2 -.function gst_video_scale_orc_resample_bilinear_u32 +.function video_scale_orc_resample_bilinear_u32 .dest 4 d1 guint8 .source 4 s1 guint8 .param 4 p1 @@ -144,7 +144,7 @@ ldresnearl d1, s1, p1, p2 ldreslinl d1, s1, p1, p2 -.function gst_video_scale_orc_resample_merge_bilinear_u32 +.function video_scale_orc_resample_merge_bilinear_u32 .dest 4 d1 guint8 .dest 4 d2 guint8 .source 4 s1 guint8 @@ -170,7 +170,7 @@ x4 addb d1, t, a -.function gst_video_scale_orc_merge_bicubic_u8 +.function video_scale_orc_merge_bicubic_u8 .dest 1 d1 guint8 .source 1 s1 guint8 .source 1 s2 guint8 diff --git a/gst/videoscale/vs_fill_borders.c b/gst/videoscale/vs_fill_borders.c index c469886..0c5bba4 100644 --- a/gst/videoscale/vs_fill_borders.c +++ b/gst/videoscale/vs_fill_borders.c @@ -59,7 +59,7 @@ vs_fill_borders_RGBA (const VSImage * dest, const uint8_t * val) data = dest->real_pixels; for (i = 0; i < top; i++) { - gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width); + video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width); data += stride; } @@ -67,8 +67,8 @@ vs_fill_borders_RGBA (const VSImage * dest, const uint8_t * val) tmp = height; tmp2 = (left + width) * 4; for (i = 0; i < tmp; i++) { - gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, left); - gst_video_scale_orc_splat_u32 ((uint32_t *) (data + tmp2), v, right); + video_scale_orc_splat_u32 ((uint32_t *) data, v, left); + video_scale_orc_splat_u32 ((uint32_t *) (data + tmp2), v, right); data += stride; } } else { @@ -76,7 +76,7 @@ vs_fill_borders_RGBA (const VSImage * dest, const uint8_t * val) } for (i = 0; i < bottom; i++) { - gst_video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width); + video_scale_orc_splat_u32 ((uint32_t *) data, v, real_width); data += stride; } } @@ -282,7 +282,7 @@ vs_fill_borders_Y16 (const VSImage * dest, const uint16_t val) data = dest->real_pixels; for (i = 0; i < top; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width); data += stride; } @@ -290,8 +290,8 @@ vs_fill_borders_Y16 (const VSImage * dest, const uint16_t val) tmp = height; tmp2 = (left + width) * 2; for (i = 0; i < tmp; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, left); - gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), val, right); + video_scale_orc_splat_u16 ((uint16_t *) data, val, left); + video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), val, right); data += stride; } } else { @@ -299,7 +299,7 @@ vs_fill_borders_Y16 (const VSImage * dest, const uint16_t val) } for (i = 0; i < bottom; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, val, real_width); data += stride; } } @@ -320,7 +320,7 @@ vs_fill_borders_RGB565 (const VSImage * dest, const uint8_t * val) data = dest->real_pixels; for (i = 0; i < top; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); data += stride; } @@ -328,8 +328,8 @@ vs_fill_borders_RGB565 (const VSImage * dest, const uint8_t * val) tmp = height; tmp2 = (left + width) * 2; for (i = 0; i < tmp; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, left); - gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right); + video_scale_orc_splat_u16 ((uint16_t *) data, v, left); + video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right); data += stride; } } else { @@ -337,7 +337,7 @@ vs_fill_borders_RGB565 (const VSImage * dest, const uint8_t * val) } for (i = 0; i < bottom; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); data += stride; } } @@ -358,7 +358,7 @@ vs_fill_borders_RGB555 (const VSImage * dest, const uint8_t * val) data = dest->real_pixels; for (i = 0; i < top; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); data += stride; } @@ -366,8 +366,8 @@ vs_fill_borders_RGB555 (const VSImage * dest, const uint8_t * val) tmp = height; tmp2 = (left + width) * 2; for (i = 0; i < tmp; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, left); - gst_video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right); + video_scale_orc_splat_u16 ((uint16_t *) data, v, left); + video_scale_orc_splat_u16 ((uint16_t *) (data + tmp2), v, right); data += stride; } } else { @@ -375,7 +375,7 @@ vs_fill_borders_RGB555 (const VSImage * dest, const uint8_t * val) } for (i = 0; i < bottom; i++) { - gst_video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); + video_scale_orc_splat_u16 ((uint16_t *) data, v, real_width); data += stride; } } @@ -399,7 +399,7 @@ vs_fill_borders_AYUV64 (const VSImage * dest, const uint8_t * val) data = dest->real_pixels; for (i = 0; i < top; i++) { - gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width); + video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width); data += stride; } @@ -407,8 +407,8 @@ vs_fill_borders_AYUV64 (const VSImage * dest, const uint8_t * val) tmp = height; tmp2 = (left + width) * 8; for (i = 0; i < tmp; i++) { - gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, left); - gst_video_scale_orc_splat_u64 ((uint64_t *) (data + tmp2), v, right); + video_scale_orc_splat_u64 ((uint64_t *) data, v, left); + video_scale_orc_splat_u64 ((uint64_t *) (data + tmp2), v, right); data += stride; } } else { @@ -416,7 +416,7 @@ vs_fill_borders_AYUV64 (const VSImage * dest, const uint8_t * val) } for (i = 0; i < bottom; i++) { - gst_video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width); + video_scale_orc_splat_u64 ((uint64_t *) data, v, real_width); data += stride; } } diff --git a/gst/videoscale/vs_image.c b/gst/videoscale/vs_image.c index a0907f9..47bfe08 100644 --- a/gst/videoscale/vs_image.c +++ b/gst/videoscale/vs_image.c @@ -68,7 +68,7 @@ vs_image_scale_nearest_RGBA (const VSImage * dest, const VSImage * src, memcpy (dest->pixels + i * dest->stride, dest->pixels + (i - 1) * dest->stride, dest->width * 4); } else { - gst_video_scale_orc_resample_nearest_u32 (dest->pixels + i * dest->stride, + video_scale_orc_resample_nearest_u32 (dest->pixels + i * dest->stride, src->pixels + j * src->stride, 0, x_increment, dest->width); } @@ -105,7 +105,7 @@ vs_image_scale_linear_RGBA (const VSImage * dest, const VSImage * src, #define LINE(x) ((tmpbuf) + (dest_size)*((x)&1)) acc = 0; - gst_video_scale_orc_resample_bilinear_u32 (LINE (0), src->pixels, + video_scale_orc_resample_bilinear_u32 (LINE (0), src->pixels, 0, x_increment, dest->width); y1 = 0; for (i = 0; i < dest->height; i++) { @@ -116,16 +116,16 @@ vs_image_scale_linear_RGBA (const VSImage * dest, const VSImage * src, memcpy (dest->pixels + i * dest->stride, LINE (j), dest_size); } else { if (j > y1) { - gst_video_scale_orc_resample_bilinear_u32 (LINE (j), + video_scale_orc_resample_bilinear_u32 (LINE (j), src->pixels + j * src->stride, 0, x_increment, dest->width); y1++; } if (j >= y1) { - gst_video_scale_orc_resample_bilinear_u32 (LINE (j + 1), + video_scale_orc_resample_bilinear_u32 (LINE (j + 1), src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width); y1++; } - gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, + video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, LINE (j), LINE (j + 1), (x >> 8), dest->width * 4); } @@ -678,7 +678,7 @@ vs_image_scale_nearest_Y (const VSImage * dest, const VSImage * src, for (i = 0; i < dest->height; i++) { j = acc >> 16; - gst_video_scale_orc_resample_nearest_u8 (dest->pixels + i * dest->stride, + video_scale_orc_resample_nearest_u8 (dest->pixels + i * dest->stride, src->pixels + j * src->stride, 0, x_increment, dest->width); acc += y_increment; } @@ -717,7 +717,7 @@ vs_image_scale_linear_Y (const VSImage * dest, const VSImage * src, acc = 0; y2 = -1; - gst_video_scale_orc_resample_bilinear_u8 (tmp1, src->pixels, + video_scale_orc_resample_bilinear_u8 (tmp1, src->pixels, 0, x_increment, dest->width); y1 = 0; for (i = 0; i < dest->height; i++) { @@ -730,7 +730,7 @@ vs_image_scale_linear_Y (const VSImage * dest, const VSImage * src, } else if (j == y2) { memcpy (dest->pixels + i * dest->stride, tmp2, dest_size); } else { - gst_video_scale_orc_resample_bilinear_u8 (tmp1, + 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); @@ -738,39 +738,39 @@ vs_image_scale_linear_Y (const VSImage * dest, const VSImage * src, } else { if (j == y1) { if (j + 1 != y2) { - gst_video_scale_orc_resample_bilinear_u8 (tmp2, + 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 { - gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, + 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_video_scale_orc_resample_bilinear_u8 (tmp1, + 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 { - gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, + video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, tmp2, tmp1, (x >> 8), dest->width); } } else { - gst_video_scale_orc_resample_bilinear_u8 (tmp1, + video_scale_orc_resample_bilinear_u8 (tmp1, src->pixels + j * src->stride, 0, x_increment, dest->width); y1 = j; - gst_video_scale_orc_resample_bilinear_u8 (tmp2, + 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 { - gst_video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, + video_scale_orc_merge_linear_u8 (dest->pixels + i * dest->stride, tmp1, tmp2, (x >> 8), dest->width); } } @@ -1240,7 +1240,7 @@ vs_image_scale_linear_AYUV64 (const VSImage * dest, const VSImage * src, #define LINE(x) ((guint16 *)((tmpbuf) + (dest_size)*((x)&1))) acc = 0; - //gst_video_scale_orc_resample_bilinear_u64 (LINE (0), src->pixels, + //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), @@ -1258,7 +1258,7 @@ vs_image_scale_linear_AYUV64 (const VSImage * dest, const VSImage * src, vs_scanline_resample_linear_AYUV64 ((guint8 *) LINE (j), src->pixels + j * src->stride, src->width, dest->width, &xacc, x_increment); - //gst_video_scale_orc_resample_bilinear_u64 (LINE (j), + //video_scale_orc_resample_bilinear_u64 (LINE (j), // src->pixels + j * src->stride, 0, x_increment, dest->width); y1++; } @@ -1267,16 +1267,16 @@ vs_image_scale_linear_AYUV64 (const VSImage * dest, const VSImage * src, vs_scanline_resample_linear_AYUV64 ((guint8 *) LINE (j + 1), src->pixels + (j + 1) * src->stride, src->width, dest->width, &xacc, x_increment); - gst_video_scale_orc_merge_linear_u16 ((guint16 *) (dest->pixels + + 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 + + //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 { - gst_video_scale_orc_merge_linear_u16 ((guint16 *) (dest->pixels + + video_scale_orc_merge_linear_u16 ((guint16 *) (dest->pixels + i * dest->stride), LINE (j), LINE (j + 1), 65536 - x, x, dest->width * 4); } diff --git a/gst/videoscale/vs_scanline.c b/gst/videoscale/vs_scanline.c index 31d52a0..fc66d5e 100644 --- a/gst/videoscale/vs_scanline.c +++ b/gst/videoscale/vs_scanline.c @@ -37,15 +37,14 @@ void vs_scanline_downsample_Y (uint8_t * dest, uint8_t * src, int n) { - gst_video_scale_orc_downsample_u8 (dest, src, n); + 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_video_scale_orc_resample_nearest_u8 (dest, src, - *accumulator, increment, n); + video_scale_orc_resample_nearest_u8 (dest, src, *accumulator, increment, n); *accumulator += n * increment; } @@ -55,8 +54,7 @@ void vs_scanline_resample_linear_Y (uint8_t * dest, uint8_t * src, int src_width, int n, int *accumulator, int increment) { - gst_video_scale_orc_resample_bilinear_u8 (dest, src, - *accumulator, increment, n); + video_scale_orc_resample_bilinear_u8 (dest, src, *accumulator, increment, n); *accumulator += n * increment; } @@ -70,14 +68,14 @@ vs_scanline_merge_linear_Y (uint8_t * dest, uint8_t * src1, uint8_t * src2, if (value == 0) { memcpy (dest, src1, n); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n); } } void vs_scanline_downsample_Y16 (uint8_t * dest, uint8_t * src, int n) { - gst_video_scale_orc_downsample_u16 ((uint16_t *) dest, (uint16_t *) src, n); + video_scale_orc_downsample_u16 ((uint16_t *) dest, (uint16_t *) src, n); } void @@ -137,7 +135,7 @@ vs_scanline_merge_linear_Y16 (uint8_t * dest, uint8_t * src1, uint8_t * src2, if (x == 0) { memcpy (d, s1, n * 2); } else { - gst_video_scale_orc_merge_linear_u16 (d, s1, s2, 65536 - x, x, n); + video_scale_orc_merge_linear_u16 (d, s1, s2, 65536 - x, x, n); } } @@ -146,15 +144,14 @@ vs_scanline_merge_linear_Y16 (uint8_t * dest, uint8_t * src1, uint8_t * src2, void vs_scanline_downsample_RGBA (uint8_t * dest, uint8_t * src, int n) { - gst_video_scale_orc_downsample_u32 (dest, src, n); + 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_video_scale_orc_resample_nearest_u32 (dest, src, - *accumulator, increment, n); + video_scale_orc_resample_nearest_u32 (dest, src, *accumulator, increment, n); *accumulator += n * increment; } @@ -163,8 +160,7 @@ void vs_scanline_resample_linear_RGBA (uint8_t * dest, uint8_t * src, int src_width, int n, int *accumulator, int increment) { - gst_video_scale_orc_resample_bilinear_u32 (dest, src, - *accumulator, increment, n); + video_scale_orc_resample_bilinear_u32 (dest, src, *accumulator, increment, n); *accumulator += n * increment; } @@ -178,7 +174,7 @@ vs_scanline_merge_linear_RGBA (uint8_t * dest, uint8_t * src1, uint8_t * src2, if (value == 0) { memcpy (dest, src1, n * 4); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 4); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 4); } } @@ -263,7 +259,7 @@ vs_scanline_merge_linear_RGB (uint8_t * dest, uint8_t * src1, uint8_t * src2, if (value == 0) { memcpy (dest, src1, n * 3); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 3); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 3); } } @@ -276,7 +272,7 @@ vs_scanline_merge_linear_RGB (uint8_t * dest, uint8_t * src1, uint8_t * src2, void vs_scanline_downsample_YUYV (uint8_t * dest, uint8_t * src, int n) { - gst_video_scale_orc_downsample_yuyv (dest, src, n); + video_scale_orc_downsample_yuyv (dest, src, n); } void @@ -385,7 +381,7 @@ vs_scanline_merge_linear_YUYV (uint8_t * dest, uint8_t * src1, uint8_t * src2, if (value == 0) { memcpy (dest, src1, quads * 4); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4); } } @@ -514,7 +510,7 @@ vs_scanline_merge_linear_UYVY (uint8_t * dest, uint8_t * src1, if (value == 0) { memcpy (dest, src1, quads * 4); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, quads * 4); } } @@ -596,7 +592,7 @@ vs_scanline_merge_linear_NV12 (uint8_t * dest, uint8_t * src1, if (value == 0) { memcpy (dest, src1, n * 2); } else { - gst_video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 2); + video_scale_orc_merge_linear_u8 (dest, src1, src2, value, n * 2); } } -- 2.7.4