Initial cleanup for libwmapro.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27425 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2010-07-15 05:38:09 +00:00
parent 5d2969c94e
commit 387af97a26
33 changed files with 126 additions and 12233 deletions

View file

@ -30,10 +30,11 @@
#include <stdlib.h>
//#include <assert.h>
#include "libavutil/bswap.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "mathops.h"
//#include "libavutil/common.h"
//#include "libavutil/intreadwrite.h"
//#include "libavutil/log.h"
#define av_log(...)
//#define ALT_BITSTREAM_WRITER
//#define ALIGNED_BITSTREAM_WRITER
@ -269,22 +270,6 @@ static inline void put_sbits(PutBitContext *pb, int n, int32_t value)
put_bits(pb, n, value & ((1<<n)-1));
}
/**
* Writes exactly 32 bits into a bitstream.
*/
static void av_unused put_bits32(PutBitContext *s, uint32_t value)
{
int lo = value & 0xffff;
int hi = value >> 16;
#ifdef BITSTREAM_WRITER_LE
put_bits(s, 16, lo);
put_bits(s, 16, hi);
#else
put_bits(s, 16, hi);
put_bits(s, 16, lo);
#endif
}
/**
* Returns the pointer to the byte where the bitstream writer will put
* the next bit.