The rest of the project files.
[libmkv.git] / src / matroska.h
blob438d1e4bc957ab82da2fca14b6ddb460789aaa3e
1 /*****************************************************************************
2 * matroska.h:
3 *****************************************************************************
4 * Copyright (C) 2005 x264 project
5 * $Id: $
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 *****************************************************************************/
24 #ifndef _LIBMKV_H
25 #define _LIBMKV_H 1
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,
32 const char *codecID,
33 const void *codecPrivate, unsigned codecPrivateSize,
34 int64_t default_frame_duration,
35 int64_t timescale,
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 );
44 #endif