summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/put_bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwmapro/put_bits.h')
-rw-r--r--apps/codecs/libwmapro/put_bits.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/apps/codecs/libwmapro/put_bits.h b/apps/codecs/libwmapro/put_bits.h
index 91401ff3fa..a3c458b0be 100644
--- a/apps/codecs/libwmapro/put_bits.h
+++ b/apps/codecs/libwmapro/put_bits.h
@@ -30,10 +30,11 @@
30#include <stdlib.h> 30#include <stdlib.h>
31//#include <assert.h> 31//#include <assert.h>
32#include "libavutil/bswap.h" 32#include "libavutil/bswap.h"
33#include "libavutil/common.h" 33//#include "libavutil/common.h"
34#include "libavutil/intreadwrite.h" 34//#include "libavutil/intreadwrite.h"
35#include "libavutil/log.h" 35//#include "libavutil/log.h"
36#include "mathops.h" 36
37#define av_log(...)
37 38
38//#define ALT_BITSTREAM_WRITER 39//#define ALT_BITSTREAM_WRITER
39//#define ALIGNED_BITSTREAM_WRITER 40//#define ALIGNED_BITSTREAM_WRITER
@@ -270,22 +271,6 @@ static inline void put_sbits(PutBitContext *pb, int n, int32_t value)
270} 271}
271 272
272/** 273/**
273 * Writes exactly 32 bits into a bitstream.
274 */
275static void av_unused put_bits32(PutBitContext *s, uint32_t value)
276{
277 int lo = value & 0xffff;
278 int hi = value >> 16;
279#ifdef BITSTREAM_WRITER_LE
280 put_bits(s, 16, lo);
281 put_bits(s, 16, hi);
282#else
283 put_bits(s, 16, hi);
284 put_bits(s, 16, lo);
285#endif
286}
287
288/**
289 * Returns the pointer to the byte where the bitstream writer will put 274 * Returns the pointer to the byte where the bitstream writer will put
290 * the next bit. 275 * the next bit.
291 */ 276 */