Index: source/libvpx/tools_common.h |
=================================================================== |
--- source/libvpx/tools_common.h (revision 251189) |
+++ source/libvpx/tools_common.h (working copy) |
@@ -123,11 +123,27 @@ |
int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame); |
-vpx_codec_iface_t *get_codec_interface(unsigned int fourcc); |
+typedef struct VpxInterface { |
+ const char *const name; |
+ const uint32_t fourcc; |
+ vpx_codec_iface_t *(*const interface)(); |
+} VpxInterface; |
+int get_vpx_encoder_count(); |
+const VpxInterface *get_vpx_encoder_by_index(int i); |
+const VpxInterface *get_vpx_encoder_by_name(const char *name); |
+ |
+int get_vpx_decoder_count(); |
+const VpxInterface *get_vpx_decoder_by_index(int i); |
+const VpxInterface *get_vpx_decoder_by_name(const char *name); |
+const VpxInterface *get_vpx_decoder_by_fourcc(uint32_t fourcc); |
+ |
// TODO(dkovalev): move this function to vpx_image.{c, h}, so it will be part |
// of vpx_image_t support |
+int vpx_img_plane_width(const vpx_image_t *img, int plane); |
+int vpx_img_plane_height(const vpx_image_t *img, int plane); |
void vpx_img_write(const vpx_image_t *img, FILE *file); |
+int vpx_img_read(vpx_image_t *img, FILE *file); |
#ifdef __cplusplus |
} /* extern "C" */ |