Yaowu Xu | e6ad9ab | 2013-02-07 11:51:23 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Dmitry Kovalev | 347f3a0 | 2013-02-27 11:17:38 -0800 | [diff] [blame] | 11 | #ifndef VP9_COMMON_VP9_IDCT_H_ |
| 12 | #define VP9_COMMON_VP9_IDCT_H_ |
Yaowu Xu | e6ad9ab | 2013-02-07 11:51:23 -0800 | [diff] [blame] | 13 | |
Christian Duvivier | c129203 | 2013-02-27 12:29:06 -0800 | [diff] [blame] | 14 | #include <assert.h> |
| 15 | |
Yaowu Xu | e6ad9ab | 2013-02-07 11:51:23 -0800 | [diff] [blame] | 16 | #include "./vpx_config.h" |
Dmitry Kovalev | 3603dfb | 2013-03-07 12:24:35 -0800 | [diff] [blame] | 17 | #include "vp9/common/vp9_common.h" |
Dmitry Kovalev | be7eec7 | 2013-10-02 14:13:33 -0700 | [diff] [blame] | 18 | #include "vp9/common/vp9_enums.h" |
Jingning Han | e8b133c | 2015-07-30 18:53:18 -0700 | [diff] [blame] | 19 | #include "vpx_dsp/inv_txfm.h" |
| 20 | #include "vpx_dsp/txfm_common.h" |
| 21 | #include "vpx_ports/mem.h" |
Yunqing Wang | 35bc02c | 2013-02-26 16:27:41 -0800 | [diff] [blame] | 22 | |
James Zern | 0940c9c | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 23 | #ifdef __cplusplus |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 27 | typedef void (*transform_1d)(const tran_low_t*, tran_low_t*); |
Dmitry Kovalev | 347f3a0 | 2013-02-27 11:17:38 -0800 | [diff] [blame] | 28 | |
| 29 | typedef struct { |
| 30 | transform_1d cols, rows; // vertical and horizontal |
| 31 | } transform_2d; |
| 32 | |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 33 | #if CONFIG_VP9_HIGHBITDEPTH |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 34 | typedef void (*highbd_transform_1d)(const tran_low_t*, tran_low_t*, int bd); |
Dmitry Kovalev | be7eec7 | 2013-10-02 14:13:33 -0700 | [diff] [blame] | 35 | |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 36 | typedef struct { |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 37 | highbd_transform_1d cols, rows; // vertical and horizontal |
| 38 | } highbd_transform_2d; |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 39 | #endif // CONFIG_VP9_HIGHBITDEPTH |
| 40 | |
| 41 | void vp9_iwht4x4_add(const tran_low_t *input, uint8_t *dest, int stride, |
| 42 | int eob); |
| 43 | void vp9_idct4x4_add(const tran_low_t *input, uint8_t *dest, int stride, |
| 44 | int eob); |
| 45 | void vp9_idct8x8_add(const tran_low_t *input, uint8_t *dest, int stride, |
| 46 | int eob); |
Jingning Han | 08a453b | 2015-08-03 14:51:10 -0700 | [diff] [blame] | 47 | void vp9_idct16x16_add(const tran_low_t *input, uint8_t *dest, int stride, |
| 48 | int eob); |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 49 | void vp9_idct32x32_add(const tran_low_t *input, uint8_t *dest, int stride, |
Dmitry Kovalev | 65f118d | 2013-10-11 18:27:12 -0700 | [diff] [blame] | 50 | int eob); |
Dmitry Kovalev | be7eec7 | 2013-10-02 14:13:33 -0700 | [diff] [blame] | 51 | |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 52 | void vp9_iht4x4_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest, |
Dmitry Kovalev | ac468dd | 2013-10-11 15:49:05 -0700 | [diff] [blame] | 53 | int stride, int eob); |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 54 | void vp9_iht8x8_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest, |
Dmitry Kovalev | ac468dd | 2013-10-11 15:49:05 -0700 | [diff] [blame] | 55 | int stride, int eob); |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 56 | void vp9_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest, |
Dmitry Kovalev | ac468dd | 2013-10-11 15:49:05 -0700 | [diff] [blame] | 57 | int stride, int eob); |
Dmitry Kovalev | be7eec7 | 2013-10-02 14:13:33 -0700 | [diff] [blame] | 58 | |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 59 | #if CONFIG_VP9_HIGHBITDEPTH |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 60 | void vp9_highbd_iwht4x4_add(const tran_low_t *input, uint8_t *dest, int stride, |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 61 | int eob, int bd); |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 62 | void vp9_highbd_idct4x4_add(const tran_low_t *input, uint8_t *dest, int stride, |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 63 | int eob, int bd); |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 64 | void vp9_highbd_idct8x8_add(const tran_low_t *input, uint8_t *dest, int stride, |
| 65 | int eob, int bd); |
| 66 | void vp9_highbd_idct16x16_add(const tran_low_t *input, uint8_t *dest, |
| 67 | int stride, int eob, int bd); |
| 68 | void vp9_highbd_idct32x32_add(const tran_low_t *input, uint8_t *dest, |
| 69 | int stride, int eob, int bd); |
| 70 | void vp9_highbd_iht4x4_add(TX_TYPE tx_type, const tran_low_t *input, |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 71 | uint8_t *dest, int stride, int eob, int bd); |
Deb Mukherjee | 1929c9b | 2014-10-08 12:43:22 -0700 | [diff] [blame] | 72 | void vp9_highbd_iht8x8_add(TX_TYPE tx_type, const tran_low_t *input, |
| 73 | uint8_t *dest, int stride, int eob, int bd); |
| 74 | void vp9_highbd_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input, |
| 75 | uint8_t *dest, int stride, int eob, int bd); |
Deb Mukherjee | 10783d4 | 2014-09-02 16:34:09 -0700 | [diff] [blame] | 76 | #endif // CONFIG_VP9_HIGHBITDEPTH |
James Zern | 0940c9c | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 77 | #ifdef __cplusplus |
| 78 | } // extern "C" |
| 79 | #endif |
| 80 | |
Dmitry Kovalev | 347f3a0 | 2013-02-27 11:17:38 -0800 | [diff] [blame] | 81 | #endif // VP9_COMMON_VP9_IDCT_H_ |