/*****************************************************************************1* matroska_ebml.h: matroska muxer utilities2*****************************************************************************3* Copyright (C) 2005-2016 x264 project4*5* Authors: Mike Matsnev <[email protected]>6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.20*21* This program is also available under a commercial proprietary license.22* For more information, contact us at [email protected].23*****************************************************************************/2425#ifndef X264_MATROSKA_EBML_H26#define X264_MATROSKA_EBML_H2728/* Matroska display size units from the spec */29#define DS_PIXELS 030#define DS_CM 131#define DS_INCHES 232#define DS_ASPECT_RATIO 33334typedef struct mk_writer mk_writer;3536mk_writer *mk_create_writer( const char *filename );3738int mk_write_header( mk_writer *w, const char *writing_app,39const char *codec_id,40const void *codec_private, unsigned codec_private_size,41int64_t default_frame_duration,42int64_t timescale,43unsigned width, unsigned height,44unsigned d_width, unsigned d_height, int display_size_units, int stereo_mode );4546int mk_start_frame( mk_writer *w );47int mk_add_frame_data( mk_writer *w, const void *data, unsigned size );48int mk_set_frame_flags( mk_writer *w, int64_t timestamp, int keyframe, int skippable );49int mk_close( mk_writer *w, int64_t last_delta );5051#endif525354