diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-02-17 11:05:37 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-02-17 11:05:37 +0100 |
commit | e4754d274bae87e1f1528acd83c1e09d783aff6e (patch) | |
tree | 322b42e0ce5485e11e459baf748bc60c029b1a80 /ext/cog | |
parent | f08e247051c5c6d0aaacc29f99a2b0bb9de8405e (diff) | |
download | gstreamer-plugins-bad-e4754d274bae87e1f1528acd83c1e09d783aff6e.tar.gz |
RELEASE 0.11.1RELEASE-0.11.1
Diffstat (limited to 'ext/cog')
-rw-r--r-- | ext/cog/gstcogorc-dist.c | 4663 | ||||
-rw-r--r-- | ext/cog/gstcogorc-dist.h | 158 |
2 files changed, 1585 insertions, 3236 deletions
diff --git a/ext/cog/gstcogorc-dist.c b/ext/cog/gstcogorc-dist.c index e752c55c5..6ee303970 100644 --- a/ext/cog/gstcogorc-dist.c +++ b/ext/cog/gstcogorc-dist.c @@ -4,6 +4,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#ifndef DISABLE_ORC +#include <orc/orc.h> +#endif #include <glib.h> #ifndef _ORC_INTEGER_TYPEDEFS_ @@ -29,7 +32,6 @@ typedef unsigned __int16 orc_uint16; typedef unsigned __int32 orc_uint32; typedef unsigned __int64 orc_uint64; #define ORC_UINT64_C(x) (x##Ui64) -#define inline __inline #else #include <limits.h> typedef signed char orc_int8; @@ -69,232 +71,165 @@ typedef union orc_int16 x4[4]; } orc_union64; #endif -#ifndef ORC_RESTRICT -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define ORC_RESTRICT restrict -#elif defined(__GNUC__) && __GNUC__ >= 4 -#define ORC_RESTRICT __restrict__ -#else -#define ORC_RESTRICT -#endif -#endif -#ifndef DISABLE_ORC -#include <orc/orc.h> -#endif -void cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n); -void cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n); -void cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n); -void cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - int n); -void cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n); -void cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - int n); -void cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n); -void cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, +void cogorc_memcpy_2d (orc_uint8 * d1, int d1_stride, const orc_uint8 * s1, + int s1_stride, int n, int m); +void cogorc_downsample_horiz_cosite_1tap (orc_uint8 * d1, const orc_uint16 * s1, int n); -void cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, +void cogorc_downsample_horiz_cosite_3tap (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n); +void cogorc_downsample_420_jpeg (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n); +void cogorc_downsample_vert_halfsite_2tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n); +void cogorc_downsample_vert_cosite_3tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n); +void cogorc_downsample_vert_halfsite_4tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n); +void cogorc_upsample_horiz_cosite_1tap (guint8 * d1, const orc_uint8 * s1, int n); -void orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n); -void orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n); -void orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n); -void orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n); -void orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, - const gint16 * ORC_RESTRICT s1, int n); -void orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n); -void orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n); -void orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n); -void orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n); -void orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, +void cogorc_upsample_horiz_cosite (guint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n); +void cogorc_upsample_vert_avgub (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n); +void orc_unpack_yuyv_y (orc_uint8 * d1, const orc_uint16 * s1, int n); +void orc_unpack_yuyv_u (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_unpack_yuyv_v (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_pack_yuyv (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n); +void orc_unpack_uyvy_y (orc_uint8 * d1, const orc_uint16 * s1, int n); +void orc_unpack_uyvy_u (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_unpack_uyvy_v (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_pack_uyvy (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n); +void orc_addc_convert_u8_s16 (orc_uint8 * d1, const gint16 * s1, int n); +void orc_subc_convert_s16_u8 (gint16 * d1, const orc_uint8 * s1, int n); +void orc_splat_u8_ns (orc_uint8 * d1, int p1, int n); +void orc_splat_s16_ns (gint16 * d1, int p1, int n); +void orc_matrix2_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int p3, int n); +void orc_matrix2_11_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + int p1, int p2, int n); +void orc_matrix2_12_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + int p1, int p2, int n); +void orc_matrix3_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int n); +void orc_matrix3_100_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int n); +void orc_matrix3_100_offset_u8 (guint8 * d1, const guint8 * s1, + const guint8 * s2, const guint8 * s3, int p1, int p2, int p3, int p4, + int p5, int n); +void orc_matrix3_000_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n); +void orc_pack_123x (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n); +void orc_pack_x123 (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n); +void cogorc_combine2_u8 (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int p1, int p2, int n); +void cogorc_combine4_u8 (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int p1, + int p2, int p3, int p4, int n); +void cogorc_unpack_axyz_0 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_1 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_2 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_3 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_resample_horiz_1tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, int p2, int n); -void orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, +void cogorc_resample_horiz_2tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, int p2, int n); -void orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int p4, int n); -void orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, - const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int n); -void orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, - const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, - int n); -void orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, - const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, - int n); -void orc_pack_123x (guint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int p1, int n); -void orc_pack_x123 (guint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int p1, int n); -void cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - int p1, int p2, int n); -void cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - int p1, int p2, int p3, int p4, int n); -void cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n); -void cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m); -void cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m); -void cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m); -void cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m); -void cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n); -void cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, orc_uint8 * ORC_RESTRICT d4, int d4_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, - const orc_uint64 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, +void cogorc_convert_I420_UYVY (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n); +void cogorc_convert_I420_YUY2 (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n); +void cogorc_convert_I420_AYUV (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n); +void cogorc_convert_YUY2_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n); +void cogorc_convert_UYVY_YUY2 (orc_uint32 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_420_422 (orc_uint8 * d1, int d1_stride, + orc_uint8 * d2, int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, +void cogorc_planar_chroma_420_444 (orc_uint16 * d1, int d1_stride, + orc_uint16 * d2, int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m); -void cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n); -void cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - const orc_uint8 * ORC_RESTRICT s5, int n); +void cogorc_planar_chroma_422_444 (orc_uint16 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_444_422 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_444_420 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, + int n, int m); +void cogorc_planar_chroma_422_420 (orc_uint8 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + int n, int m); +void cogorc_convert_YUY2_AYUV (orc_uint64 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_UYVY_AYUV (orc_uint64 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_YUY2_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m); +void cogorc_convert_UYVY_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m); +void cogorc_convert_YUY2_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m); +void cogorc_convert_UYVY_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m); +void cogorc_convert_UYVY_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n); +void cogorc_convert_AYUV_I420 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, orc_uint8 * d4, int d4_stride, + const orc_uint64 * s1, int s1_stride, const orc_uint64 * s2, int s2_stride, + int n, int m); +void cogorc_convert_AYUV_YUY2 (orc_uint32 * d1, int d1_stride, + const orc_uint64 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_UYVY (orc_uint32 * d1, int d1_stride, + const orc_uint64 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint64 * s1, + int s1_stride, int n, int m); +void cogorc_convert_AYUV_Y444 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m); +void cogorc_convert_Y42B_YUY2 (orc_uint32 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y42B_UYVY (orc_uint32 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y42B_AYUV (orc_uint64 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_YUY2 (orc_uint32 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, + const orc_uint16 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_UYVY (orc_uint32 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, + const orc_uint16 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_AYUV (orc_uint32 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_AYUV_ARGB (orc_uint32 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_BGRA (orc_uint32 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_ABGR (orc_uint32 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_RGBA (orc_uint32 * d1, int d1_stride, + const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_I420_BGRA (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n); +void cogorc_convert_I420_BGRA_avg (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, + const orc_uint8 * s5, int n); /* begin Orc C target preamble */ @@ -328,7 +263,6 @@ void cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, #define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0)) #define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff))) #define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0)) -#ifndef ORC_RESTRICT #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define ORC_RESTRICT restrict #elif defined(__GNUC__) && __GNUC__ >= 4 @@ -336,7 +270,6 @@ void cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, #else #define ORC_RESTRICT #endif -#endif /* end Orc C target preamble */ @@ -344,8 +277,8 @@ void cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, /* cogorc_memcpy_2d */ #ifdef DISABLE_ORC void -cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_memcpy_2d (orc_uint8 * d1, int d1_stride, const orc_uint8 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -373,7 +306,7 @@ cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_memcpy_2d (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_memcpy_2d (OrcExecutor * ex) { int i; int j; @@ -402,8 +335,8 @@ _backup_cogorc_memcpy_2d (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_memcpy_2d (orc_uint8 * d1, int d1_stride, const orc_uint8 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -413,6 +346,7 @@ cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -424,7 +358,7 @@ cogorc_memcpy_2d (orc_uint8 * 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); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -447,8 +381,8 @@ cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_downsample_horiz_cosite_1tap */ #ifdef DISABLE_ORC void -cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +cogorc_downsample_horiz_cosite_1tap (orc_uint8 * d1, const orc_uint16 * s1, + int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -464,11 +398,7 @@ cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, /* 0: loadw */ var32 = ptr4[i]; /* 1: select0wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[0]; - } + var33 = (orc_uint16) var32.i & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -477,7 +407,7 @@ cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_horiz_cosite_1tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -494,11 +424,7 @@ _backup_cogorc_downsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) /* 0: loadw */ var32 = ptr4[i]; /* 1: select0wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[0]; - } + var33 = (orc_uint16) var32.i & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -506,8 +432,8 @@ _backup_cogorc_downsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +cogorc_downsample_horiz_cosite_1tap (orc_uint8 * d1, const orc_uint16 * s1, + int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -517,6 +443,7 @@ cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_horiz_cosite_1tap"); @@ -528,7 +455,7 @@ cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -548,9 +475,8 @@ cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_downsample_horiz_cosite_3tap */ #ifdef DISABLE_ORC void -cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n) +cogorc_downsample_horiz_cosite_3tap (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -579,9 +505,9 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, ptr5 = (orc_union16 *) s2; /* 9: loadpw */ - var40.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var40.i = 0x00000002; /* 2 or 9.88131e-324f */ /* 13: loadpw */ - var41.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var41.i = 0x00000002; /* 2 or 9.88131e-324f */ for (i = 0; i < n; i++) { /* 0: loadw */ @@ -589,25 +515,13 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, /* 1: copyw */ var43.i = var38.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var43.i; - var44 = _src.x2[0]; - } + var44 = (orc_uint16) var43.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var43.i; - var45 = _src.x2[1]; - } + var45 = ((orc_uint16) var43.i >> 8) & 0xff; /* 4: loadw */ var39 = ptr5[i]; /* 5: select0wb */ - { - orc_union16 _src; - _src.i = var39.i; - var46 = _src.x2[0]; - } + var46 = (orc_uint16) var39.i & 0xff; /* 6: convubw */ var47.i = (orc_uint8) var44; /* 7: convubw */ @@ -634,7 +548,7 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_horiz_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_horiz_cosite_3tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -664,9 +578,9 @@ _backup_cogorc_downsample_horiz_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) ptr5 = (orc_union16 *) ex->arrays[5]; /* 9: loadpw */ - var40.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var40.i = 0x00000002; /* 2 or 9.88131e-324f */ /* 13: loadpw */ - var41.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var41.i = 0x00000002; /* 2 or 9.88131e-324f */ for (i = 0; i < n; i++) { /* 0: loadw */ @@ -674,25 +588,13 @@ _backup_cogorc_downsample_horiz_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) /* 1: copyw */ var43.i = var38.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var43.i; - var44 = _src.x2[0]; - } + var44 = (orc_uint16) var43.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var43.i; - var45 = _src.x2[1]; - } + var45 = ((orc_uint16) var43.i >> 8) & 0xff; /* 4: loadw */ var39 = ptr5[i]; /* 5: select0wb */ - { - orc_union16 _src; - _src.i = var39.i; - var46 = _src.x2[0]; - } + var46 = (orc_uint16) var39.i & 0xff; /* 6: convubw */ var47.i = (orc_uint8) var44; /* 7: convubw */ @@ -718,9 +620,8 @@ _backup_cogorc_downsample_horiz_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n) +cogorc_downsample_horiz_cosite_3tap (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -730,6 +631,7 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_horiz_cosite_3tap"); @@ -773,7 +675,7 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -794,9 +696,8 @@ cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_downsample_420_jpeg */ #ifdef DISABLE_ORC void -cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n) +cogorc_downsample_420_jpeg (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -825,17 +726,9 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, /* 1: copyw */ var40.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var40.i; - var41 = _src.x2[0]; - } + var41 = (orc_uint16) var40.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var40.i; - var42 = _src.x2[1]; - } + var42 = ((orc_uint16) var40.i >> 8) & 0xff; /* 4: avgub */ var43 = ((orc_uint8) var41 + (orc_uint8) var42 + 1) >> 1; /* 5: loadw */ @@ -843,17 +736,9 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, /* 6: copyw */ var44.i = var38.i; /* 7: select0wb */ - { - orc_union16 _src; - _src.i = var44.i; - var45 = _src.x2[0]; - } + var45 = (orc_uint16) var44.i & 0xff; /* 8: select1wb */ - { - orc_union16 _src; - _src.i = var44.i; - var46 = _src.x2[1]; - } + var46 = ((orc_uint16) var44.i >> 8) & 0xff; /* 9: avgub */ var47 = ((orc_uint8) var45 + (orc_uint8) var46 + 1) >> 1; /* 10: avgub */ @@ -866,7 +751,7 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_420_jpeg (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_420_jpeg (OrcExecutor * ex) { int i; int n = ex->n; @@ -896,17 +781,9 @@ _backup_cogorc_downsample_420_jpeg (OrcExecutor * ORC_RESTRICT ex) /* 1: copyw */ var40.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var40.i; - var41 = _src.x2[0]; - } + var41 = (orc_uint16) var40.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var40.i; - var42 = _src.x2[1]; - } + var42 = ((orc_uint16) var40.i >> 8) & 0xff; /* 4: avgub */ var43 = ((orc_uint8) var41 + (orc_uint8) var42 + 1) >> 1; /* 5: loadw */ @@ -914,17 +791,9 @@ _backup_cogorc_downsample_420_jpeg (OrcExecutor * ORC_RESTRICT ex) /* 6: copyw */ var44.i = var38.i; /* 7: select0wb */ - { - orc_union16 _src; - _src.i = var44.i; - var45 = _src.x2[0]; - } + var45 = (orc_uint16) var44.i & 0xff; /* 8: select1wb */ - { - orc_union16 _src; - _src.i = var44.i; - var46 = _src.x2[1]; - } + var46 = ((orc_uint16) var44.i >> 8) & 0xff; /* 9: avgub */ var47 = ((orc_uint8) var45 + (orc_uint8) var46 + 1) >> 1; /* 10: avgub */ @@ -936,9 +805,8 @@ _backup_cogorc_downsample_420_jpeg (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, - int n) +cogorc_downsample_420_jpeg (orc_uint8 * d1, const orc_uint16 * s1, + const orc_uint16 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -948,6 +816,7 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_420_jpeg"); @@ -980,7 +849,7 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T4, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1001,8 +870,8 @@ cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, /* cogorc_downsample_vert_halfsite_2tap */ #ifdef DISABLE_ORC void -cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_downsample_vert_halfsite_2tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -1032,7 +901,7 @@ cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_vert_halfsite_2tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_vert_halfsite_2tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -1062,8 +931,8 @@ _backup_cogorc_downsample_vert_halfsite_2tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_downsample_vert_halfsite_2tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1073,6 +942,7 @@ cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_vert_halfsite_2tap"); @@ -1085,7 +955,7 @@ cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1106,9 +976,8 @@ cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_downsample_vert_cosite_3tap */ #ifdef DISABLE_ORC void -cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n) +cogorc_downsample_vert_cosite_3tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -1136,9 +1005,9 @@ cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, ptr6 = (orc_int8 *) s3; /* 6: loadpw */ - var38.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var38.i = 0x00000002; /* 2 or 9.88131e-324f */ /* 10: loadpw */ - var39.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var39.i = 0x00000002; /* 2 or 9.88131e-324f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -1173,7 +1042,7 @@ cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_vert_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_vert_cosite_3tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -1202,9 +1071,9 @@ _backup_cogorc_downsample_vert_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) ptr6 = (orc_int8 *) ex->arrays[6]; /* 6: loadpw */ - var38.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var38.i = 0x00000002; /* 2 or 9.88131e-324f */ /* 10: loadpw */ - var39.i = (int) 0x00000002; /* 2 or 9.88131e-324f */ + var39.i = 0x00000002; /* 2 or 9.88131e-324f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -1238,9 +1107,8 @@ _backup_cogorc_downsample_vert_cosite_3tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n) +cogorc_downsample_vert_cosite_3tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1250,6 +1118,7 @@ cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_vert_cosite_3tap"); @@ -1283,7 +1152,7 @@ cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1305,9 +1174,8 @@ cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_downsample_vert_halfsite_4tap */ #ifdef DISABLE_ORC void -cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_downsample_vert_halfsite_4tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -1342,11 +1210,11 @@ cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, ptr7 = (orc_int8 *) s4; /* 9: loadpw */ - var40.i = (int) 0x0000001a; /* 26 or 1.28457e-322f */ + var40.i = 0x0000001a; /* 26 or 1.28457e-322f */ /* 12: loadpw */ - var41.i = (int) 0x00000006; /* 6 or 2.96439e-323f */ + var41.i = 0x00000006; /* 6 or 2.96439e-323f */ /* 15: loadpw */ - var42.i = (int) 0x00000020; /* 32 or 1.58101e-322f */ + var42.i = 0x00000020; /* 32 or 1.58101e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -1389,7 +1257,7 @@ cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_downsample_vert_halfsite_4tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_downsample_vert_halfsite_4tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -1425,11 +1293,11 @@ _backup_cogorc_downsample_vert_halfsite_4tap (OrcExecutor * ORC_RESTRICT ex) ptr7 = (orc_int8 *) ex->arrays[7]; /* 9: loadpw */ - var40.i = (int) 0x0000001a; /* 26 or 1.28457e-322f */ + var40.i = 0x0000001a; /* 26 or 1.28457e-322f */ /* 12: loadpw */ - var41.i = (int) 0x00000006; /* 6 or 2.96439e-323f */ + var41.i = 0x00000006; /* 6 or 2.96439e-323f */ /* 15: loadpw */ - var42.i = (int) 0x00000020; /* 32 or 1.58101e-322f */ + var42.i = 0x00000020; /* 32 or 1.58101e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -1471,9 +1339,8 @@ _backup_cogorc_downsample_vert_halfsite_4tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_downsample_vert_halfsite_4tap (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1483,6 +1350,7 @@ cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_downsample_vert_halfsite_4tap"); @@ -1526,7 +1394,7 @@ cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1549,8 +1417,7 @@ cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_upsample_horiz_cosite_1tap */ #ifdef DISABLE_ORC void -cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n) +cogorc_upsample_horiz_cosite_1tap (guint8 * d1, const orc_uint8 * s1, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -1569,12 +1436,7 @@ cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, /* 1: copyb */ var35 = var33; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35; - _dest.x2[1] = var35; - var34.i = _dest.i; - } + var34.i = ((orc_uint8) var35 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: storew */ ptr0[i] = var34; } @@ -1583,7 +1445,7 @@ cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_upsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_upsample_horiz_cosite_1tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -1603,12 +1465,7 @@ _backup_cogorc_upsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) /* 1: copyb */ var35 = var33; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35; - _dest.x2[1] = var35; - var34.i = _dest.i; - } + var34.i = ((orc_uint8) var35 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: storew */ ptr0[i] = var34; } @@ -1616,8 +1473,7 @@ _backup_cogorc_upsample_horiz_cosite_1tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n) +cogorc_upsample_horiz_cosite_1tap (guint8 * d1, const orc_uint8 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1627,6 +1483,7 @@ cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_upsample_horiz_cosite_1tap"); @@ -1641,7 +1498,7 @@ cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "mergebw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1661,8 +1518,8 @@ cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, /* cogorc_upsample_horiz_cosite */ #ifdef DISABLE_ORC void -cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_upsample_horiz_cosite (guint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -1689,12 +1546,7 @@ cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, /* 3: avgub */ var38 = ((orc_uint8) var37 + (orc_uint8) var35 + 1) >> 1; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37; - _dest.x2[1] = var38; - var36.i = _dest.i; - } + var36.i = ((orc_uint8) var37 & 0x00ff) | ((orc_uint8) var38 << 8); /* 5: storew */ ptr0[i] = var36; } @@ -1703,7 +1555,7 @@ cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_upsample_horiz_cosite (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_upsample_horiz_cosite (OrcExecutor * ex) { int i; int n = ex->n; @@ -1731,12 +1583,7 @@ _backup_cogorc_upsample_horiz_cosite (OrcExecutor * ORC_RESTRICT ex) /* 3: avgub */ var38 = ((orc_uint8) var37 + (orc_uint8) var35 + 1) >> 1; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37; - _dest.x2[1] = var38; - var36.i = _dest.i; - } + var36.i = ((orc_uint8) var37 & 0x00ff) | ((orc_uint8) var38 << 8); /* 5: storew */ ptr0[i] = var36; } @@ -1744,8 +1591,8 @@ _backup_cogorc_upsample_horiz_cosite (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_upsample_horiz_cosite (guint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1755,6 +1602,7 @@ cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_upsample_horiz_cosite"); @@ -1772,7 +1620,7 @@ cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "mergebw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1793,8 +1641,8 @@ cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, /* cogorc_upsample_vert_avgub */ #ifdef DISABLE_ORC void -cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_upsample_vert_avgub (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -1824,7 +1672,7 @@ cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_upsample_vert_avgub (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_upsample_vert_avgub (OrcExecutor * ex) { int i; int n = ex->n; @@ -1854,8 +1702,8 @@ _backup_cogorc_upsample_vert_avgub (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n) +cogorc_upsample_vert_avgub (orc_uint8 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1865,6 +1713,7 @@ cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_upsample_vert_avgub"); @@ -1876,7 +1725,7 @@ cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1897,8 +1746,7 @@ cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, /* orc_unpack_yuyv_y */ #ifdef DISABLE_ORC void -orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_y (orc_uint8 * d1, const orc_uint16 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -1914,11 +1762,7 @@ orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, /* 0: loadw */ var32 = ptr4[i]; /* 1: select0wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[0]; - } + var33 = (orc_uint16) var32.i & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -1927,7 +1771,7 @@ orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_yuyv_y (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_yuyv_y (OrcExecutor * ex) { int i; int n = ex->n; @@ -1944,11 +1788,7 @@ _backup_orc_unpack_yuyv_y (OrcExecutor * ORC_RESTRICT ex) /* 0: loadw */ var32 = ptr4[i]; /* 1: select0wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[0]; - } + var33 = (orc_uint16) var32.i & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -1956,8 +1796,7 @@ _backup_orc_unpack_yuyv_y (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_y (orc_uint8 * d1, const orc_uint16 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -1967,6 +1806,7 @@ orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_yuyv_y"); @@ -1977,7 +1817,7 @@ orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -1997,8 +1837,7 @@ orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, /* orc_unpack_yuyv_u */ #ifdef DISABLE_ORC void -orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_u (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2015,17 +1854,9 @@ orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2034,7 +1865,7 @@ orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_yuyv_u (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_yuyv_u (OrcExecutor * ex) { int i; int n = ex->n; @@ -2052,17 +1883,9 @@ _backup_orc_unpack_yuyv_u (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2070,8 +1893,7 @@ _backup_orc_unpack_yuyv_u (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_u (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2081,6 +1903,7 @@ orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_yuyv_u"); @@ -2094,7 +1917,7 @@ orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2114,8 +1937,7 @@ orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, /* orc_unpack_yuyv_v */ #ifdef DISABLE_ORC void -orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_v (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2132,17 +1954,9 @@ orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2151,7 +1965,7 @@ orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_yuyv_v (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_yuyv_v (OrcExecutor * ex) { int i; int n = ex->n; @@ -2169,17 +1983,9 @@ _backup_orc_unpack_yuyv_v (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2187,8 +1993,7 @@ _backup_orc_unpack_yuyv_v (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_yuyv_v (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2198,6 +2003,7 @@ orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_yuyv_v"); @@ -2211,7 +2017,7 @@ orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2231,8 +2037,8 @@ orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, /* orc_pack_yuyv */ #ifdef DISABLE_ORC void -orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n) +orc_pack_yuyv (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -2261,42 +2067,20 @@ orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* 1: copyw */ var41.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var41.i; - var42 = _src.x2[0]; - } + var42 = (orc_uint16) var41.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var41.i; - var43 = _src.x2[1]; - } + var43 = ((orc_uint16) var41.i >> 8) & 0xff; /* 4: loadb */ var38 = ptr5[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var42; - _dest.x2[1] = var38; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var38 << 8); /* 6: loadb */ var39 = ptr6[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43; - _dest.x2[1] = var39; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var43 & 0x00ff) | ((orc_uint8) var39 << 8); /* 8: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var44.i; - _dest.x2[1] = var45.i; - var40.i = _dest.i; - } + var40.i = + ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16); /* 9: storel */ ptr0[i] = var40; } @@ -2305,7 +2089,7 @@ orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_pack_yuyv (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_pack_yuyv (OrcExecutor * ex) { int i; int n = ex->n; @@ -2335,42 +2119,20 @@ _backup_orc_pack_yuyv (OrcExecutor * ORC_RESTRICT ex) /* 1: copyw */ var41.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var41.i; - var42 = _src.x2[0]; - } + var42 = (orc_uint16) var41.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var41.i; - var43 = _src.x2[1]; - } + var43 = ((orc_uint16) var41.i >> 8) & 0xff; /* 4: loadb */ var38 = ptr5[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var42; - _dest.x2[1] = var38; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var38 << 8); /* 6: loadb */ var39 = ptr6[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43; - _dest.x2[1] = var39; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var43 & 0x00ff) | ((orc_uint8) var39 << 8); /* 8: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var44.i; - _dest.x2[1] = var45.i; - var40.i = _dest.i; - } + var40.i = + ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16); /* 9: storel */ ptr0[i] = var40; } @@ -2378,8 +2140,8 @@ _backup_orc_pack_yuyv (OrcExecutor * ORC_RESTRICT ex) } void -orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n) +orc_pack_yuyv (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2389,6 +2151,7 @@ orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_pack_yuyv"); @@ -2416,7 +2179,7 @@ orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2438,8 +2201,7 @@ orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_unpack_uyvy_y */ #ifdef DISABLE_ORC void -orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_y (orc_uint8 * d1, const orc_uint16 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2455,11 +2217,7 @@ orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, /* 0: loadw */ var32 = ptr4[i]; /* 1: select1wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[1]; - } + var33 = ((orc_uint16) var32.i >> 8) & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -2468,7 +2226,7 @@ orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_uyvy_y (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_uyvy_y (OrcExecutor * ex) { int i; int n = ex->n; @@ -2485,11 +2243,7 @@ _backup_orc_unpack_uyvy_y (OrcExecutor * ORC_RESTRICT ex) /* 0: loadw */ var32 = ptr4[i]; /* 1: select1wb */ - { - orc_union16 _src; - _src.i = var32.i; - var33 = _src.x2[1]; - } + var33 = ((orc_uint16) var32.i >> 8) & 0xff; /* 2: storeb */ ptr0[i] = var33; } @@ -2497,8 +2251,7 @@ _backup_orc_unpack_uyvy_y (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, - const orc_uint16 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_y (orc_uint8 * d1, const orc_uint16 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2508,6 +2261,7 @@ orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_uyvy_y"); @@ -2518,7 +2272,7 @@ orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2538,8 +2292,7 @@ orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, /* orc_unpack_uyvy_u */ #ifdef DISABLE_ORC void -orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_u (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2556,17 +2309,9 @@ orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2575,7 +2320,7 @@ orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_uyvy_u (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_uyvy_u (OrcExecutor * ex) { int i; int n = ex->n; @@ -2593,17 +2338,9 @@ _backup_orc_unpack_uyvy_u (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2611,8 +2348,7 @@ _backup_orc_unpack_uyvy_u (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_u (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2622,6 +2358,7 @@ orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_uyvy_u"); @@ -2635,7 +2372,7 @@ orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2655,8 +2392,7 @@ orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, /* orc_unpack_uyvy_v */ #ifdef DISABLE_ORC void -orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_v (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2673,17 +2409,9 @@ orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2692,7 +2420,7 @@ orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_unpack_uyvy_v (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_unpack_uyvy_v (OrcExecutor * ex) { int i; int n = ex->n; @@ -2710,17 +2438,9 @@ _backup_orc_unpack_uyvy_v (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -2728,8 +2448,7 @@ _backup_orc_unpack_uyvy_v (OrcExecutor * ORC_RESTRICT ex) } void -orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +orc_unpack_uyvy_v (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2739,6 +2458,7 @@ orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_unpack_uyvy_v"); @@ -2752,7 +2472,7 @@ orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2772,8 +2492,8 @@ orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, /* orc_pack_uyvy */ #ifdef DISABLE_ORC void -orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n) +orc_pack_uyvy (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -2802,42 +2522,20 @@ orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* 1: copyw */ var41.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var41.i; - var42 = _src.x2[0]; - } + var42 = (orc_uint16) var41.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var41.i; - var43 = _src.x2[1]; - } + var43 = ((orc_uint16) var41.i >> 8) & 0xff; /* 4: loadb */ var38 = ptr5[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38; - _dest.x2[1] = var42; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var38 & 0x00ff) | ((orc_uint8) var42 << 8); /* 6: loadb */ var39 = ptr6[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39; - _dest.x2[1] = var43; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var43 << 8); /* 8: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var44.i; - _dest.x2[1] = var45.i; - var40.i = _dest.i; - } + var40.i = + ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16); /* 9: storel */ ptr0[i] = var40; } @@ -2846,7 +2544,7 @@ orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_pack_uyvy (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_pack_uyvy (OrcExecutor * ex) { int i; int n = ex->n; @@ -2876,42 +2574,20 @@ _backup_orc_pack_uyvy (OrcExecutor * ORC_RESTRICT ex) /* 1: copyw */ var41.i = var37.i; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var41.i; - var42 = _src.x2[0]; - } + var42 = (orc_uint16) var41.i & 0xff; /* 3: select1wb */ - { - orc_union16 _src; - _src.i = var41.i; - var43 = _src.x2[1]; - } + var43 = ((orc_uint16) var41.i >> 8) & 0xff; /* 4: loadb */ var38 = ptr5[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38; - _dest.x2[1] = var42; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var38 & 0x00ff) | ((orc_uint8) var42 << 8); /* 6: loadb */ var39 = ptr6[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39; - _dest.x2[1] = var43; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var43 << 8); /* 8: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var44.i; - _dest.x2[1] = var45.i; - var40.i = _dest.i; - } + var40.i = + ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16); /* 9: storel */ ptr0[i] = var40; } @@ -2919,8 +2595,8 @@ _backup_orc_pack_uyvy (OrcExecutor * ORC_RESTRICT ex) } void -orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n) +orc_pack_uyvy (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -2930,6 +2606,7 @@ orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_pack_uyvy"); @@ -2957,7 +2634,7 @@ orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -2979,8 +2656,7 @@ orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_addc_convert_u8_s16 */ #ifdef DISABLE_ORC void -orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, - const gint16 * ORC_RESTRICT s1, int n) +orc_addc_convert_u8_s16 (orc_uint8 * d1, const gint16 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -2994,7 +2670,7 @@ orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, ptr4 = (orc_union16 *) s1; /* 1: loadpw */ - var34.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var34.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadw */ @@ -3011,7 +2687,7 @@ orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_orc_addc_convert_u8_s16 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_addc_convert_u8_s16 (OrcExecutor * ex) { int i; int n = ex->n; @@ -3026,7 +2702,7 @@ _backup_orc_addc_convert_u8_s16 (OrcExecutor * ORC_RESTRICT ex) ptr4 = (orc_union16 *) ex->arrays[4]; /* 1: loadpw */ - var34.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var34.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadw */ @@ -3042,8 +2718,7 @@ _backup_orc_addc_convert_u8_s16 (OrcExecutor * ORC_RESTRICT ex) } void -orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, - const gint16 * ORC_RESTRICT s1, int n) +orc_addc_convert_u8_s16 (orc_uint8 * d1, const gint16 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3053,6 +2728,7 @@ orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_addc_convert_u8_s16"); @@ -3067,7 +2743,7 @@ orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3087,8 +2763,7 @@ orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, /* orc_subc_convert_s16_u8 */ #ifdef DISABLE_ORC void -orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n) +orc_subc_convert_s16_u8 (gint16 * d1, const orc_uint8 * s1, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -3102,7 +2777,7 @@ orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, ptr4 = (orc_int8 *) s1; /* 2: loadpw */ - var34.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var34.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3119,7 +2794,7 @@ orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, #else static void -_backup_orc_subc_convert_s16_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_subc_convert_s16_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -3134,7 +2809,7 @@ _backup_orc_subc_convert_s16_u8 (OrcExecutor * ORC_RESTRICT ex) ptr4 = (orc_int8 *) ex->arrays[4]; /* 2: loadpw */ - var34.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var34.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3150,8 +2825,7 @@ _backup_orc_subc_convert_s16_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int n) +orc_subc_convert_s16_u8 (gint16 * d1, const orc_uint8 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3161,6 +2835,7 @@ orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_subc_convert_s16_u8"); @@ -3175,7 +2850,7 @@ orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, orc_program_append_2 (p, "subw", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_C1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3195,7 +2870,7 @@ orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, /* orc_splat_u8_ns */ #ifdef DISABLE_ORC void -orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) +orc_splat_u8_ns (orc_uint8 * d1, int p1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -3218,7 +2893,7 @@ orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) #else static void -_backup_orc_splat_u8_ns (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_splat_u8_ns (OrcExecutor * ex) { int i; int n = ex->n; @@ -3241,7 +2916,7 @@ _backup_orc_splat_u8_ns (OrcExecutor * ORC_RESTRICT ex) } void -orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) +orc_splat_u8_ns (orc_uint8 * d1, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3251,6 +2926,7 @@ orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_splat_u8_ns"); @@ -3261,7 +2937,7 @@ orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3281,7 +2957,7 @@ orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n) /* orc_splat_s16_ns */ #ifdef DISABLE_ORC void -orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n) +orc_splat_s16_ns (gint16 * d1, int p1, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -3304,7 +2980,7 @@ orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n) #else static void -_backup_orc_splat_s16_ns (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_splat_s16_ns (OrcExecutor * ex) { int i; int n = ex->n; @@ -3327,7 +3003,7 @@ _backup_orc_splat_s16_ns (OrcExecutor * ORC_RESTRICT ex) } void -orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n) +orc_splat_s16_ns (gint16 * d1, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3337,6 +3013,7 @@ orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n) if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_splat_s16_ns"); @@ -3347,7 +3024,7 @@ orc_splat_s16_ns (gint16 * 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); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3367,8 +3044,8 @@ orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n) /* orc_matrix2_u8 */ #ifdef DISABLE_ORC void -orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n) +orc_matrix2_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int p3, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -3428,7 +3105,7 @@ orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix2_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix2_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -3488,8 +3165,8 @@ _backup_orc_matrix2_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n) +orc_matrix2_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int p3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3499,6 +3176,7 @@ orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix2_u8"); @@ -3530,7 +3208,7 @@ orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3554,8 +3232,8 @@ orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_matrix2_11_u8 */ #ifdef DISABLE_ORC void -orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int n) +orc_matrix2_11_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -3586,15 +3264,15 @@ orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ptr5 = (orc_int8 *) s2; /* 2: loadpw */ - var37.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var37.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var38.i = p1; /* 8: loadpw */ - var40.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var40.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var41.i = p2; /* 13: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3633,7 +3311,7 @@ orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix2_11_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix2_11_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -3665,15 +3343,15 @@ _backup_orc_matrix2_11_u8 (OrcExecutor * ORC_RESTRICT ex) ptr5 = (orc_int8 *) ex->arrays[5]; /* 2: loadpw */ - var37.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var37.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var38.i = ex->params[24]; /* 8: loadpw */ - var40.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var40.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var41.i = ex->params[25]; /* 13: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3711,8 +3389,8 @@ _backup_orc_matrix2_11_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int n) +orc_matrix2_11_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3722,6 +3400,7 @@ orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix2_11_u8"); @@ -3764,7 +3443,7 @@ orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -3787,8 +3466,8 @@ orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_matrix2_12_u8 */ #ifdef DISABLE_ORC void -orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int n) +orc_matrix2_12_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -3820,15 +3499,15 @@ orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ptr5 = (orc_int8 *) s2; /* 2: loadpw */ - var37.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var37.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var38.i = p1; /* 8: loadpw */ - var40.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var40.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var41.i = p2; /* 13: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3869,7 +3548,7 @@ orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix2_12_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix2_12_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -3902,15 +3581,15 @@ _backup_orc_matrix2_12_u8 (OrcExecutor * ORC_RESTRICT ex) ptr5 = (orc_int8 *) ex->arrays[5]; /* 2: loadpw */ - var37.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var37.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var38.i = ex->params[24]; /* 8: loadpw */ - var40.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var40.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var41.i = ex->params[25]; /* 13: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -3950,8 +3629,8 @@ _backup_orc_matrix2_12_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, int p1, int p2, int n) +orc_matrix2_12_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, + int p2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -3961,6 +3640,7 @@ orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix2_12_u8"); @@ -4005,7 +3685,7 @@ orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -4028,9 +3708,8 @@ orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_matrix3_u8 */ #ifdef DISABLE_ORC void -orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int p4, int n) +orc_matrix3_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -4107,7 +3786,7 @@ orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix3_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix3_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -4184,9 +3863,8 @@ _backup_orc_matrix3_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int p4, int n) +orc_matrix3_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -4196,6 +3874,7 @@ orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix3_u8"); @@ -4235,7 +3914,7 @@ orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -4261,9 +3940,8 @@ orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_matrix3_100_u8 */ #ifdef DISABLE_ORC void -orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int n) +orc_matrix3_100_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -4302,19 +3980,19 @@ orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, ptr6 = (orc_int8 *) s3; /* 2: loadpw */ - var36.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var36.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var37.i = p1; /* 8: loadpw */ - var39.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var39.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var40.i = p2; /* 15: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 17: loadpw */ var43.i = p3; /* 20: loadpw */ - var44.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var44.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -4361,7 +4039,7 @@ orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix3_100_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix3_100_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -4401,19 +4079,19 @@ _backup_orc_matrix3_100_u8 (OrcExecutor * ORC_RESTRICT ex) ptr6 = (orc_int8 *) ex->arrays[6]; /* 2: loadpw */ - var36.i = (int) 0x00000010; /* 16 or 7.90505e-323f */ + var36.i = 0x00000010; /* 16 or 7.90505e-323f */ /* 4: loadpw */ var37.i = ex->params[24]; /* 8: loadpw */ - var39.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var39.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 10: loadpw */ var40.i = ex->params[25]; /* 15: loadpw */ - var42.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var42.i = 0x00000080; /* 128 or 6.32404e-322f */ /* 17: loadpw */ var43.i = ex->params[26]; /* 20: loadpw */ - var44.i = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var44.i = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -4459,9 +4137,8 @@ _backup_orc_matrix3_100_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int n) +orc_matrix3_100_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -4471,6 +4148,7 @@ orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix3_100_u8"); @@ -4520,7 +4198,7 @@ orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -4545,10 +4223,8 @@ orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_matrix3_100_offset_u8 */ #ifdef DISABLE_ORC void -orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, - const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, - int n) +orc_matrix3_100_offset_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -4628,7 +4304,7 @@ orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, #else static void -_backup_orc_matrix3_100_offset_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix3_100_offset_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -4708,10 +4384,8 @@ _backup_orc_matrix3_100_offset_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, - const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, - const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, - int n) +orc_matrix3_100_offset_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -4721,6 +4395,7 @@ orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix3_100_offset_u8"); @@ -4763,7 +4438,7 @@ orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -4790,9 +4465,8 @@ orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, /* orc_matrix3_000_u8 */ #ifdef DISABLE_ORC void -orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int p4, int p5, int n) +orc_matrix3_000_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -4869,7 +4543,7 @@ orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, #else static void -_backup_orc_matrix3_000_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_matrix3_000_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -4946,9 +4620,8 @@ _backup_orc_matrix3_000_u8 (OrcExecutor * ORC_RESTRICT ex) } void -orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, - const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, - int p2, int p3, int p4, int p5, int n) +orc_matrix3_000_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, + const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -4958,6 +4631,7 @@ orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_matrix3_000_u8"); @@ -4997,7 +4671,7 @@ orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "convwb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5024,9 +4698,8 @@ orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, /* orc_pack_123x */ #ifdef DISABLE_ORC void -orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - int p1, int n) +orc_pack_123x (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -5055,28 +4728,14 @@ orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, /* 1: loadb */ var35 = ptr5[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: loadb */ var36 = ptr6[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var40.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -5085,7 +4744,7 @@ orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, #else static void -_backup_orc_pack_123x (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_pack_123x (OrcExecutor * ex) { int i; int n = ex->n; @@ -5115,28 +4774,14 @@ _backup_orc_pack_123x (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var35 = ptr5[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: loadb */ var36 = ptr6[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var40.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -5144,9 +4789,8 @@ _backup_orc_pack_123x (OrcExecutor * ORC_RESTRICT ex) } void -orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - int p1, int n) +orc_pack_123x (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -5156,6 +4800,7 @@ orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_pack_123x"); @@ -5175,7 +4820,7 @@ orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5198,9 +4843,8 @@ orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, /* orc_pack_x123 */ #ifdef DISABLE_ORC void -orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - int p1, int n) +orc_pack_x123 (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -5227,30 +4871,16 @@ orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, /* 1: loadb */ var35 = ptr4[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: loadb */ var36 = ptr5[i]; /* 4: loadb */ var37 = ptr6[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var40.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -5259,7 +4889,7 @@ orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, #else static void -_backup_orc_pack_x123 (OrcExecutor * ORC_RESTRICT ex) +_backup_orc_pack_x123 (OrcExecutor * ex) { int i; int n = ex->n; @@ -5287,30 +4917,16 @@ _backup_orc_pack_x123 (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var35 = ptr4[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 3: loadb */ var36 = ptr5[i]; /* 4: loadb */ var37 = ptr6[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var40.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -5318,9 +4934,8 @@ _backup_orc_pack_x123 (OrcExecutor * ORC_RESTRICT ex) } void -orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - int p1, int n) +orc_pack_x123 (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, int p1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -5330,6 +4945,7 @@ orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "orc_pack_x123"); @@ -5349,7 +4965,7 @@ orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5372,8 +4988,7 @@ orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, /* cogorc_combine2_u8 */ #ifdef DISABLE_ORC void -cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, +cogorc_combine2_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int p1, int p2, int n) { int i; @@ -5428,7 +5043,7 @@ cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_combine2_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_combine2_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -5482,8 +5097,7 @@ _backup_cogorc_combine2_u8 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, +cogorc_combine2_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int p1, int p2, int n) { OrcExecutor _ex, *ex = &_ex; @@ -5494,6 +5108,7 @@ cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_combine2_u8"); @@ -5522,7 +5137,7 @@ cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5545,10 +5160,9 @@ cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_combine4_u8 */ #ifdef DISABLE_ORC void -cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - int p1, int p2, int p3, int p4, int n) +cogorc_combine4_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, const orc_uint8 * s4, int p1, int p2, int p3, int p4, + int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -5595,7 +5209,7 @@ cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, /* 16: loadpw */ var41.i = p4; /* 19: loadpw */ - var42.i = (int) 0x00000020; /* 32 or 1.58101e-322f */ + var42.i = 0x00000020; /* 32 or 1.58101e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -5642,7 +5256,7 @@ cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_combine4_u8 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_combine4_u8 (OrcExecutor * ex) { int i; int n = ex->n; @@ -5690,7 +5304,7 @@ _backup_cogorc_combine4_u8 (OrcExecutor * ORC_RESTRICT ex) /* 16: loadpw */ var41.i = ex->params[27]; /* 19: loadpw */ - var42.i = (int) 0x00000020; /* 32 or 1.58101e-322f */ + var42.i = 0x00000020; /* 32 or 1.58101e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -5736,10 +5350,9 @@ _backup_cogorc_combine4_u8 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - int p1, int p2, int p3, int p4, int n) +cogorc_combine4_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, + const orc_uint8 * s3, const orc_uint8 * s4, int p1, int p2, int p3, int p4, + int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -5749,6 +5362,7 @@ cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_combine4_u8"); @@ -5796,7 +5410,7 @@ cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "convsuswb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5823,8 +5437,7 @@ cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_unpack_axyz_0 */ #ifdef DISABLE_ORC void -cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_0 (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -5841,17 +5454,9 @@ cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -5860,7 +5465,7 @@ cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_unpack_axyz_0 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_unpack_axyz_0 (OrcExecutor * ex) { int i; int n = ex->n; @@ -5878,17 +5483,9 @@ _backup_cogorc_unpack_axyz_0 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -5896,8 +5493,7 @@ _backup_cogorc_unpack_axyz_0 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_0 (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -5907,6 +5503,7 @@ cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_unpack_axyz_0"); @@ -5920,7 +5517,7 @@ cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -5940,8 +5537,7 @@ cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_unpack_axyz_1 */ #ifdef DISABLE_ORC void -cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_1 (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -5958,17 +5554,9 @@ cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -5977,7 +5565,7 @@ cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_unpack_axyz_1 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_unpack_axyz_1 (OrcExecutor * ex) { int i; int n = ex->n; @@ -5995,17 +5583,9 @@ _backup_cogorc_unpack_axyz_1 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select0lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[0]; - } + var35.i = (orc_uint32) var33.i & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -6013,8 +5593,7 @@ _backup_cogorc_unpack_axyz_1 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_1 (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6024,6 +5603,7 @@ cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_unpack_axyz_1"); @@ -6037,7 +5617,7 @@ cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6057,8 +5637,7 @@ cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_unpack_axyz_2 */ #ifdef DISABLE_ORC void -cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_2 (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -6075,17 +5654,9 @@ cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -6094,7 +5665,7 @@ cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_unpack_axyz_2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_unpack_axyz_2 (OrcExecutor * ex) { int i; int n = ex->n; @@ -6112,17 +5683,9 @@ _backup_cogorc_unpack_axyz_2 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select0wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[0]; - } + var34 = (orc_uint16) var35.i & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -6130,8 +5693,7 @@ _backup_cogorc_unpack_axyz_2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_2 (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6141,6 +5703,7 @@ cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_unpack_axyz_2"); @@ -6154,7 +5717,7 @@ cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6174,8 +5737,7 @@ cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_unpack_axyz_3 */ #ifdef DISABLE_ORC void -cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_3 (orc_uint8 * d1, const orc_uint32 * s1, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -6192,17 +5754,9 @@ cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -6211,7 +5765,7 @@ cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_unpack_axyz_3 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_unpack_axyz_3 (OrcExecutor * ex) { int i; int n = ex->n; @@ -6229,17 +5783,9 @@ _backup_cogorc_unpack_axyz_3 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: select1lw */ - { - orc_union32 _src; - _src.i = var33.i; - var35.i = _src.x2[1]; - } + var35.i = ((orc_uint32) var33.i >> 16) & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var35.i; - var34 = _src.x2[1]; - } + var34 = ((orc_uint16) var35.i >> 8) & 0xff; /* 3: storeb */ ptr0[i] = var34; } @@ -6247,8 +5793,7 @@ _backup_cogorc_unpack_axyz_3 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, - const orc_uint32 * ORC_RESTRICT s1, int n) +cogorc_unpack_axyz_3 (orc_uint8 * d1, const orc_uint32 * s1, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6258,6 +5803,7 @@ cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_unpack_axyz_3"); @@ -6271,7 +5817,7 @@ cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6291,8 +5837,8 @@ cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, /* cogorc_resample_horiz_1tap */ #ifdef DISABLE_ORC void -cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n) +cogorc_resample_horiz_1tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, + int p2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -6314,7 +5860,7 @@ cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_resample_horiz_1tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_resample_horiz_1tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -6336,8 +5882,8 @@ _backup_cogorc_resample_horiz_1tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n) +cogorc_resample_horiz_1tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, + int p2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6347,6 +5893,7 @@ cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_resample_horiz_1tap"); @@ -6359,7 +5906,7 @@ cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldresnearb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6381,8 +5928,8 @@ cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_resample_horiz_2tap */ #ifdef DISABLE_ORC void -cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n) +cogorc_resample_horiz_2tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, + int p2, int n) { int i; orc_int8 *ORC_RESTRICT ptr0; @@ -6409,7 +5956,7 @@ cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, #else static void -_backup_cogorc_resample_horiz_2tap (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_resample_horiz_2tap (OrcExecutor * ex) { int i; int n = ex->n; @@ -6436,8 +5983,8 @@ _backup_cogorc_resample_horiz_2tap (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n) +cogorc_resample_horiz_2tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, + int p2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6447,6 +5994,7 @@ cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_resample_horiz_2tap"); @@ -6459,7 +6007,7 @@ cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, orc_program_append_2 (p, "ldreslinb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_P1, ORC_VAR_P2); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6481,10 +6029,9 @@ cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, /* cogorc_convert_I420_UYVY */ #ifdef DISABLE_ORC void -cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_UYVY (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -6515,44 +6062,23 @@ cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, /* 1: loadb */ var34 = ptr7[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[0]; - _dest.x2[1] = var35.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[1]; - _dest.x2[1] = var35.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; /* 6: loadw */ var37 = ptr5[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[0]; - _dest.x2[1] = var37.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[1]; - _dest.x2[1] = var37.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 8: storel */ ptr1[i] = var38; } @@ -6561,7 +6087,7 @@ cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_I420_UYVY (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_I420_UYVY (OrcExecutor * ex) { int i; int n = ex->n; @@ -6593,44 +6119,23 @@ _backup_cogorc_convert_I420_UYVY (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var34 = ptr7[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[0]; - _dest.x2[1] = var35.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[1]; - _dest.x2[1] = var35.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; /* 6: loadw */ var37 = ptr5[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[0]; - _dest.x2[1] = var37.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var39.x2[1]; - _dest.x2[1] = var37.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 8: storel */ ptr1[i] = var38; } @@ -6638,10 +6143,9 @@ _backup_cogorc_convert_I420_UYVY (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_UYVY (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6651,6 +6155,7 @@ cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_I420_UYVY"); @@ -6670,7 +6175,7 @@ cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_S2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6694,10 +6199,9 @@ cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, /* cogorc_convert_I420_YUY2 */ #ifdef DISABLE_ORC void -cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_YUY2 (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -6728,44 +6232,23 @@ cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, /* 1: loadb */ var34 = ptr7[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[0]; - _dest.x2[1] = var39.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[1]; - _dest.x2[1] = var39.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; /* 6: loadw */ var37 = ptr5[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var39.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var39.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 8: storel */ ptr1[i] = var38; } @@ -6774,7 +6257,7 @@ cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_I420_YUY2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_I420_YUY2 (OrcExecutor * ex) { int i; int n = ex->n; @@ -6806,44 +6289,23 @@ _backup_cogorc_convert_I420_YUY2 (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var34 = ptr7[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[0]; - _dest.x2[1] = var39.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[1]; - _dest.x2[1] = var39.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; /* 6: loadw */ var37 = ptr5[i]; /* 7: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var39.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var39.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 8: storel */ ptr1[i] = var38; } @@ -6851,10 +6313,9 @@ _backup_cogorc_convert_I420_YUY2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, - const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_YUY2 (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -6864,6 +6325,7 @@ cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_I420_YUY2"); @@ -6883,7 +6345,7 @@ cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D2, ORC_VAR_S2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -6907,10 +6369,9 @@ cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, /* cogorc_convert_I420_AYUV */ #ifdef DISABLE_ORC void -cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_AYUV (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -6939,9 +6400,9 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, ptr7 = (orc_int8 *) s4; /* 3: loadpb */ - var36 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var36 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 8: loadpb */ - var39 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var39 = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadupdb */ @@ -6949,46 +6410,23 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, /* 1: loadupdb */ var43 = ptr7[i >> 1]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var42; - _dest.x2[1] = var43; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var43 << 8); /* 4: loadb */ var37 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var45.i; - _dest.x2[1] = var44.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var45.i & 0x0000ffff) | ((orc_uint16) var44.i << 16); /* 7: storel */ ptr0[i] = var38; /* 9: loadb */ var40 = ptr5[i]; /* 10: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39; - _dest.x2[1] = var40; - var46.i = _dest.i; - } + var46.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var40 << 8); /* 11: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var46.i; - _dest.x2[1] = var44.i; - var41.i = _dest.i; - } + var41.i = + ((orc_uint16) var46.i & 0x0000ffff) | ((orc_uint16) var44.i << 16); /* 12: storel */ ptr1[i] = var41; } @@ -6997,7 +6435,7 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_I420_AYUV (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_I420_AYUV (OrcExecutor * ex) { int i; int n = ex->n; @@ -7027,9 +6465,9 @@ _backup_cogorc_convert_I420_AYUV (OrcExecutor * ORC_RESTRICT ex) ptr7 = (orc_int8 *) ex->arrays[7]; /* 3: loadpb */ - var36 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var36 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 8: loadpb */ - var39 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var39 = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadupdb */ @@ -7037,46 +6475,23 @@ _backup_cogorc_convert_I420_AYUV (OrcExecutor * ORC_RESTRICT ex) /* 1: loadupdb */ var43 = ptr7[i >> 1]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var42; - _dest.x2[1] = var43; - var44.i = _dest.i; - } + var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var43 << 8); /* 4: loadb */ var37 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var45.i = _dest.i; - } + var45.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var45.i; - _dest.x2[1] = var44.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var45.i & 0x0000ffff) | ((orc_uint16) var44.i << 16); /* 7: storel */ ptr0[i] = var38; /* 9: loadb */ var40 = ptr5[i]; /* 10: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var39; - _dest.x2[1] = var40; - var46.i = _dest.i; - } + var46.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var40 << 8); /* 11: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var46.i; - _dest.x2[1] = var44.i; - var41.i = _dest.i; - } + var41.i = + ((orc_uint16) var46.i & 0x0000ffff) | ((orc_uint16) var44.i << 16); /* 12: storel */ ptr1[i] = var41; } @@ -7084,10 +6499,9 @@ _backup_cogorc_convert_I420_AYUV (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, - orc_uint32 * ORC_RESTRICT d2, const orc_uint8 * ORC_RESTRICT s1, - const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, - const orc_uint8 * ORC_RESTRICT s4, int n) +cogorc_convert_I420_AYUV (orc_uint32 * d1, orc_uint32 * d2, + const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, + const orc_uint8 * s4, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7097,6 +6511,7 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_I420_AYUV"); @@ -7128,7 +6543,7 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D2, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7152,10 +6567,8 @@ cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, /* cogorc_convert_YUY2_I420 */ #ifdef DISABLE_ORC void -cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n) +cogorc_convert_YUY2_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -7186,47 +6599,27 @@ cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var40.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var40.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var40; /* 3: loadl */ var36 = ptr5[i]; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var41.x2[0] = _src.x2[1]; - var42.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var41.x2[1] = _src.x2[1]; - var42.x2[1] = _src.x2[0]; - } + var41.x2[0] = (var36.x2[0] >> 8) & 0xff; + var42.x2[0] = var36.x2[0] & 0xff; + var41.x2[1] = (var36.x2[1] >> 8) & 0xff; + var42.x2[1] = var36.x2[1] & 0xff; /* 5: storew */ ptr1[i] = var42; /* 6: avgub */ var43.x2[0] = ((orc_uint8) var39.x2[0] + (orc_uint8) var41.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var39.x2[1] + (orc_uint8) var41.x2[1] + 1) >> 1; /* 7: splitwb */ - { - orc_union16 _src; - _src.i = var43.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var43.i >> 8) & 0xff; + var38 = var43.i & 0xff; /* 8: storeb */ ptr3[i] = var37; /* 9: storeb */ @@ -7237,7 +6630,7 @@ cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_YUY2_I420 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_YUY2_I420 (OrcExecutor * ex) { int i; int n = ex->n; @@ -7269,47 +6662,27 @@ _backup_cogorc_convert_YUY2_I420 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var40.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var40.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var40; /* 3: loadl */ var36 = ptr5[i]; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var41.x2[0] = _src.x2[1]; - var42.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var41.x2[1] = _src.x2[1]; - var42.x2[1] = _src.x2[0]; - } + var41.x2[0] = (var36.x2[0] >> 8) & 0xff; + var42.x2[0] = var36.x2[0] & 0xff; + var41.x2[1] = (var36.x2[1] >> 8) & 0xff; + var42.x2[1] = var36.x2[1] & 0xff; /* 5: storew */ ptr1[i] = var42; /* 6: avgub */ var43.x2[0] = ((orc_uint8) var39.x2[0] + (orc_uint8) var41.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var39.x2[1] + (orc_uint8) var41.x2[1] + 1) >> 1; /* 7: splitwb */ - { - orc_union16 _src; - _src.i = var43.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var43.i >> 8) & 0xff; + var38 = var43.i & 0xff; /* 8: storeb */ ptr3[i] = var37; /* 9: storeb */ @@ -7319,10 +6692,8 @@ _backup_cogorc_convert_YUY2_I420 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n) +cogorc_convert_YUY2_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7332,6 +6703,7 @@ cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_YUY2_I420"); @@ -7359,7 +6731,7 @@ cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D4, ORC_VAR_D3, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7383,8 +6755,8 @@ cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, /* cogorc_convert_UYVY_YUY2 */ #ifdef DISABLE_ORC void -cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_UYVY_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -7413,7 +6785,7 @@ cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_UYVY_YUY2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_UYVY_YUY2 (OrcExecutor * ex) { int i; int j; @@ -7443,8 +6815,8 @@ _backup_cogorc_convert_UYVY_YUY2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_UYVY_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7454,6 +6826,7 @@ cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -7465,7 +6838,7 @@ cogorc_convert_UYVY_YUY2 (orc_uint32 * 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); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7488,9 +6861,8 @@ cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_420_422 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_420_422 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m) { int i; int j; @@ -7528,7 +6900,7 @@ cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_420_422 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_420_422 (OrcExecutor * ex) { int i; int j; @@ -7567,9 +6939,8 @@ _backup_cogorc_planar_chroma_420_422 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_420_422 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7579,6 +6950,7 @@ cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -7593,7 +6965,7 @@ cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "copyb", 0, ORC_VAR_D2, ORC_VAR_S1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7618,9 +6990,8 @@ cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_420_444 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_420_444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m) { int i; int j; @@ -7652,7 +7023,7 @@ cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_420_444 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_420_444 (OrcExecutor * ex) { int i; int j; @@ -7685,9 +7056,8 @@ _backup_cogorc_planar_chroma_420_444 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_420_444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7697,6 +7067,7 @@ cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -7714,7 +7085,7 @@ cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "storew", 0, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7739,8 +7110,8 @@ cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_422_444 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_422_444 (orc_uint16 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, int n, int m) { int i; int j; @@ -7768,7 +7139,7 @@ cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_422_444 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_422_444 (OrcExecutor * ex) { int i; int j; @@ -7797,8 +7168,8 @@ _backup_cogorc_planar_chroma_422_444 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_422_444 (orc_uint16 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7808,6 +7179,7 @@ cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -7822,7 +7194,7 @@ cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "storew", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7845,8 +7217,8 @@ cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_444_422 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_444_422 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, int n, int m) { int i; int j; @@ -7866,12 +7238,8 @@ cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* 0: loadw */ var34 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var34.i; - var36 = _src.x2[1]; - var37 = _src.x2[0]; - } + var36 = (var34.i >> 8) & 0xff; + var37 = var34.i & 0xff; /* 2: avgub */ var35 = ((orc_uint8) var36 + (orc_uint8) var37 + 1) >> 1; /* 3: storeb */ @@ -7883,7 +7251,7 @@ cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_444_422 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_444_422 (OrcExecutor * ex) { int i; int j; @@ -7905,12 +7273,8 @@ _backup_cogorc_planar_chroma_444_422 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadw */ var34 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var34.i; - var36 = _src.x2[1]; - var37 = _src.x2[0]; - } + var36 = (var34.i >> 8) & 0xff; + var37 = var34.i & 0xff; /* 2: avgub */ var35 = ((orc_uint8) var36 + (orc_uint8) var37 + 1) >> 1; /* 3: storeb */ @@ -7921,8 +7285,8 @@ _backup_cogorc_planar_chroma_444_422 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_planar_chroma_444_422 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -7932,6 +7296,7 @@ cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -7947,7 +7312,7 @@ cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -7970,9 +7335,9 @@ cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_444_420 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_planar_chroma_444_420 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, + int n, int m) { int i; int j; @@ -8003,12 +7368,8 @@ cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, var38.x2[1] = ((orc_uint8) var35.x2[1] + (orc_uint8) var36.x2[1] + 1) >> 1; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var38.i; - var39 = _src.x2[1]; - var40 = _src.x2[0]; - } + var39 = (var38.i >> 8) & 0xff; + var40 = var38.i & 0xff; /* 4: avgub */ var37 = ((orc_uint8) var39 + (orc_uint8) var40 + 1) >> 1; /* 5: storeb */ @@ -8020,7 +7381,7 @@ cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_444_420 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_444_420 (OrcExecutor * ex) { int i; int j; @@ -8053,12 +7414,8 @@ _backup_cogorc_planar_chroma_444_420 (OrcExecutor * ORC_RESTRICT ex) var38.x2[1] = ((orc_uint8) var35.x2[1] + (orc_uint8) var36.x2[1] + 1) >> 1; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var38.i; - var39 = _src.x2[1]; - var40 = _src.x2[0]; - } + var39 = (var38.i >> 8) & 0xff; + var40 = var38.i & 0xff; /* 4: avgub */ var37 = ((orc_uint8) var39 + (orc_uint8) var40 + 1) >> 1; /* 5: storeb */ @@ -8069,9 +7426,9 @@ _backup_cogorc_planar_chroma_444_420 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_planar_chroma_444_420 (orc_uint8 * d1, int d1_stride, + const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, + int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8081,6 +7438,7 @@ cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -8100,7 +7458,7 @@ cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T3, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -8125,9 +7483,9 @@ cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_planar_chroma_422_420 */ #ifdef DISABLE_ORC void -cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_planar_chroma_422_420 (orc_uint8 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + int n, int m) { int i; int j; @@ -8160,7 +7518,7 @@ cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_planar_chroma_422_420 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_planar_chroma_422_420 (OrcExecutor * ex) { int i; int j; @@ -8194,9 +7552,9 @@ _backup_cogorc_planar_chroma_422_420 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_planar_chroma_422_420 (orc_uint8 * d1, int d1_stride, + const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, + int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8206,6 +7564,7 @@ cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -8218,7 +7577,7 @@ cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -8243,8 +7602,8 @@ cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_YUY2_AYUV */ #ifdef DISABLE_ORC void -cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_YUY2_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -8263,58 +7622,32 @@ cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 2: loadpb */ - var37.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var37.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadl */ var36 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var36.x2[0] >> 8) & 0xff; + var40.x2[0] = var36.x2[0] & 0xff; + var39.x2[1] = (var36.x2[1] >> 8) & 0xff; + var40.x2[1] = var36.x2[1] & 0xff; /* 3: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var40.x2[0]; - var41.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var40.x2[1]; - var41.x2[1] = _dest.i; - } + var41.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var40.x2[0] << 8); + var41.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var40.x2[1] << 8); /* 4: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var39.i; - var42.i = _dest.i; - } + var42.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var39.i << 16); /* 5: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[0]; - _dest.x2[1] = var42.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[1]; - _dest.x2[1] = var42.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint16) var41. + x2[0] & 0x0000ffff) | ((orc_uint16) var42.x2[0] << 16); + var38.x2[1] = + ((orc_uint16) var41. + x2[1] & 0x0000ffff) | ((orc_uint16) var42.x2[1] << 16); /* 6: storeq */ ptr0[i] = var38; } @@ -8324,7 +7657,7 @@ cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_YUY2_AYUV (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_YUY2_AYUV (OrcExecutor * ex) { int i; int j; @@ -8345,58 +7678,32 @@ _backup_cogorc_convert_YUY2_AYUV (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 2: loadpb */ - var37.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var37.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadl */ var36 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var36.x2[0] >> 8) & 0xff; + var40.x2[0] = var36.x2[0] & 0xff; + var39.x2[1] = (var36.x2[1] >> 8) & 0xff; + var40.x2[1] = var36.x2[1] & 0xff; /* 3: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var40.x2[0]; - var41.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var40.x2[1]; - var41.x2[1] = _dest.i; - } + var41.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var40.x2[0] << 8); + var41.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var40.x2[1] << 8); /* 4: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var39.i; - _dest.x2[1] = var39.i; - var42.i = _dest.i; - } + var42.i = + ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var39.i << 16); /* 5: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[0]; - _dest.x2[1] = var42.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[1]; - _dest.x2[1] = var42.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint16) var41. + x2[0] & 0x0000ffff) | ((orc_uint16) var42.x2[0] << 16); + var38.x2[1] = + ((orc_uint16) var41. + x2[1] & 0x0000ffff) | ((orc_uint16) var42.x2[1] << 16); /* 6: storeq */ ptr0[i] = var38; } @@ -8405,8 +7712,8 @@ _backup_cogorc_convert_YUY2_AYUV (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_YUY2_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8416,6 +7723,7 @@ cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -8438,7 +7746,7 @@ cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -8461,8 +7769,8 @@ cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_UYVY_AYUV */ #ifdef DISABLE_ORC void -cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_UYVY_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -8481,58 +7789,32 @@ cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 2: loadpb */ - var37.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var37.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadl */ var36 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var36.x2[0] >> 8) & 0xff; + var40.x2[0] = var36.x2[0] & 0xff; + var39.x2[1] = (var36.x2[1] >> 8) & 0xff; + var40.x2[1] = var36.x2[1] & 0xff; /* 3: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var39.x2[0]; - var41.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var39.x2[1]; - var41.x2[1] = _dest.i; - } + var41.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var41.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 4: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var40.i; - _dest.x2[1] = var40.i; - var42.i = _dest.i; - } + var42.i = + ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 5: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[0]; - _dest.x2[1] = var42.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[1]; - _dest.x2[1] = var42.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint16) var41. + x2[0] & 0x0000ffff) | ((orc_uint16) var42.x2[0] << 16); + var38.x2[1] = + ((orc_uint16) var41. + x2[1] & 0x0000ffff) | ((orc_uint16) var42.x2[1] << 16); /* 6: storeq */ ptr0[i] = var38; } @@ -8542,7 +7824,7 @@ cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_UYVY_AYUV (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_UYVY_AYUV (OrcExecutor * ex) { int i; int j; @@ -8563,58 +7845,32 @@ _backup_cogorc_convert_UYVY_AYUV (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 2: loadpb */ - var37.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var37.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var37.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadl */ var36 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var36.x2[0] >> 8) & 0xff; + var40.x2[0] = var36.x2[0] & 0xff; + var39.x2[1] = (var36.x2[1] >> 8) & 0xff; + var40.x2[1] = var36.x2[1] & 0xff; /* 3: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var39.x2[0]; - var41.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var39.x2[1]; - var41.x2[1] = _dest.i; - } + var41.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var41.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 4: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var40.i; - _dest.x2[1] = var40.i; - var42.i = _dest.i; - } + var42.i = + ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var40.i << 16); /* 5: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[0]; - _dest.x2[1] = var42.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var41.x2[1]; - _dest.x2[1] = var42.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint16) var41. + x2[0] & 0x0000ffff) | ((orc_uint16) var42.x2[0] << 16); + var38.x2[1] = + ((orc_uint16) var41. + x2[1] & 0x0000ffff) | ((orc_uint16) var42.x2[1] << 16); /* 6: storeq */ ptr0[i] = var38; } @@ -8623,8 +7879,8 @@ _backup_cogorc_convert_UYVY_AYUV (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_UYVY_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8634,6 +7890,7 @@ cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -8656,7 +7913,7 @@ cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T3, ORC_VAR_T4, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -8679,10 +7936,9 @@ cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_YUY2_Y42B */ #ifdef DISABLE_ORC void -cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_YUY2_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -8707,27 +7963,15 @@ cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadl */ var33 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var33.x2[0]; - var37.x2[0] = _src.x2[1]; - var34.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var33.x2[1]; - var37.x2[1] = _src.x2[1]; - var34.x2[1] = _src.x2[0]; - } + var37.x2[0] = (var33.x2[0] >> 8) & 0xff; + var34.x2[0] = var33.x2[0] & 0xff; + var37.x2[1] = (var33.x2[1] >> 8) & 0xff; + var34.x2[1] = var33.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var34; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var37.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var37.i >> 8) & 0xff; + var36 = var37.i & 0xff; /* 4: storeb */ ptr2[i] = var35; /* 5: storeb */ @@ -8739,7 +7983,7 @@ cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_YUY2_Y42B (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_YUY2_Y42B (OrcExecutor * ex) { int i; int j; @@ -8766,27 +8010,15 @@ _backup_cogorc_convert_YUY2_Y42B (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var33.x2[0]; - var37.x2[0] = _src.x2[1]; - var34.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var33.x2[1]; - var37.x2[1] = _src.x2[1]; - var34.x2[1] = _src.x2[0]; - } + var37.x2[0] = (var33.x2[0] >> 8) & 0xff; + var34.x2[0] = var33.x2[0] & 0xff; + var37.x2[1] = (var33.x2[1] >> 8) & 0xff; + var34.x2[1] = var33.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var34; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var37.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var37.i >> 8) & 0xff; + var36 = var37.i & 0xff; /* 4: storeb */ ptr2[i] = var35; /* 5: storeb */ @@ -8797,10 +8029,9 @@ _backup_cogorc_convert_YUY2_Y42B (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_YUY2_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8810,6 +8041,7 @@ cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -8826,7 +8058,7 @@ cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D3, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -8853,10 +8085,9 @@ cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_UYVY_Y42B */ #ifdef DISABLE_ORC void -cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_UYVY_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -8881,27 +8112,15 @@ cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadl */ var33 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var33.x2[0]; - var34.x2[0] = _src.x2[1]; - var37.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var33.x2[1]; - var34.x2[1] = _src.x2[1]; - var37.x2[1] = _src.x2[0]; - } + var34.x2[0] = (var33.x2[0] >> 8) & 0xff; + var37.x2[0] = var33.x2[0] & 0xff; + var34.x2[1] = (var33.x2[1] >> 8) & 0xff; + var37.x2[1] = var33.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var34; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var37.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var37.i >> 8) & 0xff; + var36 = var37.i & 0xff; /* 4: storeb */ ptr2[i] = var35; /* 5: storeb */ @@ -8913,7 +8132,7 @@ cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_UYVY_Y42B (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_UYVY_Y42B (OrcExecutor * ex) { int i; int j; @@ -8940,27 +8159,15 @@ _backup_cogorc_convert_UYVY_Y42B (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var33 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var33.x2[0]; - var34.x2[0] = _src.x2[1]; - var37.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var33.x2[1]; - var34.x2[1] = _src.x2[1]; - var37.x2[1] = _src.x2[0]; - } + var34.x2[0] = (var33.x2[0] >> 8) & 0xff; + var37.x2[0] = var33.x2[0] & 0xff; + var34.x2[1] = (var33.x2[1] >> 8) & 0xff; + var37.x2[1] = var33.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var34; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var37.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var37.i >> 8) & 0xff; + var36 = var37.i & 0xff; /* 4: storeb */ ptr2[i] = var35; /* 5: storeb */ @@ -8971,10 +8178,9 @@ _backup_cogorc_convert_UYVY_Y42B (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_UYVY_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -8984,6 +8190,7 @@ cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -9000,7 +8207,7 @@ cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D3, ORC_VAR_D2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -9027,10 +8234,9 @@ cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_YUY2_Y444 */ #ifdef DISABLE_ORC void -cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_YUY2_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -9057,27 +8263,15 @@ cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var36.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var36.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var36.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var36.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var36; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var39.i; - var40 = _src.x2[1]; - var41 = _src.x2[0]; - } + var40 = (var39.i >> 8) & 0xff; + var41 = var39.i & 0xff; /* 4: splatbw */ var37.i = ((var41 & 0xff) << 8) | (var41 & 0xff); /* 5: storew */ @@ -9093,7 +8287,7 @@ cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_YUY2_Y444 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_YUY2_Y444 (OrcExecutor * ex) { int i; int j; @@ -9122,27 +8316,15 @@ _backup_cogorc_convert_YUY2_Y444 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var36.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var36.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var36.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var36.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var36; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var39.i; - var40 = _src.x2[1]; - var41 = _src.x2[0]; - } + var40 = (var39.i >> 8) & 0xff; + var41 = var39.i & 0xff; /* 4: splatbw */ var37.i = ((var41 & 0xff) << 8) | (var41 & 0xff); /* 5: storew */ @@ -9157,10 +8339,9 @@ _backup_cogorc_convert_YUY2_Y444 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_YUY2_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -9170,6 +8351,7 @@ cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -9192,7 +8374,7 @@ cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "splatbw", 0, ORC_VAR_D3, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -9219,10 +8401,9 @@ cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_UYVY_Y444 */ #ifdef DISABLE_ORC void -cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_UYVY_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -9249,27 +8430,15 @@ cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var36.x2[0] = _src.x2[1]; - var39.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var36.x2[1] = _src.x2[1]; - var39.x2[1] = _src.x2[0]; - } + var36.x2[0] = (var35.x2[0] >> 8) & 0xff; + var39.x2[0] = var35.x2[0] & 0xff; + var36.x2[1] = (var35.x2[1] >> 8) & 0xff; + var39.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var36; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var39.i; - var40 = _src.x2[1]; - var41 = _src.x2[0]; - } + var40 = (var39.i >> 8) & 0xff; + var41 = var39.i & 0xff; /* 4: splatbw */ var37.i = ((var41 & 0xff) << 8) | (var41 & 0xff); /* 5: storew */ @@ -9285,7 +8454,7 @@ cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_UYVY_Y444 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_UYVY_Y444 (OrcExecutor * ex) { int i; int j; @@ -9314,27 +8483,15 @@ _backup_cogorc_convert_UYVY_Y444 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var36.x2[0] = _src.x2[1]; - var39.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var36.x2[1] = _src.x2[1]; - var39.x2[1] = _src.x2[0]; - } + var36.x2[0] = (var35.x2[0] >> 8) & 0xff; + var39.x2[0] = var35.x2[0] & 0xff; + var36.x2[1] = (var35.x2[1] >> 8) & 0xff; + var39.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var36; /* 3: splitwb */ - { - orc_union16 _src; - _src.i = var39.i; - var40 = _src.x2[1]; - var41 = _src.x2[0]; - } + var40 = (var39.i >> 8) & 0xff; + var41 = var39.i & 0xff; /* 4: splatbw */ var37.i = ((var41 & 0xff) << 8) | (var41 & 0xff); /* 5: storew */ @@ -9349,10 +8506,9 @@ _backup_cogorc_convert_UYVY_Y444 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_UYVY_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -9362,6 +8518,7 @@ cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -9384,7 +8541,7 @@ cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "splatbw", 0, ORC_VAR_D3, ORC_VAR_T3, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -9411,10 +8568,8 @@ cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_UYVY_I420 */ #ifdef DISABLE_ORC void -cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n) +cogorc_convert_UYVY_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n) { int i; orc_union16 *ORC_RESTRICT ptr0; @@ -9445,47 +8600,27 @@ cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var40.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var40.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var39; /* 3: loadl */ var36 = ptr5[i]; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var41.x2[0] = _src.x2[1]; - var42.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var41.x2[1] = _src.x2[1]; - var42.x2[1] = _src.x2[0]; - } + var41.x2[0] = (var36.x2[0] >> 8) & 0xff; + var42.x2[0] = var36.x2[0] & 0xff; + var41.x2[1] = (var36.x2[1] >> 8) & 0xff; + var42.x2[1] = var36.x2[1] & 0xff; /* 5: storew */ ptr1[i] = var41; /* 6: avgub */ var43.x2[0] = ((orc_uint8) var40.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var40.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 7: splitwb */ - { - orc_union16 _src; - _src.i = var43.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var43.i >> 8) & 0xff; + var38 = var43.i & 0xff; /* 8: storeb */ ptr3[i] = var37; /* 9: storeb */ @@ -9496,7 +8631,7 @@ cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_UYVY_I420 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_UYVY_I420 (OrcExecutor * ex) { int i; int n = ex->n; @@ -9528,47 +8663,27 @@ _backup_cogorc_convert_UYVY_I420 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var35 = ptr4[i]; /* 1: splitwb */ - { - orc_union16 _src; - _src.i = var35.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var35.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var35.x2[0] >> 8) & 0xff; + var40.x2[0] = var35.x2[0] & 0xff; + var39.x2[1] = (var35.x2[1] >> 8) & 0xff; + var40.x2[1] = var35.x2[1] & 0xff; /* 2: storew */ ptr0[i] = var39; /* 3: loadl */ var36 = ptr5[i]; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var36.x2[0]; - var41.x2[0] = _src.x2[1]; - var42.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var36.x2[1]; - var41.x2[1] = _src.x2[1]; - var42.x2[1] = _src.x2[0]; - } + var41.x2[0] = (var36.x2[0] >> 8) & 0xff; + var42.x2[0] = var36.x2[0] & 0xff; + var41.x2[1] = (var36.x2[1] >> 8) & 0xff; + var42.x2[1] = var36.x2[1] & 0xff; /* 5: storew */ ptr1[i] = var41; /* 6: avgub */ var43.x2[0] = ((orc_uint8) var40.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var40.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 7: splitwb */ - { - orc_union16 _src; - _src.i = var43.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var43.i >> 8) & 0xff; + var38 = var43.i & 0xff; /* 8: storeb */ ptr3[i] = var37; /* 9: storeb */ @@ -9578,10 +8693,8 @@ _backup_cogorc_convert_UYVY_I420 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, - orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, - orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, - const orc_uint32 * ORC_RESTRICT s2, int n) +cogorc_convert_UYVY_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, + orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -9591,6 +8704,7 @@ cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_UYVY_I420"); @@ -9618,7 +8732,7 @@ cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, orc_program_append_2 (p, "splitwb", 0, ORC_VAR_D4, ORC_VAR_D3, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -9642,11 +8756,10 @@ cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, /* cogorc_convert_AYUV_I420 */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, orc_uint8 * ORC_RESTRICT d4, int d4_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, - const orc_uint64 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_convert_AYUV_I420 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, orc_uint8 * d4, int d4_stride, + const orc_uint64 * s1, int s1_stride, const orc_uint64 * s2, int s2_stride, + int n, int m) { int i; int j; @@ -9687,57 +8800,25 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadq */ var40 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var40.x2[0]; - var46.x2[0] = _src.x2[1]; - var47.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var40.x2[1]; - var46.x2[1] = _src.x2[1]; - var47.x2[1] = _src.x2[0]; - } + var46.x2[0] = (var40.x2[0] >> 16) & 0xffff; + var47.x2[0] = var40.x2[0] & 0xffff; + var46.x2[1] = (var40.x2[1] >> 16) & 0xffff; + var47.x2[1] = var40.x2[1] & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var47.x2[0]; - var41.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var47.x2[1]; - var41.x2[1] = _src.x2[1]; - } + var41.x2[0] = ((orc_uint16) var47.x2[0] >> 8) & 0xff; + var41.x2[1] = ((orc_uint16) var47.x2[1] >> 8) & 0xff; /* 3: storew */ ptr0[i] = var41; /* 4: loadq */ var42 = ptr5[i]; /* 5: splitlw */ - { - orc_union32 _src; - _src.i = var42.x2[0]; - var48.x2[0] = _src.x2[1]; - var49.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var42.x2[1]; - var48.x2[1] = _src.x2[1]; - var49.x2[1] = _src.x2[0]; - } + var48.x2[0] = (var42.x2[0] >> 16) & 0xffff; + var49.x2[0] = var42.x2[0] & 0xffff; + var48.x2[1] = (var42.x2[1] >> 16) & 0xffff; + var49.x2[1] = var42.x2[1] & 0xffff; /* 6: select1wb */ - { - orc_union16 _src; - _src.i = var49.x2[0]; - var43.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var49.x2[1]; - var43.x2[1] = _src.x2[1]; - } + var43.x2[0] = ((orc_uint16) var49.x2[0] >> 8) & 0xff; + var43.x2[1] = ((orc_uint16) var49.x2[1] >> 8) & 0xff; /* 7: storew */ ptr1[i] = var43; /* 8: avgub */ @@ -9750,36 +8831,20 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, var50.x4[3] = ((orc_uint8) var46.x4[3] + (orc_uint8) var48.x4[3] + 1) >> 1; /* 9: splitwb */ - { - orc_union16 _src; - _src.i = var50.x2[0]; - var51.x2[0] = _src.x2[1]; - var52.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var50.x2[1]; - var51.x2[1] = _src.x2[1]; - var52.x2[1] = _src.x2[0]; - } + var51.x2[0] = (var50.x2[0] >> 8) & 0xff; + var52.x2[0] = var50.x2[0] & 0xff; + var51.x2[1] = (var50.x2[1] >> 8) & 0xff; + var52.x2[1] = var50.x2[1] & 0xff; /* 10: splitwb */ - { - orc_union16 _src; - _src.i = var52.i; - var53 = _src.x2[1]; - var54 = _src.x2[0]; - } + var53 = (var52.i >> 8) & 0xff; + var54 = var52.i & 0xff; /* 11: avgub */ var44 = ((orc_uint8) var53 + (orc_uint8) var54 + 1) >> 1; /* 12: storeb */ ptr2[i] = var44; /* 13: splitwb */ - { - orc_union16 _src; - _src.i = var51.i; - var55 = _src.x2[1]; - var56 = _src.x2[0]; - } + var55 = (var51.i >> 8) & 0xff; + var56 = var51.i & 0xff; /* 14: avgub */ var45 = ((orc_uint8) var55 + (orc_uint8) var56 + 1) >> 1; /* 15: storeb */ @@ -9791,7 +8856,7 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_I420 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_I420 (OrcExecutor * ex) { int i; int j; @@ -9834,57 +8899,25 @@ _backup_cogorc_convert_AYUV_I420 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadq */ var40 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var40.x2[0]; - var46.x2[0] = _src.x2[1]; - var47.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var40.x2[1]; - var46.x2[1] = _src.x2[1]; - var47.x2[1] = _src.x2[0]; - } + var46.x2[0] = (var40.x2[0] >> 16) & 0xffff; + var47.x2[0] = var40.x2[0] & 0xffff; + var46.x2[1] = (var40.x2[1] >> 16) & 0xffff; + var47.x2[1] = var40.x2[1] & 0xffff; /* 2: select1wb */ - { - orc_union16 _src; - _src.i = var47.x2[0]; - var41.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var47.x2[1]; - var41.x2[1] = _src.x2[1]; - } + var41.x2[0] = ((orc_uint16) var47.x2[0] >> 8) & 0xff; + var41.x2[1] = ((orc_uint16) var47.x2[1] >> 8) & 0xff; /* 3: storew */ ptr0[i] = var41; /* 4: loadq */ var42 = ptr5[i]; /* 5: splitlw */ - { - orc_union32 _src; - _src.i = var42.x2[0]; - var48.x2[0] = _src.x2[1]; - var49.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var42.x2[1]; - var48.x2[1] = _src.x2[1]; - var49.x2[1] = _src.x2[0]; - } + var48.x2[0] = (var42.x2[0] >> 16) & 0xffff; + var49.x2[0] = var42.x2[0] & 0xffff; + var48.x2[1] = (var42.x2[1] >> 16) & 0xffff; + var49.x2[1] = var42.x2[1] & 0xffff; /* 6: select1wb */ - { - orc_union16 _src; - _src.i = var49.x2[0]; - var43.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var49.x2[1]; - var43.x2[1] = _src.x2[1]; - } + var43.x2[0] = ((orc_uint16) var49.x2[0] >> 8) & 0xff; + var43.x2[1] = ((orc_uint16) var49.x2[1] >> 8) & 0xff; /* 7: storew */ ptr1[i] = var43; /* 8: avgub */ @@ -9897,36 +8930,20 @@ _backup_cogorc_convert_AYUV_I420 (OrcExecutor * ORC_RESTRICT ex) var50.x4[3] = ((orc_uint8) var46.x4[3] + (orc_uint8) var48.x4[3] + 1) >> 1; /* 9: splitwb */ - { - orc_union16 _src; - _src.i = var50.x2[0]; - var51.x2[0] = _src.x2[1]; - var52.x2[0] = _src.x2[0]; - } - { - orc_union16 _src; - _src.i = var50.x2[1]; - var51.x2[1] = _src.x2[1]; - var52.x2[1] = _src.x2[0]; - } + var51.x2[0] = (var50.x2[0] >> 8) & 0xff; + var52.x2[0] = var50.x2[0] & 0xff; + var51.x2[1] = (var50.x2[1] >> 8) & 0xff; + var52.x2[1] = var50.x2[1] & 0xff; /* 10: splitwb */ - { - orc_union16 _src; - _src.i = var52.i; - var53 = _src.x2[1]; - var54 = _src.x2[0]; - } + var53 = (var52.i >> 8) & 0xff; + var54 = var52.i & 0xff; /* 11: avgub */ var44 = ((orc_uint8) var53 + (orc_uint8) var54 + 1) >> 1; /* 12: storeb */ ptr2[i] = var44; /* 13: splitwb */ - { - orc_union16 _src; - _src.i = var51.i; - var55 = _src.x2[1]; - var56 = _src.x2[0]; - } + var55 = (var51.i >> 8) & 0xff; + var56 = var51.i & 0xff; /* 14: avgub */ var45 = ((orc_uint8) var55 + (orc_uint8) var56 + 1) >> 1; /* 15: storeb */ @@ -9937,11 +8954,10 @@ _backup_cogorc_convert_AYUV_I420 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, orc_uint8 * ORC_RESTRICT d4, int d4_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, - const orc_uint64 * ORC_RESTRICT s2, int s2_stride, int n, int m) +cogorc_convert_AYUV_I420 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, orc_uint8 * d4, int d4_stride, + const orc_uint64 * s1, int s1_stride, const orc_uint64 * s2, int s2_stride, + int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -9951,6 +8967,7 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -9992,7 +9009,7 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "avgub", 0, ORC_VAR_D4, ORC_VAR_T7, ORC_VAR_T8, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -10023,8 +9040,8 @@ cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_YUY2 */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -10048,54 +9065,26 @@ cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 0: loadq */ var37 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var37.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var37.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var37.x2[0] >> 16) & 0xffff; + var40.x2[0] = var37.x2[0] & 0xffff; + var39.x2[1] = (var37.x2[1] >> 16) & 0xffff; + var40.x2[1] = var37.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var39.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var39.i >> 16) & 0xffff; + var42.i = var39.i & 0xffff; /* 3: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var41.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 4: select1wb */ - { - orc_union16 _src; - _src.i = var40.x2[0]; - var44.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var40.x2[1]; - var44.x2[1] = _src.x2[1]; - } + var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff; + var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var44.x2[0]; - _dest.x2[1] = var43.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var44.x2[1]; - _dest.x2[1] = var43.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var44.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var44.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8); /* 6: storel */ ptr0[i] = var38; } @@ -10105,7 +9094,7 @@ cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_YUY2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_YUY2 (OrcExecutor * ex) { int i; int j; @@ -10131,54 +9120,26 @@ _backup_cogorc_convert_AYUV_YUY2 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadq */ var37 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var37.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var37.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var37.x2[0] >> 16) & 0xffff; + var40.x2[0] = var37.x2[0] & 0xffff; + var39.x2[1] = (var37.x2[1] >> 16) & 0xffff; + var40.x2[1] = var37.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var39.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var39.i >> 16) & 0xffff; + var42.i = var39.i & 0xffff; /* 3: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var41.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 4: select1wb */ - { - orc_union16 _src; - _src.i = var40.x2[0]; - var44.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var40.x2[1]; - var44.x2[1] = _src.x2[1]; - } + var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff; + var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var44.x2[0]; - _dest.x2[1] = var43.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var44.x2[1]; - _dest.x2[1] = var43.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var44.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var44.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8); /* 6: storel */ ptr0[i] = var38; } @@ -10187,8 +9148,8 @@ _backup_cogorc_convert_AYUV_YUY2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -10198,6 +9159,7 @@ cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -10222,7 +9184,7 @@ cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_T2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -10245,8 +9207,8 @@ cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_UYVY */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -10270,54 +9232,26 @@ cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 0: loadq */ var37 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var37.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var37.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var37.x2[0] >> 16) & 0xffff; + var40.x2[0] = var37.x2[0] & 0xffff; + var39.x2[1] = (var37.x2[1] >> 16) & 0xffff; + var40.x2[1] = var37.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var39.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var39.i >> 16) & 0xffff; + var42.i = var39.i & 0xffff; /* 3: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var41.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 4: select1wb */ - { - orc_union16 _src; - _src.i = var40.x2[0]; - var44.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var40.x2[1]; - var44.x2[1] = _src.x2[1]; - } + var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff; + var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[0]; - _dest.x2[1] = var44.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[1]; - _dest.x2[1] = var44.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var44.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var44.x2[1] << 8); /* 6: storel */ ptr0[i] = var38; } @@ -10327,7 +9261,7 @@ cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_UYVY (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_UYVY (OrcExecutor * ex) { int i; int j; @@ -10353,54 +9287,26 @@ _backup_cogorc_convert_AYUV_UYVY (OrcExecutor * ORC_RESTRICT ex) /* 0: loadq */ var37 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var37.x2[0]; - var39.x2[0] = _src.x2[1]; - var40.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var37.x2[1]; - var39.x2[1] = _src.x2[1]; - var40.x2[1] = _src.x2[0]; - } + var39.x2[0] = (var37.x2[0] >> 16) & 0xffff; + var40.x2[0] = var37.x2[0] & 0xffff; + var39.x2[1] = (var37.x2[1] >> 16) & 0xffff; + var40.x2[1] = var37.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var39.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var39.i >> 16) & 0xffff; + var42.i = var39.i & 0xffff; /* 3: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; var43.x2[1] = ((orc_uint8) var41.x2[1] + (orc_uint8) var42.x2[1] + 1) >> 1; /* 4: select1wb */ - { - orc_union16 _src; - _src.i = var40.x2[0]; - var44.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var40.x2[1]; - var44.x2[1] = _src.x2[1]; - } + var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff; + var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[0]; - _dest.x2[1] = var44.x2[0]; - var38.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[1]; - _dest.x2[1] = var44.x2[1]; - var38.x2[1] = _dest.i; - } + var38.x2[0] = + ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var44.x2[0] << 8); + var38.x2[1] = + ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var44.x2[1] << 8); /* 6: storel */ ptr0[i] = var38; } @@ -10409,8 +9315,8 @@ _backup_cogorc_convert_AYUV_UYVY (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -10420,6 +9326,7 @@ cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -10444,7 +9351,7 @@ cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -10467,10 +9374,9 @@ cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_Y42B */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_AYUV_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -10499,52 +9405,28 @@ cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* 0: loadq */ var36 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var36.x2[0]; - var40.x2[0] = _src.x2[1]; - var41.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var36.x2[1]; - var40.x2[1] = _src.x2[1]; - var41.x2[1] = _src.x2[0]; - } + var40.x2[0] = (var36.x2[0] >> 16) & 0xffff; + var41.x2[0] = var36.x2[0] & 0xffff; + var40.x2[1] = (var36.x2[1] >> 16) & 0xffff; + var41.x2[1] = var36.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var42.i = _src.x2[1]; - var43.i = _src.x2[0]; - } + var42.i = (var40.i >> 16) & 0xffff; + var43.i = var40.i & 0xffff; /* 3: avgub */ var44.x2[0] = ((orc_uint8) var42.x2[0] + (orc_uint8) var43.x2[0] + 1) >> 1; var44.x2[1] = ((orc_uint8) var42.x2[1] + (orc_uint8) var43.x2[1] + 1) >> 1; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var44.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var44.i >> 8) & 0xff; + var38 = var44.i & 0xff; /* 5: storeb */ ptr2[i] = var37; /* 6: storeb */ ptr1[i] = var38; /* 7: select1wb */ - { - orc_union16 _src; - _src.i = var41.x2[0]; - var39.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var41.x2[1]; - var39.x2[1] = _src.x2[1]; - } + var39.x2[0] = ((orc_uint16) var41.x2[0] >> 8) & 0xff; + var39.x2[1] = ((orc_uint16) var41.x2[1] >> 8) & 0xff; /* 8: storew */ ptr0[i] = var39; } @@ -10554,7 +9436,7 @@ cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_Y42B (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_Y42B (OrcExecutor * ex) { int i; int j; @@ -10585,52 +9467,28 @@ _backup_cogorc_convert_AYUV_Y42B (OrcExecutor * ORC_RESTRICT ex) /* 0: loadq */ var36 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var36.x2[0]; - var40.x2[0] = _src.x2[1]; - var41.x2[0] = _src.x2[0]; - } - { - orc_union32 _src; - _src.i = var36.x2[1]; - var40.x2[1] = _src.x2[1]; - var41.x2[1] = _src.x2[0]; - } + var40.x2[0] = (var36.x2[0] >> 16) & 0xffff; + var41.x2[0] = var36.x2[0] & 0xffff; + var40.x2[1] = (var36.x2[1] >> 16) & 0xffff; + var41.x2[1] = var36.x2[1] & 0xffff; /* 2: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var42.i = _src.x2[1]; - var43.i = _src.x2[0]; - } + var42.i = (var40.i >> 16) & 0xffff; + var43.i = var40.i & 0xffff; /* 3: avgub */ var44.x2[0] = ((orc_uint8) var42.x2[0] + (orc_uint8) var43.x2[0] + 1) >> 1; var44.x2[1] = ((orc_uint8) var42.x2[1] + (orc_uint8) var43.x2[1] + 1) >> 1; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var44.i; - var37 = _src.x2[1]; - var38 = _src.x2[0]; - } + var37 = (var44.i >> 8) & 0xff; + var38 = var44.i & 0xff; /* 5: storeb */ ptr2[i] = var37; /* 6: storeb */ ptr1[i] = var38; /* 7: select1wb */ - { - orc_union16 _src; - _src.i = var41.x2[0]; - var39.x2[0] = _src.x2[1]; - } - { - orc_union16 _src; - _src.i = var41.x2[1]; - var39.x2[1] = _src.x2[1]; - } + var39.x2[0] = ((orc_uint16) var41.x2[0] >> 8) & 0xff; + var39.x2[1] = ((orc_uint16) var41.x2[1] >> 8) & 0xff; /* 8: storew */ ptr0[i] = var39; } @@ -10639,10 +9497,9 @@ _backup_cogorc_convert_AYUV_Y42B (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_AYUV_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint64 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -10652,6 +9509,7 @@ cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -10677,7 +9535,7 @@ cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "select1wb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -10704,10 +9562,9 @@ cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_Y444 */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_AYUV_Y444 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -10733,29 +9590,17 @@ cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* 0: loadl */ var34 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var34.i; - var38.i = _src.x2[1]; - var39.i = _src.x2[0]; - } + var38.i = (var34.i >> 16) & 0xffff; + var39.i = var34.i & 0xffff; /* 2: splitwb */ - { - orc_union16 _src; - _src.i = var38.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var38.i >> 8) & 0xff; + var36 = var38.i & 0xff; /* 3: storeb */ ptr2[i] = var35; /* 4: storeb */ ptr1[i] = var36; /* 5: select1wb */ - { - orc_union16 _src; - _src.i = var39.i; - var37 = _src.x2[1]; - } + var37 = ((orc_uint16) var39.i >> 8) & 0xff; /* 6: storeb */ ptr0[i] = var37; } @@ -10765,7 +9610,7 @@ cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_Y444 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_Y444 (OrcExecutor * ex) { int i; int j; @@ -10793,29 +9638,17 @@ _backup_cogorc_convert_AYUV_Y444 (OrcExecutor * ORC_RESTRICT ex) /* 0: loadl */ var34 = ptr4[i]; /* 1: splitlw */ - { - orc_union32 _src; - _src.i = var34.i; - var38.i = _src.x2[1]; - var39.i = _src.x2[0]; - } + var38.i = (var34.i >> 16) & 0xffff; + var39.i = var34.i & 0xffff; /* 2: splitwb */ - { - orc_union16 _src; - _src.i = var38.i; - var35 = _src.x2[1]; - var36 = _src.x2[0]; - } + var35 = (var38.i >> 8) & 0xff; + var36 = var38.i & 0xff; /* 3: storeb */ ptr2[i] = var35; /* 4: storeb */ ptr1[i] = var36; /* 5: select1wb */ - { - orc_union16 _src; - _src.i = var39.i; - var37 = _src.x2[1]; - } + var37 = ((orc_uint16) var39.i >> 8) & 0xff; /* 6: storeb */ ptr0[i] = var37; } @@ -10824,10 +9657,9 @@ _backup_cogorc_convert_AYUV_Y444 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, - orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, - int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, - int m) +cogorc_convert_AYUV_Y444 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, + int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -10837,6 +9669,7 @@ cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -10856,7 +9689,7 @@ cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -10883,10 +9716,9 @@ cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y42B_YUY2 */ #ifdef DISABLE_ORC void -cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -10913,27 +9745,14 @@ cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 1: loadb */ var34 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var37.i = _dest.i; - } + var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[0]; - _dest.x2[1] = var37.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[1]; - _dest.x2[1] = var37.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; } @@ -10943,7 +9762,7 @@ cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y42B_YUY2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y42B_YUY2 (OrcExecutor * ex) { int i; int j; @@ -10972,27 +9791,14 @@ _backup_cogorc_convert_Y42B_YUY2 (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var34 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var37.i = _dest.i; - } + var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[0]; - _dest.x2[1] = var37.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var35.x2[1]; - _dest.x2[1] = var37.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; } @@ -11001,10 +9807,9 @@ _backup_cogorc_convert_Y42B_YUY2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -11014,6 +9819,7 @@ cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -11030,7 +9836,7 @@ cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -11057,10 +9863,9 @@ cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y42B_UYVY */ #ifdef DISABLE_ORC void -cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -11087,27 +9892,14 @@ cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 1: loadb */ var34 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var37.i = _dest.i; - } + var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var35.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var35.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; } @@ -11117,7 +9909,7 @@ cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y42B_UYVY (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y42B_UYVY (OrcExecutor * ex) { int i; int j; @@ -11146,27 +9938,14 @@ _backup_cogorc_convert_Y42B_UYVY (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var34 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var33; - _dest.x2[1] = var34; - var37.i = _dest.i; - } + var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8); /* 3: loadw */ var35 = ptr4[i]; /* 4: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[0]; - _dest.x2[1] = var35.x2[0]; - var36.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var37.x2[1]; - _dest.x2[1] = var35.x2[1]; - var36.x2[1] = _dest.i; - } + var36.x2[0] = + ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8); + var36.x2[1] = + ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8); /* 5: storel */ ptr0[i] = var36; } @@ -11175,10 +9954,9 @@ _backup_cogorc_convert_Y42B_UYVY (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -11188,6 +9966,7 @@ cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -11204,7 +9983,7 @@ cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -11231,10 +10010,9 @@ cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y42B_AYUV */ #ifdef DISABLE_ORC void -cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -11258,8 +10036,8 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, ptr6 = ORC_PTR_OFFSET (s3, s3_stride * j); /* 3: loadpb */ - var38.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var38.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var38.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var38.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -11267,47 +10045,24 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, /* 1: loadb */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var41.i = _dest.i; - } + var41.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 4: loadw */ var39 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[0]; - _dest.x2[1] = var39.x2[0]; - var42.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[1]; - _dest.x2[1] = var39.x2[1]; - var42.x2[1] = _dest.i; - } + var42.x2[0] = + ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var42.x2[1] = + ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.i; - _dest.x2[1] = var41.i; - var43.i = _dest.i; - } + var43.i = + ((orc_uint16) var41.i & 0x0000ffff) | ((orc_uint16) var41.i << 16); /* 7: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var42.x2[0]; - _dest.x2[1] = var43.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var42.x2[1]; - _dest.x2[1] = var43.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint16) var42. + x2[0] & 0x0000ffff) | ((orc_uint16) var43.x2[0] << 16); + var40.x2[1] = + ((orc_uint16) var42. + x2[1] & 0x0000ffff) | ((orc_uint16) var43.x2[1] << 16); /* 8: storeq */ ptr0[i] = var40; } @@ -11317,7 +10072,7 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y42B_AYUV (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y42B_AYUV (OrcExecutor * ex) { int i; int j; @@ -11343,8 +10098,8 @@ _backup_cogorc_convert_Y42B_AYUV (OrcExecutor * ORC_RESTRICT ex) ptr6 = ORC_PTR_OFFSET (ex->arrays[6], ex->params[6] * j); /* 3: loadpb */ - var38.x2[0] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ - var38.x2[1] = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var38.x2[0] = 0x000000ff; /* 255 or 1.25987e-321f */ + var38.x2[1] = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -11352,47 +10107,24 @@ _backup_cogorc_convert_Y42B_AYUV (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var41.i = _dest.i; - } + var41.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 4: loadw */ var39 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[0]; - _dest.x2[1] = var39.x2[0]; - var42.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[1]; - _dest.x2[1] = var39.x2[1]; - var42.x2[1] = _dest.i; - } + var42.x2[0] = + ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8); + var42.x2[1] = + ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var41.i; - _dest.x2[1] = var41.i; - var43.i = _dest.i; - } + var43.i = + ((orc_uint16) var41.i & 0x0000ffff) | ((orc_uint16) var41.i << 16); /* 7: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var42.x2[0]; - _dest.x2[1] = var43.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union32 _dest; - _dest.x2[0] = var42.x2[1]; - _dest.x2[1] = var43.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint16) var42. + x2[0] & 0x0000ffff) | ((orc_uint16) var43.x2[0] << 16); + var40.x2[1] = + ((orc_uint16) var42. + x2[1] & 0x0000ffff) | ((orc_uint16) var43.x2[1] << 16); /* 8: storeq */ ptr0[i] = var40; } @@ -11401,10 +10133,9 @@ _backup_cogorc_convert_Y42B_AYUV (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y42B_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -11414,6 +10145,7 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -11438,7 +10170,7 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergewl", 1, ORC_VAR_D1, ORC_VAR_T4, ORC_VAR_T3, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -11465,10 +10197,9 @@ cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y444_YUY2 */ #ifdef DISABLE_ORC void -cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -11498,25 +10229,13 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 1: loadw */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[0]; - _dest.x2[1] = var37.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[1]; - _dest.x2[1] = var37.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var40.x2[1] = + ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var40.i >> 16) & 0xffff; + var42.i = var40.i & 0xffff; /* 4: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; @@ -11525,18 +10244,10 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 5: loadw */ var38 = ptr4[i]; /* 6: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[0]; - _dest.x2[1] = var43.x2[0]; - var39.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[1]; - _dest.x2[1] = var43.x2[1]; - var39.x2[1] = _dest.i; - } + var39.x2[0] = + ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8); + var39.x2[1] = + ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8); /* 7: storel */ ptr0[i] = var39; } @@ -11546,7 +10257,7 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y444_YUY2 (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y444_YUY2 (OrcExecutor * ex) { int i; int j; @@ -11578,25 +10289,13 @@ _backup_cogorc_convert_Y444_YUY2 (OrcExecutor * ORC_RESTRICT ex) /* 1: loadw */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[0]; - _dest.x2[1] = var37.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[1]; - _dest.x2[1] = var37.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var40.x2[1] = + ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var40.i >> 16) & 0xffff; + var42.i = var40.i & 0xffff; /* 4: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; @@ -11605,18 +10304,10 @@ _backup_cogorc_convert_Y444_YUY2 (OrcExecutor * ORC_RESTRICT ex) /* 5: loadw */ var38 = ptr4[i]; /* 6: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[0]; - _dest.x2[1] = var43.x2[0]; - var39.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var38.x2[1]; - _dest.x2[1] = var43.x2[1]; - var39.x2[1] = _dest.i; - } + var39.x2[0] = + ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8); + var39.x2[1] = + ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8); /* 7: storel */ ptr0[i] = var39; } @@ -11625,10 +10316,9 @@ _backup_cogorc_convert_Y444_YUY2 (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -11638,6 +10328,7 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -11661,7 +10352,7 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -11688,10 +10379,9 @@ cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y444_UYVY */ #ifdef DISABLE_ORC void -cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -11721,25 +10411,13 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 1: loadw */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[0]; - _dest.x2[1] = var37.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[1]; - _dest.x2[1] = var37.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var40.x2[1] = + ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var40.i >> 16) & 0xffff; + var42.i = var40.i & 0xffff; /* 4: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; @@ -11748,18 +10426,10 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 5: loadw */ var38 = ptr4[i]; /* 6: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[0]; - _dest.x2[1] = var38.x2[0]; - var39.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[1]; - _dest.x2[1] = var38.x2[1]; - var39.x2[1] = _dest.i; - } + var39.x2[0] = + ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var38.x2[0] << 8); + var39.x2[1] = + ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var38.x2[1] << 8); /* 7: storel */ ptr0[i] = var39; } @@ -11769,7 +10439,7 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y444_UYVY (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y444_UYVY (OrcExecutor * ex) { int i; int j; @@ -11801,25 +10471,13 @@ _backup_cogorc_convert_Y444_UYVY (OrcExecutor * ORC_RESTRICT ex) /* 1: loadw */ var37 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[0]; - _dest.x2[1] = var37.x2[0]; - var40.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var36.x2[1]; - _dest.x2[1] = var37.x2[1]; - var40.x2[1] = _dest.i; - } + var40.x2[0] = + ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8); + var40.x2[1] = + ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8); /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var40.i; - var41.i = _src.x2[1]; - var42.i = _src.x2[0]; - } + var41.i = (var40.i >> 16) & 0xffff; + var42.i = var40.i & 0xffff; /* 4: avgub */ var43.x2[0] = ((orc_uint8) var41.x2[0] + (orc_uint8) var42.x2[0] + 1) >> 1; @@ -11828,18 +10486,10 @@ _backup_cogorc_convert_Y444_UYVY (OrcExecutor * ORC_RESTRICT ex) /* 5: loadw */ var38 = ptr4[i]; /* 6: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[0]; - _dest.x2[1] = var38.x2[0]; - var39.x2[0] = _dest.i; - } - { - orc_union16 _dest; - _dest.x2[0] = var43.x2[1]; - _dest.x2[1] = var38.x2[1]; - var39.x2[1] = _dest.i; - } + var39.x2[0] = + ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var38.x2[0] << 8); + var39.x2[1] = + ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var38.x2[1] << 8); /* 7: storel */ ptr0[i] = var39; } @@ -11848,10 +10498,9 @@ _backup_cogorc_convert_Y444_UYVY (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint16 * ORC_RESTRICT s1, int s1_stride, - const orc_uint16 * ORC_RESTRICT s2, int s2_stride, - const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, + int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -11861,6 +10510,7 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -11884,7 +10534,7 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergebw", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -11911,10 +10561,9 @@ cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_Y444_AYUV */ #ifdef DISABLE_ORC void -cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_AYUV (orc_uint32 * d1, int d1_stride, const orc_uint8 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { int i; int j; @@ -11937,7 +10586,7 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, ptr6 = ORC_PTR_OFFSET (s3, s3_stride * j); /* 3: loadpb */ - var36 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var36 = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -11945,28 +10594,14 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 1: loadb */ var35 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 4: loadb */ var37 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var40.i; - _dest.x2[1] = var39.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var39.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -11976,7 +10611,7 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_Y444_AYUV (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_Y444_AYUV (OrcExecutor * ex) { int i; int j; @@ -12001,7 +10636,7 @@ _backup_cogorc_convert_Y444_AYUV (OrcExecutor * ORC_RESTRICT ex) ptr6 = ORC_PTR_OFFSET (ex->arrays[6], ex->params[6] * j); /* 3: loadpb */ - var36 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var36 = 0x000000ff; /* 255 or 1.25987e-321f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -12009,28 +10644,14 @@ _backup_cogorc_convert_Y444_AYUV (OrcExecutor * ORC_RESTRICT ex) /* 1: loadb */ var35 = ptr6[i]; /* 2: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var34; - _dest.x2[1] = var35; - var39.i = _dest.i; - } + var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8); /* 4: loadb */ var37 = ptr4[i]; /* 5: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var36; - _dest.x2[1] = var37; - var40.i = _dest.i; - } + var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8); /* 6: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var40.i; - _dest.x2[1] = var39.i; - var38.i = _dest.i; - } + var38.i = + ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var39.i << 16); /* 7: storel */ ptr0[i] = var38; } @@ -12039,10 +10660,9 @@ _backup_cogorc_convert_Y444_AYUV (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint8 * ORC_RESTRICT s1, int s1_stride, - const orc_uint8 * ORC_RESTRICT s2, int s2_stride, - const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m) +cogorc_convert_Y444_AYUV (orc_uint32 * d1, int d1_stride, const orc_uint8 * s1, + int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, + int s3_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -12052,6 +10672,7 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -12072,7 +10693,7 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "mergewl", 0, ORC_VAR_D1, ORC_VAR_T2, ORC_VAR_T1, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -12099,8 +10720,8 @@ cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_ARGB */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_ARGB (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -12157,25 +10778,25 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -12186,26 +10807,14 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -12259,26 +10868,12 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var61; - _dest.x2[1] = var87; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var87 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var88; - _dest.x2[1] = var89; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var89 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -12293,7 +10888,7 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ex) { int i; int j; @@ -12352,25 +10947,25 @@ _backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -12381,26 +10976,14 @@ _backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ORC_RESTRICT ex) var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -12454,26 +11037,12 @@ _backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ORC_RESTRICT ex) /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var61; - _dest.x2[1] = var87; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var87 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var88; - _dest.x2[1] = var89; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var89 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -12487,8 +11056,8 @@ _backup_cogorc_convert_AYUV_ARGB (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_ARGB (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -12498,6 +11067,7 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -12598,7 +11168,7 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -12621,8 +11191,8 @@ cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_BGRA */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_BGRA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -12679,25 +11249,25 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -12708,26 +11278,14 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -12781,26 +11339,12 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var89; - _dest.x2[1] = var88; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var88 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var61; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var61 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -12815,7 +11359,7 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ex) { int i; int j; @@ -12874,25 +11418,25 @@ _backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -12903,26 +11447,14 @@ _backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ORC_RESTRICT ex) var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -12976,26 +11508,12 @@ _backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ORC_RESTRICT ex) /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var89; - _dest.x2[1] = var88; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var88 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var61; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var61 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -13009,8 +11527,8 @@ _backup_cogorc_convert_AYUV_BGRA (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_BGRA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -13020,6 +11538,7 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -13120,7 +11639,7 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -13143,8 +11662,8 @@ cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_ABGR */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_ABGR (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -13201,25 +11720,25 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -13230,26 +11749,14 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -13303,26 +11810,12 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var61; - _dest.x2[1] = var89; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var89 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var88; - _dest.x2[1] = var87; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var87 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -13337,7 +11830,7 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ex) { int i; int j; @@ -13396,25 +11889,25 @@ _backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -13425,26 +11918,14 @@ _backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ORC_RESTRICT ex) var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -13498,26 +11979,12 @@ _backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ORC_RESTRICT ex) /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var61; - _dest.x2[1] = var89; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var89 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var88; - _dest.x2[1] = var87; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var87 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -13531,8 +11998,8 @@ _backup_cogorc_convert_AYUV_ABGR (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_ABGR (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -13542,6 +12009,7 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -13642,7 +12110,7 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -13665,8 +12133,8 @@ cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_AYUV_RGBA */ #ifdef DISABLE_ORC void -cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_RGBA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { int i; int j; @@ -13723,25 +12191,25 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, ptr4 = ORC_PTR_OFFSET (s1, s1_stride * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -13752,26 +12220,14 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -13825,26 +12281,12 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var88; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var88 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var89; - _dest.x2[1] = var61; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var61 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -13859,7 +12301,7 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, #else static void -_backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ex) { int i; int j; @@ -13918,25 +12360,25 @@ _backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ORC_RESTRICT ex) ptr4 = ORC_PTR_OFFSET (ex->arrays[4], ex->params[4] * j); /* 1: loadpb */ - var49.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var49.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var49.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 14: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 21: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 25: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 29: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 40: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadl */ @@ -13947,26 +12389,14 @@ _backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ORC_RESTRICT ex) var57.x4[2] = var48.x4[2] - var49.x4[2]; var57.x4[3] = var48.x4[3] - var49.x4[3]; /* 3: splitlw */ - { - orc_union32 _src; - _src.i = var57.i; - var58.i = _src.x2[1]; - var59.i = _src.x2[0]; - } + var58.i = (var57.i >> 16) & 0xffff; + var59.i = var57.i & 0xffff; /* 4: splitwb */ - { - orc_union16 _src; - _src.i = var59.i; - var60 = _src.x2[1]; - var61 = _src.x2[0]; - } + var60 = (var59.i >> 8) & 0xff; + var61 = var59.i & 0xff; /* 5: splitwb */ - { - orc_union16 _src; - _src.i = var58.i; - var62 = _src.x2[1]; - var63 = _src.x2[0]; - } + var62 = (var58.i >> 8) & 0xff; + var63 = var58.i & 0xff; /* 6: convsbw */ var64.i = var60; /* 7: convsbw */ @@ -14020,26 +12450,12 @@ _backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ORC_RESTRICT ex) /* 36: convssswb */ var89 = ORC_CLAMP_SB (var79.i); /* 37: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var88; - var90.i = _dest.i; - } + var90.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var88 << 8); /* 38: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var89; - _dest.x2[1] = var61; - var91.i = _dest.i; - } + var91.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var61 << 8); /* 39: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var90.i; - _dest.x2[1] = var91.i; - var92.i = _dest.i; - } + var92.i = + ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16); /* 41: addb */ var56.x4[0] = var92.x4[0] + var55.x4[0]; var56.x4[1] = var92.x4[1] + var55.x4[1]; @@ -14053,8 +12469,8 @@ _backup_cogorc_convert_AYUV_RGBA (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, - const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m) +cogorc_convert_AYUV_RGBA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, + int s1_stride, int n, int m) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -14064,6 +12480,7 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_2d (p); @@ -14164,7 +12581,7 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, 47, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -14187,9 +12604,8 @@ cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, /* cogorc_convert_I420_BGRA */ #ifdef DISABLE_ORC void -cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n) +cogorc_convert_I420_BGRA (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -14249,28 +12665,28 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, ptr6 = (orc_int8 *) s3; /* 1: loadpb */ - var46 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var46 = 0x00000080; /* 128 or 6.32404e-322f */ /* 5: loadpb */ - var47 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var47 = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpb */ - var48 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var48 = 0x00000080; /* 128 or 6.32404e-322f */ /* 12: loadpw */ - var49.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var49.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 17: loadpw */ - var50.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var50.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 24: loadpw */ - var51.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var51.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 28: loadpw */ - var52.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var52.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 32: loadpw */ - var53.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var53.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 41: loadpb */ - var54 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var54 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 44: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -14342,26 +12758,12 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, /* 39: convssswb */ var87 = ORC_CLAMP_SB (var77.i); /* 40: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var86; - var88.i = _dest.i; - } + var88.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var86 << 8); /* 42: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var85; - _dest.x2[1] = var54; - var89.i = _dest.i; - } + var89.i = ((orc_uint8) var85 & 0x00ff) | ((orc_uint8) var54 << 8); /* 43: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var88.i; - _dest.x2[1] = var89.i; - var90.i = _dest.i; - } + var90.i = + ((orc_uint16) var88.i & 0x0000ffff) | ((orc_uint16) var89.i << 16); /* 45: addb */ var56.x4[0] = var90.x4[0] + var55.x4[0]; var56.x4[1] = var90.x4[1] + var55.x4[1]; @@ -14375,7 +12777,7 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_I420_BGRA (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_I420_BGRA (OrcExecutor * ex) { int i; int n = ex->n; @@ -14436,28 +12838,28 @@ _backup_cogorc_convert_I420_BGRA (OrcExecutor * ORC_RESTRICT ex) ptr6 = (orc_int8 *) ex->arrays[6]; /* 1: loadpb */ - var46 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var46 = 0x00000080; /* 128 or 6.32404e-322f */ /* 5: loadpb */ - var47 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var47 = 0x00000080; /* 128 or 6.32404e-322f */ /* 9: loadpb */ - var48 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var48 = 0x00000080; /* 128 or 6.32404e-322f */ /* 12: loadpw */ - var49.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var49.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 17: loadpw */ - var50.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var50.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 24: loadpw */ - var51.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var51.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 28: loadpw */ - var52.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var52.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 32: loadpw */ - var53.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var53.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 41: loadpb */ - var54 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var54 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 44: loadpb */ - var55.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var55.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var55.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -14529,26 +12931,12 @@ _backup_cogorc_convert_I420_BGRA (OrcExecutor * ORC_RESTRICT ex) /* 39: convssswb */ var87 = ORC_CLAMP_SB (var77.i); /* 40: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var87; - _dest.x2[1] = var86; - var88.i = _dest.i; - } + var88.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var86 << 8); /* 42: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var85; - _dest.x2[1] = var54; - var89.i = _dest.i; - } + var89.i = ((orc_uint8) var85 & 0x00ff) | ((orc_uint8) var54 << 8); /* 43: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var88.i; - _dest.x2[1] = var89.i; - var90.i = _dest.i; - } + var90.i = + ((orc_uint16) var88.i & 0x0000ffff) | ((orc_uint16) var89.i << 16); /* 45: addb */ var56.x4[0] = var90.x4[0] + var55.x4[0]; var56.x4[1] = var90.x4[1] + var55.x4[1]; @@ -14561,9 +12949,8 @@ _backup_cogorc_convert_I420_BGRA (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, int n) +cogorc_convert_I420_BGRA (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -14573,6 +12960,7 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_I420_BGRA"); @@ -14674,7 +13062,7 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T13, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); @@ -14696,10 +13084,9 @@ cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, /* cogorc_convert_I420_BGRA_avg */ #ifdef DISABLE_ORC void -cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - const orc_uint8 * ORC_RESTRICT s5, int n) +cogorc_convert_I420_BGRA_avg (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, + const orc_uint8 * s5, int n) { int i; orc_union32 *ORC_RESTRICT ptr0; @@ -14767,28 +13154,28 @@ cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, ptr8 = (orc_int8 *) s5; /* 1: loadpb */ - var47 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var47 = 0x00000080; /* 128 or 6.32404e-322f */ /* 7: loadpb */ - var48 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var48 = 0x00000080; /* 128 or 6.32404e-322f */ /* 13: loadpb */ - var49 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49 = 0x00000080; /* 128 or 6.32404e-322f */ /* 16: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 21: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 28: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 32: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 36: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 45: loadpb */ - var55 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var55 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 48: loadpb */ - var56.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -14872,26 +13259,12 @@ cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, /* 43: convssswb */ var92 = ORC_CLAMP_SB (var82.i); /* 44: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var92; - _dest.x2[1] = var91; - var93.i = _dest.i; - } + var93.i = ((orc_uint8) var92 & 0x00ff) | ((orc_uint8) var91 << 8); /* 46: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var90; - _dest.x2[1] = var55; - var94.i = _dest.i; - } + var94.i = ((orc_uint8) var90 & 0x00ff) | ((orc_uint8) var55 << 8); /* 47: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var93.i; - _dest.x2[1] = var94.i; - var95.i = _dest.i; - } + var95.i = + ((orc_uint16) var93.i & 0x0000ffff) | ((orc_uint16) var94.i << 16); /* 49: addb */ var57.x4[0] = var95.x4[0] + var56.x4[0]; var57.x4[1] = var95.x4[1] + var56.x4[1]; @@ -14905,7 +13278,7 @@ cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, #else static void -_backup_cogorc_convert_I420_BGRA_avg (OrcExecutor * ORC_RESTRICT ex) +_backup_cogorc_convert_I420_BGRA_avg (OrcExecutor * ex) { int i; int n = ex->n; @@ -14974,28 +13347,28 @@ _backup_cogorc_convert_I420_BGRA_avg (OrcExecutor * ORC_RESTRICT ex) ptr8 = (orc_int8 *) ex->arrays[8]; /* 1: loadpb */ - var47 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var47 = 0x00000080; /* 128 or 6.32404e-322f */ /* 7: loadpb */ - var48 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var48 = 0x00000080; /* 128 or 6.32404e-322f */ /* 13: loadpb */ - var49 = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var49 = 0x00000080; /* 128 or 6.32404e-322f */ /* 16: loadpw */ - var50.i = (int) 0x0000002a; /* 42 or 2.07508e-322f */ + var50.i = 0x0000002a; /* 42 or 2.07508e-322f */ /* 21: loadpw */ - var51.i = (int) 0x00000067; /* 103 or 5.08888e-322f */ + var51.i = 0x00000067; /* 103 or 5.08888e-322f */ /* 28: loadpw */ - var52.i = (int) 0x00000004; /* 4 or 1.97626e-323f */ + var52.i = 0x00000004; /* 4 or 1.97626e-323f */ /* 32: loadpw */ - var53.i = (int) 0x00000064; /* 100 or 4.94066e-322f */ + var53.i = 0x00000064; /* 100 or 4.94066e-322f */ /* 36: loadpw */ - var54.i = (int) 0x00000068; /* 104 or 5.13828e-322f */ + var54.i = 0x00000068; /* 104 or 5.13828e-322f */ /* 45: loadpb */ - var55 = (int) 0x000000ff; /* 255 or 1.25987e-321f */ + var55 = 0x000000ff; /* 255 or 1.25987e-321f */ /* 48: loadpb */ - var56.x4[0] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[1] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[2] = (int) 0x00000080; /* 128 or 6.32404e-322f */ - var56.x4[3] = (int) 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[0] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[1] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[2] = 0x00000080; /* 128 or 6.32404e-322f */ + var56.x4[3] = 0x00000080; /* 128 or 6.32404e-322f */ for (i = 0; i < n; i++) { /* 0: loadb */ @@ -15079,26 +13452,12 @@ _backup_cogorc_convert_I420_BGRA_avg (OrcExecutor * ORC_RESTRICT ex) /* 43: convssswb */ var92 = ORC_CLAMP_SB (var82.i); /* 44: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var92; - _dest.x2[1] = var91; - var93.i = _dest.i; - } + var93.i = ((orc_uint8) var92 & 0x00ff) | ((orc_uint8) var91 << 8); /* 46: mergebw */ - { - orc_union16 _dest; - _dest.x2[0] = var90; - _dest.x2[1] = var55; - var94.i = _dest.i; - } + var94.i = ((orc_uint8) var90 & 0x00ff) | ((orc_uint8) var55 << 8); /* 47: mergewl */ - { - orc_union32 _dest; - _dest.x2[0] = var93.i; - _dest.x2[1] = var94.i; - var95.i = _dest.i; - } + var95.i = + ((orc_uint16) var93.i & 0x0000ffff) | ((orc_uint16) var94.i << 16); /* 49: addb */ var57.x4[0] = var95.x4[0] + var56.x4[0]; var57.x4[1] = var95.x4[1] + var56.x4[1]; @@ -15111,10 +13470,9 @@ _backup_cogorc_convert_I420_BGRA_avg (OrcExecutor * ORC_RESTRICT ex) } void -cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, - const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, - const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, - const orc_uint8 * ORC_RESTRICT s5, int n) +cogorc_convert_I420_BGRA_avg (orc_uint32 * d1, const orc_uint8 * s1, + const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, + const orc_uint8 * s5, int n) { OrcExecutor _ex, *ex = &_ex; static int p_inited = 0; @@ -15124,6 +13482,7 @@ cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, if (!p_inited) { orc_once_mutex_lock (); if (!p_inited) { + OrcCompileResult result; p = orc_program_new (); orc_program_set_name (p, "cogorc_convert_I420_BGRA_avg"); @@ -15236,7 +13595,7 @@ cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, orc_program_append_2 (p, "addb", 2, ORC_VAR_D1, ORC_VAR_T14, ORC_VAR_C2, ORC_VAR_D1); - orc_program_compile (p); + result = orc_program_compile (p); } p_inited = TRUE; orc_once_mutex_unlock (); diff --git a/ext/cog/gstcogorc-dist.h b/ext/cog/gstcogorc-dist.h index e7bac246e..4f1dbd204 100644 --- a/ext/cog/gstcogorc-dist.h +++ b/ext/cog/gstcogorc-dist.h @@ -35,7 +35,6 @@ typedef unsigned __int16 orc_uint16; typedef unsigned __int32 orc_uint32; typedef unsigned __int64 orc_uint64; #define ORC_UINT64_C(x) (x##Ui64) -#define inline __inline #else #include <limits.h> typedef signed char orc_int8; @@ -58,89 +57,80 @@ typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16; typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32; typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64; #endif -#ifndef ORC_RESTRICT -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define ORC_RESTRICT restrict -#elif defined(__GNUC__) && __GNUC__ >= 4 -#define ORC_RESTRICT __restrict__ -#else -#define ORC_RESTRICT -#endif -#endif -void cogorc_memcpy_2d (orc_uint8 * ORC_RESTRICT d1, int d1_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_downsample_horiz_cosite_1tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, int n); -void cogorc_downsample_horiz_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, int n); -void cogorc_downsample_420_jpeg (orc_uint8 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, int n); -void cogorc_downsample_vert_halfsite_2tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n); -void cogorc_downsample_vert_cosite_3tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n); -void cogorc_downsample_vert_halfsite_4tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_upsample_horiz_cosite_1tap (guint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, int n); -void cogorc_upsample_horiz_cosite (guint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n); -void cogorc_upsample_vert_avgub (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n); -void orc_unpack_yuyv_y (orc_uint8 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, int n); -void orc_unpack_yuyv_u (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_unpack_yuyv_v (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_pack_yuyv (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n); -void orc_unpack_uyvy_y (orc_uint8 * ORC_RESTRICT d1, const orc_uint16 * ORC_RESTRICT s1, int n); -void orc_unpack_uyvy_u (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_unpack_uyvy_v (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void orc_pack_uyvy (orc_uint32 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n); -void orc_addc_convert_u8_s16 (orc_uint8 * ORC_RESTRICT d1, const gint16 * ORC_RESTRICT s1, int n); -void orc_subc_convert_s16_u8 (gint16 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, int n); -void orc_splat_u8_ns (orc_uint8 * ORC_RESTRICT d1, int p1, int n); -void orc_splat_s16_ns (gint16 * ORC_RESTRICT d1, int p1, int n); -void orc_matrix2_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, int p2, int p3, int n); -void orc_matrix2_11_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, int p2, int n); -void orc_matrix2_12_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int p1, int p2, int n); -void orc_matrix3_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int n); -void orc_matrix3_100_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int n); -void orc_matrix3_100_offset_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, int n); -void orc_matrix3_000_u8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int p1, int p2, int p3, int p4, int p5, int n); -void orc_pack_123x (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int p1, int n); -void orc_pack_x123 (guint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int p1, int n); -void cogorc_combine2_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p1, int p2, int n); -void cogorc_combine4_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int p1, int p2, int p3, int p4, int n); -void cogorc_unpack_axyz_0 (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_1 (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_2 (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_unpack_axyz_3 (orc_uint8 * ORC_RESTRICT d1, const orc_uint32 * ORC_RESTRICT s1, int n); -void cogorc_resample_horiz_1tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void cogorc_resample_horiz_2tap (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, int p1, int p2, int n); -void cogorc_convert_I420_UYVY (orc_uint32 * ORC_RESTRICT d1, orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_I420_YUY2 (orc_uint32 * ORC_RESTRICT d1, orc_uint32 * ORC_RESTRICT d2, const orc_uint16 * ORC_RESTRICT s1, const orc_uint16 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_I420_AYUV (orc_uint32 * ORC_RESTRICT d1, orc_uint32 * ORC_RESTRICT d2, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, int n); -void cogorc_convert_YUY2_I420 (orc_uint16 * ORC_RESTRICT d1, orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, const orc_uint32 * ORC_RESTRICT s2, int n); -void cogorc_convert_UYVY_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_420_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_uint8 * ORC_RESTRICT d2, int d2_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_420_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint16 * ORC_RESTRICT d2, int d2_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_422_444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_444_422 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_planar_chroma_444_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint16 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_planar_chroma_422_420 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_convert_YUY2_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_UYVY_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_YUY2_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_UYVY_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_YUY2_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_UYVY_Y444 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint16 * ORC_RESTRICT d3, int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_UYVY_I420 (orc_uint16 * ORC_RESTRICT d1, orc_uint16 * ORC_RESTRICT d2, orc_uint8 * ORC_RESTRICT d3, orc_uint8 * ORC_RESTRICT d4, const orc_uint32 * ORC_RESTRICT s1, const orc_uint32 * ORC_RESTRICT s2, int n); -void cogorc_convert_AYUV_I420 (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint16 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, int d3_stride, orc_uint8 * ORC_RESTRICT d4, int d4_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, const orc_uint64 * ORC_RESTRICT s2, int s2_stride, int n, int m); -void cogorc_convert_AYUV_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_Y42B (orc_uint16 * ORC_RESTRICT d1, int d1_stride, orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, int d3_stride, const orc_uint64 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_Y444 (orc_uint8 * ORC_RESTRICT d1, int d1_stride, orc_uint8 * ORC_RESTRICT d2, int d2_stride, orc_uint8 * ORC_RESTRICT d3, int d3_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_Y42B_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y42B_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y42B_AYUV (orc_uint64 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_YUY2 (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint16 * ORC_RESTRICT s2, int s2_stride, const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_UYVY (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint16 * ORC_RESTRICT s1, int s1_stride, const orc_uint16 * ORC_RESTRICT s2, int s2_stride, const orc_uint16 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_Y444_AYUV (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, const orc_uint8 * ORC_RESTRICT s3, int s3_stride, int n, int m); -void cogorc_convert_AYUV_ARGB (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_BGRA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_ABGR (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_AYUV_RGBA (orc_uint32 * ORC_RESTRICT d1, int d1_stride, const orc_uint32 * ORC_RESTRICT s1, int s1_stride, int n, int m); -void cogorc_convert_I420_BGRA (orc_uint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, int n); -void cogorc_convert_I420_BGRA_avg (orc_uint32 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, const orc_uint8 * ORC_RESTRICT s3, const orc_uint8 * ORC_RESTRICT s4, const orc_uint8 * ORC_RESTRICT s5, int n); +void cogorc_memcpy_2d (orc_uint8 * d1, int d1_stride, const orc_uint8 * s1, int s1_stride, int n, int m); +void cogorc_downsample_horiz_cosite_1tap (orc_uint8 * d1, const orc_uint16 * s1, int n); +void cogorc_downsample_horiz_cosite_3tap (orc_uint8 * d1, const orc_uint16 * s1, const orc_uint16 * s2, int n); +void cogorc_downsample_420_jpeg (orc_uint8 * d1, const orc_uint16 * s1, const orc_uint16 * s2, int n); +void cogorc_downsample_vert_halfsite_2tap (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int n); +void cogorc_downsample_vert_cosite_3tap (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int n); +void cogorc_downsample_vert_halfsite_4tap (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n); +void cogorc_upsample_horiz_cosite_1tap (guint8 * d1, const orc_uint8 * s1, int n); +void cogorc_upsample_horiz_cosite (guint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int n); +void cogorc_upsample_vert_avgub (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int n); +void orc_unpack_yuyv_y (orc_uint8 * d1, const orc_uint16 * s1, int n); +void orc_unpack_yuyv_u (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_unpack_yuyv_v (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_pack_yuyv (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int n); +void orc_unpack_uyvy_y (orc_uint8 * d1, const orc_uint16 * s1, int n); +void orc_unpack_uyvy_u (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_unpack_uyvy_v (orc_uint8 * d1, const orc_uint32 * s1, int n); +void orc_pack_uyvy (orc_uint32 * d1, const guint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int n); +void orc_addc_convert_u8_s16 (orc_uint8 * d1, const gint16 * s1, int n); +void orc_subc_convert_s16_u8 (gint16 * d1, const orc_uint8 * s1, int n); +void orc_splat_u8_ns (orc_uint8 * d1, int p1, int n); +void orc_splat_s16_ns (gint16 * d1, int p1, int n); +void orc_matrix2_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, int p2, int p3, int n); +void orc_matrix2_11_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, int p2, int n); +void orc_matrix2_12_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, int p1, int p2, int n); +void orc_matrix3_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, int p1, int p2, int p3, int p4, int n); +void orc_matrix3_100_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, int p1, int p2, int p3, int n); +void orc_matrix3_100_offset_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n); +void orc_matrix3_000_u8 (guint8 * d1, const guint8 * s1, const guint8 * s2, const guint8 * s3, int p1, int p2, int p3, int p4, int p5, int n); +void orc_pack_123x (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int p1, int n); +void orc_pack_x123 (guint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int p1, int n); +void cogorc_combine2_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, int p1, int p2, int n); +void cogorc_combine4_u8 (orc_uint8 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int p1, int p2, int p3, int p4, int n); +void cogorc_unpack_axyz_0 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_1 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_2 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_unpack_axyz_3 (orc_uint8 * d1, const orc_uint32 * s1, int n); +void cogorc_resample_horiz_1tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, int p2, int n); +void cogorc_resample_horiz_2tap (orc_uint8 * d1, const orc_uint8 * s1, int p1, int p2, int n); +void cogorc_convert_I420_UYVY (orc_uint32 * d1, orc_uint32 * d2, const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n); +void cogorc_convert_I420_YUY2 (orc_uint32 * d1, orc_uint32 * d2, const orc_uint16 * s1, const orc_uint16 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n); +void cogorc_convert_I420_AYUV (orc_uint32 * d1, orc_uint32 * d2, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, int n); +void cogorc_convert_YUY2_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n); +void cogorc_convert_UYVY_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_420_422 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_420_444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, int d2_stride, const orc_uint8 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_422_444 (orc_uint16 * d1, int d1_stride, const orc_uint8 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_444_422 (orc_uint8 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, int n, int m); +void cogorc_planar_chroma_444_420 (orc_uint8 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, int n, int m); +void cogorc_planar_chroma_422_420 (orc_uint8 * d1, int d1_stride, const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, int n, int m); +void cogorc_convert_YUY2_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_UYVY_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_YUY2_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_UYVY_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_YUY2_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_UYVY_Y444 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, int d2_stride, orc_uint16 * d3, int d3_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_UYVY_I420 (orc_uint16 * d1, orc_uint16 * d2, orc_uint8 * d3, orc_uint8 * d4, const orc_uint32 * s1, const orc_uint32 * s2, int n); +void cogorc_convert_AYUV_I420 (orc_uint16 * d1, int d1_stride, orc_uint16 * d2, int d2_stride, orc_uint8 * d3, int d3_stride, orc_uint8 * d4, int d4_stride, const orc_uint64 * s1, int s1_stride, const orc_uint64 * s2, int s2_stride, int n, int m); +void cogorc_convert_AYUV_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint64 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_Y42B (orc_uint16 * d1, int d1_stride, orc_uint8 * d2, int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint64 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_Y444 (orc_uint8 * d1, int d1_stride, orc_uint8 * d2, int d2_stride, orc_uint8 * d3, int d3_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_Y42B_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y42B_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y42B_AYUV (orc_uint64 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_YUY2 (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_UYVY (orc_uint32 * d1, int d1_stride, const orc_uint16 * s1, int s1_stride, const orc_uint16 * s2, int s2_stride, const orc_uint16 * s3, int s3_stride, int n, int m); +void cogorc_convert_Y444_AYUV (orc_uint32 * d1, int d1_stride, const orc_uint8 * s1, int s1_stride, const orc_uint8 * s2, int s2_stride, const orc_uint8 * s3, int s3_stride, int n, int m); +void cogorc_convert_AYUV_ARGB (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_BGRA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_ABGR (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_AYUV_RGBA (orc_uint32 * d1, int d1_stride, const orc_uint32 * s1, int s1_stride, int n, int m); +void cogorc_convert_I420_BGRA (orc_uint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, int n); +void cogorc_convert_I420_BGRA_avg (orc_uint32 * d1, const orc_uint8 * s1, const orc_uint8 * s2, const orc_uint8 * s3, const orc_uint8 * s4, const orc_uint8 * s5, int n); #ifdef __cplusplus } |