MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_bits

Function get_bits

libavcodec/get_bits.h:337–348  ·  view source on GitHub ↗

* Read 1-25 bits. */

Source from the content-addressed store, hash-verified

335 * Read 1-25 bits.
336 */
337static inline unsigned int get_bits(GetBitContext *s, int n)
338{
339 register unsigned int tmp;
340 OPEN_READER(re, s);
341 av_assert2(n>0 && n<=25);
342 UPDATE_CACHE(re, s);
343 tmp = SHOW_UBITS(re, s, n);
344 LAST_SKIP_BITS(re, s, n);
345 CLOSE_READER(re, s);
346 av_assert2(tmp < UINT64_C(1) << n);
347 return tmp;
348}
349
350/**
351 * Read 0-25 bits.

Callers 15

unbias_exponentsFunction · 0.70
parse_bit_allocFunction · 0.70
parse_indicesFunction · 0.70
parse_channelFunction · 0.70
decode_residualFunction · 0.70
ff_h264_decode_mb_cavlcFunction · 0.70
atrac3p_decode_frameFunction · 0.70
mp_read_changes_mapFunction · 0.70
mp_read_codes_tableFunction · 0.70
mp_decode_frameFunction · 0.70
decode_group3_2d_lineFunction · 0.70
read_mapFunction · 0.70

Calls

no outgoing calls

Tested by 2

apv_read_vlc_specFunction · 0.40
apv_entropy_decode_blockFunction · 0.40