21 #ifndef FREERDP_DSP_FDK_IMPL_H_
22 #define FREERDP_DSP_FDK_IMPL_H_
26 typedef void (*fdk_log_fkt_t)(
unsigned log_level,
const char* fmt, ...);
28 int fdk_aac_dsp_impl_init(
void** handle,
int encoder, fdk_log_fkt_t log);
29 void fdk_aac_dsp_impl_uninit(
void** handle,
int encoder, fdk_log_fkt_t log);
31 ssize_t fdk_aac_dsp_impl_stream_info(
void* handle,
int encoder, fdk_log_fkt_t log);
33 int fdk_aac_dsp_impl_config(
void* handle,
size_t* pbuffersize,
int encoder,
unsigned samplerate,
34 unsigned channels,
unsigned bytes_per_second,
35 unsigned frames_per_packet, fdk_log_fkt_t log);
37 ssize_t fdk_aac_dsp_impl_decode_fill(
void* handle,
const void* data,
size_t size,
40 ssize_t fdk_aac_dsp_impl_encode(
void* handle,
const void* data,
size_t size,
void* dst,
41 size_t dstSize, fdk_log_fkt_t log);
43 ssize_t fdk_aac_dsp_impl_decode_read(
void* handle,
void* dst,
size_t dstSize, fdk_log_fkt_t log);