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

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

Issue 232133009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/register_state_check.h ('k') | source/libvpx/test/sixtap_predict_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) 2012 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 11
12 #include <math.h> 12 #include <math.h>
13 #include <stddef.h> 13 #include <stddef.h>
14 #include <stdio.h> 14 #include <stdio.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 #include <string.h> 16 #include <string.h>
17 #include <sys/types.h> 17 #include <sys/types.h>
18 18
19 #include "third_party/googletest/src/include/gtest/gtest.h" 19 #include "third_party/googletest/src/include/gtest/gtest.h"
20 #include "test/acm_random.h" 20 #include "test/acm_random.h"
21 #include "vp8/encoder/onyx_int.h" 21 #include "vp8/encoder/onyx_int.h"
22 #include "vpx/vpx_integer.h" 22 #include "vpx/vpx_integer.h"
23 #include "vpx_mem/vpx_mem.h" 23 #include "vpx_mem/vpx_mem.h"
24 24
25 using libvpx_test::ACMRandom; 25 using libvpx_test::ACMRandom;
26 26
27 namespace { 27 namespace {
28 28
29 TEST(Vp8RoiMapTest, ParameterCheck) { 29 TEST(VP8RoiMapTest, ParameterCheck) {
30 ACMRandom rnd(ACMRandom::DeterministicSeed()); 30 ACMRandom rnd(ACMRandom::DeterministicSeed());
31 int delta_q[MAX_MB_SEGMENTS] = { -2, -25, 0, 31 }; 31 int delta_q[MAX_MB_SEGMENTS] = { -2, -25, 0, 31 };
32 int delta_lf[MAX_MB_SEGMENTS] = { -2, -25, 0, 31 }; 32 int delta_lf[MAX_MB_SEGMENTS] = { -2, -25, 0, 31 };
33 unsigned int threshold[MAX_MB_SEGMENTS] = { 0, 100, 200, 300 }; 33 unsigned int threshold[MAX_MB_SEGMENTS] = { 0, 100, 200, 300 };
34 34
35 const int internalq_trans[] = { 35 const int internalq_trans[] = {
36 0, 1, 2, 3, 4, 5, 7, 8, 36 0, 1, 2, 3, 4, 5, 7, 8,
37 9, 10, 12, 13, 15, 17, 18, 19, 37 9, 10, 12, 13, 15, 17, 18, 19,
38 20, 21, 23, 24, 25, 26, 27, 28, 38 20, 21, 23, 24, 25, 26, 27, 28,
39 29, 30, 31, 33, 35, 37, 39, 41, 39 29, 30, 31, 33, 35, 37, 39, 41,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 // Free allocated memory 177 // Free allocated memory
178 if (cpi.segmentation_map) 178 if (cpi.segmentation_map)
179 vpx_free(cpi.segmentation_map); 179 vpx_free(cpi.segmentation_map);
180 if (roi_map) 180 if (roi_map)
181 vpx_free(roi_map); 181 vpx_free(roi_map);
182 }; 182 };
183 183
184 } // namespace 184 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/register_state_check.h ('k') | source/libvpx/test/sixtap_predict_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698