FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rmenc.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "rm.h"
#include "libavutil/dict.h"

Go to the source code of this file.

Data Structures

struct  StreamInfo
 
struct  RMMuxContext
 

Macros

#define BUFFER_DURATION   0
 
#define MAX_HEADER_SIZE   (7 + 4 + 12)
 
#define MAX_PACKET_SIZE   (UINT16_MAX - MAX_HEADER_SIZE)
 

Functions

static void put_str (AVIOContext *s, const char *tag)
 
static void put_str8 (AVIOContext *s, const char *tag)
 
static int rv10_write_header (AVFormatContext *ctx, int data_size, int index_pos)
 
static void write_packet_header (AVFormatContext *ctx, StreamInfo *stream, int length, int key_frame)
 
static int rm_write_header (AVFormatContext *s)
 
static int rm_write_audio (AVFormatContext *s, const uint8_t *buf, int size, int flags)
 
static int rm_write_video (AVFormatContext *s, const uint8_t *buf, int size, int flags)
 
static int rm_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int rm_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_rm_muxer
 

Macro Definition Documentation

#define BUFFER_DURATION   0

Definition at line 46 of file rmenc.c.

#define MAX_HEADER_SIZE   (7 + 4 + 12)

Definition at line 48 of file rmenc.c.

#define MAX_PACKET_SIZE   (UINT16_MAX - MAX_HEADER_SIZE)

Definition at line 50 of file rmenc.c.

Referenced by rm_write_video().

Function Documentation

static void put_str ( AVIOContext s,
const char *  tag 
)
static

Definition at line 53 of file rmenc.c.

static void put_str8 ( AVIOContext s,
const char *  tag 
)
static

Definition at line 61 of file rmenc.c.

static int rv10_write_header ( AVFormatContext ctx,
int  data_size,
int  index_pos 
)
static

Definition at line 69 of file rmenc.c.

Referenced by rm_write_header(), and rm_write_trailer().

static void write_packet_header ( AVFormatContext ctx,
StreamInfo stream,
int  length,
int  key_frame 
)
static

Definition at line 290 of file rmenc.c.

Referenced by rm_write_audio(), and rm_write_video().

static int rm_write_header ( AVFormatContext s)
static

Definition at line 310 of file rmenc.c.

static int rm_write_audio ( AVFormatContext s,
const uint8_t buf,
int  size,
int  flags 
)
static

Definition at line 364 of file rmenc.c.

Referenced by rm_write_packet().

static int rm_write_video ( AVFormatContext s,
const uint8_t buf,
int  size,
int  flags 
)
static

Definition at line 386 of file rmenc.c.

Referenced by rm_write_packet().

static int rm_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 434 of file rmenc.c.

static int rm_write_trailer ( AVFormatContext s)
static

Definition at line 443 of file rmenc.c.

Variable Documentation

AVOutputFormat ff_rm_muxer
Initial value:
= {
.name = "rm",
.long_name = NULL_IF_CONFIG_SMALL("RealMedia"),
.mime_type = "application/vnd.rn-realmedia",
.extensions = "rm,ra",
.priv_data_size = sizeof(RMMuxContext),
.audio_codec = AV_CODEC_ID_AC3,
.video_codec = AV_CODEC_ID_RV10,
.codec_tag = (const AVCodecTag* const []){ ff_rm_codec_tags, 0 },
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static int rm_write_header(AVFormatContext *s)
Definition: rmenc.c:310
static int rm_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rmenc.c:434
const AVCodecTag ff_rm_codec_tags[]
Definition: rm.c:31
static int rm_write_trailer(AVFormatContext *s)
Definition: rmenc.c:443
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:498
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 474 of file rmenc.c.