summaryrefslogtreecommitdiffstats
path: root/media/libvpx/vp9/encoder/vp9_dct.h
blob: 49afcbbd5b83605474cc906f68c444020d09eb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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_