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

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

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_idct.h ('k') | source/libvpx/vp9/common/vp9_loopfilter.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
11 #include <math.h> 11 #include <math.h>
12 12
13 #include "./vp9_rtcd.h" 13 #include "./vp9_rtcd.h"
14 #include "vpx_ports/mem.h"
14 #include "vp9/common/vp9_blockd.h" 15 #include "vp9/common/vp9_blockd.h"
15 #include "vp9/common/vp9_idct.h" 16 #include "vp9/common/vp9_idct.h"
16 #include "vp9/common/vp9_systemdependent.h" 17 #include "vp9/common/vp9_systemdependent.h"
17 18
18 static INLINE uint8_t clip_pixel_add(uint8_t dest, tran_high_t trans) { 19 static INLINE uint8_t clip_pixel_add(uint8_t dest, tran_high_t trans) {
19 trans = WRAPLOW(trans, 8); 20 trans = WRAPLOW(trans, 8);
20 return clip_pixel(WRAPLOW(dest + trans, 8)); 21 return clip_pixel(WRAPLOW(dest + trans, 8));
21 } 22 }
22 23
23 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride) { 24 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride) {
(...skipping 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 2858
2858 void vp9_highbd_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input, 2859 void vp9_highbd_iht16x16_add(TX_TYPE tx_type, const tran_low_t *input,
2859 uint8_t *dest, int stride, int eob, int bd) { 2860 uint8_t *dest, int stride, int eob, int bd) {
2860 if (tx_type == DCT_DCT) { 2861 if (tx_type == DCT_DCT) {
2861 vp9_highbd_idct16x16_add(input, dest, stride, eob, bd); 2862 vp9_highbd_idct16x16_add(input, dest, stride, eob, bd);
2862 } else { 2863 } else {
2863 vp9_highbd_iht16x16_256_add(input, dest, stride, tx_type, bd); 2864 vp9_highbd_iht16x16_256_add(input, dest, stride, tx_type, bd);
2864 } 2865 }
2865 } 2866 }
2866 #endif // CONFIG_VP9_HIGHBITDEPTH 2867 #endif // CONFIG_VP9_HIGHBITDEPTH
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_idct.h ('k') | source/libvpx/vp9/common/vp9_loopfilter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698