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

Side by Side Diff: source/libvpx/test/vp8_fdct4x4_test.cc

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/test/video_source.h ('k') | source/libvpx/test/vp9_lossless_test.cc » ('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) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 10
12 #include <math.h> 11 #include <math.h>
13 #include <stddef.h> 12 #include <stddef.h>
14 #include <stdio.h> 13 #include <stdio.h>
15 #include <stdlib.h> 14 #include <stdlib.h>
16 #include <string.h> 15 #include <string.h>
17 #include <sys/types.h> 16 #include <sys/types.h>
18 17
19
20 extern "C" { 18 extern "C" {
21 #include "./vp8_rtcd.h" 19 #include "./vp8_rtcd.h"
22 } 20 }
23 21
24 #include "test/acm_random.h" 22 #include "test/acm_random.h"
25 #include "third_party/googletest/src/include/gtest/gtest.h" 23 #include "third_party/googletest/src/include/gtest/gtest.h"
26 #include "vpx/vpx_integer.h" 24 #include "vpx/vpx_integer.h"
27 25
28
29 namespace { 26 namespace {
30 27
31 const int cospi8sqrt2minus1 = 20091; 28 const int cospi8sqrt2minus1 = 20091;
32 const int sinpi8sqrt2 = 35468; 29 const int sinpi8sqrt2 = 35468;
33 30
34 void reference_idct4x4(const int16_t *input, int16_t *output) { 31 void reference_idct4x4(const int16_t *input, int16_t *output) {
35 const int16_t *ip = input; 32 const int16_t *ip = input;
36 int16_t *op = output; 33 int16_t *op = output;
37 34
38 for (int i = 0; i < 4; ++i) { 35 for (int i = 0; i < 4; ++i) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 157 }
161 158
162 EXPECT_GE(1, max_error ) 159 EXPECT_GE(1, max_error )
163 << "Error: FDCT/IDCT has an individual roundtrip error > 1"; 160 << "Error: FDCT/IDCT has an individual roundtrip error > 1";
164 161
165 EXPECT_GE(count_test_block, total_error) 162 EXPECT_GE(count_test_block, total_error)
166 << "Error: FDCT/IDCT has average roundtrip error > 1 per block"; 163 << "Error: FDCT/IDCT has average roundtrip error > 1 per block";
167 }; 164 };
168 165
169 } // namespace 166 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/video_source.h ('k') | source/libvpx/test/vp9_lossless_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698