| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |