2005-07-22 17:51:10 +02:00
|
|
|
/*****************************************************************************
|
2009-10-24 02:23:50 +02:00
|
|
|
* input.h: x264 file input modules
|
2005-07-22 17:51:10 +02:00
|
|
|
*****************************************************************************
|
2009-10-24 02:23:50 +02:00
|
|
|
* Copyright (C) 2003-2009 x264 project
|
|
|
|
*
|
|
|
|
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
|
|
|
|
* Loren Merritt <lorenm@u.washington.edu>
|
2005-07-22 17:51:10 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2008-07-04 04:05:00 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
|
2005-07-22 17:51:10 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2009-10-24 02:23:50 +02:00
|
|
|
#ifndef X264_INPUT_H
|
|
|
|
#define X264_INPUT_H
|
2005-07-22 17:51:10 +02:00
|
|
|
|
2009-10-24 02:23:50 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int (*open_file)( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
|
|
|
|
int (*get_frame_total)( hnd_t handle );
|
2009-11-27 07:37:18 +01:00
|
|
|
int (*picture_alloc)( x264_picture_t *pic, int i_csp, int i_width, int i_height );
|
2009-10-24 02:23:50 +02:00
|
|
|
int (*read_frame)( x264_picture_t *p_pic, hnd_t handle, int i_frame );
|
2009-11-27 07:37:18 +01:00
|
|
|
int (*release_frame)( x264_picture_t *pic, hnd_t handle );
|
|
|
|
void (*picture_clean)( x264_picture_t *pic );
|
2009-10-24 02:23:50 +02:00
|
|
|
int (*close_file)( hnd_t handle );
|
|
|
|
} cli_input_t;
|
2005-07-22 17:51:10 +02:00
|
|
|
|
2009-10-24 02:23:50 +02:00
|
|
|
extern cli_input_t yuv_input;
|
|
|
|
extern cli_input_t y4m_input;
|
2009-11-27 07:37:18 +01:00
|
|
|
extern cli_input_t avs_input;
|
2009-10-24 02:23:50 +02:00
|
|
|
extern cli_input_t thread_input;
|
2005-07-22 17:51:10 +02:00
|
|
|
|
|
|
|
#endif
|