pub fn evc_itdq(coef: &mut [i16], log2_w: usize, log2_h: usize, scale: i32) {
    let log2_size = (log2_w + log2_h) >> 1;
    let ns_shift = if (log2_w + log2_h) & 1 != 0 { 8 } else { 0 };

    let tr_shift: i8 = MAX_TX_DYNAMIC_RANGE as i8 - BIT_DEPTH as i8 - log2_size as i8;
    let shift: u8 = (QUANT_IQUANT_SHIFT as i8 - QUANT_SHIFT as i8 - tr_shift + ns_shift) as u8;
    let offset: i32 = if shift == 0 { 0 } else { 1 << (shift - 1) };

    evc_dquant(coef, log2_w, log2_h, scale, offset, shift);
    evc_itrans(coef, log2_w, log2_h);
}
//TODO: evc_mc_l should be private, but in order to be visible for benchmark,
// change it to pub. Need to figure out a way to hide visible for API caller
evc_mc_l should be private, but in order to be visible for benchmark,
change it to pub. Need to figure out a way to hide visible for API caller
evc_mc_l should be private but in order to be visible for benchmark change it to pub . Need to figure out a way to hide visible for API caller
pub fn evc_itdq(coef: &mut [i16], log2_w: usize, log2_h: usize, scale: i32) {
    let log2_size = (log2_w + log2_h) >> 1;
    let ns_shift = if (log2_w + log2_h) & 1 != 0 { 8 } else { 0 };
    let tr_shift: i8 = MAX_TX_DYNAMIC_RANGE as i8 - BIT_DEPTH as i8 - log2_size as i8;
    let shift: u8 = (QUANT_IQUANT_SHIFT as i8 - QUANT_SHIFT as i8 - tr_shift + ns_shift) as u8;
    let offset: i32 = if shift == 0 { 0 } else { 1 << (shift - 1) };
    evc_dquant(coef, log2_w, log2_h, scale, offset, shift);
    evc_itrans(coef, log2_w, log2_h);
}
pub fn evc_itdq ( coef : & mut [ i16 ] , log2_w : usize , log2_h : usize , scale : i32 ) { let log2_size = ( log2_w + log2_h ) >> 1 ; let ns_shift = if ( log2_w + log2_h ) & 1 != 0 { 8 } else { 0 } ; let tr_shift : i8 = MAX_TX_DYNAMIC_RANGE as i8 - BIT_DEPTH as i8 - log2_size as i8 ; let shift : u8 = ( QUANT_IQUANT_SHIFT as i8 - QUANT_SHIFT as i8 - tr_shift + ns_shift ) as u8 ; let offset : i32 = if shift == 0 { 0 } else { 1 << ( shift - 1 ) } ; evc_dquant ( coef , log2_w , log2_h , scale , offset , shift ) ; evc_itrans ( coef , log2_w , log2_h ) ; }
TODO: evc_mc_l should be private, but in order to be visible for benchmark,
change it to pub.
TODO : evc_mc_l should be private but in order to be visible for benchmark change it to pub .
coef
&mut [i16]
log2_w
usize
log2_h
usize
scale
i32
coef
&mut [i16]
log2_w
usize
log2_h
usize
scale
i32