FFmpeg
|
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 |
Definition at line 45 of file libvo-aacenc.c.
Referenced by aac_encode_init().
|
static |
Definition at line 123 of file libvo-aacenc.c.
|
static |
Definition at line 57 of file libvo-aacenc.c.
Variable Documentation
AVCodec ff_libvo_aacenc_encoder |
Initial value:
= {
.name = "libvo_aacenc",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_AAC,
.priv_data_size = sizeof(AACContext),
.init = aac_encode_init,
.encode2 = aac_encode_frame,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC (Advanced Audio Coding)"),
}
Definition: samplefmt.h:50
Definition: libavcodec/avcodec.h:383
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: libavcodec/avcodec.h:770
#define CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: libavcodec/avcodec.h:775
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
struct AACContext AACContext
static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libvo-aacenc.c:123
Definition at line 187 of file libvo-aacenc.c.
|
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.
Generated on Fri Dec 20 2024 06:56:13 for FFmpeg by 1.8.11