vp9_idct.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #ifndef VP9_COMMON_VP9_IDCT_H_
  11. #define VP9_COMMON_VP9_IDCT_H_
  12. #include <assert.h>
  13. #include "./vpx_config.h"
  14. #include "vp9/common/vp9_common.h"
  15. #include "vp9/common/vp9_enums.h"
  16. #include "vpx_dsp/inv_txfm.h"
  17. #include "vpx_dsp/txfm_common.h"
  18. #include "vpx_ports/mem.h"
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. typedef void (*transform_1d)(const tran_low_t*, tran_low_t*);
  23. typedef struct {
  24. transform_1d cols, rows; // vertical and horizontal
  25. } transform_2d;
  26. #if CONFIG_VP9_HIGHBITDEPTH
  27. typedef void (*highbd_transform_1d)(const tran_low_t*, tran_low_t*, int bd);
  28. typedef struct {
  29. highbd_transform_1d cols, rows; // vertical and horizontal
  30. } highbd_transform_2d;
  31. #endif // CONFIG_VP9_HIGHBITDEPTH
  32. void vp9_iwht4x4_add(const tran_low_t *input, uint8_t *dest, int stride,
  33. int eob);
  34. void vp9_idct4x4_add(const tran_low_t *input, uint8_t *dest, int stride,
  35. int eob);
  36. void vp9_idct8x8_add(const tran_low_t *input, uint8_t *dest, int stride,
  37. int eob);
  38. void vp9_idct16x16_add(const tran_low_t *input, uint8_t *dest, int stride,
  39. int eob);
  40. void vp9_idct32x32_add(const tran_low_t *input, uint8_t *dest, int stride,
  41. int eob);
  42. void vp9_iht4x4_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest,
  43. int stride, int eob);
  44. void vp9_iht8x8_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest,
  45. int stride, int eob);
  46. void vp9_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input, uint8_t *dest,
  47. int stride, int eob);
  48. #if CONFIG_VP9_HIGHBITDEPTH
  49. void vp9_highbd_iwht4x4_add(const tran_low_t *input, uint8_t *dest, int stride,
  50. int eob, int bd);
  51. void vp9_highbd_idct4x4_add(const tran_low_t *input, uint8_t *dest, int stride,
  52. int eob, int bd);
  53. void vp9_highbd_idct8x8_add(const tran_low_t *input, uint8_t *dest, int stride,
  54. int eob, int bd);
  55. void vp9_highbd_idct16x16_add(const tran_low_t *input, uint8_t *dest,
  56. int stride, int eob, int bd);
  57. void vp9_highbd_idct32x32_add(const tran_low_t *input, uint8_t *dest,
  58. int stride, int eob, int bd);
  59. void vp9_highbd_iht4x4_add(TX_TYPE tx_type, const tran_low_t *input,
  60. uint8_t *dest, int stride, int eob, int bd);
  61. void vp9_highbd_iht8x8_add(TX_TYPE tx_type, const tran_low_t *input,
  62. uint8_t *dest, int stride, int eob, int bd);
  63. void vp9_highbd_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input,
  64. uint8_t *dest, int stride, int eob, int bd);
  65. #endif // CONFIG_VP9_HIGHBITDEPTH
  66. #ifdef __cplusplus
  67. } // extern "C"
  68. #endif
  69. #endif // VP9_COMMON_VP9_IDCT_H_