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

Function write_quant_table

libavcodec/ffv1.c:578–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578static void write_quant_table(RangeCoder *c, int16_t *quant_table){
579 int last=0;
580 int i;
581 uint8_t state[CONTEXT_SIZE];
582 memset(state, 128, sizeof(state));
583
584 for(i=1; i<128 ; i++){
585 if(quant_table[i] != quant_table[i-1]){
586 put_symbol(c, state, i-last-1, 0);
587 last= i;
588 }
589 }
590 put_symbol(c, state, i-last-1, 0);
591}
592
593static void write_header(FFV1Context *f){
594 uint8_t state[CONTEXT_SIZE];

Callers 1

write_headerFunction · 0.85

Calls 1

put_symbolFunction · 0.70

Tested by

no test coverage detected