summaryrefslogtreecommitdiff
path: root/gst/videomixer/videomixerorc-dist.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-03 18:02:23 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-03 18:02:23 +0200
commit1d4404d88306dfd728dd22af44f2ec7650f2d9cc (patch)
tree41a13a560a93e15eb6443ad1b3c78d9cb281e69a /gst/videomixer/videomixerorc-dist.c
parent0ead08b26aec57d3a1bc02e75fd225a054567384 (diff)
Diffstat (limited to 'gst/videomixer/videomixerorc-dist.c')
-rw-r--r--gst/videomixer/videomixerorc-dist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videomixer/videomixerorc-dist.c b/gst/videomixer/videomixerorc-dist.c
index 9106640f52..05c1863770 100644
--- a/gst/videomixer/videomixerorc-dist.c
+++ b/gst/videomixer/videomixerorc-dist.c
@@ -318,8 +318,8 @@ void videomixer_video_convert_orc_putline_A420 (guint8 * ORC_RESTRICT d1,
#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))