FFmpeg
Data Structures | Macros | Functions | Variables
ac4enc.c File Reference
#include "libavcodec/codec_id.h"
#include "libavcodec/packet.h"
#include "libavutil/crc.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  AC4Context
 

Macros

#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 
#define OFFSET(obj)   offsetof(AC4Context, obj)
 

Functions

static int ac4_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption ac4_options []
 
static const AVClass ac4_muxer_class
 
const FFOutputFormat ff_ac4_muxer
 

Macro Definition Documentation

◆ ENC

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 63 of file ac4enc.c.

◆ OFFSET

#define OFFSET (   obj)    offsetof(AC4Context, obj)

Definition at line 64 of file ac4enc.c.

Function Documentation

◆ ac4_write_packet()

static int ac4_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 33 of file ac4enc.c.

Variable Documentation

◆ ac4_options

const AVOption ac4_options[]
static
Initial value:
= {
{ "write_crc", "enable checksum", OFFSET(write_crc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, ENC},
{ NULL },
}

Definition at line 65 of file ac4enc.c.

◆ ac4_muxer_class

const AVClass ac4_muxer_class
static
Initial value:
= {
.class_name = "AC4 muxer",
.item_name = av_default_item_name,
.option = ac4_options,
}

Definition at line 70 of file ac4enc.c.

◆ ff_ac4_muxer

const FFOutputFormat ff_ac4_muxer
Initial value:
= {
.p.name = "ac4",
.p.long_name = NULL_IF_CONFIG_SMALL("raw AC-4"),
.p.mime_type = "audio/ac4",
.p.extensions = "ac4",
.priv_data_size = sizeof(AC4Context),
.p.audio_codec = AV_CODEC_ID_AC4,
.p.video_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.write_packet = ac4_write_packet,
.p.priv_class = &ac4_muxer_class,
.p.flags = AVFMT_NOTIMESTAMPS,
}

Definition at line 77 of file ac4enc.c.

ac4_write_packet
static int ac4_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ac4enc.c:33
AC4Context
Definition: ac4enc.c:28
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition: mux.h:59
OFFSET
#define OFFSET(obj)
Definition: ac4enc.c:64
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
ENC
#define ENC
Definition: ac4enc.c:63
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
ac4_options
static const AVOption ac4_options[]
Definition: ac4enc.c:65
ac4_muxer_class
static const AVClass ac4_muxer_class
Definition: ac4enc.c:70
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:251
AV_CODEC_ID_AC4
@ AV_CODEC_ID_AC4
Definition: codec_id.h:543