/*****************************************************************************1* output.h: x264 file output modules2*****************************************************************************3* Copyright (C) 2003-2016 x264 project4*5* Authors: Laurent Aimar <[email protected]>6* Loren Merritt <[email protected]>7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (at your option) any later version.12*13* This program is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with this program; if not, write to the Free Software20* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.21*22* This program is also available under a commercial proprietary license.23* For more information, contact us at [email protected].24*****************************************************************************/2526#ifndef X264_OUTPUT_H27#define X264_OUTPUT_H2829#include "x264cli.h"3031typedef struct32{33int use_dts_compress;34} cli_output_opt_t;3536typedef struct37{38int (*open_file)( char *psz_filename, hnd_t *p_handle, cli_output_opt_t *opt );39int (*set_param)( hnd_t handle, x264_param_t *p_param );40int (*write_headers)( hnd_t handle, x264_nal_t *p_nal );41int (*write_frame)( hnd_t handle, uint8_t *p_nal, int i_size, x264_picture_t *p_picture );42int (*close_file)( hnd_t handle, int64_t largest_pts, int64_t second_largest_pts );43} cli_output_t;4445extern const cli_output_t raw_output;46extern const cli_output_t mkv_output;47extern const cli_output_t mp4_output;48extern const cli_output_t flv_output;4950#endif515253