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

Function ff_init_range_decoder

libavcodec/rangecoder.c:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
54 int buf_size)
55{
56 /* cast to avoid compiler warning */
57 ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
58
59 c->low = AV_RB16(c->bytestream);
60 c->bytestream += 2;
61 c->overread = 0;
62 if (c->low >= 0xFF00) {
63 c->low = 0xFF00;
64 c->bytestream_end = c->bytestream;
65 }
66}
67
68void ff_build_rac_states(RangeCoder *c, int factor, int max_p)
69{

Callers 8

mxf_parse_ffv1_frameFunction · 0.85
sonic_decode_frameFunction · 0.85
parseFunction · 0.85
decode_headerFunction · 0.85
decode_slicesFunction · 0.85
decode_frameFunction · 0.85
mainFunction · 0.85

Calls 1

ff_init_range_encoderFunction · 0.85

Tested by 1

mainFunction · 0.68