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

Side by Side Diff: source/libvpx/tools_common.h

Issue 1302353004: 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/third_party/x86inc/x86inc.asm ('k') | source/libvpx/tools_common.c » ('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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #define PATH_MAX 512 55 #define PATH_MAX 512
56 #endif 56 #endif
57 57
58 #define IVF_FRAME_HDR_SZ (4 + 8) /* 4 byte size + 8 byte timestamp */ 58 #define IVF_FRAME_HDR_SZ (4 + 8) /* 4 byte size + 8 byte timestamp */
59 #define IVF_FILE_HDR_SZ 32 59 #define IVF_FILE_HDR_SZ 32
60 60
61 #define RAW_FRAME_HDR_SZ sizeof(uint32_t) 61 #define RAW_FRAME_HDR_SZ sizeof(uint32_t)
62 62
63 #define VP8_FOURCC 0x30385056 63 #define VP8_FOURCC 0x30385056
64 #define VP9_FOURCC 0x30395056 64 #define VP9_FOURCC 0x30395056
65 #define VP10_FOURCC 0x303a5056
65 66
66 enum VideoFileType { 67 enum VideoFileType {
67 FILE_TYPE_RAW, 68 FILE_TYPE_RAW,
68 FILE_TYPE_IVF, 69 FILE_TYPE_IVF,
69 FILE_TYPE_Y4M, 70 FILE_TYPE_Y4M,
70 FILE_TYPE_WEBM 71 FILE_TYPE_WEBM
71 }; 72 };
72 73
73 struct FileTypeDetectionBuffer { 74 struct FileTypeDetectionBuffer {
74 char buf[4]; 75 char buf[4];
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 144
144 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part 145 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part
145 // of vpx_image_t support 146 // of vpx_image_t support
146 int vpx_img_plane_width(const vpx_image_t *img, int plane); 147 int vpx_img_plane_width(const vpx_image_t *img, int plane);
147 int vpx_img_plane_height(const vpx_image_t *img, int plane); 148 int vpx_img_plane_height(const vpx_image_t *img, int plane);
148 void vpx_img_write(const vpx_image_t *img, FILE *file); 149 void vpx_img_write(const vpx_image_t *img, FILE *file);
149 int vpx_img_read(vpx_image_t *img, FILE *file); 150 int vpx_img_read(vpx_image_t *img, FILE *file);
150 151
151 double sse_to_psnr(double samples, double peak, double mse); 152 double sse_to_psnr(double samples, double peak, double mse);
152 153
153 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH 154 #if CONFIG_VP9_HIGHBITDEPTH
154 void vpx_img_upshift(vpx_image_t *dst, vpx_image_t *src, int input_shift); 155 void vpx_img_upshift(vpx_image_t *dst, vpx_image_t *src, int input_shift);
155 void vpx_img_downshift(vpx_image_t *dst, vpx_image_t *src, int down_shift); 156 void vpx_img_downshift(vpx_image_t *dst, vpx_image_t *src, int down_shift);
156 void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src); 157 void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src);
157 #endif 158 #endif
158 159
159 #ifdef __cplusplus 160 #ifdef __cplusplus
160 } /* extern "C" */ 161 } /* extern "C" */
161 #endif 162 #endif
162 163
163 #endif // TOOLS_COMMON_H_ 164 #endif // TOOLS_COMMON_H_
OLDNEW
« no previous file with comments | « source/libvpx/third_party/x86inc/x86inc.asm ('k') | source/libvpx/tools_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698