diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-09 14:01:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-09 14:22:05 +0100 |
commit | 81a11452f8e0b486299905601460d6d2f7eaa548 (patch) | |
tree | 1c9a708d0c77e77c930385ed95ee82601b0bdfd0 /libavcodec/dsputil.h | |
parent | a8864615e6cc0bb202d9a269dbccbc7442232fe3 (diff) | |
parent | bf6b3ec924b4fb64d14df33077f4d4541d525dbf (diff) | |
download | ffmpeg-81a11452f8e0b486299905601460d6d2f7eaa548.tar.gz |
Merge commit 'bf6b3ec924b4fb64d14df33077f4d4541d525dbf'
* commit 'bf6b3ec924b4fb64d14df33077f4d4541d525dbf':
dsputil: Move rnd_avg inline functions to a separate header
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 3a0a610f32..e5f0e31f25 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -420,29 +420,6 @@ int ff_check_alignment(void); void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type); -#define BYTE_VEC32(c) ((c)*0x01010101UL) -#define BYTE_VEC64(c) ((c)*0x0001000100010001UL) - -static inline uint32_t rnd_avg32(uint32_t a, uint32_t b) -{ - return (a | b) - (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); -} - -static inline uint32_t no_rnd_avg32(uint32_t a, uint32_t b) -{ - return (a & b) + (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); -} - -static inline uint64_t rnd_avg64(uint64_t a, uint64_t b) -{ - return (a | b) - (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); -} - -static inline uint64_t no_rnd_avg64(uint64_t a, uint64_t b) -{ - return (a & b) + (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); -} - void ff_dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); void ff_dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); void ff_dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); |