libavcodec/ac3enc_combined.c File Reference

#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avcodec.h"
#include "ac3.h"
#include "ac3enc_opts_template.c"

Go to the source code of this file.

Data Structures

struct  CombineContext

Defines

#define OFFSET(param)   offsetof(CombineContext, options.param)
#define AC3ENC_PARAM   (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
#define AC3ENC_TYPE_AC3_FIXED   0
#define AC3ENC_TYPE_AC3   1
#define AC3ENC_TYPE_EAC3   2
#define AC3ENC_TYPE   12354

Functions

static av_cold AVCodecget_codec (enum AVSampleFormat s)
static av_cold int encode_init (AVCodecContext *avctx)
static int encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static av_cold int encode_close (AVCodecContext *avctx)

Variables

static AVClass ac3enc_class
AVCodec ff_ac3_encoder


Define Documentation

#define AC3ENC_PARAM   (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)

Definition at line 15 of file ac3enc_combined.c.

#define AC3ENC_TYPE   12354

Definition at line 21 of file ac3enc_combined.c.

#define AC3ENC_TYPE_AC3   1

Definition at line 18 of file ac3enc_combined.c.

#define AC3ENC_TYPE_AC3_FIXED   0

Definition at line 17 of file ac3enc_combined.c.

#define AC3ENC_TYPE_EAC3   2

Definition at line 19 of file ac3enc_combined.c.

#define OFFSET ( param   )     offsetof(CombineContext, options.param)

Definition at line 14 of file ac3enc_combined.c.


Function Documentation

static av_cold int encode_close ( AVCodecContext avctx  )  [static]

Definition at line 69 of file ac3enc_combined.c.

static int encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void *  data 
) [static]

static av_cold int encode_init ( AVCodecContext avctx  )  [static]

Definition at line 38 of file ac3enc_combined.c.

static av_cold AVCodec* get_codec ( enum AVSampleFormat  s  )  [static]

Definition at line 27 of file ac3enc_combined.c.

Referenced by encode_init().


Variable Documentation

Initial value:

 { "AC-3 Encoder", av_default_item_name,
                                eac3_options, LIBAVUTIL_VERSION_INT }

Definition at line 24 of file ac3enc_combined.c.

Initial value:

 {
    "ac3",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_AC3,
    sizeof(CombineContext),
    encode_init,
    encode_frame,
    encode_close,
    NULL,
    .sample_fmts = (const enum AVSampleFormat[]){






        AV_SAMPLE_FMT_NONE},
    .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
    .priv_class = &ac3enc_class,
    .channel_layouts = ff_ac3_channel_layouts,
}

Definition at line 80 of file ac3enc_combined.c.


Generated on Fri Oct 26 02:39:43 2012 for FFmpeg by  doxygen 1.5.8