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",
This structure describes decoded (raw) audio or video data.
static int aacPlus_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
int64_t bit_rate
the average bitrate
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
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. ...
int flags
AV_CODEC_FLAG_*.
const char * name
Name of the codec implementation.
#define FF_PROFILE_AAC_LOW
#define FF_PROFILE_UNKNOWN
int frame_size
Number of samples per channel in an audio frame.
Libavcodec external API header.
AVSampleFormat
Audio sample formats.
int sample_rate
samples per second
main external API structure.
aacplusEncHandle aacplus_handle
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define AV_CODEC_FLAG_GLOBAL_HEADER
Place global headers in extradata instead of every keyframe.
common internal api header.
static const AVProfile profiles[]
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
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...