Mercurial > libavcodec.hg
comparison put_bits.h @ 10655:0a2d577dd2d8 libavcodec
Make sure that compilation fails if functions like ff_put_string are used in code
that selected a bitstream writer for which they do not work.
| author | reimar |
|---|---|
| date | Mon, 07 Dec 2009 21:06:51 +0000 |
| parents | 8a71d3ce52e2 |
| children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
| 10654:2dbb341a14ba | 10655:0a2d577dd2d8 |
|---|---|
| 115 s->bit_left=32; | 115 s->bit_left=32; |
| 116 s->bit_buf=0; | 116 s->bit_buf=0; |
| 117 #endif | 117 #endif |
| 118 } | 118 } |
| 119 | 119 |
| 120 #if defined(ALT_BITSTREAM_WRITER) || defined(BITSTREAM_WRITER_LE) | |
| 121 #define align_put_bits align_put_bits_unsupported_here | |
| 122 #define ff_put_string ff_put_string_unsupported_here | |
| 123 #define ff_copy_bits ff_copy_bits_unsupported_here | |
| 124 #else | |
| 120 /** | 125 /** |
| 121 * Pads the bitstream with zeros up to the next byte boundary. | 126 * Pads the bitstream with zeros up to the next byte boundary. |
| 122 */ | 127 */ |
| 123 void align_put_bits(PutBitContext *s); | 128 void align_put_bits(PutBitContext *s); |
| 124 | 129 |
| 133 * Copies the content of src to the bitstream. | 138 * Copies the content of src to the bitstream. |
| 134 * | 139 * |
| 135 * @param length the number of bits of src to copy | 140 * @param length the number of bits of src to copy |
| 136 */ | 141 */ |
| 137 void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length); | 142 void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length); |
| 143 #endif | |
| 138 | 144 |
| 139 /** | 145 /** |
| 140 * Writes up to 31 bits into a bitstream. | 146 * Writes up to 31 bits into a bitstream. |
| 141 * Use put_bits32 to write 32 bits. | 147 * Use put_bits32 to write 32 bits. |
| 142 */ | 148 */ |
