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

Function get_bits64

libavcodec/get_bits.h:456–469  ·  view source on GitHub ↗

* Read 0-64 bits. */

Source from the content-addressed store, hash-verified

454 * Read 0-64 bits.
455 */
456static inline uint64_t get_bits64(GetBitContext *s, int n)
457{
458 if (n <= 32) {
459 return get_bits_long(s, n);
460 } else {
461#ifdef BITSTREAM_READER_LE
462 uint64_t ret = get_bits_long(s, 32);
463 return ret | (uint64_t) get_bits_long(s, n - 32) << 32;
464#else
465 uint64_t ret = (uint64_t) get_bits_long(s, n - 32) << 32;
466 return ret | get_bits_long(s, 32);
467#endif
468 }
469}
470
471/**
472 * Read 0-32 bits as a signed integer.

Callers 12

tak_read_headerFunction · 0.85
update_extradataFunction · 0.85
hvcc_parse_ptlFunction · 0.85
get_ts64Function · 0.85
update_extradataFunction · 0.85
tak_parse_streaminfoFunction · 0.85
vorbis_floor0_decodeFunction · 0.85
get_sbits64Function · 0.85
ff_flac_parse_streaminfoFunction · 0.85
ff_hevc_decode_nal_vpsFunction · 0.85

Calls 1

get_bits_longFunction · 0.85

Tested by

no test coverage detected