avienc.c File Reference
#include "avformat.h"
#include "internal.h"
#include "avi.h"
#include "avio_internal.h"
#include "riff.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/avassert.h"
#include "libavutil/timestamp.h"
Include dependency graph for avienc.c:

Go to the source code of this file.

Data Structures

struct  AVIIentry
 
struct  AVIIndex
 
struct  AVIContext
 
struct  AVIStream
 

Macros

#define AVI_INDEX_CLUSTER_SIZE   16384
 

Typedefs

typedef struct AVIIentry AVIIentry
 
typedef struct AVIIndex AVIIndex
 

Functions

static AVIIentryavi_get_ientry (AVIIndex *idx, int ent_id)
 
static int64_t avi_start_new_riff (AVFormatContext *s, AVIOContext *pb, const char *riff_tag, const char *list_tag)
 
static char * avi_stream2fourcc (char *tag, int index, enum AVMediaType type)
 
static int avi_write_counters (AVFormatContext *s, int riff_id)
 
static int avi_write_header (AVFormatContext *s)
 
static int avi_write_ix (AVFormatContext *s)
 
static int avi_write_idx1 (AVFormatContext *s)
 
static int avi_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int avi_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_avi_muxer
 

Macro Definition Documentation

#define AVI_INDEX_CLUSTER_SIZE   16384

Definition at line 43 of file avienc.c.

Referenced by avi_get_ientry(), avi_write_packet(), and avi_write_trailer().

Typedef Documentation

typedef struct AVIIentry AVIIentry
typedef struct AVIIndex AVIIndex

Function Documentation

static AVIIentry* avi_get_ientry ( AVIIndex idx,
int  ent_id 
)
inlinestatic

Definition at line 67 of file avienc.c.

Referenced by avi_write_idx1(), and avi_write_ix().

static int64_t avi_start_new_riff ( AVFormatContext s,
AVIOContext pb,
const char *  riff_tag,
const char *  list_tag 
)
static

Definition at line 74 of file avienc.c.

Referenced by avi_write_header(), and avi_write_packet().

static char* avi_stream2fourcc ( char *  tag,
int  index,
enum AVMediaType  type 
)
static

Definition at line 94 of file avienc.c.

Referenced by avi_write_header(), avi_write_idx1(), avi_write_ix(), and avi_write_packet().

static int avi_write_counters ( AVFormatContext s,
int  riff_id 
)
static

Definition at line 113 of file avienc.c.

Referenced by avi_write_idx1(), and avi_write_trailer().

static int avi_write_header ( AVFormatContext s)
static

Definition at line 147 of file avienc.c.

static int avi_write_idx1 ( AVFormatContext s)
static

Definition at line 463 of file avienc.c.

Referenced by avi_write_packet(), and avi_write_trailer().

static int avi_write_ix ( AVFormatContext s)
static

Definition at line 402 of file avienc.c.

Referenced by avi_write_packet(), and avi_write_trailer().

static int avi_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 514 of file avienc.c.

static int avi_write_trailer ( AVFormatContext s)
static

Definition at line 593 of file avienc.c.

Variable Documentation

AVOutputFormat ff_avi_muxer
Initial value:
= {
.name = "avi",
.long_name = NULL_IF_CONFIG_SMALL("AVI (Audio Video Interleaved)"),
.mime_type = "video/x-msvideo",
.extensions = "avi",
.priv_data_size = sizeof(AVIContext),
.video_codec = AV_CODEC_ID_MPEG4,
.codec_tag = (const AVCodecTag* const []){
},
}
#define CONFIG_LIBMP3LAME
Definition: config.h:321
static int write_packet(AVFormatContext *s, AVPacket *pkt)
static int write_trailer(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
preferred ID for decoding MPEG audio layer 1, 2 or 3
const AVCodecTag ff_codec_wav_tags[]
Definition: riff.c:334
const AVCodecTag ff_codec_bmp_tags[]
Definition: riff.c:35
static int avi_write_trailer(AVFormatContext *s)
Definition: avienc.c:593
static int avi_write_header(AVFormatContext *s)
Definition: avienc.c:147
static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: avienc.c:514
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:355
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:470

Definition at line 647 of file avienc.c.