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

Function init_dequant_tables

libavcodec/h264.c:727–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727static void init_dequant_tables(H264Context *h){
728 int i,x;
729 init_dequant4_coeff_table(h);
730 if(h->pps.transform_8x8_mode)
731 init_dequant8_coeff_table(h);
732 if(h->sps.transform_bypass){
733 for(i=0; i<6; i++)
734 for(x=0; x<16; x++)
735 h->dequant4_coeff[i][0][x] = 1<<6;
736 if(h->pps.transform_8x8_mode)
737 for(i=0; i<2; i++)
738 for(x=0; x<64; x++)
739 h->dequant8_coeff[i][0][x] = 1<<6;
740 }
741}
742
743
744int ff_h264_alloc_tables(H264Context *h){

Callers 2

ff_h264_alloc_tablesFunction · 0.85
decode_slice_headerFunction · 0.85

Calls 2

Tested by

no test coverage detected