FFmpeg
Loading...
Searching...
No Matches
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)
 

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)
Value:
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 },
}
#define ENC
Definition caca.c:198
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition opt.h:326

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,
}
static const AVOption ac4_options[]
Definition ac4enc.c:65
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

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,
}
static int ac4_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition ac4enc.c:33
static const AVClass ac4_muxer_class
Definition ac4enc.c:70
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_AC4
Definition codec_id.h:556
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#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
#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

Definition at line 77 of file ac4enc.c.