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

Side by Side Diff: source/libvpx/vp8/common/idctllm.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/vp8/common/generic/systemdependent.c ('k') | source/libvpx/vp8/common/mfqe.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 "./vp8_rtcd.h"
11 12
12 /**************************************************************************** 13 /****************************************************************************
13 * Notes: 14 * Notes:
14 * 15 *
15 * This implementation makes use of 16 bit fixed point verio of two multiply 16 * This implementation makes use of 16 bit fixed point verio of two multiply
16 * constants: 17 * constants:
17 * 1. sqrt(2) * cos (pi/8) 18 * 1. sqrt(2) * cos (pi/8)
18 * 2. sqrt(2) * sin (pi/8) 19 * 2. sqrt(2) * sin (pi/8)
19 * Becuase the first constant is bigger than 1, to maintain the same 16 bit 20 * Becuase the first constant is bigger than 1, to maintain the same 16 bit
20 * fixed point precision as the second one, we use a trick of 21 * fixed point precision as the second one, we use a trick of
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 { 196 {
196 int i; 197 int i;
197 int a1; 198 int a1;
198 199
199 a1 = ((input[0] + 3) >> 3); 200 a1 = ((input[0] + 3) >> 3);
200 for(i = 0; i < 16; i++) 201 for(i = 0; i < 16; i++)
201 { 202 {
202 mb_dqcoeff[i * 16] = a1; 203 mb_dqcoeff[i * 16] = a1;
203 } 204 }
204 } 205 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/generic/systemdependent.c ('k') | source/libvpx/vp8/common/mfqe.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698