..首页..站长介绍..手绘作品..生活日记..过客留言..友情链拉..我的照片..
Category
 生活点滴
Infomation
共有日志:166
评论:15
注册观员:90
Search
首页-->工作学习-->关于多媒体文件处理

swf.c的文档
--------------------------------------------------------------------------------------------------

#include "avformat.h"
#include "bitstream.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  SWFContext

Defines

#define DUMMY_FILE_SIZE   (100 * 1024 * 1024)
#define DUMMY_DURATION   600
#define TAG_END   0
#define TAG_SHOWFRAME   1
#define TAG_DEFINESHAPE   2
#define TAG_FREECHARACTER   3
#define TAG_PLACEOBJECT   4
#define TAG_REMOVEOBJECT   5
#define TAG_STREAMHEAD   18
#define TAG_STREAMBLOCK   19
#define TAG_JPEG2   21
#define TAG_PLACEOBJECT2   26
#define TAG_STREAMHEAD2   45
#define TAG_VIDEOSTREAM   60
#define TAG_VIDEOFRAME   61
#define TAG_LONG   0x100
#define FLAG_MOVETO   0x01
#define FLAG_SETFILL0   0x02
#define FLAG_SETFILL1   0x04
#define SWF_VIDEO_CODEC_FLV1   0x02
#define AUDIO_FIFO_SIZE   65536
#define BITMAP_ID   0
#define VIDEO_ID   0
#define SHAPE_ID   1

Functions

int swf_mp3_info (void *data, int *byteSize, int *samplesPerFrame, int *sampleRate, int *isMono)
int get_swf_tag (ByteIOContext *pb, int *len_ptr)
int swf_probe (AVProbeData *p)
int swf_read_header (AVFormatContext *s, AVFormatParameters *ap)
int swf_read_packet (AVFormatContext *s, AVPacket *pkt)
int swf_read_close (AVFormatContext *s)
int swf_init (void)

Variables

const int sSampleRates [3][4]
const int sBitRates [2][3][15]
const int sSamplesPerFrame [3][3]
const int sBitsPerSlot [3]
AVInputFormat swf_iformat


Define Documentation

#define AUDIO_FIFO_SIZE   65536
 

Definition at line 50 of file swf.c.

#define BITMAP_ID   0
 

Definition at line 53 of file swf.c.

#define DUMMY_DURATION   600
 

Definition at line 25 of file swf.c.

#define DUMMY_FILE_SIZE   (100 * 1024 * 1024)
 

Definition at line 24 of file swf.c.

#define FLAG_MOVETO   0x01
 

Definition at line 44 of file swf.c.

#define FLAG_SETFILL0   0x02
 

Definition at line 45 of file swf.c.

#define FLAG_SETFILL1   0x04
 

Definition at line 46 of file swf.c.

#define SHAPE_ID   1
 

Definition at line 55 of file swf.c.

#define SWF_VIDEO_CODEC_FLV1   0x02
 

Definition at line 48 of file swf.c.

#define TAG_DEFINESHAPE   2
 

Definition at line 29 of file swf.c.

#define TAG_END   0
 

Definition at line 27 of file swf.c.

#define TAG_FREECHARACTER   3
 

Definition at line 30 of file swf.c.

#define TAG_JPEG2   21
 

Definition at line 35 of file swf.c.

#define TAG_LONG   0x100
 

Definition at line 41 of file swf.c.

#define TAG_PLACEOBJECT   4
 

Definition at line 31 of file swf.c.

#define TAG_PLACEOBJECT2   26
 

Definition at line 36 of file swf.c.

#define TAG_REMOVEOBJECT   5
 

Definition at line 32 of file swf.c.

#define TAG_SHOWFRAME   1
 

Definition at line 28 of file swf.c.

#define TAG_STREAMBLOCK   19
 

Definition at line 34 of file swf.c.

#define TAG_STREAMHEAD   18
 

Definition at line 33 of file swf.c.

Referenced by swf_read_header().

#define TAG_STREAMHEAD2   45
 

Definition at line 37 of file swf.c.

#define TAG_VIDEOFRAME   61
 

Definition at line 39 of file swf.c.

#define TAG_VIDEOSTREAM   60
 

Definition at line 38 of file swf.c.

Referenced by swf_read_header().

#define VIDEO_ID   0
 

Definition at line 54 of file swf.c.


Function Documentation

int get_swf_tag ByteIOContextpb,
int * len_ptr
[static]
 

Definition at line 703 of file swf.c.

Referenced by swf_read_header(), and swf_read_packet().

int swf_init void  ) 
 

Definition at line 927 of file swf.c.

int swf_mp3_info void * data,
int * byteSize,
int * samplesPerFrame,
int * sampleRate,
int * isMono
[static]
 

Definition at line 113 of file swf.c.

int swf_probe AVProbeDatap  ) [static]
 

Definition at line 722 of file swf.c.

int swf_read_close AVFormatContexts  ) [static]
 

Definition at line 897 of file swf.c.

int swf_read_header AVFormatContexts,
AVFormatParametersap
[static]
 

Definition at line 734 of file swf.c.

int swf_read_packet AVFormatContexts,
AVPacketpkt
[static]
 

Definition at line 852 of file swf.c.


Variable Documentation

const int sBitRates[2][3][15] [static]
 

Initial value:

 {    {   {  0, 32, 64, 96,128,160,192,224,256,288,320,352,384,416,448},        {  0, 32, 48, 56, 64, 80, 96,112,128,160,192,224,256,320,384},        {  0, 32, 40, 48, 56, 64, 80, 96,112,128,160,192,224,256,320}    },    {   {  0, 32, 48, 56, 64, 80, 96,112,128,144,160,176,192,224,256},        {  0,  8, 16, 24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160},        {  0,  8, 16, 24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160}    },}

Definition at line 89 of file swf.c.

Referenced by swf_mp3_info().

const int sBitsPerSlot[3] [static]
 

Initial value:

 {    32,    8,    8}

Definition at line 107 of file swf.c.

Referenced by swf_mp3_info().

const int sSampleRates[3][4] [static]
 

Initial value:

 {    {44100, 48000, 32000, 0},    {22050, 24000, 16000, 0},    {11025, 12000,  8000, 0},}

Definition at line 83 of file swf.c.

Referenced by swf_mp3_info().

const int sSamplesPerFrame[3][3] [static]
 

Initial value:

{    {  384,     1152,    1152 },    {  384,     1152,     576 },    {  384,     1152,     576 }}

Definition at line 100 of file swf.c.

Referenced by swf_mp3_info().

AVInputFormat swf_iformat [static]
 

Initial value:

 {    "swf",    "Flash format",    sizeof(SWFContext),    swf_probe,    swf_read_header,    swf_read_packet,    swf_read_close,}

Definition at line 902 of file swf.c.

Referenced by swf_init().