Mercurial > libavcodec.hg
comparison bitstream.h @ 2764:2b37bcabe608 libavcodec
spelling fixes
patch by Peter Robinson pbrobinson @ at @ gmail . dot . com and myself
| author | diego |
|---|---|
| date | Fri, 17 Jun 2005 15:02:53 +0000 |
| parents | be04f746d1fe |
| children | 5dfb90019814 |
comparison
equal
deleted
inserted
replaced
| 2763:01ed2c3b8f08 | 2764:2b37bcabe608 |
|---|---|
| 332 | 332 |
| 333 GET_CACHE(name, gb) | 333 GET_CACHE(name, gb) |
| 334 will output the contents of the internal cache, next bit is MSB of 32 or 64 bit (FIXME 64bit) | 334 will output the contents of the internal cache, next bit is MSB of 32 or 64 bit (FIXME 64bit) |
| 335 | 335 |
| 336 SHOW_UBITS(name, gb, num) | 336 SHOW_UBITS(name, gb, num) |
| 337 will return the nest num bits | 337 will return the next num bits |
| 338 | 338 |
| 339 SHOW_SBITS(name, gb, num) | 339 SHOW_SBITS(name, gb, num) |
| 340 will return the nest num bits and do sign extension | 340 will return the next num bits and do sign extension |
| 341 | 341 |
| 342 SKIP_BITS(name, gb, num) | 342 SKIP_BITS(name, gb, num) |
| 343 will skip over the next num bits | 343 will skip over the next num bits |
| 344 note, this is equinvalent to SKIP_CACHE; SKIP_COUNTER | 344 note, this is equivalent to SKIP_CACHE; SKIP_COUNTER |
| 345 | 345 |
| 346 SKIP_CACHE(name, gb, num) | 346 SKIP_CACHE(name, gb, num) |
| 347 will remove the next num bits from the cache (note SKIP_COUNTER MUST be called before UPDATE_CACHE / CLOSE_READER) | 347 will remove the next num bits from the cache (note SKIP_COUNTER MUST be called before UPDATE_CACHE / CLOSE_READER) |
| 348 | 348 |
| 349 SKIP_COUNTER(name, gb, num) | 349 SKIP_COUNTER(name, gb, num) |
| 351 | 351 |
| 352 LAST_SKIP_CACHE(name, gb, num) | 352 LAST_SKIP_CACHE(name, gb, num) |
| 353 will remove the next num bits from the cache if it is needed for UPDATE_CACHE otherwise it will do nothing | 353 will remove the next num bits from the cache if it is needed for UPDATE_CACHE otherwise it will do nothing |
| 354 | 354 |
| 355 LAST_SKIP_BITS(name, gb, num) | 355 LAST_SKIP_BITS(name, gb, num) |
| 356 is equinvalent to SKIP_LAST_CACHE; SKIP_COUNTER | 356 is equivalent to SKIP_LAST_CACHE; SKIP_COUNTER |
| 357 | 357 |
| 358 for examples see get_bits, show_bits, skip_bits, get_vlc | 358 for examples see get_bits, show_bits, skip_bits, get_vlc |
| 359 */ | 359 */ |
| 360 | 360 |
| 361 static inline int unaligned32_be(const void *v) | 361 static inline int unaligned32_be(const void *v) |
| 596 return tmp; | 596 return tmp; |
| 597 } | 597 } |
| 598 | 598 |
| 599 /** | 599 /** |
| 600 * reads 0-17 bits. | 600 * reads 0-17 bits. |
| 601 * Note, the alt bitstream reader can read upto 25 bits, but the libmpeg2 reader cant | 601 * Note, the alt bitstream reader can read up to 25 bits, but the libmpeg2 reader can't |
| 602 */ | 602 */ |
| 603 static inline unsigned int get_bits(GetBitContext *s, int n){ | 603 static inline unsigned int get_bits(GetBitContext *s, int n){ |
| 604 register int tmp; | 604 register int tmp; |
| 605 OPEN_READER(re, s) | 605 OPEN_READER(re, s) |
| 606 UPDATE_CACHE(re, s) | 606 UPDATE_CACHE(re, s) |
| 612 | 612 |
| 613 unsigned int get_bits_long(GetBitContext *s, int n); | 613 unsigned int get_bits_long(GetBitContext *s, int n); |
| 614 | 614 |
| 615 /** | 615 /** |
| 616 * shows 0-17 bits. | 616 * shows 0-17 bits. |
| 617 * Note, the alt bitstream reader can read upto 25 bits, but the libmpeg2 reader cant | 617 * Note, the alt bitstream reader can read up to 25 bits, but the libmpeg2 reader can't |
| 618 */ | 618 */ |
| 619 static inline unsigned int show_bits(GetBitContext *s, int n){ | 619 static inline unsigned int show_bits(GetBitContext *s, int n){ |
| 620 register int tmp; | 620 register int tmp; |
| 621 OPEN_READER(re, s) | 621 OPEN_READER(re, s) |
| 622 UPDATE_CACHE(re, s) | 622 UPDATE_CACHE(re, s) |
