2 * Flash Compatible Streaming Format common header.
3 * Copyright (c) 2000 Fabrice Bellard
4 * Copyright (c) 2003 Tinic Uro
6 * This file is part of FFmpeg.
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.
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.
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
23 #ifndef AVFORMAT_SWF_H
24 #define AVFORMAT_SWF_H
32 #include "libavutil/fifo.h"
35 #include "riff.h" /* for CodecTag */
37 /* should have a generic way to indicate probable size */
38 #define DUMMY_FILE_SIZE (100 * 1024 * 1024)
39 #define DUMMY_DURATION 600 /* in seconds */
42 #define TAG_SHOWFRAME 1
43 #define TAG_DEFINESHAPE 2
44 #define TAG_FREECHARACTER 3
45 #define TAG_PLACEOBJECT 4
46 #define TAG_REMOVEOBJECT 5
47 #define TAG_STREAMHEAD 18
48 #define TAG_STREAMBLOCK 19
50 #define TAG_PLACEOBJECT2 26
51 #define TAG_STREAMHEAD2 45
52 #define TAG_VIDEOSTREAM 60
53 #define TAG_VIDEOFRAME 61
54 #define TAG_FILEATTRIBUTES 69
56 #define TAG_LONG 0x100
58 /* flags for shape definition */
59 #define FLAG_MOVETO 0x01
60 #define FLAG_SETFILL0 0x02
61 #define FLAG_SETFILL1 0x04
63 #define AUDIO_FIFO_SIZE 65536
65 /* character id used */
77 int samples_per_frame;
80 int video_frame_number;
83 AVFifoBuffer *audio_fifo;
84 AVCodecContext *audio_enc, *video_enc;
87 #define ZBUF_SIZE 4096
94 extern const AVCodecTag ff_swf_codec_tags[];
96 #endif /* AVFORMAT_SWF_H */