summaryrefslogtreecommitdiff
path: root/gst/bayer
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-06-05 18:10:29 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-06-05 18:29:49 +0200
commit37427ccaefdda7507abaa6979f6bc4cefbf80e7e (patch)
tree0de5e332bc8aeca5ce494fafbfe9deae536d5693 /gst/bayer
parentf3247930df5847d08a3081d2c39d6c9a08c97cc4 (diff)
downloadgstreamer-plugins-bad-37427ccaefdda7507abaa6979f6bc4cefbf80e7e.tar.gz
Release 1.1.11.1.1
Diffstat (limited to 'gst/bayer')
-rw-r--r--gst/bayer/gstbayerorc-dist.c354
-rw-r--r--gst/bayer/gstbayerorc-dist.h13
2 files changed, 367 insertions, 0 deletions
diff --git a/gst/bayer/gstbayerorc-dist.c b/gst/bayer/gstbayerorc-dist.c
index 95c53c5f0..964dbc282 100644
--- a/gst/bayer/gstbayerorc-dist.c
+++ b/gst/bayer/gstbayerorc-dist.c
@@ -79,6 +79,19 @@ typedef union
#endif
#endif
+#ifndef ORC_INTERNAL
+#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
+#define ORC_INTERNAL __attribute__((visibility("hidden")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+#define ORC_INTERNAL __hidden
+#elif defined (__GNUC__)
+#define ORC_INTERNAL __attribute__((visibility("hidden")))
+#else
+#define ORC_INTERNAL
+#endif
+#endif
+
+
#ifndef DISABLE_ORC
#include <orc/orc.h>
#endif
@@ -319,6 +332,20 @@ bayer_orc_horiz_upsample_unaligned (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 34, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 104, 111, 114,
+ 105, 122, 95, 117, 112, 115, 97, 109, 112, 108, 101, 95, 117, 110, 97,
+ 108,
+ 105, 103, 110, 101, 100, 11, 2, 2, 11, 2, 2, 12, 2, 2, 14, 4,
+ 1, 0, 0, 0, 20, 2, 20, 1, 20, 1, 20, 1, 20, 1, 199, 34,
+ 33, 4, 83, 32, 4, 16, 199, 36, 35, 32, 39, 36, 34, 36, 196, 0,
+ 34, 36, 39, 33, 33, 35, 196, 1, 33, 35, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p,
+ _backup_bayer_orc_horiz_upsample_unaligned);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_horiz_upsample_unaligned");
orc_program_set_backup_function (p,
@@ -347,6 +374,7 @@ bayer_orc_horiz_upsample_unaligned (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_D2, ORC_VAR_T2, ORC_VAR_T4,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -548,6 +576,19 @@ bayer_orc_horiz_upsample (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 24, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 104, 111, 114,
+ 105, 122, 95, 117, 112, 115, 97, 109, 112, 108, 101, 11, 2, 2, 11, 2,
+ 2, 12, 2, 2, 14, 4, 255, 255, 255, 255, 14, 4, 1, 0, 0, 0,
+ 20, 2, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 83, 32,
+ 4, 16, 199, 34, 33, 32, 199, 36, 35, 4, 83, 32, 4, 17, 199, 38,
+ 37, 32, 39, 37, 35, 37, 196, 0, 35, 37, 39, 34, 34, 36, 196, 1,
+ 34, 36, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_horiz_upsample);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_horiz_upsample");
orc_program_set_backup_function (p, _backup_bayer_orc_horiz_upsample);
@@ -582,6 +623,7 @@ bayer_orc_horiz_upsample (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2,
ORC_VAR_D1);
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_D2, ORC_VAR_T3, ORC_VAR_T5,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -625,10 +667,22 @@ bayer_orc_merge_bg_bgra (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -749,10 +803,22 @@ _backup_bayer_orc_merge_bg_bgra (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -871,6 +937,20 @@ bayer_orc_merge_bg_bgra (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 98, 103, 95, 98, 103, 114, 97, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 255, 0, 0, 0, 14, 4, 0, 255, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 5, 9, 21, 1, 39, 35, 4,
+ 8, 79, 36, 7, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 33, 6, 35, 21, 1, 196, 32,
+ 34, 16, 21, 1, 195, 0, 33, 32, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_bgra);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_bg_bgra");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_bgra);
@@ -909,6 +989,7 @@ bayer_orc_merge_bg_bgra (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -956,10 +1037,22 @@ bayer_orc_merge_gr_bgra (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -1080,10 +1173,22 @@ _backup_bayer_orc_merge_gr_bgra (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -1202,6 +1307,20 @@ bayer_orc_merge_gr_bgra (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 103, 114, 95, 98, 103, 114, 97, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 0, 255, 0, 0, 14, 4, 255, 0, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 4, 8, 21, 1, 39, 35, 5,
+ 9, 79, 36, 6, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 33, 34, 35, 21, 1, 196, 32,
+ 7, 17, 21, 1, 195, 0, 33, 32, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_bgra);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_gr_bgra");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_bgra);
@@ -1240,6 +1359,7 @@ bayer_orc_merge_gr_bgra (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -1287,9 +1407,21 @@ bayer_orc_merge_bg_abgr (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -1411,9 +1543,21 @@ _backup_bayer_orc_merge_bg_abgr (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -1533,6 +1677,20 @@ bayer_orc_merge_bg_abgr (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 98, 103, 95, 97, 98, 103, 114, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 255, 0, 0, 0, 14, 4, 0, 255, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 5, 9, 21, 1, 39, 35, 4,
+ 8, 79, 36, 7, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 16, 6, 21, 1, 196, 33,
+ 35, 34, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_abgr);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_bg_abgr");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_abgr);
@@ -1571,6 +1729,7 @@ bayer_orc_merge_bg_abgr (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -1618,9 +1777,21 @@ bayer_orc_merge_gr_abgr (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -1742,9 +1913,21 @@ _backup_bayer_orc_merge_gr_abgr (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -1864,6 +2047,20 @@ bayer_orc_merge_gr_abgr (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 103, 114, 95, 97, 98, 103, 114, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 0, 255, 0, 0, 14, 4, 255, 0, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 4, 8, 21, 1, 39, 35, 5,
+ 9, 79, 36, 6, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 17, 34, 21, 1, 196, 33,
+ 35, 7, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_abgr);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_gr_abgr");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_abgr);
@@ -1902,6 +2099,7 @@ bayer_orc_merge_gr_abgr (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -1949,10 +2147,22 @@ bayer_orc_merge_bg_rgba (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -2073,10 +2283,22 @@ _backup_bayer_orc_merge_bg_rgba (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -2195,6 +2417,20 @@ bayer_orc_merge_bg_rgba (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 98, 103, 95, 114, 103, 98, 97, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 255, 0, 0, 0, 14, 4, 0, 255, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 5, 9, 21, 1, 39, 35, 4,
+ 8, 79, 36, 7, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 34, 35, 21, 1, 196, 33,
+ 6, 16, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_rgba);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_bg_rgba");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_rgba);
@@ -2233,6 +2469,7 @@ bayer_orc_merge_bg_rgba (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -2280,10 +2517,22 @@ bayer_orc_merge_gr_rgba (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -2404,10 +2653,22 @@ _backup_bayer_orc_merge_gr_rgba (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
orc_union16 var44;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var45;
+#else
orc_union16 var45;
+#endif
orc_union64 var46;
orc_union16 var47;
orc_union16 var48;
@@ -2526,6 +2787,20 @@ bayer_orc_merge_gr_rgba (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 103, 114, 95, 114, 103, 98, 97, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 0, 255, 0, 0, 14, 4, 255, 0, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 4, 8, 21, 1, 39, 35, 5,
+ 9, 79, 36, 6, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 7, 35, 21, 1, 196, 33,
+ 34, 17, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_rgba);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_gr_rgba");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_rgba);
@@ -2564,6 +2839,7 @@ bayer_orc_merge_gr_rgba (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -2611,9 +2887,21 @@ bayer_orc_merge_bg_argb (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -2735,9 +3023,21 @@ _backup_bayer_orc_merge_bg_argb (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -2857,6 +3157,20 @@ bayer_orc_merge_bg_argb (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 98, 103, 95, 97, 114, 103, 98, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 255, 0, 0, 0, 14, 4, 0, 255, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 5, 9, 21, 1, 39, 35, 4,
+ 8, 79, 36, 7, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 16, 34, 21, 1, 196, 33,
+ 35, 6, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_argb);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_bg_argb");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_bg_argb);
@@ -2895,6 +3209,7 @@ bayer_orc_merge_bg_argb (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
@@ -2942,9 +3257,21 @@ bayer_orc_merge_gr_argb (guint8 * ORC_RESTRICT d1,
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -3066,9 +3393,21 @@ _backup_bayer_orc_merge_gr_argb (OrcExecutor * ORC_RESTRICT ex)
orc_union16 var39;
orc_union16 var40;
orc_union16 var41;
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var42;
+#else
orc_union16 var42;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var43;
+#else
orc_union16 var43;
+#endif
+#if defined(__APPLE__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && defined (__i386__)
+ volatile orc_union16 var44;
+#else
orc_union16 var44;
+#endif
orc_union16 var45;
orc_union64 var46;
orc_union16 var47;
@@ -3188,6 +3527,20 @@ bayer_orc_merge_gr_argb (guint8 * ORC_RESTRICT d1,
if (!p_inited) {
OrcProgram *p;
+#if 1
+ static const orc_uint8 bc[] = {
+ 1, 9, 23, 98, 97, 121, 101, 114, 95, 111, 114, 99, 95, 109, 101, 114,
+ 103, 101, 95, 103, 114, 95, 97, 114, 103, 98, 11, 8, 8, 12, 2, 2,
+ 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 12, 2, 2, 14,
+ 4, 0, 255, 0, 0, 14, 4, 255, 0, 0, 0, 20, 4, 20, 4, 20,
+ 2, 20, 2, 20, 2, 21, 1, 39, 34, 4, 8, 21, 1, 39, 35, 5,
+ 9, 79, 36, 6, 21, 1, 39, 35, 35, 36, 73, 35, 35, 16, 73, 36,
+ 36, 17, 92, 35, 36, 35, 21, 1, 196, 32, 17, 7, 21, 1, 196, 33,
+ 35, 34, 21, 1, 195, 0, 32, 33, 2, 0,
+ };
+ p = orc_program_new_from_static_bytecode (bc);
+ orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_argb);
+#else
p = orc_program_new ();
orc_program_set_name (p, "bayer_orc_merge_gr_argb");
orc_program_set_backup_function (p, _backup_bayer_orc_merge_gr_argb);
@@ -3226,6 +3579,7 @@ bayer_orc_merge_gr_argb (guint8 * ORC_RESTRICT d1,
ORC_VAR_D1);
orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2,
ORC_VAR_D1);
+#endif
orc_program_compile (p);
c = orc_program_take_code (p);
diff --git a/gst/bayer/gstbayerorc-dist.h b/gst/bayer/gstbayerorc-dist.h
index 83227b358..235773292 100644
--- a/gst/bayer/gstbayerorc-dist.h
+++ b/gst/bayer/gstbayerorc-dist.h
@@ -67,6 +67,19 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16
#define ORC_RESTRICT
#endif
#endif
+
+#ifndef ORC_INTERNAL
+#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
+#define ORC_INTERNAL __attribute__((visibility("hidden")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+#define ORC_INTERNAL __hidden
+#elif defined (__GNUC__)
+#define ORC_INTERNAL __attribute__((visibility("hidden")))
+#else
+#define ORC_INTERNAL
+#endif
+#endif
+
void bayer_orc_horiz_upsample_unaligned (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
void bayer_orc_horiz_upsample (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
void bayer_orc_merge_bg_bgra (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, const guint8 * ORC_RESTRICT s5, const guint8 * ORC_RESTRICT s6, int n);