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

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

Issue 181493009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/y4m_video_source.h ('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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 void die(const char *fmt, ...); 112 void die(const char *fmt, ...);
113 void fatal(const char *fmt, ...); 113 void fatal(const char *fmt, ...);
114 void warn(const char *fmt, ...); 114 void warn(const char *fmt, ...);
115 115
116 void die_codec(vpx_codec_ctx_t *ctx, const char *s); 116 void die_codec(vpx_codec_ctx_t *ctx, const char *s);
117 117
118 /* The tool including this file must define usage_exit() */ 118 /* The tool including this file must define usage_exit() */
119 void usage_exit(); 119 void usage_exit();
120 120
121 uint16_t mem_get_le16(const void *data);
122 uint32_t mem_get_le32(const void *data);
123
124 int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame); 121 int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame);
125 122
126 typedef struct VpxInterface { 123 typedef struct VpxInterface {
127 const char *const name; 124 const char *const name;
128 const uint32_t fourcc; 125 const uint32_t fourcc;
129 vpx_codec_iface_t *(*const interface)(); 126 vpx_codec_iface_t *(*const interface)();
130 } VpxInterface; 127 } VpxInterface;
131 128
132 int get_vpx_encoder_count(); 129 int get_vpx_encoder_count();
133 const VpxInterface *get_vpx_encoder_by_index(int i); 130 const VpxInterface *get_vpx_encoder_by_index(int i);
134 const VpxInterface *get_vpx_encoder_by_name(const char *name); 131 const VpxInterface *get_vpx_encoder_by_name(const char *name);
135 132
136 int get_vpx_decoder_count(); 133 int get_vpx_decoder_count();
137 const VpxInterface *get_vpx_decoder_by_index(int i); 134 const VpxInterface *get_vpx_decoder_by_index(int i);
138 const VpxInterface *get_vpx_decoder_by_name(const char *name); 135 const VpxInterface *get_vpx_decoder_by_name(const char *name);
139 const VpxInterface *get_vpx_decoder_by_fourcc(uint32_t fourcc); 136 const VpxInterface *get_vpx_decoder_by_fourcc(uint32_t fourcc);
140 137
141 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part 138 // TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part
142 // of vpx_image_t support 139 // of vpx_image_t support
143 int vpx_img_plane_width(const vpx_image_t *img, int plane); 140 int vpx_img_plane_width(const vpx_image_t *img, int plane);
144 int vpx_img_plane_height(const vpx_image_t *img, int plane); 141 int vpx_img_plane_height(const vpx_image_t *img, int plane);
145 void vpx_img_write(const vpx_image_t *img, FILE *file); 142 void vpx_img_write(const vpx_image_t *img, FILE *file);
146 int vpx_img_read(vpx_image_t *img, FILE *file); 143 int vpx_img_read(vpx_image_t *img, FILE *file);
147 144
145 double sse_to_psnr(double samples, double peak, double mse);
146
148 #ifdef __cplusplus 147 #ifdef __cplusplus
149 } /* extern "C" */ 148 } /* extern "C" */
150 #endif 149 #endif
151 150
152 #endif // TOOLS_COMMON_H_ 151 #endif // TOOLS_COMMON_H_
OLDNEW
« no previous file with comments | « source/libvpx/test/y4m_video_source.h ('k') | source/libvpx/tools_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698