flv.h
Go to the documentation of this file.
1 /*
2  * FLV common header
3  *
4  * Copyright (c) 2006 The Libav Project
5  *
6  * This file is part of Libav.
7  *
8  * Libav is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * Libav is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with Libav; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
28 #ifndef AVFORMAT_FLV_H
29 #define AVFORMAT_FLV_H
30 
31 /* offsets for packed values */
32 #define FLV_AUDIO_SAMPLESSIZE_OFFSET 1
33 #define FLV_AUDIO_SAMPLERATE_OFFSET 2
34 #define FLV_AUDIO_CODECID_OFFSET 4
35 
36 #define FLV_VIDEO_FRAMETYPE_OFFSET 4
37 
38 /* bitmasks to isolate specific values */
39 #define FLV_AUDIO_CHANNEL_MASK 0x01
40 #define FLV_AUDIO_SAMPLESIZE_MASK 0x02
41 #define FLV_AUDIO_SAMPLERATE_MASK 0x0c
42 #define FLV_AUDIO_CODECID_MASK 0xf0
43 
44 #define FLV_VIDEO_CODECID_MASK 0x0f
45 #define FLV_VIDEO_FRAMETYPE_MASK 0xf0
46 
47 #define AMF_END_OF_OBJECT 0x09
48 
49 enum {
52 };
53 
54 enum {
58 };
59 
60 enum {
61  FLV_MONO = 0,
63 };
64 
65 enum {
68 };
69 
70 enum {
75 };
76 
77 enum {
87 };
88 
89 enum {
96 };
97 
98 enum {
102 };
103 
104 typedef enum {
118 } AMFDataType;
119 
120 #endif /* AVFORMAT_FLV_H */