]> git.sesse.net Git - x264/blob - matroska.h
move os/compiler specific defines to their own header
[x264] / matroska.h
1 /*****************************************************************************
2  * matroska.h:
3  *****************************************************************************
4  * Copyright (C) 2005 x264 project
5  * $Id: $
6  *
7  * Authors: Mike Matsnev
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 #ifndef _MATROSKA_H
25 #define _MATROSKA_H 1
26
27 typedef struct mk_Writer mk_Writer;
28
29 mk_Writer *mk_createWriter( const char *filename );
30
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 );
38
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 );
43
44 #endif