FFmpeg
Data Structures | Macros | Functions | Variables
amvenc.c File Reference
#include "avformat.h"
#include "riff.h"
#include "internal.h"
#include "avio_internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  AMVContext
 

Macros

#define AMV_STREAM_COUNT   2
 
#define AMV_STREAM_VIDEO   0
 
#define AMV_STREAM_AUDIO   1
 
#define AMV_VIDEO_STRH_SIZE   56
 
#define AMV_VIDEO_STRF_SIZE   36
 
#define AMV_AUDIO_STRH_SIZE   48
 
#define AMV_AUDIO_STRF_SIZE   20 /* sizeof(WAVEFORMATEX) + 2 */
 

Functions

static int64_t amv_start_tag (AVIOContext *pb, const char *tag)
 
static void amv_end_tag (AVIOContext *pb, int64_t start)
 
static av_cold int amv_init (AVFormatContext *s)
 
static void amv_deinit (AVFormatContext *s)
 
static void amv_write_vlist (AVFormatContext *s, AVCodecParameters *par)
 
static void amv_write_alist (AVFormatContext *s, AVCodecParameters *par)
 
static int amv_write_header (AVFormatContext *s)
 
static int amv_write_packet_internal (AVFormatContext *s, AVPacket *pkt)
 
static int amv_pad (AVFormatContext *s, AVPacket *pkt)
 
static int amv_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int amv_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_amv_muxer
 

Macro Definition Documentation

#define AMV_STREAM_COUNT   2

Definition at line 46 of file amvenc.c.

Referenced by amv_init().

#define AMV_STREAM_VIDEO   0
#define AMV_STREAM_AUDIO   1
#define AMV_VIDEO_STRH_SIZE   56

Definition at line 49 of file amvenc.c.

Referenced by amv_write_vlist().

#define AMV_VIDEO_STRF_SIZE   36

Definition at line 50 of file amvenc.c.

Referenced by amv_write_vlist().

#define AMV_AUDIO_STRH_SIZE   48

Definition at line 51 of file amvenc.c.

Referenced by amv_write_alist().

#define AMV_AUDIO_STRF_SIZE   20 /* sizeof(WAVEFORMATEX) + 2 */

Definition at line 52 of file amvenc.c.

Referenced by amv_write_alist().

Function Documentation

static int64_t amv_start_tag ( AVIOContext pb,
const char *  tag 
)
static

Definition at line 76 of file amvenc.c.

Referenced by amv_write_alist(), amv_write_header(), and amv_write_vlist().

static void amv_end_tag ( AVIOContext pb,
int64_t  start 
)
static

Definition at line 83 of file amvenc.c.

Referenced by amv_write_alist(), amv_write_header(), amv_write_trailer(), and amv_write_vlist().

static av_cold int amv_init ( AVFormatContext s)
static

Definition at line 93 of file amvenc.c.

static void amv_deinit ( AVFormatContext s)
static

Definition at line 199 of file amvenc.c.

static void amv_write_vlist ( AVFormatContext s,
AVCodecParameters par 
)
static

Definition at line 207 of file amvenc.c.

Referenced by amv_write_header().

static void amv_write_alist ( AVFormatContext s,
AVCodecParameters par 
)
static

Definition at line 226 of file amvenc.c.

Referenced by amv_write_header().

static int amv_write_header ( AVFormatContext s)
static

Definition at line 256 of file amvenc.c.

static int amv_write_packet_internal ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 293 of file amvenc.c.

Referenced by amv_pad(), amv_write_packet(), and amv_write_trailer().

static int amv_pad ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 318 of file amvenc.c.

Referenced by amv_write_packet().

static int amv_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 337 of file amvenc.c.

static int amv_write_trailer ( AVFormatContext s)
static

Definition at line 359 of file amvenc.c.

Variable Documentation

AVOutputFormat ff_amv_muxer
Initial value:
= {
.name = "amv",
.long_name = NULL_IF_CONFIG_SMALL("AMV"),
.mime_type = "video/amv",
.extensions = "amv",
.priv_data_size = sizeof(AMVContext),
.audio_codec = AV_CODEC_ID_ADPCM_IMA_AMV,
.video_codec = AV_CODEC_ID_AMV,
.deinit = amv_deinit,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:726
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
static void amv_deinit(AVFormatContext *s)
Definition: amvenc.c:199
static int amv_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: amvenc.c:337
static av_cold int amv_init(AVFormatContext *s)
Definition: amvenc.c:93
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
static int amv_write_header(AVFormatContext *s)
Definition: amvenc.c:256
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
static int amv_write_trailer(AVFormatContext *s)
Definition: amvenc.c:359
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:346

Definition at line 400 of file amvenc.c.