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

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

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

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.

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,
}

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