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

Side by Side Diff: source/libvpx/test/video_source.h

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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/test/util.h ('k') | source/libvpx/test/vp10_inv_txfm_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 #ifndef TEST_VIDEO_SOURCE_H_ 10 #ifndef TEST_VIDEO_SOURCE_H_
(...skipping 30 matching lines...) Expand all
41 return "."; 41 return ".";
42 #endif 42 #endif
43 } 43 }
44 return data_path; 44 return data_path;
45 } 45 }
46 46
47 // Undefining stringification macros because they are not used elsewhere 47 // Undefining stringification macros because they are not used elsewhere
48 #undef TO_STRING 48 #undef TO_STRING
49 #undef STRINGIFY 49 #undef STRINGIFY
50 50
51 static FILE *OpenTestDataFile(const std::string& file_name) { 51 inline FILE *OpenTestDataFile(const std::string& file_name) {
52 const std::string path_to_source = GetDataPath() + "/" + file_name; 52 const std::string path_to_source = GetDataPath() + "/" + file_name;
53 return fopen(path_to_source.c_str(), "rb"); 53 return fopen(path_to_source.c_str(), "rb");
54 } 54 }
55 55
56 static FILE *GetTempOutFile(std::string *file_name) { 56 static FILE *GetTempOutFile(std::string *file_name) {
57 file_name->clear(); 57 file_name->clear();
58 #if defined(_WIN32) 58 #if defined(_WIN32)
59 char fname[MAX_PATH]; 59 char fname[MAX_PATH];
60 char tmppath[MAX_PATH]; 60 char tmppath[MAX_PATH];
61 if (GetTempPathA(MAX_PATH, tmppath)) { 61 if (GetTempPathA(MAX_PATH, tmppath)) {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 virtual const uint8_t *cxdata() const = 0; 258 virtual const uint8_t *cxdata() const = 0;
259 259
260 virtual size_t frame_size() const = 0; 260 virtual size_t frame_size() const = 0;
261 261
262 virtual unsigned int frame_number() const = 0; 262 virtual unsigned int frame_number() const = 0;
263 }; 263 };
264 264
265 } // namespace libvpx_test 265 } // namespace libvpx_test
266 266
267 #endif // TEST_VIDEO_SOURCE_H_ 267 #endif // TEST_VIDEO_SOURCE_H_
OLDNEW
« no previous file with comments | « source/libvpx/test/util.h ('k') | source/libvpx/test/vp10_inv_txfm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698