diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-08-14 03:58:05 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-08-14 03:58:05 +0000 |
commit | a7cc783d711f0f47eb748a33b55d0c4f57ac1840 (patch) | |
tree | 4127268c5cfa5d1eae5bcf30a942fc22ee113dad /libavcodec/mlp.h | |
parent | 3c9769a008e1a7e5a33307139b3c19b642cea141 (diff) | |
download | ffmpeg-a7cc783d711f0f47eb748a33b55d0c4f57ac1840.tar.gz |
mlp: split simple inline function that xors 4 bytes into one.
Originally committed as revision 14747 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlp.h')
-rw-r--r-- | libavcodec/mlp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mlp.h b/libavcodec/mlp.h index dc6856727a..a434cd1a22 100644 --- a/libavcodec/mlp.h +++ b/libavcodec/mlp.h @@ -107,4 +107,12 @@ int ff_mlp_init_crc2D(AVCodecParserContext *s); void ff_mlp_init_crc(); +/** XOR four bytes into one. */ +static inline uint8_t xor_32_to_8(uint32_t value) +{ + value ^= value >> 16; + value ^= value >> 8; + return value; +} + #endif /* FFMPEG_MLP_H */ |