Libav
Data Structures | Macros | Functions | Variables
libvo-aacenc.c File Reference
#include <vo-aacenc/voAAC.h>
#include <vo-aacenc/cmnMemory.h>
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "internal.h"
#include "mpeg4audio.h"

Go to the source code of this file.

Data Structures

struct  AACContext
 main AAC context More...
 

Macros

#define FRAME_SIZE   1024
 
#define ENC_DELAY   1600
 

Functions

static int aac_encode_close (AVCodecContext *avctx)
 
static av_cold int aac_encode_init (AVCodecContext *avctx)
 
static int aac_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

AVCodec ff_libvo_aacenc_encoder
 

Macro Definition Documentation

#define FRAME_SIZE   1024

Definition at line 30 of file libvo-aacenc.c.

Referenced by aac_encode_frame(), and aac_encode_init().

#define ENC_DELAY   1600

Definition at line 31 of file libvo-aacenc.c.

Referenced by aac_encode_frame(), and aac_encode_init().

Function Documentation

static int aac_encode_close ( AVCodecContext avctx)
static

Definition at line 45 of file libvo-aacenc.c.

Referenced by aac_encode_init().

static av_cold int aac_encode_init ( AVCodecContext avctx)
static

Definition at line 57 of file libvo-aacenc.c.

static int aac_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 123 of file libvo-aacenc.c.

Variable Documentation

AVCodec ff_libvo_aacenc_encoder
Initial value:
= {
.name = "libvo_aacenc",
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC (Advanced Audio Coding)"),
.priv_data_size = sizeof(AACContext),
.encode2 = aac_encode_frame,
}
static av_cold int aac_encode_init(AVCodecContext *avctx)
Definition: libvo-aacenc.c:57
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:713
sample_fmts
Definition: avconv_filter.c:68
#define CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: avcodec.h:718
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:150
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:61
AV_SAMPLE_FMT_NONE
Definition: avconv_filter.c:68
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
main AAC context
Definition: aac.h:262
static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libvo-aacenc.c:123
static int aac_encode_close(AVCodecContext *avctx)
Definition: libvo-aacenc.c:45
signed 16 bits
Definition: samplefmt.h:64
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 182 of file libvo-aacenc.c.