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

Function decode_mclms

libavcodec/wmalosslessdec.c:433–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433static void decode_mclms(WmallDecodeCtx *s)
434{
435 s->mclms_order = (get_bits(&s->gb, 4) + 1) * 2;
436 s->mclms_scaling = get_bits(&s->gb, 4);
437 if (get_bits1(&s->gb)) {
438 int i, send_coef_bits;
439 int cbits = av_log2(s->mclms_scaling + 1);
440 if (1 << cbits < s->mclms_scaling + 1)
441 cbits++;
442
443 send_coef_bits = get_bitsz(&s->gb, cbits) + 2;
444
445 for (i = 0; i < s->mclms_order * s->num_channels * s->num_channels; i++)
446 s->mclms_coeffs[i] = get_bits(&s->gb, send_coef_bits);
447
448 for (i = 0; i < s->num_channels; i++) {
449 int c;
450 for (c = 0; c < i; c++)
451 s->mclms_coeffs_cur[i * s->num_channels + c] = get_bits(&s->gb, send_coef_bits);
452 }
453 }
454}
455
456static int decode_cdlms(WmallDecodeCtx *s)
457{

Callers 1

decode_subframeFunction · 0.85

Calls 4

get_bits1Function · 0.85
av_log2Function · 0.85
get_bitszFunction · 0.85
get_bitsFunction · 0.70

Tested by

no test coverage detected