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

Function binkb_get_value

libavcodec/bink.c:618–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618static inline int binkb_get_value(BinkContext *c, int bundle_num)
619{
620 int16_t ret;
621 const int bits = binkb_bundle_sizes[bundle_num];
622
623 if (bits <= 8) {
624 int val = *c->bundle[bundle_num].cur_ptr++;
625 return binkb_bundle_signed[bundle_num] ? (int8_t)val : val;
626 }
627 ret = *(int16_t*)c->bundle[bundle_num].cur_ptr;
628 c->bundle[bundle_num].cur_ptr += 2;
629 return ret;
630}
631
632/**
633 * Read 8x8 block of DCT coefficients.

Callers 1

binkb_decode_planeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected