FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ffmenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/avassert.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "ffm.h"

Go to the source code of this file.

Macros

#define SKIP_DEFAULTS   AV_OPT_SERIALIZE_SKIP_DEFAULTS
 
#define OPT_FLAGS_EXACT   AV_OPT_SERIALIZE_OPT_FLAGS_EXACT
 
#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static void flush_packet (AVFormatContext *s)
 
static void ffm_write_data (AVFormatContext *s, const uint8_t *buf, int size, int64_t dts, int header)
 
static void write_header_chunk (AVIOContext *pb, AVIOContext *dpb, unsigned id)
 
static int ffm_write_header_codec_private_ctx (AVFormatContext *s, AVCodecContext *ctx, int type)
 
static int ffm_write_header_codec_ctx (AVIOContext *pb, AVCodecContext *ctx, unsigned tag, int type)
 
static int ffm_write_recommended_config (AVIOContext *pb, AVCodecContext *ctx, unsigned tag, const char *configuration)
 
static int ffm_write_header (AVFormatContext *s)
 
static int ffm_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ffm_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_ffm_muxer
 

Macro Definition Documentation

#define SKIP_DEFAULTS   AV_OPT_SERIALIZE_SKIP_DEFAULTS
#define OPT_FLAGS_EXACT   AV_OPT_SERIALIZE_OPT_FLAGS_EXACT
#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Function Documentation

static void flush_packet ( AVFormatContext s)
static

Definition at line 32 of file ffmenc.c.

Referenced by ffm_write_data(), and ffm_write_trailer().

static void ffm_write_data ( AVFormatContext s,
const uint8_t buf,
int  size,
int64_t  dts,
int  header 
)
static

Definition at line 61 of file ffmenc.c.

Referenced by ffm_write_packet().

static void write_header_chunk ( AVIOContext pb,
AVIOContext dpb,
unsigned  id 
)
static
static int ffm_write_header_codec_private_ctx ( AVFormatContext s,
AVCodecContext ctx,
int  type 
)
static

Definition at line 98 of file ffmenc.c.

Referenced by ffm_write_header().

static int ffm_write_header_codec_ctx ( AVIOContext pb,
AVCodecContext ctx,
unsigned  tag,
int  type 
)
static

Definition at line 127 of file ffmenc.c.

Referenced by ffm_write_header().

static int ffm_write_recommended_config ( AVIOContext pb,
AVCodecContext ctx,
unsigned  tag,
const char *  configuration 
)
static

Definition at line 167 of file ffmenc.c.

Referenced by ffm_write_header().

static int ffm_write_header ( AVFormatContext s)
static

Definition at line 221 of file ffmenc.c.

static int ffm_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 321 of file ffmenc.c.

static int ffm_write_trailer ( AVFormatContext s)
static

Definition at line 348 of file ffmenc.c.

Variable Documentation

AVOutputFormat ff_ffm_muxer
Initial value:
= {
.name = "ffm",
.long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed)"),
.extensions = "ffm",
.priv_data_size = sizeof(FFMContext),
.audio_codec = AV_CODEC_ID_MP2,
.video_codec = AV_CODEC_ID_MPEG1VIDEO,
}
static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ffmenc.c:321
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int ffm_write_trailer(AVFormatContext *s)
Definition: ffmenc.c:348
static int ffm_write_header(AVFormatContext *s)
Definition: ffmenc.c:221
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
Definition: ffm.h:44
static int flags
Definition: cpu.c:47
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:344
#define AVFMT_TS_NEGATIVE
Format allows muxing negative timestamps.
Definition: avformat.h:501
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 359 of file ffmenc.c.