1 /*************************************************************************
2  * mkv.h - header for mkv.c [part of AVInfo 1.x]
3  *
4  * Copyright (c) 2004 George Shuklin
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program (see the file COPYING); if not, write to the Free
18  * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19  * MA  02111-1307  USA  or visit http://www.gnu.org/copyleft/gpl.html
20  *
21  *************************************************************************/
22 
23 #ifndef _H_MKV_H
24 #define _H_MKV_H
25 
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include "avinfo.h"
30 #include "codec.h"
31 #include "var.h"
32 #include "common.h"
33 
34 typedef long long int64; /*TODO!!!*/
35 extern int mkvparse(FILE* file, int s);
36 
37 enum{
38 MKV_Track_video=1,
39 MKV_Track_audio=2,
40 MKV_Track_subtitle=3,
41 MKV_Track_subtitle_orig=0x11
42 };
43 enum{
44 MKVID_OutputSamplingFrequency=0x78B5,
45 MKVID_FILE_BEGIN=0x1A,
46 MKVID_EBML=0x1A45DFA3,
47 MKVID_Segment=0x18538067,
48 MKVID_Info=0x1549A966,
49 MKVID_Tracks=0x1654AE6B,
50 MKVID_TrackEntry=0xAE,
51 MKVID_TrackType=0x83,
52 MKVID_DefaultDuration=0x23E383,
53 MKVID_Language=0x22B59C,
54 MKVID_CodecID=0x86,
55 MKVID_CodecPrivate=0x63A2,
56 MKVID_PixelWidth=0xB0,
57 MKVID_PixelHeight=0xBA,
58 MKVID_TimeCodeScale=0x2AD7B1,
59 MKVID_Duration=0x4489,
60 MKVID_Channels=0x9F,
61 MKVID_BitDepth=0x6264,
62 MKVID_SamplingFrequency=0xB5,
63 MKVID_Title=0x7BA9,
64 MKVID_Tags=0x1254C367,
65 MKVID_SeekHead=0x114D9B74,
66 MKVID_Video=0xE0,
67 MKVID_Audio=0xE1,
68 MKVID_CodecName=0x258688,
69 MKVID_DisplayHeight=0x54BA,
70 MKVID_DisplayWidth=0x54B0
71 };
72 
73 #endif
74