summaryrefslogtreecommitdiff
path: root/y4minput.h
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2013-05-06 11:01:35 -0700
committerJohn Koleszar <jkoleszar@google.com>2013-05-06 14:35:19 -0700
commit8dd8287e16d3afc037a4ad5a18863107868ff5ef (patch)
tree8c232ba8ad467197cffae4e6b00d0adaae6f7c8f /y4minput.h
parentf7fa367094250ecaad8b6463ab877ca6e59ce62d (diff)
downloadlibvpx-8dd8287e16d3afc037a4ad5a18863107868ff5ef.tar
libvpx-8dd8287e16d3afc037a4ad5a18863107868ff5ef.tar.gz
libvpx-8dd8287e16d3afc037a4ad5a18863107868ff5ef.tar.bz2
libvpx-8dd8287e16d3afc037a4ad5a18863107868ff5ef.zip
Y4M input support for 4:2:2, 4:4:4, 4:4:4:4
Adds a new experiment CONFIG_NON420 that allows other chroma subsamplings to be passed to the codec. This commit allows the data to be passed from a y4m input file through vpxenc to the codec, where they're currently rejected. Later commits will finish support for this inside the codec. Change-Id: Ib3aac604d8cad9e24cef395fa1067f16ba7e8e43
Diffstat (limited to 'y4minput.h')
-rw-r--r--y4minput.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/y4minput.h b/y4minput.h
index 2fa3767c9..b2a390cfe 100644
--- a/y4minput.h
+++ b/y4minput.h
@@ -51,9 +51,12 @@ struct y4m_input {
y4m_convert_func convert;
unsigned char *dst_buf;
unsigned char *aux_buf;
+ enum vpx_img_fmt vpx_fmt;
+ int vpx_bps;
};
-int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip);
+int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip,
+ int only_420);
void y4m_input_close(y4m_input *_y4m);
int y4m_input_fetch_frame(y4m_input *_y4m, FILE *_fin, vpx_image_t *img);