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

Function mp_read_codes_table

libavcodec/motionpixels.c:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static void mp_read_codes_table(MotionPixelsContext *mp, GetBitContext *gb)
116{
117 if (mp->codes_count == 1) {
118 mp->codes[0].delta = get_bits(gb, 4);
119 } else {
120 int i;
121
122 mp->max_codes_bits = get_bits(gb, 4);
123 for (i = 0; i < mp->codes_count; ++i)
124 mp->codes[i].delta = get_bits(gb, 4);
125 mp->current_codes_count = 0;
126 mp_get_code(mp, gb, 0, 0);
127 }
128}
129
130static int mp_gradient(MotionPixelsContext *mp, int component, int v)
131{

Callers 1

mp_decode_frameFunction · 0.85

Calls 2

get_bitsFunction · 0.85
mp_get_codeFunction · 0.85

Tested by

no test coverage detected