vp9_dct.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2014 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_ENCODER_VP9_DCT_H_
  11. #define VP9_ENCODER_VP9_DCT_H_
  12. #include "vp9/common/vp9_idct.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. void vp9_highbd_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride);
  17. void vp9_highbd_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride);
  18. void vp9_highbd_fdct16x16_c(const int16_t *input, tran_low_t *output,
  19. int stride);
  20. void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride);
  21. void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out,
  22. int stride);
  23. void vp9_fdct4(const tran_low_t *input, tran_low_t *output);
  24. void vp9_fadst4(const tran_low_t *input, tran_low_t *output);
  25. void vp9_fdct8(const tran_low_t *input, tran_low_t *output);
  26. void vp9_fadst8(const tran_low_t *input, tran_low_t *output);
  27. void vp9_fdct16(const tran_low_t in[16], tran_low_t out[16]);
  28. void vp9_fadst16(const tran_low_t *input, tran_low_t *output);
  29. void vp9_fdct32(const tran_high_t *input, tran_high_t *output, int round);
  30. static const transform_2d FHT_4[] = {
  31. { vp9_fdct4, vp9_fdct4 }, // DCT_DCT = 0
  32. { vp9_fadst4, vp9_fdct4 }, // ADST_DCT = 1
  33. { vp9_fdct4, vp9_fadst4 }, // DCT_ADST = 2
  34. { vp9_fadst4, vp9_fadst4 } // ADST_ADST = 3
  35. };
  36. static const transform_2d FHT_8[] = {
  37. { vp9_fdct8, vp9_fdct8 }, // DCT_DCT = 0
  38. { vp9_fadst8, vp9_fdct8 }, // ADST_DCT = 1
  39. { vp9_fdct8, vp9_fadst8 }, // DCT_ADST = 2
  40. { vp9_fadst8, vp9_fadst8 } // ADST_ADST = 3
  41. };
  42. static const transform_2d FHT_16[] = {
  43. { vp9_fdct16, vp9_fdct16 }, // DCT_DCT = 0
  44. { vp9_fadst16, vp9_fdct16 }, // ADST_DCT = 1
  45. { vp9_fdct16, vp9_fadst16 }, // DCT_ADST = 2
  46. { vp9_fadst16, vp9_fadst16 } // ADST_ADST = 3
  47. };
  48. #ifdef __cplusplus
  49. } // extern "C"
  50. #endif
  51. #endif // VP9_ENCODER_VP9_DCT_H_