static void quant_2x2_dc( int16_t dct[2][2], int mf, int bias ) { QUANT_ONE( dct[0][0], mf, bias ); QUANT_ONE( dct[0][1], mf, bias ); QUANT_ONE( dct[0][2], mf, bias ); QUANT_ONE( dct[0][3], mf, bias ); }
static void quant_2x2_dc_core( int16_t dct[2][2], int i_quant_mf, int i_qbits, int f ) { QUANT_ONE( dct[0][0], i_quant_mf ); QUANT_ONE( dct[0][1], i_quant_mf ); QUANT_ONE( dct[0][2], i_quant_mf ); QUANT_ONE( dct[0][3], i_quant_mf ); }
static int quant_2x2_dc( dctcoef dct[4], int mf, int bias ) { int nz = 0; QUANT_ONE( dct[0], mf, bias ); QUANT_ONE( dct[1], mf, bias ); QUANT_ONE( dct[2], mf, bias ); QUANT_ONE( dct[3], mf, bias ); return !!nz; }
static int quant_2x2_dc( int16_t dct[2][2], int mf, int bias ) { int nz = 0; QUANT_ONE( dct[0][0], mf, bias ); QUANT_ONE( dct[0][1], mf, bias ); QUANT_ONE( dct[0][2], mf, bias ); QUANT_ONE( dct[0][3], mf, bias ); return !!nz; }
static int quant_4x4_dc( dctcoef dct[16], int mf, int bias ) { int nz = 0; for( int i = 0; i < 16; i++ ) QUANT_ONE( dct[i], mf, bias ); return !!nz; }
static int quant_4x4( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] ) { int nz = 0; for( int i = 0; i < 16; i++ ) QUANT_ONE( dct[i], mf[i], bias[i] ); return !!nz; }
static int quant_8x8( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] ) { int nz = 0; for( int i = 0; i < 64; i++ ) QUANT_ONE( dct[i], mf[i], bias[i] ); return !!nz; }
static int quant_4x4_dc( int16_t dct[4][4], int mf, int bias ) { int i, nz = 0; for( i = 0; i < 16; i++ ) QUANT_ONE( dct[0][i], mf, bias ); return !!nz; }
static int quant_4x4( int16_t dct[4][4], uint16_t mf[16], uint16_t bias[16] ) { int i, nz = 0; for( i = 0; i < 16; i++ ) QUANT_ONE( dct[0][i], mf[i], bias[i] ); return !!nz; }
static int quant_8x8( int16_t dct[8][8], uint16_t mf[64], uint16_t bias[64] ) { int i, nz = 0; for( i = 0; i < 64; i++ ) QUANT_ONE( dct[0][i], mf[i], bias[i] ); return !!nz; }
static int quant_4x4x4( dctcoef dct[4][16], udctcoef mf[16], udctcoef bias[16] ) { int nza = 0; for( int j = 0; j < 4; j++ ) { int nz = 0; for( int i = 0; i < 16; i++ ) QUANT_ONE( dct[j][i], mf[i], bias[i] ); nza |= (!!nz)<<j; } return nza; }
static void quant_4x4_dc( int16_t dct[4][4], int mf, int bias ) { int i; for( i = 0; i < 16; i++ ) QUANT_ONE( dct[0][i], mf, bias ); }
static void quant_4x4( int16_t dct[4][4], uint16_t mf[16], uint16_t bias[16] ) { int i; for( i = 0; i < 16; i++ ) QUANT_ONE( dct[0][i], mf[i], bias[i] ); }
static void quant_8x8( int16_t dct[8][8], uint16_t mf[64], uint16_t bias[64] ) { int i; for( i = 0; i < 64; i++ ) QUANT_ONE( dct[0][i], mf[i], bias[i] ); }
static void quant_4x4_dc_core( int16_t dct[4][4], int i_quant_mf, int i_qbits, int f ) { int i; for( i = 0; i < 16; i++ ) QUANT_ONE( dct[0][i], i_quant_mf ); }
static void quant_8x8_core( int16_t dct[8][8], int quant_mf[8][8], int i_qbits, int f ) { int i; for( i = 0; i < 64; i++ ) QUANT_ONE( dct[0][i], quant_mf[0][i] ); }