Mercurial > libavcodec.hg
comparison common.h @ 1083:b923be2fc4b5 libavcodec
* using const buffers for reading
author | kabi |
---|---|
date | Mon, 24 Feb 2003 13:41:57 +0000 |
parents | 89e233c2ef45 |
children | 1e39f273ecd6 |
comparison
equal
deleted
inserted
replaced
1082:82c3ba139e51 | 1083:b923be2fc4b5 |
---|---|
234 void put_string(PutBitContext * pbc, char *s); | 234 void put_string(PutBitContext * pbc, char *s); |
235 | 235 |
236 /* bit input */ | 236 /* bit input */ |
237 | 237 |
238 typedef struct GetBitContext { | 238 typedef struct GetBitContext { |
239 uint8_t *buffer, *buffer_end; | 239 const uint8_t *buffer, *buffer_end; |
240 #ifdef ALT_BITSTREAM_READER | 240 #ifdef ALT_BITSTREAM_READER |
241 int index; | 241 int index; |
242 #elif defined LIBMPEG2_BITSTREAM_READER | 242 #elif defined LIBMPEG2_BITSTREAM_READER |
243 uint8_t *buffer_ptr; | 243 uint8_t *buffer_ptr; |
244 uint32_t cache; | 244 uint32_t cache; |
667 static inline void skip_bits1(GetBitContext *s){ | 667 static inline void skip_bits1(GetBitContext *s){ |
668 skip_bits(s, 1); | 668 skip_bits(s, 1); |
669 } | 669 } |
670 | 670 |
671 void init_get_bits(GetBitContext *s, | 671 void init_get_bits(GetBitContext *s, |
672 uint8_t *buffer, int buffer_size); | 672 const uint8_t *buffer, int buffer_size); |
673 | 673 |
674 int check_marker(GetBitContext *s, const char *msg); | 674 int check_marker(GetBitContext *s, const char *msg); |
675 void align_get_bits(GetBitContext *s); | 675 void align_get_bits(GetBitContext *s); |
676 int init_vlc(VLC *vlc, int nb_bits, int nb_codes, | 676 int init_vlc(VLC *vlc, int nb_bits, int nb_codes, |
677 const void *bits, int bits_wrap, int bits_size, | 677 const void *bits, int bits_wrap, int bits_size, |