1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2005 x264 project
7 * Authors: Mike Matsnev
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
27 typedef struct mk_Writer mk_Writer
;
29 mk_Writer
*mk_createWriter( const char *filename
);
31 int mk_writeHeader( mk_Writer
*w
, const char *writingApp
,
33 const void *codecPrivate
, unsigned codecPrivateSize
,
34 int64_t default_frame_duration
,
36 unsigned width
, unsigned height
,
37 unsigned d_width
, unsigned d_height
);
39 int mk_startFrame( mk_Writer
*w
);
40 int mk_addFrameData( mk_Writer
*w
, const void *data
, unsigned size
);
41 int mk_setFrameFlags( mk_Writer
*w
, int64_t timestamp
, int keyframe
);
42 int mk_close( mk_Writer
*w
);