summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/bitstream.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-05-09 01:21:49 +0000
committerDave Chapman <dave@dchapman.com>2009-05-09 01:21:49 +0000
commit67695617a13e9f37f17e3718b03046f6d748a9e1 (patch)
tree7e8a8b5fb8d4222e3286f3300bcf12ad439424b0 /apps/codecs/libcook/bitstream.c
parent69db01e72f2de91d35703919bfc9d0700df83e85 (diff)
downloadrockbox-67695617a13e9f37f17e3718b03046f6d748a9e1.tar.gz
rockbox-67695617a13e9f37f17e3718b03046f6d748a9e1.zip
The first part of Mohamed Tarek's Google Summer of Code work to implement RealAudio support in Rockbox. This is a self-contained Cook decoder using the original ffmpeg (still floating point) decoder and a new RM parser started by me in 2008 and continued by MT over the past few months. This is the equivalent of libcook.patch1 from FS#10182, but with further cleaning by both MT and me to minimise the differences to the original ffmpeg files. See README.rockbox for more details.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20883 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libcook/bitstream.c')
-rw-r--r--apps/codecs/libcook/bitstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libcook/bitstream.c b/apps/codecs/libcook/bitstream.c
index 6781fe6cb0..f32e88fdbf 100644
--- a/apps/codecs/libcook/bitstream.c
+++ b/apps/codecs/libcook/bitstream.c
@@ -73,6 +73,7 @@ void ff_put_string(PutBitContext * pbc, const char *s, int put_zero)
73 put_bits(pbc, 8, 0); 73 put_bits(pbc, 8, 0);
74} 74}
75 75
76#if 0
76void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length) 77void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
77{ 78{
78 const uint16_t *srcw= (const uint16_t*)src; 79 const uint16_t *srcw= (const uint16_t*)src;
@@ -94,6 +95,7 @@ void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
94 95
95 put_bits(pb, bits, AV_RB16(&srcw[words])>>(16-bits)); 96 put_bits(pb, bits, AV_RB16(&srcw[words])>>(16-bits));
96} 97}
98#endif
97 99
98/* VLC decoding */ 100/* VLC decoding */
99 101