summaryrefslogtreecommitdiffstats
path: root/media/libvpx/vp9/encoder/vp9_dct.h
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/libvpx/vp9/encoder/vp9_dct.h
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libvpx/vp9/encoder/vp9_dct.h')
-rw-r--r--media/libvpx/vp9/encoder/vp9_dct.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/media/libvpx/vp9/encoder/vp9_dct.h b/media/libvpx/vp9/encoder/vp9_dct.h
new file mode 100644
index 000000000..49afcbbd5
--- /dev/null
+++ b/media/libvpx/vp9/encoder/vp9_dct.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef VP9_ENCODER_VP9_DCT_H_
+#define VP9_ENCODER_VP9_DCT_H_
+
+#include "vp9/common/vp9_idct.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void vp9_highbd_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride);
+void vp9_highbd_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride);
+void vp9_highbd_fdct16x16_c(const int16_t *input, tran_low_t *output,
+ int stride);
+void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride);
+void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out,
+ int stride);
+
+void vp9_fdct4(const tran_low_t *input, tran_low_t *output);
+void vp9_fadst4(const tran_low_t *input, tran_low_t *output);
+void vp9_fdct8(const tran_low_t *input, tran_low_t *output);
+void vp9_fadst8(const tran_low_t *input, tran_low_t *output);
+void vp9_fdct16(const tran_low_t in[16], tran_low_t out[16]);
+void vp9_fadst16(const tran_low_t *input, tran_low_t *output);
+void vp9_fdct32(const tran_high_t *input, tran_high_t *output, int round);
+
+static const transform_2d FHT_4[] = {
+ { vp9_fdct4, vp9_fdct4 }, // DCT_DCT = 0
+ { vp9_fadst4, vp9_fdct4 }, // ADST_DCT = 1
+ { vp9_fdct4, vp9_fadst4 }, // DCT_ADST = 2
+ { vp9_fadst4, vp9_fadst4 } // ADST_ADST = 3
+};
+
+static const transform_2d FHT_8[] = {
+ { vp9_fdct8, vp9_fdct8 }, // DCT_DCT = 0
+ { vp9_fadst8, vp9_fdct8 }, // ADST_DCT = 1
+ { vp9_fdct8, vp9_fadst8 }, // DCT_ADST = 2
+ { vp9_fadst8, vp9_fadst8 } // ADST_ADST = 3
+};
+
+static const transform_2d FHT_16[] = {
+ { vp9_fdct16, vp9_fdct16 }, // DCT_DCT = 0
+ { vp9_fadst16, vp9_fdct16 }, // ADST_DCT = 1
+ { vp9_fdct16, vp9_fadst16 }, // DCT_ADST = 2
+ { vp9_fadst16, vp9_fadst16 } // ADST_ADST = 3
+};
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // VP9_ENCODER_VP9_DCT_H_