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

Function read_qp_offset

libavcodec/rv60dec.c:2210–2229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2208}
2209
2210static int read_qp_offset(GetBitContext *gb, int qp_off_type)
2211{
2212 int val;
2213
2214 switch (qp_off_type) {
2215 case 0:
2216 return 0;
2217 case 1:
2218 val = read_code012(gb);
2219 return val != 2 ? val : -1;
2220 default:
2221 if (!get_bits1(gb))
2222 return 0;
2223 val = get_bits(gb, 2);
2224 if (!(val & 2))
2225 return val + 1;
2226 else
2227 return -((val & 1) + 1);
2228 }
2229}
2230
2231static int calc_sel_qp(int osvquant, int qp)
2232{

Callers 1

decode_sliceFunction · 0.85

Calls 3

read_code012Function · 0.85
get_bits1Function · 0.85
get_bitsFunction · 0.70

Tested by

no test coverage detected