41 aacplusEncConfiguration *aacplus_cfg;
62 aacplus_cfg = aacplusEncGetCurrentConfiguration(s->
aacplus_handle);
64 aacplus_cfg->bitRate = avctx->
bit_rate;
65 aacplus_cfg->bandWidth = avctx->
cutoff;
79 unsigned char *
buffer = NULL;
80 unsigned long decoder_specific_info_size;
83 &decoder_specific_info_size) == 1) {
126 .
name =
"libaacplus",
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size)
Check AVPacket size and/or allocate data.
This structure describes decoded (raw) audio or video data.
static int aacPlus_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static av_cold int init(AVCodecContext *avctx)
static av_cold int aacPlus_encode_close(AVCodecContext *avctx)
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
#define AV_CH_LAYOUT_STEREO
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
enum AVSampleFormat sample_fmt
audio sample format
#define CODEC_FLAG_GLOBAL_HEADER
Place global headers in extradata instead of every keyframe.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
const char * name
Name of the codec implementation.
unsigned long samples_input
unsigned long max_output_bytes
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_cold int aacPlus_encode_init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Libavcodec external API header.
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
int bit_rate
the average bitrate
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FF_PROFILE_UNKNOWN
int frame_size
Number of samples per channel in an audio frame.
AVSampleFormat
Audio Sample Formats.
int sample_rate
samples per second
main external API structure.
static void close(AVCodecParserContext *s)
aacplusEncHandle aacplus_handle
common internal api header.
static const AVProfile profiles[]
#define FF_PROFILE_AAC_LOW
int cutoff
Audio cutoff bandwidth (0 means "automatic")
int channels
number of audio channels
static enum AVSampleFormat sample_fmts[]
#define AV_CH_LAYOUT_MONO
AVCodec ff_libaacplus_encoder
This structure stores compressed data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...