diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-04-21 19:02:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-04-22 13:58:33 +0100 |
commit | f5c0d61be7a87961d12c0b2731bc412cd902812b (patch) | |
tree | b0bf978faeb74073f6ad85f8b07f04ff0f4ffa95 | |
parent | 830926e47da5f59d84be171ef4c307a580a948a5 (diff) |
Update disted orc backup files
Generated with 0.4.17 now.
-rw-r--r-- | gst-libs/gst/audio/gstaudiopack-dist.c | 393 | ||||
-rw-r--r-- | gst-libs/gst/audio/gstaudiopack-dist.h | 13 | ||||
-rw-r--r-- | gst-libs/gst/video/video-orc-dist.c | 387 | ||||
-rw-r--r-- | gst-libs/gst/video/video-orc-dist.h | 13 | ||||
-rw-r--r-- | gst/adder/gstadderorc-dist.c | 83 | ||||
-rw-r--r-- | gst/adder/gstadderorc-dist.h | 13 | ||||
-rw-r--r-- | gst/audioconvert/gstaudioconvertorc-dist.c | 675 | ||||
-rw-r--r-- | gst/audioconvert/gstaudioconvertorc-dist.h | 13 | ||||
-rw-r--r-- | gst/videoconvert/gstvideoconvertorc-dist.c | 938 | ||||
-rw-r--r-- | gst/videoconvert/gstvideoconvertorc-dist.h | 13 | ||||
-rw-r--r-- | gst/videoscale/gstvideoscaleorc-dist.c | 211 | ||||
-rw-r--r-- | gst/videoscale/gstvideoscaleorc-dist.h | 13 | ||||
-rw-r--r-- | gst/videotestsrc/gstvideotestsrcorc-dist.c | 23 | ||||
-rw-r--r-- | gst/videotestsrc/gstvideotestsrcorc-dist.h | 13 | ||||
-rw-r--r-- | gst/volume/gstvolumeorc-dist.c | 241 | ||||
-rw-r--r-- | gst/volume/gstvolumeorc-dist.h | 13 |
16 files changed, 3055 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiopack-dist.c b/gst-libs/gst/audio/gstaudiopack-dist.c index 0b2ebf8aa..ea8637dc9 100644 --- a/gst-libs/gst/audio/gstaudiopack-dist.c +++ b/gst-libs/gst/audio/gstaudiopack-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 @@ -291,6 +304,16 @@ audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 56, 11, 4, 4, 12, 1, 1, 14, 4, 0, 0, + 0, 128, 14, 4, 24, 0, 0, 0, 20, 2, 20, 4, 150, 32, 4, 154, + 33, 32, 124, 33, 33, 17, 132, 0, 33, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u8"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u8); @@ -309,6 +332,7 @@ audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -409,6 +433,16 @@ audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 56, 11, 4, 4, 12, 1, 1, 14, 4, 24, 0, + 0, 0, 20, 2, 20, 4, 150, 32, 4, 154, 33, 32, 124, 0, 33, 16, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s8"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s8); @@ -424,6 +458,7 @@ audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -530,6 +565,16 @@ audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 49, 54, 11, 4, 4, 12, 2, 2, 14, 4, 16, + 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 4, 154, 32, 4, 124, 32, + 32, 16, 132, 0, 32, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u16"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16); @@ -545,6 +590,7 @@ audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -639,6 +685,15 @@ audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 49, 54, 11, 4, 4, 12, 2, 2, 14, 4, 16, + 0, 0, 0, 20, 4, 154, 32, 4, 124, 0, 32, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s16"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16); @@ -651,6 +706,7 @@ audio_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -763,6 +819,17 @@ audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 49, 54, 95, 115, 119, 97, 112, 11, 4, 4, 12, + 2, 2, 14, 4, 16, 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 2, + 20, 4, 183, 32, 4, 154, 33, 32, 124, 33, 33, 16, 132, 0, 33, 17, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u16_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u16_swap); @@ -781,6 +848,7 @@ audio_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -881,6 +949,16 @@ audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 49, 54, 95, 115, 119, 97, 112, 11, 4, 4, 12, + 2, 2, 14, 4, 16, 0, 0, 0, 20, 2, 20, 4, 183, 32, 4, 154, + 33, 32, 124, 0, 33, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s16_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s16_swap); @@ -896,6 +974,7 @@ audio_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -996,6 +1075,16 @@ audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, + 14, 4, 8, 0, 0, 0, 14, 4, 0, 0, 0, 128, 20, 4, 124, 32, + 4, 16, 132, 0, 32, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u24_32"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32); @@ -1009,6 +1098,7 @@ audio_orc_unpack_u24_32 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1097,6 +1187,15 @@ audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, + 14, 4, 8, 0, 0, 0, 124, 0, 4, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s24_32"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32); @@ -1106,6 +1205,7 @@ audio_orc_unpack_s24_32 (gint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1212,6 +1312,17 @@ audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, + 4, 4, 12, 4, 4, 14, 4, 8, 0, 0, 0, 14, 4, 0, 0, 0, + 128, 20, 4, 184, 32, 4, 124, 32, 32, 16, 132, 0, 32, 17, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u24_32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u24_32_swap); @@ -1227,6 +1338,7 @@ audio_orc_unpack_u24_32_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1321,6 +1433,16 @@ audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, + 4, 4, 12, 4, 4, 14, 4, 8, 0, 0, 0, 20, 4, 184, 32, 4, + 124, 0, 32, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s24_32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s24_32_swap); @@ -1333,6 +1455,7 @@ audio_orc_unpack_s24_32_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1427,6 +1550,15 @@ audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, 0, + 0, 0, 128, 132, 0, 4, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u32"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32); @@ -1436,6 +1568,7 @@ audio_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1536,6 +1669,16 @@ audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 117, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, + 4, 4, 14, 4, 0, 0, 0, 128, 20, 4, 184, 32, 4, 132, 0, 32, + 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_u32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_u32_swap); @@ -1548,6 +1691,7 @@ audio_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1636,6 +1780,15 @@ audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 51, 50, 11, 4, 4, 12, 4, 4, 112, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s32"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32); @@ -1644,6 +1797,7 @@ audio_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1732,6 +1886,15 @@ audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, + 4, 4, 184, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_s32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_s32_swap); @@ -1740,6 +1903,7 @@ audio_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1836,6 +2000,15 @@ audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 102, 51, 50, 11, 8, 8, 12, 4, 4, 224, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_f32"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32); @@ -1844,6 +2017,7 @@ audio_orc_unpack_f32 (gdouble * ORC_RESTRICT d1, const gfloat * ORC_RESTRICT s1, orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1946,6 +2120,15 @@ audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 102, 51, 50, 95, 115, 119, 97, 112, 11, 8, 8, 12, + 4, 4, 20, 4, 184, 32, 4, 224, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_f32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_f32_swap); @@ -1957,6 +2140,7 @@ audio_orc_unpack_f32_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2045,6 +2229,15 @@ audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 102, 54, 52, 11, 8, 8, 12, 8, 8, 137, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_f64"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64); @@ -2053,6 +2246,7 @@ audio_orc_unpack_f64 (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2141,6 +2335,15 @@ audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 102, 54, 52, 95, 115, 119, 97, 112, 11, 8, 8, 12, + 8, 8, 186, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_unpack_f64_swap"); orc_program_set_backup_function (p, _backup_audio_orc_unpack_f64_swap); @@ -2149,6 +2352,7 @@ audio_orc_unpack_f64_swap (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2261,6 +2465,16 @@ audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 17, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 56, 11, 1, 1, 12, 4, 4, 14, 4, 24, 0, 0, 0, + 14, 4, 0, 0, 0, 128, 20, 4, 20, 2, 132, 32, 4, 17, 126, 32, + 32, 16, 163, 33, 32, 157, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u8"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u8); @@ -2279,6 +2493,7 @@ audio_orc_pack_u8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2379,6 +2594,16 @@ audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 17, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 56, 11, 1, 1, 12, 4, 4, 14, 4, 24, 0, 0, 0, + 20, 4, 20, 2, 125, 32, 4, 16, 163, 33, 32, 157, 0, 33, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s8"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s8); @@ -2394,6 +2619,7 @@ audio_orc_pack_s8 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2500,6 +2726,16 @@ audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 49, 54, 11, 2, 2, 12, 4, 4, 14, 4, 16, 0, 0, + 0, 14, 4, 0, 0, 0, 128, 20, 4, 132, 32, 4, 17, 126, 32, 32, + 16, 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u16"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u16); @@ -2515,6 +2751,7 @@ audio_orc_pack_u16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2609,6 +2846,15 @@ audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 49, 54, 11, 2, 2, 12, 4, 4, 14, 4, 16, 0, 0, + 0, 20, 4, 125, 32, 4, 16, 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s16"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s16); @@ -2621,6 +2867,7 @@ audio_orc_pack_s16 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2733,6 +2980,17 @@ audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 4, 4, + 14, 4, 0, 0, 0, 128, 14, 4, 16, 0, 0, 0, 20, 4, 20, 2, + 132, 32, 4, 16, 126, 32, 32, 17, 163, 33, 32, 183, 0, 33, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u16_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u16_swap); @@ -2751,6 +3009,7 @@ audio_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2851,6 +3110,16 @@ audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 4, 4, + 14, 4, 16, 0, 0, 0, 20, 4, 20, 2, 125, 32, 4, 16, 163, 33, + 32, 183, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s16_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s16_swap); @@ -2866,6 +3135,7 @@ audio_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2966,6 +3236,16 @@ audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, + 0, 0, 0, 128, 14, 4, 8, 0, 0, 0, 20, 4, 132, 32, 4, 16, + 126, 0, 32, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u24_32"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32); @@ -2979,6 +3259,7 @@ audio_orc_pack_u24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3067,6 +3348,15 @@ audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 50, 52, 95, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, + 8, 0, 0, 0, 125, 0, 4, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s24_32"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32); @@ -3076,6 +3366,7 @@ audio_orc_pack_s24_32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3182,6 +3473,16 @@ audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, + 12, 4, 4, 14, 4, 0, 0, 0, 128, 14, 4, 8, 0, 0, 0, 20, + 4, 132, 32, 4, 16, 126, 32, 32, 17, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u24_32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u24_32_swap); @@ -3197,6 +3498,7 @@ audio_orc_pack_u24_32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3291,6 +3593,16 @@ audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 50, 52, 95, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, + 12, 4, 4, 14, 4, 8, 0, 0, 0, 20, 4, 125, 32, 4, 16, 184, + 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s24_32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s24_32_swap); @@ -3303,6 +3615,7 @@ audio_orc_pack_s24_32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3397,6 +3710,15 @@ audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, + 128, 132, 0, 4, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u32"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u32); @@ -3406,6 +3728,7 @@ audio_orc_pack_u32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3494,6 +3817,15 @@ audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 51, 50, 11, 4, 4, 12, 4, 4, 112, 0, 4, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s32"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s32); @@ -3502,6 +3834,7 @@ audio_orc_pack_s32 (guint8 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3596,6 +3929,15 @@ audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 117, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, + 14, 4, 0, 0, 0, 128, 132, 0, 4, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_u32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_u32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_u32_swap); @@ -3605,6 +3947,7 @@ audio_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3693,6 +4036,15 @@ audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, + 184, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_s32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_s32_swap); @@ -3701,6 +4053,7 @@ audio_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3801,6 +4154,15 @@ audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 102, 51, 50, 11, 4, 4, 12, 8, 8, 225, 0, 4, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_f32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_f32"); orc_program_set_backup_function (p, _backup_audio_orc_pack_f32); @@ -3809,6 +4171,7 @@ audio_orc_pack_f32 (gfloat * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3915,6 +4278,15 @@ audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 102, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, 8, + 20, 4, 225, 32, 4, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_f32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_f32_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_f32_swap); @@ -3926,6 +4298,7 @@ audio_orc_pack_f32_swap (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4014,6 +4387,15 @@ audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 102, 54, 52, 11, 8, 8, 12, 8, 8, 137, 0, 4, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_f64); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_f64"); orc_program_set_backup_function (p, _backup_audio_orc_pack_f64); @@ -4022,6 +4404,7 @@ audio_orc_pack_f64 (gdouble * ORC_RESTRICT d1, const gdouble * ORC_RESTRICT s1, orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4110,6 +4493,15 @@ audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 97, 117, 100, 105, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 102, 54, 52, 95, 115, 119, 97, 112, 11, 8, 8, 12, 8, 8, + 186, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_orc_pack_f64_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_orc_pack_f64_swap"); orc_program_set_backup_function (p, _backup_audio_orc_pack_f64_swap); @@ -4118,6 +4510,7 @@ audio_orc_pack_f64_swap (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst-libs/gst/audio/gstaudiopack-dist.h b/gst-libs/gst/audio/gstaudiopack-dist.h index bffb15f82..dc569c83c 100644 --- a/gst-libs/gst/audio/gstaudiopack-dist.h +++ b/gst-libs/gst/audio/gstaudiopack-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 audio_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); void audio_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); void audio_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); diff --git a/gst-libs/gst/video/video-orc-dist.c b/gst-libs/gst/video/video-orc-dist.c index 725323aa4..4caca4d79 100644 --- a/gst-libs/gst/video/video-orc-dist.c +++ b/gst-libs/gst/video/video-orc-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 @@ -422,6 +435,21 @@ video_orc_blend_little (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 22, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 98, 108, 101, + 110, 100, 95, 108, 105, 116, 116, 108, 101, 11, 4, 4, 12, 4, 4, 14, + 4, 255, 0, 0, 0, 14, 4, 8, 0, 0, 0, 20, 4, 20, 2, 20, + 1, 20, 4, 20, 8, 20, 8, 20, 8, 113, 32, 4, 163, 33, 32, 157, + 34, 33, 152, 35, 34, 21, 2, 150, 38, 35, 21, 2, 95, 38, 38, 17, + 21, 2, 150, 37, 32, 113, 32, 0, 21, 2, 150, 36, 32, 21, 2, 98, + 37, 37, 36, 21, 2, 89, 37, 37, 38, 21, 2, 80, 37, 37, 21, 2, + 70, 36, 36, 37, 21, 2, 157, 32, 36, 123, 32, 32, 16, 128, 0, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_blend_little); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_blend_little"); orc_program_set_backup_function (p, _backup_video_orc_blend_little); @@ -469,6 +497,7 @@ video_orc_blend_little (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -721,6 +750,21 @@ video_orc_blend_big (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 98, 108, 101, + 110, 100, 95, 98, 105, 103, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, + 0, 255, 14, 4, 24, 0, 0, 0, 14, 4, 8, 0, 0, 0, 20, 4, + 20, 4, 20, 2, 20, 1, 20, 4, 20, 8, 20, 8, 20, 8, 113, 32, + 4, 126, 33, 32, 17, 163, 34, 33, 157, 35, 34, 152, 36, 35, 21, 2, + 150, 39, 36, 21, 2, 95, 39, 39, 18, 21, 2, 150, 38, 32, 113, 32, + 0, 21, 2, 150, 37, 32, 21, 2, 98, 38, 38, 37, 21, 2, 89, 38, + 38, 39, 21, 2, 80, 38, 38, 21, 2, 70, 37, 37, 38, 21, 2, 157, + 32, 37, 123, 32, 32, 16, 128, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_blend_big); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_blend_big"); orc_program_set_backup_function (p, _backup_video_orc_blend_big); @@ -772,6 +816,7 @@ video_orc_blend_big (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -928,6 +973,17 @@ video_orc_unpack_I420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 73, 52, 50, 48, 11, 4, 4, 12, 1, 1, 12, 1, + 1, 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 2, 20, 1, + 20, 1, 45, 34, 5, 45, 35, 6, 196, 32, 34, 35, 196, 33, 16, 4, + 195, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_I420"); orc_program_set_backup_function (p, _backup_video_orc_unpack_I420); @@ -951,6 +1007,7 @@ video_orc_unpack_I420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1183,6 +1240,18 @@ video_orc_pack_I420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 73, 52, 50, 48, 11, 2, 2, 11, 1, 1, 11, 1, 1, 12, + 8, 8, 20, 4, 20, 4, 20, 2, 20, 2, 20, 1, 20, 1, 21, 1, + 198, 33, 32, 4, 21, 1, 189, 0, 32, 21, 1, 199, 35, 34, 33, 199, + 36, 37, 34, 39, 1, 36, 37, 199, 36, 37, 35, 39, 2, 36, 37, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_I420"); orc_program_set_backup_function (p, _backup_video_orc_pack_I420); @@ -1211,6 +1280,7 @@ video_orc_pack_I420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D3, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1405,6 +1475,17 @@ video_orc_unpack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 89, 85, 89, 50, 11, 8, 8, 12, 4, 4, 14, 2, + 255, 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 21, 1, 199, 33, + 32, 4, 21, 1, 196, 34, 16, 32, 195, 35, 33, 33, 21, 1, 195, 0, + 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_YUY2); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_YUY2"); orc_program_set_backup_function (p, _backup_video_orc_unpack_YUY2); @@ -1424,6 +1505,7 @@ video_orc_unpack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1614,6 +1696,17 @@ video_orc_pack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 89, 85, 89, 50, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, + 20, 2, 20, 4, 20, 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, + 21, 1, 39, 33, 33, 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, 32, + 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_YUY2); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_YUY2"); orc_program_set_backup_function (p, _backup_video_orc_pack_YUY2); @@ -1635,6 +1728,7 @@ video_orc_pack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1825,6 +1919,17 @@ video_orc_pack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 85, 89, 86, 89, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, + 20, 2, 20, 4, 20, 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, + 21, 1, 39, 33, 33, 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, 33, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_UYVY); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_UYVY"); orc_program_set_backup_function (p, _backup_video_orc_pack_UYVY); @@ -1846,6 +1951,7 @@ video_orc_pack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2038,6 +2144,17 @@ video_orc_unpack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 85, 89, 86, 89, 11, 8, 8, 12, 4, 4, 14, 2, + 255, 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 21, 1, 199, 32, + 33, 4, 21, 1, 196, 34, 16, 32, 195, 35, 33, 33, 21, 1, 195, 0, + 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_UYVY); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_UYVY"); orc_program_set_backup_function (p, _backup_video_orc_unpack_UYVY); @@ -2057,6 +2174,7 @@ video_orc_unpack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2255,6 +2373,17 @@ video_orc_unpack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 89, 86, 89, 85, 11, 8, 8, 12, 4, 4, 14, 2, + 255, 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 21, 1, 199, 33, + 32, 4, 183, 33, 33, 21, 1, 196, 34, 16, 32, 195, 35, 33, 33, 21, + 1, 195, 0, 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_YVYU); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_YVYU"); orc_program_set_backup_function (p, _backup_video_orc_unpack_YVYU); @@ -2276,6 +2405,7 @@ video_orc_unpack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2472,6 +2602,17 @@ video_orc_pack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 89, 86, 89, 85, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, + 20, 2, 20, 4, 20, 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, + 21, 1, 39, 33, 33, 34, 21, 1, 189, 32, 35, 183, 33, 33, 21, 1, + 196, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_YVYU); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_YVYU"); orc_program_set_backup_function (p, _backup_video_orc_pack_YVYU); @@ -2495,6 +2636,7 @@ video_orc_pack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2693,6 +2835,18 @@ video_orc_unpack_YUV9 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 89, 85, 86, 57, 11, 8, 8, 12, 2, 2, 12, 1, + 1, 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 4, 20, 4, + 20, 1, 20, 1, 45, 35, 5, 45, 36, 6, 196, 32, 35, 36, 195, 34, + 32, 32, 21, 1, 196, 33, 16, 4, 21, 1, 195, 0, 33, 34, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_YUV9); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_YUV9"); orc_program_set_backup_function (p, _backup_video_orc_unpack_YUV9); @@ -2719,6 +2873,7 @@ video_orc_unpack_YUV9 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2919,6 +3074,17 @@ video_orc_unpack_Y42B (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 89, 52, 50, 66, 11, 8, 8, 12, 2, 2, 12, 1, + 1, 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 2, 20, 4, + 20, 4, 196, 32, 5, 6, 21, 1, 196, 35, 16, 4, 195, 34, 32, 32, + 21, 1, 195, 0, 35, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_Y42B); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_Y42B"); orc_program_set_backup_function (p, _backup_video_orc_unpack_Y42B); @@ -2940,6 +3106,7 @@ video_orc_unpack_Y42B (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3138,6 +3305,17 @@ video_orc_pack_Y42B (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 89, 52, 50, 66, 11, 2, 2, 11, 1, 1, 11, 1, 1, 12, + 8, 8, 20, 4, 20, 4, 20, 2, 20, 2, 21, 1, 198, 33, 32, 4, + 198, 34, 35, 33, 21, 1, 39, 34, 34, 35, 199, 2, 1, 34, 21, 1, + 189, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_Y42B); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_Y42B"); orc_program_set_backup_function (p, _backup_video_orc_pack_Y42B); @@ -3160,6 +3338,7 @@ video_orc_pack_Y42B (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3318,6 +3497,16 @@ video_orc_unpack_Y444 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 89, 52, 52, 52, 11, 4, 4, 12, 1, 1, 12, 1, + 1, 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 2, 196, 32, + 5, 6, 196, 33, 16, 4, 195, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_Y444); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_Y444"); orc_program_set_backup_function (p, _backup_video_orc_unpack_Y444); @@ -3335,6 +3524,7 @@ video_orc_unpack_Y444 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3485,6 +3675,16 @@ video_orc_pack_Y444 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 89, 52, 52, 52, 11, 1, 1, 11, 1, 1, 11, 1, 1, 12, + 4, 4, 20, 2, 20, 2, 198, 33, 32, 4, 199, 2, 1, 33, 189, 0, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_Y444); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_Y444"); orc_program_set_backup_function (p, _backup_video_orc_pack_Y444); @@ -3501,6 +3701,7 @@ video_orc_pack_Y444 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3629,6 +3830,16 @@ video_orc_unpack_GRAY8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 22, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 71, 82, 65, 89, 56, 11, 4, 4, 12, 1, 1, 14, + 1, 255, 0, 0, 0, 14, 2, 128, 128, 0, 0, 20, 2, 196, 32, 16, + 4, 195, 0, 32, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_GRAY8); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_GRAY8"); orc_program_set_backup_function (p, _backup_video_orc_unpack_GRAY8); @@ -3642,6 +3853,7 @@ video_orc_unpack_GRAY8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3752,6 +3964,15 @@ video_orc_pack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 71, 82, 65, 89, 56, 11, 1, 1, 12, 4, 4, 20, 2, 190, + 32, 4, 189, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_GRAY8); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_GRAY8"); orc_program_set_backup_function (p, _backup_video_orc_pack_GRAY8); @@ -3763,6 +3984,7 @@ video_orc_pack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3851,6 +4073,15 @@ video_orc_unpack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 66, 71, 82, 65, 11, 4, 4, 12, 4, 4, 184, 0, + 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_BGRA); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_BGRA"); orc_program_set_backup_function (p, _backup_video_orc_unpack_BGRA); @@ -3859,6 +4090,7 @@ video_orc_unpack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3947,6 +4179,15 @@ video_orc_pack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 66, 71, 82, 65, 11, 4, 4, 12, 4, 4, 184, 0, 4, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_BGRA); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_BGRA"); orc_program_set_backup_function (p, _backup_video_orc_pack_BGRA); @@ -3955,6 +4196,7 @@ video_orc_pack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4139,6 +4381,17 @@ video_orc_pack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 82, 71, 66, 65, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, + 20, 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 198, 39, 38, 4, + 199, 35, 34, 39, 199, 33, 32, 38, 196, 37, 35, 32, 196, 36, 33, 34, + 195, 0, 36, 37, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_RGBA); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_RGBA"); orc_program_set_backup_function (p, _backup_video_orc_pack_RGBA); @@ -4165,6 +4418,7 @@ video_orc_pack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4349,6 +4603,17 @@ video_orc_unpack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 82, 71, 66, 65, 11, 4, 4, 12, 4, 4, 20, 1, + 20, 1, 20, 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 198, 37, + 36, 4, 199, 34, 33, 36, 199, 32, 35, 37, 196, 38, 32, 33, 196, 39, + 34, 35, 195, 0, 38, 39, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_RGBA); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_RGBA"); orc_program_set_backup_function (p, _backup_video_orc_unpack_RGBA); @@ -4375,6 +4640,7 @@ video_orc_unpack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4559,6 +4825,17 @@ video_orc_unpack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 65, 66, 71, 82, 11, 4, 4, 12, 4, 4, 20, 1, + 20, 1, 20, 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 198, 36, + 37, 4, 199, 33, 34, 36, 199, 35, 32, 37, 196, 38, 32, 33, 196, 39, + 34, 35, 195, 0, 38, 39, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_ABGR); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_ABGR"); orc_program_set_backup_function (p, _backup_video_orc_unpack_ABGR); @@ -4585,6 +4862,7 @@ video_orc_unpack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4769,6 +5047,17 @@ video_orc_pack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 65, 66, 71, 82, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, + 20, 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 198, 39, 38, 4, + 199, 35, 34, 39, 199, 33, 32, 38, 196, 37, 32, 35, 196, 36, 34, 33, + 195, 0, 37, 36, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_ABGR); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_ABGR"); orc_program_set_backup_function (p, _backup_video_orc_pack_ABGR); @@ -4795,6 +5084,7 @@ video_orc_pack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T6, ORC_VAR_T5, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4973,6 +5263,16 @@ video_orc_unpack_NV12 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 78, 86, 49, 50, 11, 8, 8, 12, 2, 2, 12, 2, + 2, 14, 1, 255, 0, 0, 0, 20, 4, 20, 4, 195, 33, 5, 5, 21, + 1, 196, 32, 16, 4, 21, 1, 195, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_NV12); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_NV12"); orc_program_set_backup_function (p, _backup_video_orc_unpack_NV12); @@ -4989,6 +5289,7 @@ video_orc_unpack_NV12 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, 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); @@ -5160,6 +5461,16 @@ video_orc_pack_NV12 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 78, 86, 49, 50, 11, 2, 2, 11, 2, 2, 12, 8, 8, 20, + 4, 20, 4, 20, 2, 20, 2, 21, 1, 198, 33, 32, 4, 21, 1, 189, + 0, 32, 198, 34, 35, 33, 21, 1, 39, 1, 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_NV12); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_NV12"); orc_program_set_backup_function (p, _backup_video_orc_pack_NV12); @@ -5179,6 +5490,7 @@ video_orc_pack_NV12 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 1, ORC_VAR_D2, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5358,6 +5670,17 @@ video_orc_unpack_NV21 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 78, 86, 50, 49, 11, 8, 8, 12, 2, 2, 12, 2, + 2, 14, 1, 255, 0, 0, 0, 20, 2, 20, 4, 20, 4, 183, 32, 5, + 195, 34, 32, 32, 21, 1, 196, 33, 16, 4, 21, 1, 195, 0, 33, 34, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_NV21); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_NV21"); orc_program_set_backup_function (p, _backup_video_orc_unpack_NV21); @@ -5377,6 +5700,7 @@ video_orc_unpack_NV21 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5554,6 +5878,17 @@ video_orc_pack_NV21 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 78, 86, 50, 49, 11, 2, 2, 11, 2, 2, 12, 8, 8, 20, + 4, 20, 4, 20, 2, 20, 2, 20, 2, 21, 1, 198, 33, 32, 4, 21, + 1, 189, 0, 32, 198, 34, 35, 33, 21, 1, 39, 36, 34, 35, 183, 1, + 36, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_NV21); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_NV21"); orc_program_set_backup_function (p, _backup_video_orc_pack_NV21); @@ -5576,6 +5911,7 @@ video_orc_pack_NV21 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D2, ORC_VAR_T5, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5739,6 +6075,17 @@ video_orc_unpack_A420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 117, 110, 112, + 97, 99, 107, 95, 65, 52, 50, 48, 11, 4, 4, 12, 1, 1, 12, 1, + 1, 12, 1, 1, 12, 1, 1, 20, 2, 20, 2, 20, 1, 20, 1, 45, + 34, 5, 45, 35, 6, 196, 32, 34, 35, 196, 33, 7, 4, 195, 0, 33, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_unpack_A420); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_unpack_A420"); orc_program_set_backup_function (p, _backup_video_orc_unpack_A420); @@ -5762,6 +6109,7 @@ video_orc_unpack_A420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6029,6 +6377,18 @@ video_orc_pack_A420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 112, 97, 99, + 107, 95, 65, 52, 50, 48, 11, 2, 2, 11, 1, 1, 11, 1, 1, 11, + 2, 2, 12, 8, 8, 20, 4, 20, 4, 20, 2, 20, 2, 20, 1, 20, + 1, 21, 1, 198, 33, 32, 4, 21, 1, 189, 0, 32, 21, 1, 188, 3, + 32, 21, 1, 199, 35, 34, 33, 199, 36, 37, 34, 39, 1, 36, 37, 199, + 36, 37, 35, 39, 2, 36, 37, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_pack_A420); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_pack_A420"); orc_program_set_backup_function (p, _backup_video_orc_pack_A420); @@ -6060,6 +6420,7 @@ video_orc_pack_A420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D3, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6177,6 +6538,18 @@ video_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 114, 101, 115, + 97, 109, 112, 108, 101, 95, 98, 105, 108, 105, 110, 101, 97, 114, 95, + 117, + 51, 50, 11, 4, 4, 12, 4, 4, 16, 4, 16, 4, 51, 0, 4, 24, + 25, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_orc_resample_bilinear_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_resample_bilinear_u32"); orc_program_set_backup_function (p, @@ -6188,6 +6561,7 @@ video_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldreslinl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6344,6 +6718,18 @@ video_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 118, 105, 100, 101, 111, 95, 111, 114, 99, 95, 109, 101, 114, + 103, 101, 95, 108, 105, 110, 101, 97, 114, 95, 117, 56, 11, 1, 1, 12, + 1, 1, 12, 1, 1, 14, 4, 128, 0, 0, 0, 16, 1, 20, 2, 20, + 2, 20, 1, 20, 1, 43, 34, 4, 150, 32, 4, 150, 33, 5, 98, 33, + 33, 32, 89, 33, 33, 24, 70, 33, 33, 16, 158, 35, 33, 33, 0, 35, + 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_orc_merge_linear_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_orc_merge_linear_u8"); orc_program_set_backup_function (p, _backup_video_orc_merge_linear_u8); @@ -6373,6 +6759,7 @@ video_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "addb", 0, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst-libs/gst/video/video-orc-dist.h b/gst-libs/gst/video/video-orc-dist.h index e481399b5..cb4ecb8f8 100644 --- a/gst-libs/gst/video/video-orc-dist.h +++ b/gst-libs/gst/video/video-orc-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 video_orc_blend_little (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); void video_orc_blend_big (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n); void video_orc_unpack_I420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n); diff --git a/gst/adder/gstadderorc-dist.c b/gst/adder/gstadderorc-dist.c index 6ebf7067a..cd473fe27 100644 --- a/gst/adder/gstadderorc-dist.c +++ b/gst/adder/gstadderorc-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 @@ -215,6 +228,15 @@ adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 105, 110, 116, 51, 50, 11, 4, 4, 12, 4, 4, 104, 0, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_int32); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_int32"); orc_program_set_backup_function (p, _backup_adder_orc_add_int32); @@ -223,6 +245,7 @@ adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, orc_program_append_2 (p, "addssl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -317,6 +340,15 @@ adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 105, 110, 116, 49, 54, 11, 2, 2, 12, 2, 2, 71, 0, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_int16); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_int16"); orc_program_set_backup_function (p, _backup_adder_orc_add_int16); @@ -325,6 +357,7 @@ adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, orc_program_append_2 (p, "addssw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -419,6 +452,15 @@ adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 18, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 105, 110, 116, 56, 11, 1, 1, 12, 1, 1, 34, 0, 0, 4, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_int8); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_int8"); orc_program_set_backup_function (p, _backup_adder_orc_add_int8); @@ -427,6 +469,7 @@ adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "addssb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -525,6 +568,15 @@ adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 117, 105, 110, 116, 51, 50, 11, 4, 4, 12, 4, 4, 105, 0, 0, + 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint32); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_uint32"); orc_program_set_backup_function (p, _backup_adder_orc_add_uint32); @@ -533,6 +585,7 @@ adder_orc_add_uint32 (guint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "addusl", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -627,6 +680,15 @@ adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 20, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 117, 105, 110, 116, 49, 54, 11, 2, 2, 12, 2, 2, 72, 0, 0, + 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint16); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_uint16"); orc_program_set_backup_function (p, _backup_adder_orc_add_uint16); @@ -635,6 +697,7 @@ adder_orc_add_uint16 (guint16 * ORC_RESTRICT d1, orc_program_append_2 (p, "addusw", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -729,6 +792,15 @@ adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 19, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 117, 105, 110, 116, 56, 11, 1, 1, 12, 1, 1, 35, 0, 0, 4, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_uint8); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_uint8"); orc_program_set_backup_function (p, _backup_adder_orc_add_uint8); @@ -737,6 +809,7 @@ adder_orc_add_uint8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "addusb", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -847,6 +920,15 @@ adder_orc_add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 97, 100, 100, 101, 114, 95, 111, 114, 99, 95, 97, 100, 100, + 95, 102, 108, 111, 97, 116, 51, 50, 11, 4, 4, 12, 4, 4, 200, 0, + 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_adder_orc_add_float32); +#else p = orc_program_new (); orc_program_set_name (p, "adder_orc_add_float32"); orc_program_set_backup_function (p, _backup_adder_orc_add_float32); @@ -855,6 +937,7 @@ adder_orc_add_float32 (float *ORC_RESTRICT d1, const float *ORC_RESTRICT s1, orc_program_append_2 (p, "addf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/adder/gstadderorc-dist.h b/gst/adder/gstadderorc-dist.h index 3c8a3853b..0a9cbc4b2 100644 --- a/gst/adder/gstadderorc-dist.h +++ b/gst/adder/gstadderorc-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 adder_orc_add_int32 (gint32 * ORC_RESTRICT d1, const gint32 * ORC_RESTRICT s1, int n); void adder_orc_add_int16 (gint16 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n); void adder_orc_add_int8 (gint8 * ORC_RESTRICT d1, const gint8 * ORC_RESTRICT s1, int n); diff --git a/gst/audioconvert/gstaudioconvertorc-dist.c b/gst/audioconvert/gstaudioconvertorc-dist.c index e7622278b..5fe009f27 100644 --- a/gst/audioconvert/gstaudioconvertorc-dist.c +++ b/gst/audioconvert/gstaudioconvertorc-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 @@ -327,6 +340,17 @@ audio_convert_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 27, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 56, 11, 4, + 4, 12, 1, 1, 14, 4, 0, 0, 0, 128, 16, 4, 20, 2, 20, 4, + 150, 32, 4, 154, 33, 32, 124, 33, 33, 24, 132, 0, 33, 16, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u8"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u8); @@ -345,6 +369,7 @@ audio_convert_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -446,6 +471,16 @@ audio_convert_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 27, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 56, 11, 4, + 4, 12, 1, 1, 16, 4, 20, 2, 20, 4, 150, 32, 4, 154, 33, 32, + 124, 0, 33, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s8"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s8); @@ -461,6 +496,7 @@ audio_convert_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -568,6 +604,16 @@ audio_convert_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 49, 54, 11, + 4, 4, 12, 2, 2, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 154, + 32, 4, 124, 32, 32, 24, 132, 0, 32, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u16"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u16); @@ -583,6 +629,7 @@ audio_convert_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -678,6 +725,16 @@ audio_convert_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 49, 54, 11, + 4, 4, 12, 2, 2, 16, 4, 20, 4, 154, 32, 4, 124, 0, 32, 24, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s16"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s16); @@ -690,6 +747,7 @@ audio_convert_orc_unpack_s16 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -803,6 +861,18 @@ audio_convert_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 49, 54, 95, + 115, 119, 97, 112, 11, 4, 4, 12, 2, 2, 14, 4, 0, 0, 0, 128, + 16, 4, 20, 2, 20, 4, 183, 32, 4, 154, 33, 32, 124, 33, 33, 24, + 132, 0, 33, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u16_swap"); orc_program_set_backup_function (p, @@ -822,6 +892,7 @@ audio_convert_orc_unpack_u16_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -923,6 +994,17 @@ audio_convert_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 49, 54, 95, + 115, 119, 97, 112, 11, 4, 4, 12, 2, 2, 16, 4, 20, 2, 20, 4, + 183, 32, 4, 154, 33, 32, 124, 0, 33, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s16_swap"); orc_program_set_backup_function (p, @@ -939,6 +1021,7 @@ audio_convert_orc_unpack_s16_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1040,6 +1123,16 @@ audio_convert_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 51, 50, 11, + 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 124, + 32, 4, 24, 132, 0, 32, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u32"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_u32); @@ -1053,6 +1146,7 @@ audio_convert_orc_unpack_u32 (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1142,6 +1236,15 @@ audio_convert_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 51, 50, 11, + 4, 4, 12, 4, 4, 16, 4, 124, 0, 4, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s32"); orc_program_set_backup_function (p, _backup_audio_convert_orc_unpack_s32); @@ -1151,6 +1254,7 @@ audio_convert_orc_unpack_s32 (gint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1258,6 +1362,18 @@ audio_convert_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 51, 50, 95, + 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, 128, + 16, 4, 20, 4, 184, 32, 4, 124, 32, 32, 24, 132, 0, 32, 16, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u32_swap"); orc_program_set_backup_function (p, @@ -1274,6 +1390,7 @@ audio_convert_orc_unpack_u32_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "xorl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1369,6 +1486,17 @@ audio_convert_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 51, 50, 95, + 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, 16, 4, 20, 4, 184, 32, + 4, 124, 0, 32, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s32_swap"); orc_program_set_backup_function (p, @@ -1382,6 +1510,7 @@ audio_convert_orc_unpack_s32_swap (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shll", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1539,6 +1668,18 @@ audio_convert_orc_unpack_float_s32 (guint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 34, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 102, 108, 111, 97, + 116, 95, 115, 51, 50, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, + 79, 14, 4, 0, 0, 0, 63, 20, 4, 113, 32, 4, 202, 32, 32, 16, + 200, 32, 32, 17, 210, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_float_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_float_s32"); orc_program_set_backup_function (p, @@ -1557,6 +1698,7 @@ audio_convert_orc_unpack_float_s32 (guint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1719,6 +1861,18 @@ audio_convert_orc_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 39, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 102, 108, 111, 97, + 116, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, + 14, 4, 0, 0, 0, 79, 14, 4, 0, 0, 0, 63, 20, 4, 184, 32, + 4, 202, 32, 32, 16, 200, 32, 32, 17, 210, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_float_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_float_s32_swap"); orc_program_set_backup_function (p, @@ -1737,6 +1891,7 @@ audio_convert_orc_unpack_float_s32_swap (guint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convfl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1893,6 +2048,19 @@ audio_convert_orc_unpack_double_s32 (guint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 100, 111, 117, 98, + 108, 101, 95, 115, 51, 50, 11, 4, 4, 12, 8, 8, 15, 8, 0, 0, + 192, 255, 255, 255, 223, 65, 15, 8, 0, 0, 0, 0, 0, 0, 224, 63, + 20, 8, 133, 32, 4, 214, 32, 32, 16, 212, 32, 32, 17, 222, 0, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_double_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_double_s32"); orc_program_set_backup_function (p, @@ -1911,6 +2079,7 @@ audio_convert_orc_unpack_double_s32 (guint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2073,6 +2242,19 @@ audio_convert_orc_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 100, 111, 117, 98, + 108, 101, 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, + 8, 15, 8, 0, 0, 192, 255, 255, 255, 223, 65, 15, 8, 0, 0, 0, + 0, 0, 0, 224, 63, 20, 8, 186, 32, 4, 214, 32, 32, 16, 212, 32, + 32, 17, 222, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_double_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_double_s32_swap"); orc_program_set_backup_function (p, @@ -2091,6 +2273,7 @@ audio_convert_orc_unpack_double_s32_swap (guint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2187,6 +2370,17 @@ audio_convert_orc_unpack_float_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 102, 108, 111, 97, + 116, 95, 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 4, 4, 224, 0, + 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_float_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_float_double"); orc_program_set_backup_function (p, @@ -2196,6 +2390,7 @@ audio_convert_orc_unpack_float_double (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2299,6 +2494,17 @@ audio_convert_orc_unpack_float_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 42, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 102, 108, 111, 97, + 116, 95, 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, + 12, 4, 4, 20, 4, 184, 32, 4, 224, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_float_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_float_double_swap"); orc_program_set_backup_function (p, @@ -2311,6 +2517,7 @@ audio_convert_orc_unpack_float_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convfd", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2399,6 +2606,17 @@ audio_convert_orc_unpack_double_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 100, 111, 117, 98, + 108, 101, 95, 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 8, 8, 137, + 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_double_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_double_double"); orc_program_set_backup_function (p, @@ -2408,6 +2626,7 @@ audio_convert_orc_unpack_double_double (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2497,6 +2716,17 @@ audio_convert_orc_unpack_double_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 43, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 100, 111, 117, 98, + 108, 101, 95, 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, + 8, 12, 8, 8, 186, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_double_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_double_double_swap"); orc_program_set_backup_function (p, @@ -2506,6 +2736,7 @@ audio_convert_orc_unpack_double_double_swap (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2624,6 +2855,18 @@ audio_convert_orc_unpack_u8_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 34, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 56, 95, 100, + 111, 117, 98, 108, 101, 11, 8, 8, 12, 1, 1, 14, 4, 0, 0, 0, + 128, 16, 4, 20, 2, 20, 4, 150, 32, 4, 154, 33, 32, 124, 33, 33, + 24, 132, 33, 33, 16, 223, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u8_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u8_double"); orc_program_set_backup_function (p, @@ -2645,6 +2888,7 @@ audio_convert_orc_unpack_u8_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2752,6 +2996,18 @@ audio_convert_orc_unpack_s8_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 34, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 56, 95, 100, + 111, 117, 98, 108, 101, 11, 8, 8, 12, 1, 1, 16, 4, 20, 2, 20, + 4, 150, 32, 4, 154, 33, 32, 124, 33, 33, 24, 223, 0, 33, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s8_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s8_double"); orc_program_set_backup_function (p, @@ -2770,6 +3026,7 @@ audio_convert_orc_unpack_s8_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2883,6 +3140,18 @@ audio_convert_orc_unpack_u16_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 49, 54, 95, + 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 2, 2, 14, 4, 0, 0, + 0, 128, 16, 4, 20, 4, 154, 32, 4, 124, 32, 32, 24, 132, 32, 32, + 16, 223, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u16_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u16_double"); orc_program_set_backup_function (p, @@ -2901,6 +3170,7 @@ audio_convert_orc_unpack_u16_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3002,6 +3272,17 @@ audio_convert_orc_unpack_s16_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 49, 54, 95, + 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 2, 2, 16, 4, 20, 4, + 154, 32, 4, 124, 32, 32, 24, 223, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s16_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s16_double"); orc_program_set_backup_function (p, @@ -3017,6 +3298,7 @@ audio_convert_orc_unpack_s16_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3136,6 +3418,19 @@ audio_convert_orc_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 49, 54, 95, + 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, 12, 2, + 2, 14, 4, 0, 0, 0, 128, 16, 4, 20, 2, 20, 4, 183, 32, 4, + 154, 33, 32, 124, 33, 33, 24, 132, 33, 33, 16, 223, 0, 33, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u16_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u16_double_swap"); orc_program_set_backup_function (p, @@ -3157,6 +3452,7 @@ audio_convert_orc_unpack_u16_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3264,6 +3560,18 @@ audio_convert_orc_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 49, 54, 95, + 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, 12, 2, + 2, 16, 4, 20, 2, 20, 4, 183, 32, 4, 154, 33, 32, 124, 33, 33, + 24, 223, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s16_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s16_double_swap"); orc_program_set_backup_function (p, @@ -3282,6 +3590,7 @@ audio_convert_orc_unpack_s16_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3389,6 +3698,18 @@ audio_convert_orc_unpack_u32_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 51, 50, 95, + 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 4, 4, 14, 4, 0, 0, + 0, 128, 16, 4, 20, 4, 124, 32, 4, 24, 132, 32, 32, 16, 223, 0, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u32_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u32_double"); orc_program_set_backup_function (p, @@ -3405,6 +3726,7 @@ audio_convert_orc_unpack_u32_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3500,6 +3822,17 @@ audio_convert_orc_unpack_s32_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 51, 50, 95, + 100, 111, 117, 98, 108, 101, 11, 8, 8, 12, 4, 4, 16, 4, 20, 4, + 124, 32, 4, 24, 223, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s32_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s32_double"); orc_program_set_backup_function (p, @@ -3513,6 +3846,7 @@ audio_convert_orc_unpack_s32_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3626,6 +3960,18 @@ audio_convert_orc_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 117, 51, 50, 95, + 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, 12, 4, + 4, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 184, 32, 4, 124, 32, + 32, 24, 132, 32, 32, 16, 223, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_u32_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_u32_double_swap"); orc_program_set_backup_function (p, @@ -3644,6 +3990,7 @@ audio_convert_orc_unpack_u32_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3745,6 +4092,18 @@ audio_convert_orc_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 117, 110, 112, 97, 99, 107, 95, 115, 51, 50, 95, + 100, 111, 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, 12, 4, + 4, 16, 4, 20, 4, 184, 32, 4, 124, 32, 32, 24, 223, 0, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_unpack_s32_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_unpack_s32_double_swap"); orc_program_set_backup_function (p, @@ -3760,6 +4119,7 @@ audio_convert_orc_unpack_s32_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convld", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3873,6 +4233,16 @@ audio_convert_orc_pack_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 117, 56, 11, 1, 1, 12, + 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 20, 2, 132, 32, + 4, 16, 126, 32, 32, 24, 163, 33, 32, 157, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_u8"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u8); @@ -3891,6 +4261,7 @@ audio_convert_orc_pack_u8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3992,6 +4363,16 @@ audio_convert_orc_pack_s8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 56, 11, 1, 1, 12, + 4, 4, 16, 4, 20, 4, 20, 2, 125, 32, 4, 24, 163, 33, 32, 157, + 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s8"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s8); @@ -4007,6 +4388,7 @@ audio_convert_orc_pack_s8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4114,6 +4496,16 @@ audio_convert_orc_pack_u16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 117, 49, 54, 11, 2, 2, + 12, 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 132, 32, 4, + 16, 126, 32, 32, 24, 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_u16"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u16); @@ -4129,6 +4521,7 @@ audio_convert_orc_pack_u16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4224,6 +4617,16 @@ audio_convert_orc_pack_s16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 49, 54, 11, 2, 2, + 12, 4, 4, 16, 4, 20, 4, 125, 32, 4, 24, 163, 0, 32, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s16"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s16); @@ -4236,6 +4639,7 @@ audio_convert_orc_pack_s16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4349,6 +4753,18 @@ audio_convert_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 117, 49, 54, 95, 115, 119, + 97, 112, 11, 2, 2, 12, 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, + 20, 4, 20, 2, 132, 32, 4, 16, 126, 32, 32, 24, 163, 33, 32, 183, + 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_u16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_u16_swap"); orc_program_set_backup_function (p, @@ -4368,6 +4784,7 @@ audio_convert_orc_pack_u16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4469,6 +4886,17 @@ audio_convert_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 49, 54, 95, 115, 119, + 97, 112, 11, 2, 2, 12, 4, 4, 16, 4, 20, 4, 20, 2, 125, 32, + 4, 24, 163, 33, 32, 183, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s16_swap"); orc_program_set_backup_function (p, @@ -4485,6 +4913,7 @@ audio_convert_orc_pack_s16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4586,6 +5015,16 @@ audio_convert_orc_pack_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 117, 51, 50, 11, 4, 4, + 12, 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, 20, 4, 132, 32, 4, + 16, 126, 0, 32, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_u32"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_u32); @@ -4599,6 +5038,7 @@ audio_convert_orc_pack_u32 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4688,6 +5128,15 @@ audio_convert_orc_pack_s32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 11, 4, 4, + 12, 4, 4, 16, 4, 125, 0, 4, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32"); orc_program_set_backup_function (p, _backup_audio_convert_orc_pack_s32); @@ -4697,6 +5146,7 @@ audio_convert_orc_pack_s32 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4804,6 +5254,17 @@ audio_convert_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 117, 51, 50, 95, 115, 119, + 97, 112, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, 128, 16, 4, + 20, 4, 132, 32, 4, 16, 126, 32, 32, 24, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_u32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_u32_swap"); orc_program_set_backup_function (p, @@ -4820,6 +5281,7 @@ audio_convert_orc_pack_u32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4915,6 +5377,17 @@ audio_convert_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 95, 115, 119, + 97, 112, 11, 4, 4, 12, 4, 4, 16, 4, 20, 4, 125, 32, 4, 24, + 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32_swap"); orc_program_set_backup_function (p, @@ -4928,6 +5401,7 @@ audio_convert_orc_pack_s32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5045,6 +5519,17 @@ audio_convert_orc_pack_s32_float (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 95, 102, 108, + 111, 97, 116, 11, 4, 4, 12, 4, 4, 14, 4, 0, 0, 0, 79, 20, + 4, 211, 32, 4, 203, 32, 32, 16, 128, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s32_float); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32_float"); orc_program_set_backup_function (p, @@ -5060,6 +5545,7 @@ audio_convert_orc_pack_s32_float (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "storel", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5182,6 +5668,18 @@ audio_convert_orc_pack_s32_float_swap (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 95, 102, 108, + 111, 97, 116, 95, 115, 119, 97, 112, 11, 4, 4, 12, 4, 4, 14, 4, + 0, 0, 0, 79, 20, 4, 211, 32, 4, 203, 32, 32, 16, 184, 0, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s32_float_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32_float_swap"); orc_program_set_backup_function (p, @@ -5197,6 +5695,7 @@ audio_convert_orc_pack_s32_float_swap (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5313,6 +5812,18 @@ audio_convert_orc_pack_s32_double (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 95, 100, 111, + 117, 98, 108, 101, 11, 8, 8, 12, 4, 4, 15, 8, 0, 0, 192, 255, + 255, 255, 223, 65, 20, 8, 223, 32, 4, 215, 32, 32, 16, 135, 0, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s32_double); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32_double"); orc_program_set_backup_function (p, @@ -5328,6 +5839,7 @@ audio_convert_orc_pack_s32_double (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "storeq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5450,6 +5962,18 @@ audio_convert_orc_pack_s32_double_swap (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 115, 51, 50, 95, 100, 111, + 117, 98, 108, 101, 95, 115, 119, 97, 112, 11, 8, 8, 12, 4, 4, 15, + 8, 0, 0, 192, 255, 255, 255, 223, 65, 20, 8, 223, 32, 4, 215, 32, + 32, 16, 186, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_s32_double_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_s32_double_swap"); orc_program_set_backup_function (p, @@ -5465,6 +5989,7 @@ audio_convert_orc_pack_s32_double_swap (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapq", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5565,6 +6090,17 @@ audio_convert_orc_pack_double_float (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 102, 108, 111, 97, 116, 11, 4, 4, 12, 8, 8, 225, 0, 4, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_float); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_float"); orc_program_set_backup_function (p, @@ -5574,6 +6110,7 @@ audio_convert_orc_pack_double_float (gfloat * ORC_RESTRICT d1, orc_program_append_2 (p, "convdf", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5680,6 +6217,17 @@ audio_convert_orc_pack_double_float_swap (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 40, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 102, 108, 111, 97, 116, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, + 8, 20, 4, 225, 32, 4, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_float_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_float_swap"); orc_program_set_backup_function (p, @@ -5692,6 +6240,7 @@ audio_convert_orc_pack_double_float_swap (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5822,6 +6371,18 @@ audio_convert_orc_pack_double_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 117, 56, 11, 1, 1, 12, 8, 8, 14, 4, 0, 0, 0, 128, 16, + 4, 20, 4, 20, 2, 222, 32, 4, 132, 32, 32, 16, 126, 32, 32, 24, + 163, 33, 32, 157, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_u8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_u8"); orc_program_set_backup_function (p, @@ -5843,6 +6404,7 @@ audio_convert_orc_pack_double_u8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5962,6 +6524,17 @@ audio_convert_orc_pack_double_s8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 115, 56, 11, 1, 1, 12, 8, 8, 16, 4, 20, 4, 20, 2, 222, + 32, 4, 125, 32, 32, 24, 163, 33, 32, 157, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_s8); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_s8"); orc_program_set_backup_function (p, @@ -5980,6 +6553,7 @@ audio_convert_orc_pack_double_s8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6105,6 +6679,18 @@ audio_convert_orc_pack_double_u16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 117, 49, 54, 11, 2, 2, 12, 8, 8, 14, 4, 0, 0, 0, 128, + 16, 4, 20, 4, 222, 32, 4, 132, 32, 32, 16, 126, 32, 32, 24, 163, + 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_u16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_u16"); orc_program_set_backup_function (p, @@ -6123,6 +6709,7 @@ audio_convert_orc_pack_double_u16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6236,6 +6823,17 @@ audio_convert_orc_pack_double_s16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 115, 49, 54, 11, 2, 2, 12, 8, 8, 16, 4, 20, 4, 222, 32, + 4, 125, 32, 32, 24, 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_s16); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_s16"); orc_program_set_backup_function (p, @@ -6251,6 +6849,7 @@ audio_convert_orc_pack_double_s16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6382,6 +6981,18 @@ audio_convert_orc_pack_double_u16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 117, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 8, 8, 14, + 4, 0, 0, 0, 128, 16, 4, 20, 4, 20, 2, 222, 32, 4, 132, 32, + 32, 16, 126, 32, 32, 24, 163, 33, 32, 183, 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_u16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_u16_swap"); orc_program_set_backup_function (p, @@ -6403,6 +7014,7 @@ audio_convert_orc_pack_double_u16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6522,6 +7134,18 @@ audio_convert_orc_pack_double_s16_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 115, 49, 54, 95, 115, 119, 97, 112, 11, 2, 2, 12, 8, 8, 16, + 4, 20, 4, 20, 2, 222, 32, 4, 125, 32, 32, 24, 163, 33, 32, 183, + 0, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_s16_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_s16_swap"); orc_program_set_backup_function (p, @@ -6540,6 +7164,7 @@ audio_convert_orc_pack_double_s16_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6659,6 +7284,18 @@ audio_convert_orc_pack_double_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 117, 51, 50, 11, 4, 4, 12, 8, 8, 14, 4, 0, 0, 0, 128, + 16, 4, 20, 4, 222, 32, 4, 132, 32, 32, 16, 126, 0, 32, 24, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_u32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_u32"); orc_program_set_backup_function (p, @@ -6675,6 +7312,7 @@ audio_convert_orc_pack_double_u32 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shrul", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6782,6 +7420,17 @@ audio_convert_orc_pack_double_s32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 33, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 115, 51, 50, 11, 4, 4, 12, 8, 8, 16, 4, 20, 4, 222, 32, + 4, 125, 0, 32, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_s32); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_s32"); orc_program_set_backup_function (p, @@ -6795,6 +7444,7 @@ audio_convert_orc_pack_double_s32 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shrsl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6920,6 +7570,18 @@ audio_convert_orc_pack_double_u32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 117, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, 8, 14, + 4, 0, 0, 0, 128, 16, 4, 20, 4, 222, 32, 4, 132, 32, 32, 16, + 126, 32, 32, 24, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_u32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_u32_swap"); orc_program_set_backup_function (p, @@ -6938,6 +7600,7 @@ audio_convert_orc_pack_double_u32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -7051,6 +7714,17 @@ audio_convert_orc_pack_double_s32_swap (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 97, 117, 100, 105, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 97, 99, 107, 95, 100, 111, 117, 98, 108, 101, + 95, 115, 51, 50, 95, 115, 119, 97, 112, 11, 4, 4, 12, 8, 8, 16, + 4, 20, 4, 222, 32, 4, 125, 32, 32, 24, 184, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_audio_convert_orc_pack_double_s32_swap); +#else p = orc_program_new (); orc_program_set_name (p, "audio_convert_orc_pack_double_s32_swap"); orc_program_set_backup_function (p, @@ -7066,6 +7740,7 @@ audio_convert_orc_pack_double_s32_swap (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/audioconvert/gstaudioconvertorc-dist.h b/gst/audioconvert/gstaudioconvertorc-dist.h index d4cb2c5de..5fd00538f 100644 --- a/gst/audioconvert/gstaudioconvertorc-dist.h +++ b/gst/audioconvert/gstaudioconvertorc-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 audio_convert_orc_unpack_u8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n); void audio_convert_orc_unpack_s8 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n); void audio_convert_orc_unpack_u16 (gint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int n); diff --git a/gst/videoconvert/gstvideoconvertorc-dist.c b/gst/videoconvert/gstvideoconvertorc-dist.c index 5c1a7a7e7..53e04c233 100644 --- a/gst/videoconvert/gstvideoconvertorc-dist.c +++ b/gst/videoconvert/gstvideoconvertorc-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 @@ -385,6 +398,15 @@ video_convert_orc_memcpy_2d (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 27, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 109, 101, 109, 99, 112, 121, 95, 50, 100, 11, + 1, 1, 12, 1, 1, 42, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_convert_orc_memcpy_2d); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_memcpy_2d"); @@ -394,6 +416,7 @@ video_convert_orc_memcpy_2d (guint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -593,6 +616,18 @@ video_convert_orc_convert_I420_UYVY (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 73, 52, 50, + 48, 95, 85, 89, 86, 89, 11, 4, 4, 11, 4, 4, 12, 2, 2, 12, + 2, 2, 12, 1, 1, 12, 1, 1, 20, 2, 196, 32, 6, 7, 21, 1, + 196, 0, 32, 4, 21, 1, 196, 1, 32, 5, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_I420_UYVY); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_I420_UYVY"); orc_program_set_backup_function (p, @@ -611,6 +646,7 @@ video_convert_orc_convert_I420_UYVY (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_S2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -811,6 +847,18 @@ video_convert_orc_convert_I420_YUY2 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 73, 52, 50, + 48, 95, 89, 85, 89, 50, 11, 4, 4, 11, 4, 4, 12, 2, 2, 12, + 2, 2, 12, 1, 1, 12, 1, 1, 20, 2, 196, 32, 6, 7, 21, 1, + 196, 0, 4, 32, 21, 1, 196, 1, 5, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_I420_YUY2); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_I420_YUY2"); orc_program_set_backup_function (p, @@ -829,6 +877,7 @@ video_convert_orc_convert_I420_YUY2 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D2, ORC_VAR_S2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1049,6 +1098,20 @@ video_convert_orc_convert_I420_AYUV (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 73, 52, 50, + 48, 95, 65, 89, 85, 86, 11, 4, 4, 11, 4, 4, 12, 1, 1, 12, + 1, 1, 12, 1, 1, 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, + 20, 2, 20, 1, 20, 1, 45, 34, 6, 45, 35, 7, 196, 32, 34, 35, + 196, 33, 16, 4, 195, 0, 33, 32, 196, 33, 16, 5, 195, 1, 33, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_I420_AYUV); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_I420_AYUV"); orc_program_set_backup_function (p, @@ -1079,6 +1142,7 @@ video_convert_orc_convert_I420_AYUV (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D2, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1289,6 +1353,19 @@ video_convert_orc_convert_YUY2_I420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 85, 89, + 50, 95, 73, 52, 50, 48, 11, 2, 2, 11, 2, 2, 11, 1, 1, 11, + 1, 1, 12, 4, 4, 12, 4, 4, 20, 2, 20, 2, 20, 2, 21, 1, + 199, 32, 34, 4, 97, 0, 34, 21, 1, 199, 33, 34, 5, 97, 1, 34, + 21, 1, 39, 32, 32, 33, 199, 3, 2, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_YUY2_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_YUY2_I420"); orc_program_set_backup_function (p, @@ -1315,6 +1392,7 @@ video_convert_orc_convert_YUY2_I420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D4, ORC_VAR_D3, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1416,6 +1494,17 @@ video_convert_orc_convert_UYVY_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 85, 89, + 86, 89, 95, 89, 85, 89, 50, 11, 4, 4, 12, 4, 4, 21, 1, 183, + 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_UYVY_YUY2); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_UYVY_YUY2"); @@ -1426,6 +1515,7 @@ video_convert_orc_convert_UYVY_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "swapw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1546,6 +1636,17 @@ video_convert_orc_planar_chroma_420_422 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 50, 48, 95, 52, 50, 50, 11, 1, 1, 11, 1, + 1, 12, 1, 1, 42, 0, 4, 42, 1, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_420_422); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_420_422"); @@ -1559,6 +1660,7 @@ video_convert_orc_planar_chroma_420_422 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "copyb", 0, ORC_VAR_D2, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1669,6 +1771,18 @@ video_convert_orc_planar_chroma_420_444 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 50, 48, 95, 52, 52, 52, 11, 2, 2, 11, 2, + 2, 12, 1, 1, 20, 2, 151, 32, 4, 97, 0, 32, 97, 1, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_420_444); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_420_444"); @@ -1685,6 +1799,7 @@ video_convert_orc_planar_chroma_420_444 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "storew", 0, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1785,6 +1900,17 @@ video_convert_orc_planar_chroma_422_444 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 50, 50, 95, 52, 52, 52, 11, 2, 2, 12, 1, + 1, 20, 2, 151, 32, 4, 97, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_422_444); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_422_444"); @@ -1798,6 +1924,7 @@ video_convert_orc_planar_chroma_422_444 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "storew", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1914,6 +2041,17 @@ video_convert_orc_planar_chroma_444_422 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 52, 52, 95, 52, 50, 50, 11, 1, 1, 12, 2, + 2, 20, 1, 20, 1, 199, 32, 33, 4, 39, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_444_422); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_444_422"); @@ -1928,6 +2066,7 @@ video_convert_orc_planar_chroma_444_422 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2068,6 +2207,18 @@ video_convert_orc_planar_chroma_444_420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 52, 52, 95, 52, 50, 48, 11, 1, 1, 12, 2, + 2, 12, 2, 2, 20, 2, 20, 1, 20, 1, 21, 1, 39, 32, 4, 5, + 199, 33, 34, 32, 39, 0, 33, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_444_420); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_444_420"); @@ -2086,6 +2237,7 @@ video_convert_orc_planar_chroma_444_420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2198,6 +2350,17 @@ video_convert_orc_planar_chroma_422_420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 112, 108, 97, 110, 97, 114, 95, 99, 104, 114, + 111, 109, 97, 95, 52, 50, 50, 95, 52, 50, 48, 11, 1, 1, 12, 1, + 1, 12, 1, 1, 39, 0, 4, 5, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_planar_chroma_422_420); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_planar_chroma_422_420"); @@ -2209,6 +2372,7 @@ video_convert_orc_planar_chroma_422_420 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2413,6 +2577,19 @@ video_convert_orc_convert_YUY2_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 85, + 89, 50, 95, 65, 89, 85, 86, 11, 8, 8, 12, 4, 4, 14, 2, 255, + 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 21, 1, 199, 33, 32, + 4, 21, 1, 196, 34, 16, 32, 195, 35, 33, 33, 21, 1, 195, 0, 34, + 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_YUY2_AYUV); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_YUY2_AYUV"); @@ -2434,6 +2611,7 @@ video_convert_orc_convert_YUY2_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2636,6 +2814,19 @@ video_convert_orc_convert_UYVY_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 85, 89, + 86, 89, 95, 65, 89, 85, 86, 11, 8, 8, 12, 4, 4, 14, 2, 255, + 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 21, 1, 199, 32, 33, + 4, 21, 1, 196, 34, 16, 32, 195, 35, 33, 33, 21, 1, 195, 0, 34, + 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_UYVY_AYUV); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_UYVY_AYUV"); @@ -2657,6 +2848,7 @@ video_convert_orc_convert_UYVY_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2815,6 +3007,18 @@ video_convert_orc_convert_YUY2_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 85, + 89, 50, 95, 89, 52, 50, 66, 11, 2, 2, 11, 1, 1, 11, 1, 1, + 12, 4, 4, 20, 2, 21, 1, 199, 32, 0, 4, 199, 2, 1, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_YUY2_Y42B); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_YUY2_Y42B"); @@ -2830,6 +3034,7 @@ video_convert_orc_convert_YUY2_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D3, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2992,6 +3197,18 @@ video_convert_orc_convert_UYVY_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 85, 89, + 86, 89, 95, 89, 52, 50, 66, 11, 2, 2, 11, 1, 1, 11, 1, 1, + 12, 4, 4, 20, 2, 21, 1, 199, 0, 32, 4, 199, 2, 1, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_UYVY_Y42B); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_UYVY_Y42B"); @@ -3007,6 +3224,7 @@ video_convert_orc_convert_UYVY_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D3, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3181,6 +3399,18 @@ video_convert_orc_convert_YUY2_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 85, + 89, 50, 95, 89, 52, 52, 52, 11, 2, 2, 11, 2, 2, 11, 2, 2, + 12, 4, 4, 20, 2, 20, 1, 20, 1, 21, 1, 199, 32, 0, 4, 199, + 34, 33, 32, 151, 1, 33, 151, 2, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_YUY2_Y444); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_YUY2_Y444"); @@ -3202,6 +3432,7 @@ video_convert_orc_convert_YUY2_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "splatbw", 0, ORC_VAR_D3, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3376,6 +3607,18 @@ video_convert_orc_convert_UYVY_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 85, 89, + 86, 89, 95, 89, 52, 52, 52, 11, 2, 2, 11, 2, 2, 11, 2, 2, + 12, 4, 4, 20, 2, 20, 1, 20, 1, 21, 1, 199, 0, 32, 4, 199, + 34, 33, 32, 151, 1, 33, 151, 2, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_UYVY_Y444); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_UYVY_Y444"); @@ -3397,6 +3640,7 @@ video_convert_orc_convert_UYVY_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "splatbw", 0, ORC_VAR_D3, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3610,6 +3854,19 @@ video_convert_orc_convert_UYVY_I420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 85, 89, 86, + 89, 95, 73, 52, 50, 48, 11, 2, 2, 11, 2, 2, 11, 1, 1, 11, + 1, 1, 12, 4, 4, 12, 4, 4, 20, 2, 20, 2, 20, 2, 21, 1, + 199, 34, 32, 4, 97, 0, 34, 21, 1, 199, 34, 33, 5, 97, 1, 34, + 21, 1, 39, 32, 32, 33, 199, 3, 2, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_UYVY_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_UYVY_I420"); orc_program_set_backup_function (p, @@ -3636,6 +3893,7 @@ video_convert_orc_convert_UYVY_I420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D4, ORC_VAR_D3, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -3975,6 +4233,21 @@ video_convert_orc_convert_AYUV_I420 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 73, 52, 50, 48, 11, 2, 2, 11, 2, 2, 11, 1, 1, + 11, 1, 1, 12, 8, 8, 12, 8, 8, 20, 4, 20, 4, 20, 4, 20, + 4, 20, 2, 20, 2, 20, 1, 20, 1, 21, 1, 198, 33, 32, 4, 21, + 1, 189, 0, 32, 21, 1, 198, 34, 32, 5, 21, 1, 189, 1, 32, 21, + 2, 39, 35, 33, 34, 21, 1, 199, 37, 36, 35, 199, 38, 39, 36, 39, + 2, 38, 39, 199, 38, 39, 37, 39, 3, 38, 39, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_I420); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_I420"); @@ -4015,6 +4288,7 @@ video_convert_orc_convert_AYUV_I420 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D4, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4227,6 +4501,19 @@ video_convert_orc_convert_AYUV_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 89, 85, 89, 50, 11, 4, 4, 12, 8, 8, 20, 2, 20, + 2, 20, 2, 20, 4, 20, 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, + 36, 21, 1, 39, 33, 33, 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, + 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_YUY2); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_YUY2"); @@ -4250,6 +4537,7 @@ video_convert_orc_convert_AYUV_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4454,6 +4742,19 @@ video_convert_orc_convert_AYUV_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 85, 89, 86, 89, 11, 4, 4, 12, 8, 8, 20, 2, 20, + 2, 20, 2, 20, 4, 20, 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, + 36, 21, 1, 39, 33, 33, 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, + 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_UYVY); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_UYVY"); @@ -4477,6 +4778,7 @@ video_convert_orc_convert_AYUV_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4689,6 +4991,19 @@ video_convert_orc_convert_AYUV_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 89, 52, 50, 66, 11, 2, 2, 11, 1, 1, 11, 1, 1, + 12, 8, 8, 20, 4, 20, 4, 20, 2, 20, 2, 21, 1, 198, 33, 32, + 4, 198, 34, 35, 33, 21, 1, 39, 34, 34, 35, 199, 2, 1, 34, 21, + 1, 189, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_Y42B); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_Y42B"); @@ -4713,6 +5028,7 @@ video_convert_orc_convert_AYUV_Y42B (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -4877,6 +5193,18 @@ video_convert_orc_convert_AYUV_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 89, 52, 52, 52, 11, 1, 1, 11, 1, 1, 11, 1, 1, + 12, 4, 4, 20, 2, 20, 2, 198, 33, 32, 4, 199, 2, 1, 33, 189, + 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_Y444); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_Y444"); @@ -4895,6 +5223,7 @@ video_convert_orc_convert_AYUV_Y444 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5059,6 +5388,18 @@ video_convert_orc_convert_Y42B_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 50, 66, 95, 89, 85, 89, 50, 11, 4, 4, 12, 2, 2, 12, 1, 1, + 12, 1, 1, 20, 2, 196, 32, 5, 6, 21, 1, 196, 0, 4, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y42B_YUY2); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y42B_YUY2"); @@ -5074,6 +5415,7 @@ video_convert_orc_convert_Y42B_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5238,6 +5580,18 @@ video_convert_orc_convert_Y42B_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 50, 66, 95, 85, 89, 86, 89, 11, 4, 4, 12, 2, 2, 12, 1, 1, + 12, 1, 1, 20, 2, 196, 32, 5, 6, 21, 1, 196, 0, 32, 4, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y42B_UYVY); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y42B_UYVY"); @@ -5253,6 +5607,7 @@ video_convert_orc_convert_Y42B_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5469,6 +5824,19 @@ video_convert_orc_convert_Y42B_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 50, 66, 95, 65, 89, 85, 86, 11, 8, 8, 12, 2, 2, 12, 1, 1, + 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, + 4, 196, 32, 5, 6, 21, 1, 196, 35, 16, 4, 195, 34, 32, 32, 21, + 1, 195, 0, 35, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y42B_AYUV); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y42B_AYUV"); @@ -5492,6 +5860,7 @@ video_convert_orc_convert_Y42B_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5698,6 +6067,19 @@ video_convert_orc_convert_Y444_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 52, 52, 95, 89, 85, 89, 50, 11, 4, 4, 12, 2, 2, 12, 2, 2, + 12, 2, 2, 20, 2, 20, 4, 20, 2, 20, 2, 21, 1, 196, 33, 5, + 6, 198, 34, 35, 33, 21, 1, 39, 32, 34, 35, 21, 1, 196, 0, 4, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y444_YUY2); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y444_YUY2"); @@ -5720,6 +6102,7 @@ video_convert_orc_convert_Y444_YUY2 (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -5926,6 +6309,19 @@ video_convert_orc_convert_Y444_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 52, 52, 95, 85, 89, 86, 89, 11, 4, 4, 12, 2, 2, 12, 2, 2, + 12, 2, 2, 20, 2, 20, 4, 20, 2, 20, 2, 21, 1, 196, 33, 5, + 6, 198, 34, 35, 33, 21, 1, 39, 32, 34, 35, 21, 1, 196, 0, 32, + 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y444_UYVY); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y444_UYVY"); @@ -5948,6 +6344,7 @@ video_convert_orc_convert_Y444_UYVY (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6122,6 +6519,18 @@ video_convert_orc_convert_Y444_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 89, 52, + 52, 52, 95, 65, 89, 85, 86, 11, 4, 4, 12, 1, 1, 12, 1, 1, + 12, 1, 1, 14, 1, 255, 0, 0, 0, 20, 2, 20, 2, 196, 32, 5, + 6, 196, 33, 16, 4, 195, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_Y444_AYUV); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_Y444_AYUV"); @@ -6141,6 +6550,7 @@ video_convert_orc_convert_Y444_AYUV (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -6573,6 +6983,29 @@ video_convert_orc_convert_AYUV_ARGB (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 65, 82, 71, 66, 11, 4, 4, 12, 4, 4, 14, 1, 8, + 0, 0, 0, 14, 4, 128, 0, 0, 0, 14, 4, 42, 0, 0, 0, 14, + 4, 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, 14, 4, 100, 0, 0, + 0, 14, 4, 104, 0, 0, 0, 20, 2, 20, 2, 20, 1, 20, 1, 20, + 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, + 1, 20, 1, 20, 1, 20, 4, 21, 2, 65, 47, 4, 17, 198, 32, 33, + 47, 199, 35, 34, 33, 199, 37, 36, 32, 149, 38, 35, 149, 39, 36, 149, + 40, 37, 89, 32, 38, 18, 94, 32, 32, 16, 71, 38, 38, 32, 71, 41, + 38, 40, 89, 32, 40, 19, 94, 32, 32, 16, 99, 41, 41, 32, 71, 41, + 41, 40, 71, 43, 38, 39, 71, 43, 43, 39, 89, 32, 39, 20, 94, 32, + 32, 16, 71, 43, 43, 32, 89, 32, 39, 21, 94, 32, 32, 16, 99, 42, + 38, 32, 89, 32, 40, 22, 94, 32, 32, 16, 99, 42, 42, 32, 99, 42, + 42, 32, 159, 44, 41, 159, 45, 42, 159, 46, 43, 196, 32, 34, 44, 196, + 33, 45, 46, 195, 47, 32, 33, 21, 2, 33, 0, 47, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_ARGB); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_ARGB"); @@ -6672,6 +7105,7 @@ video_convert_orc_convert_AYUV_ARGB (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -7100,6 +7534,29 @@ video_convert_orc_convert_AYUV_BGRA (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 66, 71, 82, 65, 11, 4, 4, 12, 4, 4, 14, 1, 8, + 0, 0, 0, 14, 4, 128, 0, 0, 0, 14, 4, 42, 0, 0, 0, 14, + 4, 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, 14, 4, 100, 0, 0, + 0, 14, 4, 104, 0, 0, 0, 20, 2, 20, 2, 20, 1, 20, 1, 20, + 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, + 1, 20, 1, 20, 1, 20, 4, 21, 2, 65, 47, 4, 17, 198, 32, 33, + 47, 199, 35, 34, 33, 199, 37, 36, 32, 149, 38, 35, 149, 39, 36, 149, + 40, 37, 89, 32, 38, 18, 94, 32, 32, 16, 71, 38, 38, 32, 71, 41, + 38, 40, 89, 32, 40, 19, 94, 32, 32, 16, 99, 41, 41, 32, 71, 41, + 41, 40, 71, 43, 38, 39, 71, 43, 43, 39, 89, 32, 39, 20, 94, 32, + 32, 16, 71, 43, 43, 32, 89, 32, 39, 21, 94, 32, 32, 16, 99, 42, + 38, 32, 89, 32, 40, 22, 94, 32, 32, 16, 99, 42, 42, 32, 99, 42, + 42, 32, 159, 44, 41, 159, 45, 42, 159, 46, 43, 196, 32, 46, 45, 196, + 33, 44, 34, 195, 47, 32, 33, 21, 2, 33, 0, 47, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_BGRA); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_BGRA"); @@ -7199,6 +7656,7 @@ video_convert_orc_convert_AYUV_BGRA (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -7627,6 +8085,29 @@ video_convert_orc_convert_AYUV_ABGR (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 65, 66, 71, 82, 11, 4, 4, 12, 4, 4, 14, 1, 8, + 0, 0, 0, 14, 4, 128, 0, 0, 0, 14, 4, 42, 0, 0, 0, 14, + 4, 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, 14, 4, 100, 0, 0, + 0, 14, 4, 104, 0, 0, 0, 20, 2, 20, 2, 20, 1, 20, 1, 20, + 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, + 1, 20, 1, 20, 1, 20, 4, 21, 2, 65, 47, 4, 17, 198, 32, 33, + 47, 199, 35, 34, 33, 199, 37, 36, 32, 149, 38, 35, 149, 39, 36, 149, + 40, 37, 89, 32, 38, 18, 94, 32, 32, 16, 71, 38, 38, 32, 71, 41, + 38, 40, 89, 32, 40, 19, 94, 32, 32, 16, 99, 41, 41, 32, 71, 41, + 41, 40, 71, 43, 38, 39, 71, 43, 43, 39, 89, 32, 39, 20, 94, 32, + 32, 16, 71, 43, 43, 32, 89, 32, 39, 21, 94, 32, 32, 16, 99, 42, + 38, 32, 89, 32, 40, 22, 94, 32, 32, 16, 99, 42, 42, 32, 99, 42, + 42, 32, 159, 44, 41, 159, 45, 42, 159, 46, 43, 196, 32, 34, 46, 196, + 33, 45, 44, 195, 47, 32, 33, 21, 2, 33, 0, 47, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_ABGR); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_ABGR"); @@ -7726,6 +8207,7 @@ video_convert_orc_convert_AYUV_ABGR (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -8154,6 +8636,29 @@ video_convert_orc_convert_AYUV_RGBA (guint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 7, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, + 116, 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 65, 89, + 85, 86, 95, 82, 71, 66, 65, 11, 4, 4, 12, 4, 4, 14, 1, 8, + 0, 0, 0, 14, 4, 128, 0, 0, 0, 14, 4, 42, 0, 0, 0, 14, + 4, 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, 14, 4, 100, 0, 0, + 0, 14, 4, 104, 0, 0, 0, 20, 2, 20, 2, 20, 1, 20, 1, 20, + 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, + 1, 20, 1, 20, 1, 20, 4, 21, 2, 65, 47, 4, 17, 198, 32, 33, + 47, 199, 35, 34, 33, 199, 37, 36, 32, 149, 38, 35, 149, 39, 36, 149, + 40, 37, 89, 32, 38, 18, 94, 32, 32, 16, 71, 38, 38, 32, 71, 41, + 38, 40, 89, 32, 40, 19, 94, 32, 32, 16, 99, 41, 41, 32, 71, 41, + 41, 40, 71, 43, 38, 39, 71, 43, 43, 39, 89, 32, 39, 20, 94, 32, + 32, 16, 71, 43, 43, 32, 89, 32, 39, 21, 94, 32, 32, 16, 99, 42, + 38, 32, 89, 32, 40, 22, 94, 32, 32, 16, 99, 42, 42, 32, 99, 42, + 42, 32, 159, 44, 41, 159, 45, 42, 159, 46, 43, 196, 32, 44, 45, 196, + 33, 46, 34, 195, 47, 32, 33, 21, 2, 33, 0, 47, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_AYUV_RGBA); +#else p = orc_program_new (); orc_program_set_2d (p); orc_program_set_name (p, "video_convert_orc_convert_AYUV_RGBA"); @@ -8253,6 +8758,7 @@ video_convert_orc_convert_AYUV_RGBA (guint8 * ORC_RESTRICT d1, int d1_stride, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -8668,6 +9174,30 @@ video_convert_orc_convert_I420_BGRA (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 73, 52, 50, + 48, 95, 66, 71, 82, 65, 11, 4, 4, 12, 1, 1, 12, 1, 1, 12, + 1, 1, 14, 1, 8, 0, 0, 0, 14, 1, 128, 0, 0, 0, 14, 4, + 42, 0, 0, 0, 14, 4, 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, + 14, 4, 100, 0, 0, 0, 14, 4, 104, 0, 0, 0, 14, 4, 255, 0, + 0, 0, 20, 2, 20, 2, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, + 20, 2, 20, 2, 20, 1, 20, 1, 20, 1, 20, 4, 65, 34, 4, 17, + 149, 35, 34, 46, 34, 5, 65, 34, 34, 17, 149, 36, 34, 46, 34, 6, + 65, 34, 34, 17, 149, 37, 34, 89, 32, 35, 18, 94, 32, 32, 16, 71, + 35, 35, 32, 71, 38, 35, 37, 89, 32, 37, 19, 94, 32, 32, 16, 99, + 38, 38, 32, 71, 38, 38, 37, 71, 40, 35, 36, 71, 40, 40, 36, 89, + 32, 36, 20, 94, 32, 32, 16, 71, 40, 40, 32, 89, 32, 36, 21, 94, + 32, 32, 16, 99, 39, 35, 32, 89, 32, 37, 22, 94, 32, 32, 16, 99, + 39, 39, 32, 99, 39, 39, 32, 159, 41, 38, 159, 42, 39, 159, 43, 40, + 196, 32, 43, 42, 196, 33, 41, 23, 195, 44, 32, 33, 21, 2, 33, 0, + 44, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_I420_BGRA); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_I420_BGRA"); orc_program_set_backup_function (p, @@ -8768,6 +9298,7 @@ video_convert_orc_convert_I420_BGRA (guint8 * ORC_RESTRICT d1, ORC_VAR_T2, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T13, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -9224,6 +9755,31 @@ video_convert_orc_convert_I420_BGRA_avg (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 39, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 99, 111, 110, 118, 101, 114, 116, 95, 73, 52, 50, + 48, 95, 66, 71, 82, 65, 95, 97, 118, 103, 11, 4, 4, 12, 1, 1, + 12, 1, 1, 12, 1, 1, 12, 1, 1, 12, 1, 1, 14, 1, 8, 0, + 0, 0, 14, 1, 128, 0, 0, 0, 14, 4, 42, 0, 0, 0, 14, 4, + 103, 0, 0, 0, 14, 4, 4, 0, 0, 0, 14, 4, 100, 0, 0, 0, + 14, 4, 104, 0, 0, 0, 14, 4, 255, 0, 0, 0, 20, 2, 20, 2, + 20, 1, 20, 1, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, + 20, 1, 20, 1, 20, 1, 20, 4, 65, 34, 4, 17, 149, 36, 34, 46, + 34, 5, 46, 35, 6, 39, 34, 34, 35, 65, 34, 34, 17, 149, 37, 34, + 46, 34, 7, 46, 35, 8, 39, 34, 34, 35, 65, 34, 34, 17, 149, 38, + 34, 89, 32, 36, 18, 94, 32, 32, 16, 71, 36, 36, 32, 71, 39, 36, + 38, 89, 32, 38, 19, 94, 32, 32, 16, 99, 39, 39, 32, 71, 39, 39, + 38, 71, 41, 36, 37, 71, 41, 41, 37, 89, 32, 37, 20, 94, 32, 32, + 16, 71, 41, 41, 32, 89, 32, 37, 21, 94, 32, 32, 16, 99, 40, 36, + 32, 89, 32, 38, 22, 94, 32, 32, 16, 99, 40, 40, 32, 99, 40, 40, + 32, 159, 42, 39, 159, 43, 40, 159, 44, 41, 196, 32, 44, 43, 196, 33, + 42, 23, 195, 45, 32, 33, 21, 2, 33, 0, 45, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_convert_I420_BGRA_avg); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_convert_I420_BGRA_avg"); orc_program_set_backup_function (p, @@ -9335,6 +9891,7 @@ video_convert_orc_convert_I420_BGRA_avg (guint8 * ORC_RESTRICT d1, ORC_VAR_T2, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T14, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -9497,6 +10054,18 @@ video_convert_orc_getline_I420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 73, 52, 50, + 48, 11, 4, 4, 12, 1, 1, 12, 1, 1, 12, 1, 1, 14, 1, 255, + 0, 0, 0, 20, 2, 20, 2, 20, 1, 20, 1, 45, 34, 5, 45, 35, + 6, 196, 32, 34, 35, 196, 33, 16, 4, 195, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_I420"); orc_program_set_backup_function (p, @@ -9521,6 +10090,7 @@ video_convert_orc_getline_I420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -9723,6 +10293,19 @@ video_convert_orc_getline_YUV9 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 85, 86, + 57, 11, 8, 8, 12, 2, 2, 12, 1, 1, 12, 1, 1, 14, 1, 255, + 0, 0, 0, 20, 2, 20, 4, 20, 4, 20, 1, 20, 1, 45, 35, 5, + 45, 36, 6, 196, 32, 35, 36, 195, 34, 32, 32, 21, 1, 196, 33, 16, + 4, 21, 1, 195, 0, 33, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_YUV9); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_YUV9"); orc_program_set_backup_function (p, @@ -9750,6 +10333,7 @@ video_convert_orc_getline_YUV9 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -9944,6 +10528,18 @@ video_convert_orc_getline_YUY2 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 85, 89, + 50, 11, 8, 8, 12, 4, 4, 14, 2, 255, 0, 0, 0, 20, 2, 20, + 2, 20, 4, 20, 4, 21, 1, 199, 33, 32, 4, 21, 1, 196, 34, 16, + 32, 195, 35, 33, 33, 21, 1, 195, 0, 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_YUY2); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_YUY2"); orc_program_set_backup_function (p, @@ -9964,6 +10560,7 @@ video_convert_orc_getline_YUY2 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -10156,6 +10753,18 @@ video_convert_orc_getline_UYVY (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 85, 89, 86, + 89, 11, 8, 8, 12, 4, 4, 14, 2, 255, 0, 0, 0, 20, 2, 20, + 2, 20, 4, 20, 4, 21, 1, 199, 32, 33, 4, 21, 1, 196, 34, 16, + 32, 195, 35, 33, 33, 21, 1, 195, 0, 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_UYVY); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_UYVY"); orc_program_set_backup_function (p, @@ -10176,6 +10785,7 @@ video_convert_orc_getline_UYVY (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -10374,6 +10984,19 @@ video_convert_orc_getline_YVYU (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 86, 89, + 85, 11, 8, 8, 12, 4, 4, 14, 2, 255, 0, 0, 0, 20, 2, 20, + 2, 20, 4, 20, 4, 21, 1, 199, 33, 32, 4, 183, 33, 33, 21, 1, + 196, 34, 16, 32, 195, 35, 33, 33, 21, 1, 195, 0, 34, 35, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_YVYU); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_YVYU"); orc_program_set_backup_function (p, @@ -10396,6 +11019,7 @@ video_convert_orc_getline_YVYU (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -10596,6 +11220,19 @@ video_convert_orc_getline_Y42B (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 52, 50, + 66, 11, 8, 8, 12, 2, 2, 12, 1, 1, 12, 1, 1, 14, 1, 255, + 0, 0, 0, 20, 2, 20, 2, 20, 4, 20, 4, 196, 32, 5, 6, 21, + 1, 196, 35, 16, 4, 195, 34, 32, 32, 21, 1, 195, 0, 35, 34, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_Y42B); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_Y42B"); orc_program_set_backup_function (p, @@ -10618,6 +11255,7 @@ video_convert_orc_getline_Y42B (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -10778,6 +11416,18 @@ video_convert_orc_getline_Y444 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 52, 52, + 52, 11, 4, 4, 12, 1, 1, 12, 1, 1, 12, 1, 1, 14, 1, 255, + 0, 0, 0, 20, 2, 20, 2, 196, 32, 5, 6, 196, 33, 16, 4, 195, + 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_Y444); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_Y444"); orc_program_set_backup_function (p, @@ -10796,6 +11446,7 @@ video_convert_orc_getline_Y444 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -10924,6 +11575,17 @@ video_convert_orc_getline_Y800 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 56, 48, + 48, 11, 4, 4, 12, 1, 1, 14, 1, 255, 0, 0, 0, 14, 2, 128, + 128, 0, 0, 20, 2, 196, 32, 16, 4, 195, 0, 32, 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_Y800); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_Y800"); orc_program_set_backup_function (p, @@ -10938,6 +11600,7 @@ video_convert_orc_getline_Y800 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -11070,6 +11733,18 @@ video_convert_orc_getline_Y16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 29, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 89, 49, 54, + 11, 4, 4, 12, 2, 2, 14, 1, 255, 0, 0, 0, 14, 2, 128, 128, + 0, 0, 20, 2, 20, 1, 158, 33, 4, 196, 32, 16, 33, 195, 0, 32, + 17, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_Y16); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_Y16"); orc_program_set_backup_function (p, @@ -11087,6 +11762,7 @@ video_convert_orc_getline_Y16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -11175,6 +11851,16 @@ video_convert_orc_getline_BGRA (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 66, 71, 82, + 65, 11, 4, 4, 12, 4, 4, 184, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_BGRA); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_BGRA"); orc_program_set_backup_function (p, @@ -11184,6 +11870,7 @@ video_convert_orc_getline_BGRA (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -11368,6 +12055,19 @@ video_convert_orc_getline_ABGR (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 65, 66, 71, + 82, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, 20, 1, 20, 1, 20, + 2, 20, 2, 20, 2, 20, 2, 198, 36, 37, 4, 199, 33, 34, 36, 199, + 35, 32, 37, 196, 38, 32, 33, 196, 39, 34, 35, 195, 0, 38, 39, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_ABGR); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_ABGR"); orc_program_set_backup_function (p, @@ -11395,6 +12095,7 @@ video_convert_orc_getline_ABGR (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -11579,6 +12280,19 @@ video_convert_orc_getline_RGBA (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 82, 71, 66, + 65, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, 20, 1, 20, 1, 20, + 2, 20, 2, 20, 2, 20, 2, 198, 37, 36, 4, 199, 34, 33, 36, 199, + 32, 35, 37, 196, 38, 32, 33, 196, 39, 34, 35, 195, 0, 38, 39, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_RGBA); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_RGBA"); orc_program_set_backup_function (p, @@ -11606,6 +12320,7 @@ video_convert_orc_getline_RGBA (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -11784,6 +12499,18 @@ video_convert_orc_getline_NV12 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 78, 86, 49, + 50, 11, 8, 8, 12, 2, 2, 12, 2, 2, 14, 1, 255, 0, 0, 0, + 20, 4, 20, 4, 195, 33, 5, 5, 21, 1, 196, 32, 16, 4, 21, 1, + 195, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_NV12); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_NV12"); orc_program_set_backup_function (p, @@ -11801,6 +12528,7 @@ video_convert_orc_getline_NV12 (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); @@ -11980,6 +12708,18 @@ video_convert_orc_getline_NV21 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 78, 86, 50, + 49, 11, 8, 8, 12, 2, 2, 12, 2, 2, 14, 1, 255, 0, 0, 0, + 20, 2, 20, 4, 20, 4, 183, 32, 5, 195, 34, 32, 32, 21, 1, 196, + 33, 16, 4, 21, 1, 195, 0, 33, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_NV21); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_NV21"); orc_program_set_backup_function (p, @@ -12000,6 +12740,7 @@ video_convert_orc_getline_NV21 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -12163,6 +12904,18 @@ video_convert_orc_getline_A420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 103, 101, 116, 108, 105, 110, 101, 95, 65, 52, 50, + 48, 11, 4, 4, 12, 1, 1, 12, 1, 1, 12, 1, 1, 12, 1, 1, + 20, 2, 20, 2, 20, 1, 20, 1, 45, 34, 5, 45, 35, 6, 196, 32, + 34, 35, 196, 33, 7, 4, 195, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_getline_A420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_getline_A420"); orc_program_set_backup_function (p, @@ -12187,6 +12940,7 @@ video_convert_orc_getline_A420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -12422,6 +13176,19 @@ video_convert_orc_putline_I420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 73, 52, 50, + 48, 11, 2, 2, 11, 1, 1, 11, 1, 1, 12, 8, 8, 20, 4, 20, + 4, 20, 2, 20, 2, 20, 1, 20, 1, 21, 1, 198, 33, 32, 4, 21, + 1, 189, 0, 32, 21, 1, 199, 35, 34, 33, 199, 36, 37, 34, 39, 1, + 36, 37, 199, 36, 37, 35, 39, 2, 36, 37, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_I420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_I420"); orc_program_set_backup_function (p, @@ -12451,6 +13218,7 @@ video_convert_orc_putline_I420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D3, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -12643,6 +13411,18 @@ video_convert_orc_putline_YUY2 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 85, 89, + 50, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, 20, 2, 20, 4, 20, + 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, 21, 1, 39, 33, 33, + 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_YUY2); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_YUY2"); orc_program_set_backup_function (p, @@ -12665,6 +13445,7 @@ video_convert_orc_putline_YUY2 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -12861,6 +13642,19 @@ video_convert_orc_putline_YVYU (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 86, 89, + 85, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, 20, 2, 20, 4, 20, + 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, 21, 1, 39, 33, 33, + 34, 21, 1, 189, 32, 35, 183, 33, 33, 21, 1, 196, 0, 32, 33, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_YVYU); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_YVYU"); orc_program_set_backup_function (p, @@ -12885,6 +13679,7 @@ video_convert_orc_putline_YVYU (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13075,6 +13870,18 @@ video_convert_orc_putline_UYVY (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 85, 89, 86, + 89, 11, 4, 4, 12, 8, 8, 20, 2, 20, 2, 20, 2, 20, 4, 20, + 4, 21, 1, 198, 36, 35, 4, 198, 33, 34, 36, 21, 1, 39, 33, 33, + 34, 21, 1, 189, 32, 35, 21, 1, 196, 0, 33, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_UYVY); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_UYVY"); orc_program_set_backup_function (p, @@ -13097,6 +13904,7 @@ video_convert_orc_putline_UYVY (guint8 * ORC_RESTRICT d1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13295,6 +14103,19 @@ video_convert_orc_putline_Y42B (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 52, 50, + 66, 11, 2, 2, 11, 1, 1, 11, 1, 1, 12, 8, 8, 20, 4, 20, + 4, 20, 2, 20, 2, 21, 1, 198, 33, 32, 4, 198, 34, 35, 33, 21, + 1, 39, 34, 34, 35, 199, 2, 1, 34, 21, 1, 189, 0, 32, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_Y42B); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_Y42B"); orc_program_set_backup_function (p, @@ -13318,6 +14139,7 @@ video_convert_orc_putline_Y42B (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13470,6 +14292,17 @@ video_convert_orc_putline_Y444 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 52, 52, + 52, 11, 1, 1, 11, 1, 1, 11, 1, 1, 12, 4, 4, 20, 2, 20, + 2, 198, 33, 32, 4, 199, 2, 1, 33, 189, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_Y444); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_Y444"); orc_program_set_backup_function (p, @@ -13487,6 +14320,7 @@ video_convert_orc_putline_Y444 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13599,6 +14433,17 @@ video_convert_orc_putline_Y800 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 56, 48, + 48, 11, 1, 1, 12, 4, 4, 20, 2, 190, 32, 4, 189, 0, 32, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_Y800); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_Y800"); orc_program_set_backup_function (p, @@ -13611,6 +14456,7 @@ video_convert_orc_putline_Y800 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1, ORC_VAR_D1); orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13733,6 +14579,17 @@ video_convert_orc_putline_Y16 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 29, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 89, 49, 54, + 11, 2, 2, 12, 4, 4, 14, 4, 8, 0, 0, 0, 20, 2, 20, 1, + 190, 32, 4, 189, 33, 32, 150, 32, 33, 93, 0, 32, 16, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_Y16); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_Y16"); orc_program_set_backup_function (p, @@ -13751,6 +14608,7 @@ video_convert_orc_putline_Y16 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "shlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -13839,6 +14697,16 @@ video_convert_orc_putline_BGRA (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 66, 71, 82, + 65, 11, 4, 4, 12, 4, 4, 184, 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_BGRA); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_BGRA"); orc_program_set_backup_function (p, @@ -13848,6 +14716,7 @@ video_convert_orc_putline_BGRA (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "swapl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -14032,6 +14901,19 @@ video_convert_orc_putline_ABGR (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 65, 66, 71, + 82, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, 20, 1, 20, 1, 20, + 2, 20, 2, 20, 2, 20, 2, 198, 39, 38, 4, 199, 35, 34, 39, 199, + 33, 32, 38, 196, 37, 32, 35, 196, 36, 34, 33, 195, 0, 37, 36, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_ABGR); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_ABGR"); orc_program_set_backup_function (p, @@ -14059,6 +14941,7 @@ video_convert_orc_putline_ABGR (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T6, ORC_VAR_T5, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -14243,6 +15126,19 @@ video_convert_orc_putline_RGBA (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 82, 71, 66, + 65, 11, 4, 4, 12, 4, 4, 20, 1, 20, 1, 20, 1, 20, 1, 20, + 2, 20, 2, 20, 2, 20, 2, 198, 39, 38, 4, 199, 35, 34, 39, 199, + 33, 32, 38, 196, 37, 35, 32, 196, 36, 33, 34, 195, 0, 36, 37, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_RGBA); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_RGBA"); orc_program_set_backup_function (p, @@ -14270,6 +15166,7 @@ video_convert_orc_putline_RGBA (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -14440,6 +15337,18 @@ video_convert_orc_putline_NV12 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 78, 86, 49, + 50, 11, 2, 2, 11, 2, 2, 12, 8, 8, 20, 4, 20, 4, 20, 2, + 20, 2, 21, 1, 198, 33, 32, 4, 21, 1, 189, 0, 32, 198, 34, 35, + 33, 21, 1, 39, 1, 34, 35, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_NV12); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_NV12"); orc_program_set_backup_function (p, @@ -14460,6 +15369,7 @@ video_convert_orc_putline_NV12 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 1, ORC_VAR_D2, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -14637,6 +15547,18 @@ video_convert_orc_putline_NV21 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 78, 86, 50, + 49, 11, 2, 2, 11, 2, 2, 12, 8, 8, 20, 4, 20, 4, 20, 2, + 20, 2, 20, 2, 21, 1, 198, 33, 32, 4, 21, 1, 189, 0, 32, 198, + 34, 35, 33, 21, 1, 39, 36, 34, 35, 183, 1, 36, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_NV21); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_NV21"); orc_program_set_backup_function (p, @@ -14660,6 +15582,7 @@ video_convert_orc_putline_NV21 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "swapw", 0, ORC_VAR_D2, ORC_VAR_T5, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -14925,6 +15848,20 @@ video_convert_orc_putline_A420 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 99, 111, 110, 118, 101, 114, 116, + 95, 111, 114, 99, 95, 112, 117, 116, 108, 105, 110, 101, 95, 65, 52, 50, + 48, 11, 2, 2, 11, 1, 1, 11, 1, 1, 11, 2, 2, 12, 8, 8, + 20, 4, 20, 4, 20, 2, 20, 2, 20, 1, 20, 1, 21, 1, 198, 33, + 32, 4, 21, 1, 189, 0, 32, 21, 1, 188, 3, 32, 21, 1, 199, 35, + 34, 33, 199, 36, 37, 34, 39, 1, 36, 37, 199, 36, 37, 35, 39, 2, + 36, 37, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_convert_orc_putline_A420); +#else p = orc_program_new (); orc_program_set_name (p, "video_convert_orc_putline_A420"); orc_program_set_backup_function (p, @@ -14957,6 +15894,7 @@ video_convert_orc_putline_A420 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D3, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/videoconvert/gstvideoconvertorc-dist.h b/gst/videoconvert/gstvideoconvertorc-dist.h index 91d0d38aa..b08ed5823 100644 --- a/gst/videoconvert/gstvideoconvertorc-dist.h +++ b/gst/videoconvert/gstvideoconvertorc-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 video_convert_orc_memcpy_2d (guint8 * ORC_RESTRICT d1, int d1_stride, const guint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); void video_convert_orc_convert_I420_UYVY (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int n); void video_convert_orc_convert_I420_YUY2 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int n); diff --git a/gst/videoscale/gstvideoscaleorc-dist.c b/gst/videoscale/gstvideoscaleorc-dist.c index 981c7d334..89fcd46d9 100644 --- a/gst/videoscale/gstvideoscaleorc-dist.c +++ b/gst/videoscale/gstvideoscaleorc-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 @@ -294,6 +307,20 @@ video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 109, 101, 114, 103, 101, 95, 108, 105, 110, 101, 97, 114, + 95, + 117, 56, 11, 1, 1, 12, 1, 1, 12, 1, 1, 14, 4, 128, 0, 0, + 0, 16, 1, 20, 2, 20, 2, 20, 1, 20, 1, 43, 34, 4, 150, 32, + 4, 150, 33, 5, 98, 33, 33, 32, 89, 33, 33, 24, 70, 33, 33, 16, + 158, 35, 33, 33, 0, 35, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_merge_linear_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_merge_linear_u8"); orc_program_set_backup_function (p, @@ -324,6 +351,7 @@ video_scale_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "addb", 0, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -462,6 +490,19 @@ video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 109, 101, 114, 103, 101, 95, 108, 105, 110, 101, 97, 114, + 95, + 117, 49, 54, 11, 2, 2, 12, 2, 2, 12, 2, 2, 14, 4, 16, 0, + 0, 0, 16, 2, 16, 2, 20, 4, 20, 4, 177, 32, 4, 24, 177, 33, + 5, 25, 103, 32, 32, 33, 126, 32, 32, 16, 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_merge_linear_u16); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_merge_linear_u16"); orc_program_set_backup_function (p, @@ -485,6 +526,7 @@ video_scale_orc_merge_linear_u16 (orc_uint16 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -570,6 +612,15 @@ video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 115, 112, 108, 97, 116, 95, 117, 49, 54, 11, 2, 2, 16, + 2, 79, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u16); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_splat_u16"); orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u16); @@ -578,6 +629,7 @@ video_scale_orc_splat_u16 (orc_uint16 * ORC_RESTRICT d1, int p1, int n) orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -660,6 +712,15 @@ video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 115, 112, 108, 97, 116, 95, 117, 51, 50, 11, 4, 4, 16, + 4, 112, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_splat_u32"); orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u32); @@ -668,6 +729,7 @@ video_scale_orc_splat_u32 (orc_uint32 * ORC_RESTRICT d1, int p1, int n) orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -752,6 +814,15 @@ video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 25, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 115, 112, 108, 97, 116, 95, 117, 54, 52, 11, 8, 8, 18, + 8, 137, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u64); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_splat_u64"); orc_program_set_backup_function (p, _backup_video_scale_orc_splat_u64); @@ -760,6 +831,7 @@ video_scale_orc_splat_u64 (orc_uint64 * ORC_RESTRICT d1, orc_int64 p1, int n) orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -871,6 +943,18 @@ video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 29, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 100, 111, 119, 110, 115, 97, 109, 112, 108, 101, 95, 117, + 56, + 11, 1, 1, 12, 2, 2, 20, 1, 20, 1, 199, 32, 33, 4, 39, 0, + 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_downsample_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_downsample_u8"); orc_program_set_backup_function (p, @@ -884,6 +968,7 @@ video_scale_orc_downsample_u8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -990,6 +1075,18 @@ video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 100, 111, 119, 110, 115, 97, 109, 112, 108, 101, 95, 117, + 49, + 54, 11, 2, 2, 12, 4, 4, 20, 2, 20, 2, 198, 32, 33, 4, 76, + 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_downsample_u16); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_downsample_u16"); orc_program_set_backup_function (p, @@ -1003,6 +1100,7 @@ video_scale_orc_downsample_u16 (guint16 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avguw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1115,6 +1213,18 @@ video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 100, 111, 119, 110, 115, 97, 109, 112, 108, 101, 95, 117, + 51, + 50, 11, 4, 4, 12, 8, 8, 20, 4, 20, 4, 197, 32, 33, 4, 21, + 2, 39, 0, 32, 33, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_downsample_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_downsample_u32"); orc_program_set_backup_function (p, @@ -1128,6 +1238,7 @@ video_scale_orc_downsample_u32 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "avgub", 2, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1356,6 +1467,20 @@ video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 31, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 100, 111, 119, 110, 115, 97, 109, 112, 108, 101, 95, 121, + 117, + 121, 118, 11, 4, 4, 12, 8, 8, 20, 4, 20, 4, 20, 2, 20, 2, + 20, 2, 20, 2, 21, 2, 199, 32, 33, 4, 21, 1, 199, 34, 35, 32, + 21, 1, 39, 36, 34, 35, 198, 34, 35, 33, 21, 1, 39, 37, 34, 35, + 21, 1, 196, 0, 36, 37, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_downsample_yuyv); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_downsample_yuyv"); orc_program_set_backup_function (p, @@ -1381,6 +1506,7 @@ video_scale_orc_downsample_yuyv (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T5, ORC_VAR_T6, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1463,6 +1589,18 @@ video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 35, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 114, 101, 115, 97, 109, 112, 108, 101, 95, 110, 101, 97, + 114, + 101, 115, 116, 95, 117, 56, 11, 1, 1, 12, 1, 1, 16, 4, 16, 4, + 48, 0, 4, 24, 25, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_resample_nearest_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_resample_nearest_u8"); orc_program_set_backup_function (p, @@ -1474,6 +1612,7 @@ video_scale_orc_resample_nearest_u8 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldresnearb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1568,6 +1707,18 @@ video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 36, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 114, 101, 115, 97, 109, 112, 108, 101, 95, 98, 105, 108, + 105, + 110, 101, 97, 114, 95, 117, 56, 11, 1, 1, 12, 1, 1, 16, 4, 16, + 4, 50, 0, 4, 24, 25, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_resample_bilinear_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_resample_bilinear_u8"); orc_program_set_backup_function (p, @@ -1579,6 +1730,7 @@ video_scale_orc_resample_bilinear_u8 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldreslinb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1663,6 +1815,18 @@ video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 36, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 114, 101, 115, 97, 109, 112, 108, 101, 95, 110, 101, 97, + 114, + 101, 115, 116, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 16, 4, 16, + 4, 49, 0, 4, 24, 25, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_resample_nearest_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_resample_nearest_u32"); orc_program_set_backup_function (p, @@ -1674,6 +1838,7 @@ video_scale_orc_resample_nearest_u32 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldresnearl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1790,6 +1955,18 @@ video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 114, 101, 115, 97, 109, 112, 108, 101, 95, 98, 105, 108, + 105, + 110, 101, 97, 114, 95, 117, 51, 50, 11, 4, 4, 12, 4, 4, 16, 4, + 16, 4, 51, 0, 4, 24, 25, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_resample_bilinear_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_resample_bilinear_u32"); orc_program_set_backup_function (p, @@ -1801,6 +1978,7 @@ video_scale_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldreslinl", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2022,6 +2200,22 @@ video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 43, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 114, 101, 115, 97, 109, 112, 108, 101, 95, 109, 101, 114, + 103, + 101, 95, 98, 105, 108, 105, 110, 101, 97, 114, 95, 117, 51, 50, 11, 4, + 4, 11, 4, 4, 12, 4, 4, 12, 4, 4, 16, 4, 16, 4, 16, 4, + 20, 4, 20, 4, 20, 4, 20, 8, 20, 8, 51, 33, 5, 25, 26, 128, + 1, 33, 113, 32, 4, 21, 2, 150, 35, 32, 21, 2, 150, 36, 33, 21, + 2, 98, 36, 36, 35, 21, 2, 89, 36, 36, 24, 21, 2, 158, 34, 36, + 21, 2, 33, 0, 34, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_resample_merge_bilinear_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_resample_merge_bilinear_u32"); orc_program_set_backup_function (p, @@ -2057,6 +2251,7 @@ video_scale_orc_resample_merge_bilinear_u32 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2268,6 +2463,21 @@ video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 118, 105, 100, 101, 111, 95, 115, 99, 97, 108, 101, 95, 111, + 114, 99, 95, 109, 101, 114, 103, 101, 95, 98, 105, 99, 117, 98, 105, 99, + 95, 117, 56, 11, 1, 1, 12, 1, 1, 12, 1, 1, 12, 1, 1, 12, + 1, 1, 14, 4, 32, 0, 0, 0, 14, 4, 6, 0, 0, 0, 16, 4, + 16, 4, 16, 4, 16, 4, 20, 2, 20, 2, 175, 32, 5, 25, 175, 33, + 6, 26, 70, 32, 32, 33, 175, 33, 4, 24, 98, 32, 32, 33, 175, 33, + 7, 27, 98, 32, 32, 33, 70, 32, 32, 16, 94, 32, 32, 17, 160, 0, + 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_video_scale_orc_merge_bicubic_u8); +#else p = orc_program_new (); orc_program_set_name (p, "video_scale_orc_merge_bicubic_u8"); orc_program_set_backup_function (p, @@ -2306,6 +2516,7 @@ video_scale_orc_merge_bicubic_u8 (guint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/videoscale/gstvideoscaleorc-dist.h b/gst/videoscale/gstvideoscaleorc-dist.h index 7c6677a26..868f07b4b 100644 --- a/gst/videoscale/gstvideoscaleorc-dist.h +++ b/gst/videoscale/gstvideoscaleorc-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 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); diff --git a/gst/videotestsrc/gstvideotestsrcorc-dist.c b/gst/videotestsrc/gstvideotestsrcorc-dist.c index b15853886..63ca17a1e 100644 --- a/gst/videotestsrc/gstvideotestsrcorc-dist.c +++ b/gst/videotestsrc/gstvideotestsrcorc-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 @@ -190,6 +203,15 @@ video_test_src_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 28, 118, 105, 100, 101, 111, 95, 116, 101, 115, 116, 95, 115, 114, + 99, 95, 111, 114, 99, 95, 115, 112, 108, 97, 116, 95, 117, 51, 50, 11, + 4, 4, 16, 4, 112, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_video_test_src_orc_splat_u32); +#else p = orc_program_new (); orc_program_set_name (p, "video_test_src_orc_splat_u32"); orc_program_set_backup_function (p, _backup_video_test_src_orc_splat_u32); @@ -198,6 +220,7 @@ video_test_src_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n) orc_program_append_2 (p, "copyl", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/videotestsrc/gstvideotestsrcorc-dist.h b/gst/videotestsrc/gstvideotestsrcorc-dist.h index 16e143550..4f189c53e 100644 --- a/gst/videotestsrc/gstvideotestsrcorc-dist.h +++ b/gst/videotestsrc/gstvideotestsrcorc-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 video_test_src_orc_splat_u32 (guint8 * ORC_RESTRICT d1, int p1, int n); #ifdef __cplusplus diff --git a/gst/volume/gstvolumeorc-dist.c b/gst/volume/gstvolumeorc-dist.c index 441a65597..6790c4378 100644 --- a/gst/volume/gstvolumeorc-dist.c +++ b/gst/volume/gstvolumeorc-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 @@ -241,6 +254,17 @@ volume_orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 115, 99, + 97, 108, 97, 114, 109, 117, 108, 116, 105, 112, 108, 121, 95, 102, 54, + 52, + 95, 110, 115, 11, 8, 8, 18, 8, 214, 0, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_scalarmultiply_f64_ns); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_scalarmultiply_f64_ns"); orc_program_set_backup_function (p, @@ -250,6 +274,7 @@ volume_orc_scalarmultiply_f64_ns (double *ORC_RESTRICT d1, double p1, int n) orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -359,6 +384,17 @@ volume_orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 32, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 115, 99, + 97, 108, 97, 114, 109, 117, 108, 116, 105, 112, 108, 121, 95, 102, 51, + 50, + 95, 110, 115, 11, 4, 4, 17, 4, 202, 0, 0, 24, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_scalarmultiply_f32_ns); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_scalarmultiply_f32_ns"); orc_program_set_backup_function (p, @@ -368,6 +404,7 @@ volume_orc_scalarmultiply_f32_ns (float *ORC_RESTRICT d1, float p1, int n) orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -472,6 +509,16 @@ volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 24, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 51, 50, 11, 4, 4, 14, 4, + 27, 0, 0, 0, 16, 4, 20, 8, 178, 32, 0, 24, 147, 32, 32, 16, + 169, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_volume_orc_process_int32); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int32"); orc_program_set_backup_function (p, _backup_volume_orc_process_int32); @@ -486,6 +533,7 @@ volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -586,6 +634,17 @@ volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 51, 50, 95, 99, 108, 97, 109, + 112, 11, 4, 4, 14, 4, 27, 0, 0, 0, 16, 4, 20, 8, 178, 32, + 0, 24, 147, 32, 32, 16, 170, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_int32_clamp); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int32_clamp"); orc_program_set_backup_function (p, @@ -601,6 +660,7 @@ volume_orc_process_int32_clamp (gint32 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convsssql", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -701,6 +761,16 @@ volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 24, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 49, 54, 11, 2, 2, 14, 4, + 11, 0, 0, 0, 16, 2, 20, 4, 176, 32, 0, 24, 125, 32, 32, 16, + 163, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_volume_orc_process_int16); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int16"); orc_program_set_backup_function (p, _backup_volume_orc_process_int16); @@ -715,6 +785,7 @@ volume_orc_process_int16 (gint16 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convlw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -815,6 +886,17 @@ volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 30, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 49, 54, 95, 99, 108, 97, 109, + 112, 11, 2, 2, 14, 4, 11, 0, 0, 0, 16, 2, 20, 4, 176, 32, + 0, 24, 125, 32, 32, 16, 165, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_int16_clamp); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int16_clamp"); orc_program_set_backup_function (p, @@ -830,6 +912,7 @@ volume_orc_process_int16_clamp (gint16 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -930,6 +1013,16 @@ volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 23, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 56, 11, 1, 1, 14, 4, 3, + 0, 0, 0, 16, 1, 20, 2, 174, 32, 0, 24, 94, 32, 32, 16, 157, + 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_volume_orc_process_int8); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int8"); orc_program_set_backup_function (p, _backup_volume_orc_process_int8); @@ -944,6 +1037,7 @@ volume_orc_process_int8 (gint8 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1044,6 +1138,18 @@ volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 29, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 105, 110, 116, 56, 95, 99, 108, 97, 109, + 112, + 11, 1, 1, 14, 4, 3, 0, 0, 0, 16, 1, 20, 2, 174, 32, 0, + 24, 94, 32, 32, 16, 159, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_int8_clamp); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_int8_clamp"); orc_program_set_backup_function (p, @@ -1059,6 +1165,7 @@ volume_orc_process_int8_clamp (gint8 * ORC_RESTRICT d1, int p1, int n) ORC_VAR_D1); orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1143,6 +1250,15 @@ volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n) if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 21, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 109, 101, + 109, 115, 101, 116, 95, 102, 54, 52, 11, 8, 8, 18, 8, 137, 0, 24, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_volume_orc_memset_f64); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_memset_f64"); orc_program_set_backup_function (p, _backup_volume_orc_memset_f64); @@ -1151,6 +1267,7 @@ volume_orc_memset_f64 (gdouble * ORC_RESTRICT d1, double p1, int n) orc_program_append_2 (p, "copyq", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1300,6 +1417,16 @@ volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 26, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 101, 112, 97, 114, 101, 95, 118, 111, 108, 117, 109, 101, 115, 11, 8, 8, + 12, 4, 4, 15, 8, 0, 0, 0, 0, 0, 0, 240, 63, 20, 8, 223, + 32, 4, 213, 32, 16, 32, 214, 0, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, _backup_volume_orc_prepare_volumes); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_prepare_volumes"); orc_program_set_backup_function (p, _backup_volume_orc_prepare_volumes); @@ -1314,6 +1441,7 @@ volume_orc_prepare_volumes (gdouble * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1424,6 +1552,18 @@ volume_orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 102, 54, 52, 95, 49, 99, 104, 11, 8, 8, 12, 8, 8, 214, 0, + 0, 4, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_f64_1ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_f64_1ch"); orc_program_set_backup_function (p, @@ -1433,6 +1573,7 @@ volume_orc_process_controlled_f64_1ch (gdouble * ORC_RESTRICT d1, orc_program_append_2 (p, "muld", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1561,6 +1702,18 @@ volume_orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 102, 51, 50, 95, 49, 99, 104, 11, 4, 4, 12, 8, 8, 20, 4, + 225, 32, 4, 202, 0, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_f32_1ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_f32_1ch"); orc_program_set_backup_function (p, @@ -1573,6 +1726,7 @@ volume_orc_process_controlled_f32_1ch (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mulf", 0, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1735,6 +1889,19 @@ volume_orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 37, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 102, 51, 50, 95, 50, 99, 104, 11, 8, 8, 12, 8, 8, 20, 4, + 20, 8, 225, 32, 4, 194, 33, 32, 32, 21, 1, 202, 0, 0, 33, 2, + 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_f32_2ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_f32_2ch"); orc_program_set_backup_function (p, @@ -1750,6 +1917,7 @@ volume_orc_process_controlled_f32_2ch (gfloat * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "mulf", 1, ORC_VAR_D1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -1884,6 +2052,18 @@ volume_orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 39, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 105, 110, 116, 51, 50, 95, 49, 99, 104, 11, 4, 4, 12, 8, 8, + 20, 8, 223, 32, 0, 214, 32, 32, 4, 222, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_int32_1ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_int32_1ch"); orc_program_set_backup_function (p, @@ -1898,6 +2078,7 @@ volume_orc_process_controlled_int32_1ch (gint32 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convdl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2062,6 +2243,19 @@ volume_orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 39, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 105, 110, 116, 49, 54, 95, 49, 99, 104, 11, 2, 2, 12, 8, 8, + 20, 4, 20, 4, 153, 32, 0, 211, 32, 32, 225, 33, 4, 202, 32, 32, + 33, 210, 32, 32, 165, 0, 32, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_int16_1ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_int16_1ch"); orc_program_set_backup_function (p, @@ -2083,6 +2277,7 @@ volume_orc_process_controlled_int16_1ch (gint16 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convssslw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2301,6 +2496,20 @@ volume_orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 39, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 105, 110, 116, 49, 54, 95, 50, 99, 104, 11, 4, 4, 12, 8, 8, + 20, 8, 20, 4, 20, 8, 21, 1, 153, 32, 0, 21, 1, 211, 32, 32, + 225, 33, 4, 194, 34, 33, 33, 21, 1, 202, 34, 34, 32, 21, 1, 210, + 34, 34, 21, 1, 165, 0, 34, 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_int16_2ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_int16_2ch"); orc_program_set_backup_function (p, @@ -2325,6 +2534,7 @@ volume_orc_process_controlled_int16_2ch (gint16 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convssslw", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2501,6 +2711,20 @@ volume_orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 105, 110, 116, 56, 95, 49, 99, 104, 11, 1, 1, 12, 8, 8, 20, + 2, 20, 4, 20, 4, 149, 32, 0, 153, 33, 32, 211, 33, 33, 225, 34, + 4, 202, 33, 33, 34, 210, 33, 33, 163, 32, 33, 159, 0, 32, 2, 0, + + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_int8_1ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_int8_1ch"); orc_program_set_backup_function (p, @@ -2527,6 +2751,7 @@ volume_orc_process_controlled_int8_1ch (gint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convssswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); @@ -2761,6 +2986,21 @@ volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1, if (!p_inited) { OrcProgram *p; +#if 1 + static const orc_uint8 bc[] = { + 1, 9, 38, 118, 111, 108, 117, 109, 101, 95, 111, 114, 99, 95, 112, 114, + 111, 99, 101, 115, 115, 95, 99, 111, 110, 116, 114, 111, 108, 108, 101, + 100, + 95, 105, 110, 116, 56, 95, 50, 99, 104, 11, 2, 2, 12, 8, 8, 20, + 4, 20, 8, 20, 8, 21, 1, 149, 32, 0, 21, 1, 153, 33, 32, 21, + 1, 211, 33, 33, 225, 32, 4, 194, 34, 32, 32, 21, 1, 202, 33, 33, + 34, 21, 1, 210, 33, 33, 21, 1, 163, 32, 33, 21, 1, 159, 0, 32, + 2, 0, + }; + p = orc_program_new_from_static_bytecode (bc); + orc_program_set_backup_function (p, + _backup_volume_orc_process_controlled_int8_2ch); +#else p = orc_program_new (); orc_program_set_name (p, "volume_orc_process_controlled_int8_2ch"); orc_program_set_backup_function (p, @@ -2789,6 +3029,7 @@ volume_orc_process_controlled_int8_2ch (gint8 * ORC_RESTRICT d1, ORC_VAR_D1); orc_program_append_2 (p, "convssswb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); +#endif orc_program_compile (p); c = orc_program_take_code (p); diff --git a/gst/volume/gstvolumeorc-dist.h b/gst/volume/gstvolumeorc-dist.h index d7eedfc45..60ef6889c 100644 --- a/gst/volume/gstvolumeorc-dist.h +++ b/gst/volume/gstvolumeorc-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 volume_orc_scalarmultiply_f64_ns (double * ORC_RESTRICT d1, double p1, int n); void volume_orc_scalarmultiply_f32_ns (float * ORC_RESTRICT d1, float p1, int n); void volume_orc_process_int32 (gint32 * ORC_RESTRICT d1, int p1, int n); |