All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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...


#define FRAME_SIZE   1024
#define ENC_DELAY   1600


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)


static const int mpeg4audio_sample_rates [16]
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)

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

Referenced by aac_encode_init().

static av_cold int aac_encode_init ( AVCodecContext avctx)

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 

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

Variable Documentation

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

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

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,
.close = aac_encode_close,
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:981
static av_cold int aac_encode_init(AVCodecContext *avctx)
Definition: libvo-aacenc.c:57
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
Codec can be fed a final frame with a smaller size.
Definition: avcodec.h:986
Audio sample formats.
Definition: samplefmt.h:58
main AAC context
Definition: aac.h:293
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
signed 16 bits
Definition: samplefmt.h:61
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701

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