1
0
mirror of https://github.com/nu774/fdkaac.git synced 2025-06-05 23:29:14 +02:00

initial commit

This commit is contained in:
nu774
2013-01-05 01:10:05 +09:00
commit 48e2f01c56
28 changed files with 4360 additions and 0 deletions

38
src/aacenc.h Normal file
View File

@@ -0,0 +1,38 @@
/*
* 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