diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-06-22 19:22:28 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-22 19:22:28 +0200 |
commit | 6d3d06c91f7f888ce4ef696828565c1ad9edd0df (patch) | |
tree | 447fef4b90a6018c0632b0691e2ecb2727867af4 /gst/compositor/compositororc-dist.c | |
parent | 39071b0a8c095df5cdb146b136375a0d740b0dac (diff) | |
download | gstreamer-plugins-bad-6d3d06c91f7f888ce4ef696828565c1ad9edd0df.tar.gz |
Release 1.3.31.3.3
Diffstat (limited to 'gst/compositor/compositororc-dist.c')
-rw-r--r-- | gst/compositor/compositororc-dist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/compositor/compositororc-dist.c b/gst/compositor/compositororc-dist.c index 04d97dd24..db71b932e 100644 --- a/gst/compositor/compositororc-dist.c +++ b/gst/compositor/compositororc-dist.c @@ -133,8 +133,8 @@ void compositor_orc_overlay_bgra (guint8 * ORC_RESTRICT d1, int d1_stride, #define ORC_CLAMP_UW(x) ORC_CLAMP(x,ORC_UW_MIN,ORC_UW_MAX) #define ORC_CLAMP_SL(x) ORC_CLAMP(x,ORC_SL_MIN,ORC_SL_MAX) #define ORC_CLAMP_UL(x) ORC_CLAMP(x,ORC_UL_MIN,ORC_UL_MAX) -#define ORC_SWAP_W(x) ((((x)&0xff)<<8) | (((x)&0xff00)>>8)) -#define ORC_SWAP_L(x) ((((x)&0xff)<<24) | (((x)&0xff00)<<8) | (((x)&0xff0000)>>8) | (((x)&0xff000000)>>24)) +#define ORC_SWAP_W(x) ((((x)&0xffU)<<8) | (((x)&0xff00U)>>8)) +#define ORC_SWAP_L(x) ((((x)&0xffU)<<24) | (((x)&0xff00U)<<8) | (((x)&0xff0000U)>>8) | (((x)&0xff000000U)>>24)) #define ORC_SWAP_Q(x) ((((x)&ORC_UINT64_C(0xff))<<56) | (((x)&ORC_UINT64_C(0xff00))<<40) | (((x)&ORC_UINT64_C(0xff0000))<<24) | (((x)&ORC_UINT64_C(0xff000000))<<8) | (((x)&ORC_UINT64_C(0xff00000000))>>8) | (((x)&ORC_UINT64_C(0xff0000000000))>>24) | (((x)&ORC_UINT64_C(0xff000000000000))>>40) | (((x)&ORC_UINT64_C(0xff00000000000000))>>56)) #define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset))) #define ORC_DENORMAL(x) ((x) & ((((x)&0x7f800000) == 0) ? 0xff800000 : 0xffffffff)) |