2 * Copyright (C) 2013 nu774
3 * For conditions of distribution and use, see copyright notice in COPYING
8 #include <fdk-aac/aacenc_lib.h>
11 #define AACENC_PARAMS \
14 unsigned bitrate_mode; \
16 unsigned afterburner; \
17 unsigned lowdelay_sbr; \
18 unsigned sbr_signaling; \
19 unsigned transport_format; \
20 unsigned adts_crc_check; \
21 unsigned header_period;
23 typedef struct aacenc_param_t
{
27 int aacenc_is_sbr_active(const aacenc_param_t
*params
);
29 int aacenc_init(HANDLE_AACENCODER
*encoder
, const aacenc_param_t
*params
,
30 const pcm_sample_description_t
*format
,
31 AACENC_InfoStruct
*info
);
33 int aac_encode_frame(HANDLE_AACENCODER encoder
,
34 const pcm_sample_description_t
*format
,
35 const int16_t *input
, unsigned iframes
,
36 uint8_t **output
, uint32_t *olen
, uint32_t *osize
);