FFmpeg
libavformat
swf.h
Go to the documentation of this file.
1
/*
2
* Flash Compatible Streaming Format common header.
3
* Copyright (c) 2000 Fabrice Bellard
4
* Copyright (c) 2003 Tinic Uro
5
*
6
* This file is part of FFmpeg.
7
*
8
* FFmpeg 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
* FFmpeg 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 FFmpeg; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#ifndef AVFORMAT_SWF_H
24
#define AVFORMAT_SWF_H
25
26
#include "
internal.h
"
27
28
/* should have a generic way to indicate probable size */
29
#define DUMMY_FILE_SIZE (100 * 1024 * 1024)
30
#define DUMMY_DURATION 600
/* in seconds */
31
32
enum
{
33
TAG_END
= 0,
34
TAG_SHOWFRAME
= 1,
35
TAG_DEFINESHAPE
= 2,
36
TAG_FREECHARACTER
= 3,
37
TAG_PLACEOBJECT
= 4,
38
TAG_REMOVEOBJECT
= 5,
39
TAG_DEFINEBITS
= 6,
40
TAG_DEFINEBUTTON
= 7,
41
TAG_JPEGTABLES
= 8,
42
TAG_SETBACKGROUNDCOLOR
= 9,
43
TAG_DEFINEFONT
= 10,
44
TAG_DEFINETEXT
= 11,
45
TAG_DOACTION
= 12,
46
TAG_DEFINEFONTINFO
= 13,
47
TAG_DEFINESOUND
= 14,
48
TAG_STARTSOUND
= 15,
49
TAG_DEFINEBUTTONSOUND
= 17,
50
TAG_STREAMHEAD
= 18,
51
TAG_STREAMBLOCK
= 19,
52
TAG_DEFINEBITSLOSSLESS
= 20,
53
TAG_JPEG2
= 21,
54
TAG_DEFINESHAPE2
= 22,
55
TAG_DEFINEBUTTONCXFORM
= 23,
56
TAG_PROTECT
= 24,
57
TAG_PLACEOBJECT2
= 26,
58
TAG_REMOVEOBJECT2
= 28,
59
TAG_DEFINESHAPE3
= 32,
60
TAG_DEFINETEXT2
= 33,
61
TAG_DEFINEBUTTON2
= 34,
62
TAG_DEFINEBITSJPEG3
= 35,
63
TAG_DEFINEBITSLOSSLESS2
= 36,
64
TAG_DEFINEEDITTEXT
= 37,
65
TAG_DEFINESPRITE
= 39,
66
TAG_FRAMELABEL
= 43,
67
TAG_STREAMHEAD2
= 45,
68
TAG_DEFINEMORPHSHAPE
= 46,
69
TAG_DEFINEFONT2
= 48,
70
TAG_EXPORTASSETS
= 56,
71
TAG_IMPORTASSETS
= 57,
72
TAG_ENABLEDEBUGGER
= 58,
73
TAG_DOINITACTION
= 59,
74
TAG_VIDEOSTREAM
= 60,
75
TAG_VIDEOFRAME
= 61,
76
TAG_DEFINEFONTINFO2
= 62,
77
TAG_ENABLEDEBUGGER2
= 64,
78
TAG_SCRIPTLIMITS
= 65,
79
TAG_SETTABINDEX
= 66,
80
TAG_FILEATTRIBUTES
= 69,
81
TAG_PLACEOBJECT3
= 70,
82
TAG_IMPORTASSETS2
= 71,
83
TAG_DEFINEFONTALIGNZONES
= 73,
84
TAG_CSMTEXTSETTINGS
= 74,
85
TAG_DEFINEFONT3
= 75,
86
TAG_SYMBOLCLASS
= 76,
87
TAG_METADATA
= 77,
88
TAG_DEFINESCALINGGRID
= 78,
89
TAG_DOABC
= 82,
90
TAG_DEFINESHAPE4
= 83,
91
TAG_DEFINEMORPHSHAPE2
= 84,
92
TAG_DEFINESCENEANDFRAMELABELDATA
= 86,
93
TAG_DEFINEBINARYDATA
= 87,
94
TAG_DEFINEFONTNAME
= 88,
95
TAG_STARTSOUND2
= 89,
96
TAG_DEFINEBITSJPEG4
= 90,
97
TAG_DEFINEFONT4
= 91,
98
};
99
100
#define TAG_LONG 0x100
101
102
/* flags for shape definition */
103
#define FLAG_MOVETO 0x01
104
#define FLAG_SETFILL0 0x02
105
#define FLAG_SETFILL1 0x04
106
107
/* character id used */
108
#define BITMAP_ID 0
109
#define VIDEO_ID 0
110
#define SHAPE_ID 1
111
112
extern
const
AVCodecTag
ff_swf_codec_tags
[];
113
114
#endif
/* AVFORMAT_SWF_H */
TAG_ENABLEDEBUGGER2
@ TAG_ENABLEDEBUGGER2
Definition:
swf.h:77
TAG_REMOVEOBJECT2
@ TAG_REMOVEOBJECT2
Definition:
swf.h:58
TAG_DEFINEBITSLOSSLESS2
@ TAG_DEFINEBITSLOSSLESS2
Definition:
swf.h:63
TAG_DEFINEFONT4
@ TAG_DEFINEFONT4
Definition:
swf.h:97
TAG_REMOVEOBJECT
@ TAG_REMOVEOBJECT
Definition:
swf.h:38
TAG_DEFINESOUND
@ TAG_DEFINESOUND
Definition:
swf.h:47
TAG_METADATA
@ TAG_METADATA
Definition:
swf.h:87
TAG_VIDEOFRAME
@ TAG_VIDEOFRAME
Definition:
swf.h:75
TAG_DEFINESCALINGGRID
@ TAG_DEFINESCALINGGRID
Definition:
swf.h:88
TAG_PLACEOBJECT3
@ TAG_PLACEOBJECT3
Definition:
swf.h:81
TAG_VIDEOSTREAM
@ TAG_VIDEOSTREAM
Definition:
swf.h:74
TAG_DEFINEFONTINFO
@ TAG_DEFINEFONTINFO
Definition:
swf.h:46
TAG_DEFINEFONTALIGNZONES
@ TAG_DEFINEFONTALIGNZONES
Definition:
swf.h:83
TAG_IMPORTASSETS
@ TAG_IMPORTASSETS
Definition:
swf.h:71
TAG_DEFINEBITSJPEG3
@ TAG_DEFINEBITSJPEG3
Definition:
swf.h:62
TAG_FILEATTRIBUTES
@ TAG_FILEATTRIBUTES
Definition:
swf.h:80
TAG_IMPORTASSETS2
@ TAG_IMPORTASSETS2
Definition:
swf.h:82
TAG_STARTSOUND2
@ TAG_STARTSOUND2
Definition:
swf.h:95
ff_swf_codec_tags
const AVCodecTag ff_swf_codec_tags[]
Definition:
swf.c:25
TAG_DEFINEBITSLOSSLESS
@ TAG_DEFINEBITSLOSSLESS
Definition:
swf.h:52
AVCodecTag
Definition:
internal.h:42
TAG_DEFINEFONT3
@ TAG_DEFINEFONT3
Definition:
swf.h:85
TAG_STREAMHEAD
@ TAG_STREAMHEAD
Definition:
swf.h:50
TAG_DEFINEBINARYDATA
@ TAG_DEFINEBINARYDATA
Definition:
swf.h:93
TAG_JPEGTABLES
@ TAG_JPEGTABLES
Definition:
swf.h:41
TAG_SETTABINDEX
@ TAG_SETTABINDEX
Definition:
swf.h:79
TAG_DEFINEFONTINFO2
@ TAG_DEFINEFONTINFO2
Definition:
swf.h:76
internal.h
TAG_STREAMHEAD2
@ TAG_STREAMHEAD2
Definition:
swf.h:67
TAG_DEFINESHAPE2
@ TAG_DEFINESHAPE2
Definition:
swf.h:54
TAG_DEFINEBUTTON2
@ TAG_DEFINEBUTTON2
Definition:
swf.h:61
TAG_STREAMBLOCK
@ TAG_STREAMBLOCK
Definition:
swf.h:51
TAG_DOACTION
@ TAG_DOACTION
Definition:
swf.h:45
TAG_PLACEOBJECT
@ TAG_PLACEOBJECT
Definition:
swf.h:37
TAG_DEFINEMORPHSHAPE
@ TAG_DEFINEMORPHSHAPE
Definition:
swf.h:68
TAG_SYMBOLCLASS
@ TAG_SYMBOLCLASS
Definition:
swf.h:86
TAG_DEFINESPRITE
@ TAG_DEFINESPRITE
Definition:
swf.h:65
TAG_SETBACKGROUNDCOLOR
@ TAG_SETBACKGROUNDCOLOR
Definition:
swf.h:42
TAG_DEFINEBUTTONSOUND
@ TAG_DEFINEBUTTONSOUND
Definition:
swf.h:49
TAG_END
@ TAG_END
Definition:
swf.h:33
TAG_DEFINEBUTTON
@ TAG_DEFINEBUTTON
Definition:
swf.h:40
TAG_SHOWFRAME
@ TAG_SHOWFRAME
Definition:
swf.h:34
TAG_DEFINEMORPHSHAPE2
@ TAG_DEFINEMORPHSHAPE2
Definition:
swf.h:91
TAG_DEFINEFONT
@ TAG_DEFINEFONT
Definition:
swf.h:43
TAG_DOABC
@ TAG_DOABC
Definition:
swf.h:89
TAG_DEFINEEDITTEXT
@ TAG_DEFINEEDITTEXT
Definition:
swf.h:64
TAG_DEFINEBUTTONCXFORM
@ TAG_DEFINEBUTTONCXFORM
Definition:
swf.h:55
TAG_DEFINESHAPE3
@ TAG_DEFINESHAPE3
Definition:
swf.h:59
TAG_DEFINEFONT2
@ TAG_DEFINEFONT2
Definition:
swf.h:69
TAG_DEFINETEXT
@ TAG_DEFINETEXT
Definition:
swf.h:44
TAG_CSMTEXTSETTINGS
@ TAG_CSMTEXTSETTINGS
Definition:
swf.h:84
TAG_FREECHARACTER
@ TAG_FREECHARACTER
Definition:
swf.h:36
TAG_DEFINESHAPE4
@ TAG_DEFINESHAPE4
Definition:
swf.h:90
TAG_PROTECT
@ TAG_PROTECT
Definition:
swf.h:56
TAG_DEFINETEXT2
@ TAG_DEFINETEXT2
Definition:
swf.h:60
TAG_DEFINEBITSJPEG4
@ TAG_DEFINEBITSJPEG4
Definition:
swf.h:96
TAG_DEFINEFONTNAME
@ TAG_DEFINEFONTNAME
Definition:
swf.h:94
TAG_SCRIPTLIMITS
@ TAG_SCRIPTLIMITS
Definition:
swf.h:78
TAG_PLACEOBJECT2
@ TAG_PLACEOBJECT2
Definition:
swf.h:57
TAG_FRAMELABEL
@ TAG_FRAMELABEL
Definition:
swf.h:66
TAG_STARTSOUND
@ TAG_STARTSOUND
Definition:
swf.h:48
TAG_ENABLEDEBUGGER
@ TAG_ENABLEDEBUGGER
Definition:
swf.h:72
TAG_DEFINEBITS
@ TAG_DEFINEBITS
Definition:
swf.h:39
TAG_JPEG2
@ TAG_JPEG2
Definition:
swf.h:53
TAG_EXPORTASSETS
@ TAG_EXPORTASSETS
Definition:
swf.h:70
TAG_DEFINESHAPE
@ TAG_DEFINESHAPE
Definition:
swf.h:35
TAG_DOINITACTION
@ TAG_DOINITACTION
Definition:
swf.h:73
TAG_DEFINESCENEANDFRAMELABELDATA
@ TAG_DEFINESCENEANDFRAMELABELDATA
Definition:
swf.h:92
Generated on Sat Dec 21 2024 19:23:02 for FFmpeg by
1.8.17