| OLD | NEW |
| 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 #ifndef TOOLS_COMMON_H_ | 10 #ifndef TOOLS_COMMON_H_ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 struct VpxInputContext { | 84 struct VpxInputContext { |
| 85 const char *filename; | 85 const char *filename; |
| 86 FILE *file; | 86 FILE *file; |
| 87 int64_t length; | 87 int64_t length; |
| 88 struct FileTypeDetectionBuffer detect; | 88 struct FileTypeDetectionBuffer detect; |
| 89 enum VideoFileType file_type; | 89 enum VideoFileType file_type; |
| 90 uint32_t width; | 90 uint32_t width; |
| 91 uint32_t height; | 91 uint32_t height; |
| 92 vpx_img_fmt_t fmt; | 92 vpx_img_fmt_t fmt; |
| 93 vpx_bit_depth_t bit_depth; |
| 93 int only_i420; | 94 int only_i420; |
| 94 uint32_t fourcc; | 95 uint32_t fourcc; |
| 95 struct VpxRational framerate; | 96 struct VpxRational framerate; |
| 96 #if CONFIG_ENCODERS | 97 #if CONFIG_ENCODERS |
| 97 y4m_input y4m; | 98 y4m_input y4m; |
| 98 #endif | 99 #endif |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 #ifdef __cplusplus | 102 #ifdef __cplusplus |
| 102 extern "C" { | 103 extern "C" { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void vpx_img_write(const vpx_image_t *img, FILE *file); | 139 void vpx_img_write(const vpx_image_t *img, FILE *file); |
| 139 int vpx_img_read(vpx_image_t *img, FILE *file); | 140 int vpx_img_read(vpx_image_t *img, FILE *file); |
| 140 | 141 |
| 141 double sse_to_psnr(double samples, double peak, double mse); | 142 double sse_to_psnr(double samples, double peak, double mse); |
| 142 | 143 |
| 143 #ifdef __cplusplus | 144 #ifdef __cplusplus |
| 144 } /* extern "C" */ | 145 } /* extern "C" */ |
| 145 #endif | 146 #endif |
| 146 | 147 |
| 147 #endif // TOOLS_COMMON_H_ | 148 #endif // TOOLS_COMMON_H_ |
| OLD | NEW |