fdkaac/src/aacenc.h

39 lines
1.0 KiB
C

/*
* Copyright (C) 2013 nu774
* For conditions of distribution and use, see copyright notice in COPYING
*/
#ifndef AACENC_H
#define AACENC_H
#include <fdk-aac/aacenc_lib.h>
#include "lpcm.h"
#define AACENC_PARAMS \
unsigned profile; \
unsigned bitrate; \
unsigned bitrate_mode; \
unsigned bandwidth; \
unsigned afterburner; \
unsigned lowdelay_sbr; \
unsigned sbr_signaling; \
unsigned transport_format; \
unsigned adts_crc_check; \
unsigned header_period;
typedef struct aacenc_param_t {
AACENC_PARAMS
} aacenc_param_t;
int aacenc_is_sbr_active(const aacenc_param_t *params);
int aacenc_init(HANDLE_AACENCODER *encoder, const aacenc_param_t *params,
const pcm_sample_description_t *format,
AACENC_InfoStruct *info);
int aac_encode_frame(HANDLE_AACENCODER encoder,
const pcm_sample_description_t *format,
const int16_t *input, unsigned iframes,
uint8_t **output, uint32_t *olen, uint32_t *osize);
#endif