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"
Include dependency graph for libvo-aacenc.c:

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
 

Typedefs

typedef struct AACContext AACContext
 

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

static const int mpeg4audio_sample_rates [16]
 
AVCodec ff_libvo_aacenc_encoder
 

Macro Definition Documentation

#define ENC_DELAY   1600

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

Referenced by aac_encode_frame(), and aac_encode_init().

#define FRAME_SIZE   1024

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

Referenced by aac_encode_frame(), and aac_encode_init().

Typedef Documentation

typedef struct AACContext AACContext

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 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.

static av_cold int aac_encode_init ( AVCodecContext avctx)
static

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

Variable Documentation

AVCodec ff_libvo_aacenc_encoder
Initial value:
= {
.name = "libvo_aacenc",
.priv_data_size = sizeof(AACContext),
.encode2 = aac_encode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC (Advanced Audio Coding)"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
signed 16 bits
Definition: samplefmt.h:52
supported_samplerates
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...
#define CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct AACContext AACContext
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
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
static const int mpeg4audio_sample_rates[16]
Definition: libvo-aacenc.c:182
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:700

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

const int mpeg4audio_sample_rates[16]
static
Initial value:
= {
96000, 88200, 64000, 48000, 44100, 32000,
24000, 22050, 16000, 12000, 11025, 8000, 7350
}

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