Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Side by Side Diff: source/libvpx/vp9/common/vp9_idct.h

Issue 111463005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_findnearmv.c ('k') | source/libvpx/vp9/common/vp9_idct.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static const int cospi_31_64 = 804; 70 static const int cospi_31_64 = 804;
71 71
72 // 16384 * sqrt(2) * sin(kPi/9) * 2 / 3 72 // 16384 * sqrt(2) * sin(kPi/9) * 2 / 3
73 static const int sinpi_1_9 = 5283; 73 static const int sinpi_1_9 = 5283;
74 static const int sinpi_2_9 = 9929; 74 static const int sinpi_2_9 = 9929;
75 static const int sinpi_3_9 = 13377; 75 static const int sinpi_3_9 = 13377;
76 static const int sinpi_4_9 = 15212; 76 static const int sinpi_4_9 = 15212;
77 77
78 static INLINE int dct_const_round_shift(int input) { 78 static INLINE int dct_const_round_shift(int input) {
79 int rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); 79 int rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
80 assert(INT16_MIN <= rv && rv <= INT16_MAX); 80 return (int16_t)rv;
81 return rv;
82 } 81 }
83 82
84 typedef void (*transform_1d)(const int16_t*, int16_t*); 83 typedef void (*transform_1d)(const int16_t*, int16_t*);
85 84
86 typedef struct { 85 typedef struct {
87 transform_1d cols, rows; // vertical and horizontal 86 transform_1d cols, rows; // vertical and horizontal
88 } transform_2d; 87 } transform_2d;
89 88
90 void vp9_iwht4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob); 89 void vp9_iwht4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob);
91 90
92 void vp9_idct4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob); 91 void vp9_idct4x4_add(const int16_t *input, uint8_t *dest, int stride, int eob);
93 void vp9_idct8x8_add(const int16_t *input, uint8_t *dest, int stride, int eob); 92 void vp9_idct8x8_add(const int16_t *input, uint8_t *dest, int stride, int eob);
94 void vp9_idct16x16_add(const int16_t *input, uint8_t *dest, int stride, int 93 void vp9_idct16x16_add(const int16_t *input, uint8_t *dest, int stride, int
95 eob); 94 eob);
96 void vp9_idct32x32_add(const int16_t *input, uint8_t *dest, int stride, 95 void vp9_idct32x32_add(const int16_t *input, uint8_t *dest, int stride,
97 int eob); 96 int eob);
98 97
99 void vp9_iht4x4_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest, 98 void vp9_iht4x4_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
100 int stride, int eob); 99 int stride, int eob);
101 void vp9_iht8x8_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest, 100 void vp9_iht8x8_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
102 int stride, int eob); 101 int stride, int eob);
103 void vp9_iht16x16_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest, 102 void vp9_iht16x16_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest,
104 int stride, int eob); 103 int stride, int eob);
105 104
106 105
107 #endif // VP9_COMMON_VP9_IDCT_H_ 106 #endif // VP9_COMMON_VP9_IDCT_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_findnearmv.c ('k') | source/libvpx/vp9/common/vp9_idct.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698