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

Function get_bits_long

libavcodec/get_bits.h:424–435  ·  view source on GitHub ↗

* reads 0-32 bits. */

Source from the content-addressed store, hash-verified

422 * reads 0-32 bits.
423 */
424static inline unsigned int get_bits_long(GetBitContext *s, int n){
425 if(n<=MIN_CACHE_BITS) return get_bits(s, n);
426 else{
427#ifdef ALT_BITSTREAM_READER_LE
428 int ret= get_bits(s, 16);
429 return ret | (get_bits(s, n-16) << 16);
430#else
431 int ret= get_bits(s, 16) << (n-16);
432 return ret | get_bits(s, n-16);
433#endif
434 }
435}
436
437/**
438 * reads 0-32 bits as a signed integer.

Callers 15

mov_read_stszFunction · 0.85
theora_headerFunction · 0.85
rtp_parse_mp4_auFunction · 0.85
flac_headerFunction · 0.85
ff_rdt_parse_headerFunction · 0.85
mp_read_changes_mapFunction · 0.85
ff_mlp_read_major_syncFunction · 0.85
ls_decode_lineFunction · 0.85
decode_vui_parametersFunction · 0.85
parse_config_ALSFunction · 0.85
ff_bgmc_decode_initFunction · 0.85
ff_flac_parse_streaminfoFunction · 0.85

Calls 1

get_bitsFunction · 0.85

Tested by

no test coverage detected