FreeRDP
dsp_fdk_impl.c File Reference
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <inttypes.h>
#include <fdk-aac/aacdecoder_lib.h>
#include <fdk-aac/aacenc_lib.h>
#include "dsp_fdk_impl.h"

Macros

#define WLOG_TRACE   0
 
#define WLOG_DEBUG   1
 
#define WLOG_INFO   2
 
#define WLOG_WARN   3
 
#define WLOG_ERROR   4
 
#define WLOG_FATAL   5
 

Functions

static const char * enc_err_str (AACENC_ERROR err)
 
static const char * dec_err_str (AAC_DECODER_ERROR err)
 
static void log_dec_info (const CStreamInfo *info, void(*log)(const char *fmt,...))
 
static void log_enc_info (const AACENC_InfoStruct *info, fdk_log_fkt_t log)
 
static const char * aac_enc_param_str (AACENC_PARAM param)
 
int fdk_aac_dsp_impl_init (void **handle, int encoder, fdk_log_fkt_t log)
 
void fdk_aac_dsp_impl_uninit (void **handle, int encoder, fdk_log_fkt_t log)
 
ssize_t fdk_aac_dsp_impl_decode_read (void *handle, void *dst, size_t dstSize, fdk_log_fkt_t log)
 
static unsigned get_channelmode (unsigned channels)
 
int fdk_aac_dsp_impl_config (void *handle, size_t *pbuffersize, int encoder, unsigned samplerate, unsigned channels, unsigned bytes_per_second, unsigned frames_per_packet, fdk_log_fkt_t log)
 
ssize_t fdk_aac_dsp_impl_decode_fill (void *handle, const void *data, size_t size, fdk_log_fkt_t log)
 
ssize_t fdk_aac_dsp_impl_stream_info (void *handle, int encoder, fdk_log_fkt_t log)
 
ssize_t fdk_aac_dsp_impl_encode (void *handle, const void *data, size_t size, void *dst, size_t dstSize, fdk_log_fkt_t log)
 

Macro Definition Documentation

◆ WLOG_DEBUG

#define WLOG_DEBUG   1

◆ WLOG_ERROR

#define WLOG_ERROR   4

◆ WLOG_FATAL

#define WLOG_FATAL   5

◆ WLOG_INFO

#define WLOG_INFO   2

◆ WLOG_TRACE

#define WLOG_TRACE   0

FreeRDP: A Remote Desktop Protocol Implementation Digital Sound Processing

Copyright 2022 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2022 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ WLOG_WARN

#define WLOG_WARN   3

Function Documentation

◆ aac_enc_param_str()

static const char* aac_enc_param_str ( AACENC_PARAM  param)
static
Here is the caller graph for this function:

◆ dec_err_str()

static const char* dec_err_str ( AAC_DECODER_ERROR  err)
static
Here is the caller graph for this function:

◆ enc_err_str()

static const char* enc_err_str ( AACENC_ERROR  err)
static
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_config()

int fdk_aac_dsp_impl_config ( void *  handle,
size_t *  pbuffersize,
int  encoder,
unsigned  samplerate,
unsigned  channels,
unsigned  bytes_per_second,
unsigned  frames_per_packet,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_decode_fill()

ssize_t fdk_aac_dsp_impl_decode_fill ( void *  handle,
const void *  data,
size_t  size,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_decode_read()

ssize_t fdk_aac_dsp_impl_decode_read ( void *  handle,
void *  dst,
size_t  dstSize,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_encode()

ssize_t fdk_aac_dsp_impl_encode ( void *  handle,
const void *  data,
size_t  size,
void *  dst,
size_t  dstSize,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_init()

int fdk_aac_dsp_impl_init ( void **  handle,
int  encoder,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_stream_info()

ssize_t fdk_aac_dsp_impl_stream_info ( void *  handle,
int  encoder,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdk_aac_dsp_impl_uninit()

void fdk_aac_dsp_impl_uninit ( void **  handle,
int  encoder,
fdk_log_fkt_t  log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_channelmode()

static unsigned get_channelmode ( unsigned  channels)
static
Here is the caller graph for this function:

◆ log_dec_info()

static void log_dec_info ( const CStreamInfo *  info,
void(*)(const char *fmt,...)  log 
)
static

◆ log_enc_info()

static void log_enc_info ( const AACENC_InfoStruct *  info,
fdk_log_fkt_t  log 
)
static
Here is the caller graph for this function: