Exemplo n.º 1
0
void vp10_highbd_inv_txfm_add_4x4(const tran_low_t *input, uint8_t *dest,
                                  int stride, int eob, int bd, TX_TYPE tx_type,
                                  void (*highbd_itxm_add_4x4)
                                  (const tran_low_t *input, uint8_t *dest,
                                      int stride, int eob, int bd)) {
  switch (tx_type) {
    case DCT_DCT:
      highbd_itxm_add_4x4(input, dest, stride, eob, bd);
      break;
    case ADST_DCT:
    case DCT_ADST:
    case ADST_ADST:
      vp10_highbd_iht4x4_16_add(input, dest, stride, tx_type, bd);
      break;
    default:
      assert(0);
      break;
  }
}
Exemplo n.º 2
0
Arquivo: idct.c Projeto: jmvalin/aom
void vp10_highbd_inv_txfm_add_4x4(const tran_low_t *input, uint8_t *dest,
                                  int stride, int eob, int bd, TX_TYPE tx_type,
                                  int lossless) {
  if (lossless) {
    assert(tx_type == DCT_DCT);
    vp10_highbd_iwht4x4_add(input, dest, stride, eob, bd);
  } else {
    switch (tx_type) {
      case DCT_DCT:
        vp10_highbd_idct4x4_add(input, dest, stride, eob, bd);
        break;
      case ADST_DCT:
      case DCT_ADST:
      case ADST_ADST:
        vp10_highbd_iht4x4_16_add(input, dest, stride, tx_type, bd);
        break;
      default: assert(0); break;
    }
  }
}