41 aacplusEncConfiguration *aacplus_cfg;
62 aacplus_cfg = aacplusEncGetCurrentConfiguration(s->
aacplus_handle);
64 aacplus_cfg->bitRate = avctx->
bit_rate;
65 aacplus_cfg->bandWidth = avctx->
cutoff;
80 unsigned long decoder_specific_info_size;
83 &decoder_specific_info_size) == 1) {
130 .
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)
#define AV_CH_LAYOUT_STEREO
enum AVSampleFormat sample_fmt
audio sample format
#define CODEC_FLAG_GLOBAL_HEADER
Place global headers in extradata instead of every keyframe.
#define FF_PROFILE_UNKNOWN
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
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. ...
const char * name
Name of the codec implementation.
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
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.
#define FF_PROFILE_AAC_LOW
aacplusEncHandle aacplus_handle
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
static const AVProfile profiles[]
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.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...