diff options
Diffstat (limited to 'libvpx/y4minput.h')
-rw-r--r-- | libvpx/y4minput.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libvpx/y4minput.h b/libvpx/y4minput.h index a4a8b18dc..573750d74 100644 --- a/libvpx/y4minput.h +++ b/libvpx/y4minput.h @@ -56,8 +56,16 @@ struct y4m_input { unsigned int bit_depth; }; -int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip, - int only_420); +/** + * Open the input file, treating it as Y4M. |y4m_ctx| is filled in after + * reading it. The |skip_buffer| indicates bytes that were previously read + * from |file|, to do input-type detection; this buffer will be read before + * the |file| is read. It is of size |num_skip|, which *must* be 8 or less. + * + * Returns 0 on success, -1 on failure. + */ +int y4m_input_open(y4m_input *y4m_ctx, FILE *file, char *skip_buffer, + int num_skip, int only_420); void y4m_input_close(y4m_input *_y4m); int y4m_input_fetch_frame(y4m_input *_y4m, FILE *_fin, vpx_image_t *img); |