summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/ffmpeg_get_bits.h
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-07-17 07:46:38 +0000
committerMohamed Tarek <mt@rockbox.org>2010-07-17 07:46:38 +0000
commit090768194fdbd611b995572f424c6fae690eb329 (patch)
tree13ec87dee0870933c255490e4e93c3d7feadaf02 /apps/codecs/lib/ffmpeg_get_bits.h
parent4a4699692270906976a9bc99d4c11f625fd756c6 (diff)
downloadrockbox-090768194fdbd611b995572f424c6fae690eb329.tar.gz
rockbox-090768194fdbd611b995572f424c6fae690eb329.zip
Enable ff_copy_bits in ffmpeg_bitstream.c and put_bits.h and intreadwrite.h to codeclib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/ffmpeg_get_bits.h')
-rw-r--r--apps/codecs/lib/ffmpeg_get_bits.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/codecs/lib/ffmpeg_get_bits.h b/apps/codecs/lib/ffmpeg_get_bits.h
index 1a461e9e25..8fce395a4d 100644
--- a/apps/codecs/lib/ffmpeg_get_bits.h
+++ b/apps/codecs/lib/ffmpeg_get_bits.h
@@ -28,6 +28,7 @@
28 28
29#include <stdint.h> 29#include <stdint.h>
30#include <stdlib.h> 30#include <stdlib.h>
31#include "ffmpeg_intreadwrite.h"
31//#include <assert.h> 32//#include <assert.h>
32//#include "libavutil/bswap.h" 33//#include "libavutil/bswap.h"
33//#include "libavutil/common.h" 34//#include "libavutil/common.h"
@@ -56,16 +57,6 @@
56#define av_const __attribute__((const)) 57#define av_const __attribute__((const))
57#define av_always_inline inline __attribute__((always_inline)) 58#define av_always_inline inline __attribute__((always_inline))
58 59
59/* Coldfire cpu's support unaligned long reads */
60#ifdef CPU_COLDFIRE
61#define AV_RB32(x) (*(const uint32_t*)(x))
62#else
63/* The following define is taken from libavutil/intreadwrite.h */
64#define AV_RB32(x) ((((const uint8_t*)(x))[0] << 24) | \
65 (((const uint8_t*)(x))[1] << 16) | \
66 (((const uint8_t*)(x))[2] << 8) | \
67 ((const uint8_t*)(x))[3])
68#endif
69/* The following is taken from mathops.h */ 60/* The following is taken from mathops.h */
70 61
71#ifndef sign_extend 62#ifndef sign_extend