FreeRDP
dsp_fdk_impl.h
1 
21 #ifndef FREERDP_DSP_FDK_IMPL_H_
22 #define FREERDP_DSP_FDK_IMPL_H_
23 
24 #include <stdlib.h>
25 
26 typedef void (*fdk_log_fkt_t)(unsigned log_level, const char* fmt, ...);
27 
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);
30 
31 ssize_t fdk_aac_dsp_impl_stream_info(void* handle, int encoder, fdk_log_fkt_t log);
32 
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);
36 
37 ssize_t fdk_aac_dsp_impl_decode_fill(void* handle, const void* data, size_t size,
38  fdk_log_fkt_t log);
39 
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);
42 
43 ssize_t fdk_aac_dsp_impl_decode_read(void* handle, void* dst, size_t dstSize, fdk_log_fkt_t log);
44 
45 #endif