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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part | 143 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part |
144 // of vpx_image_t support | 144 // of vpx_image_t support |
145 int vpx_img_plane_width(const vpx_image_t *img, int plane); | 145 int vpx_img_plane_width(const vpx_image_t *img, int plane); |
146 int vpx_img_plane_height(const vpx_image_t *img, int plane); | 146 int vpx_img_plane_height(const vpx_image_t *img, int plane); |
147 void vpx_img_write(const vpx_image_t *img, FILE *file); | 147 void vpx_img_write(const vpx_image_t *img, FILE *file); |
148 int vpx_img_read(vpx_image_t *img, FILE *file); | 148 int vpx_img_read(vpx_image_t *img, FILE *file); |
149 | 149 |
150 double sse_to_psnr(double samples, double peak, double mse); | 150 double sse_to_psnr(double samples, double peak, double mse); |
151 | 151 |
| 152 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH |
| 153 void vpx_img_upshift(vpx_image_t *dst, vpx_image_t *src, int input_shift); |
| 154 void vpx_img_downshift(vpx_image_t *dst, vpx_image_t *src, int down_shift); |
| 155 void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src); |
| 156 #endif |
| 157 |
152 #ifdef __cplusplus | 158 #ifdef __cplusplus |
153 } /* extern "C" */ | 159 } /* extern "C" */ |
154 #endif | 160 #endif |
155 | 161 |
156 #endif // TOOLS_COMMON_H_ | 162 #endif // TOOLS_COMMON_H_ |
OLD | NEW |