1 /*****************************************************************************
2 * input.h: x264 file input modules
3 *****************************************************************************
4 * Copyright (C) 2003-2009 x264 project
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
7 * Loren Merritt <lorenm@u.washington.edu>
8 * Steven Walters <kemuri9@gmail.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
23 *****************************************************************************/
28 /* options that are used by only some demuxers */
32 char *resolution; /* resolution string parsed by raw yuv input */
37 /* properties of the source given by the demuxer */
40 int csp; /* X264_CSP_YV12 or X264_CSP_I420 */
56 int (*open_file)( char *psz_filename, hnd_t *p_handle, video_info_t *info, cli_input_opt_t *opt );
57 int (*get_frame_total)( hnd_t handle );
58 int (*picture_alloc)( x264_picture_t *pic, int i_csp, int i_width, int i_height );
59 int (*read_frame)( x264_picture_t *p_pic, hnd_t handle, int i_frame );
60 int (*release_frame)( x264_picture_t *pic, hnd_t handle );
61 void (*picture_clean)( x264_picture_t *pic );
62 int (*close_file)( hnd_t handle );
65 extern const cli_input_t yuv_input;
66 extern const cli_input_t y4m_input;
67 extern const cli_input_t avs_input;
68 extern cli_input_t thread_input;
69 extern const cli_input_t lavf_input;
70 extern const cli_input_t ffms_input;
71 extern cli_input_t timecode_input;