21 #ifndef FREERDP_LIB_CODEC_DSP_FFMPEG_H
22 #define FREERDP_LIB_CODEC_DSP_FFMPEG_H
24 #include <freerdp/api.h>
25 #include <freerdp/codec/audio.h>
26 #include <freerdp/codec/dsp.h>
28 #include <libavcodec/version.h>
30 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 48, 101)
32 "DSP module requires libavcodec version >= 57.48.101. Upgrade or set WITH_DSP_FFMPEG=OFF to continue"
35 void freerdp_dsp_ffmpeg_context_free(FREERDP_DSP_CONTEXT* context);
37 WINPR_ATTR_MALLOC(freerdp_dsp_ffmpeg_context_free, 1)
38 FREERDP_DSP_CONTEXT* freerdp_dsp_ffmpeg_context_new(BOOL encode);
39 BOOL freerdp_dsp_ffmpeg_supports_format(const
AUDIO_FORMAT* format, BOOL encode);
40 BOOL freerdp_dsp_ffmpeg_encode(FREERDP_DSP_CONTEXT* context, const
AUDIO_FORMAT* srcFormat,
41 const BYTE* data,
size_t length,
wStream* out);
42 BOOL freerdp_dsp_ffmpeg_decode(FREERDP_DSP_CONTEXT* context, const
AUDIO_FORMAT* srcFormat,
43 const BYTE* data,
size_t length,
wStream* out);
45 BOOL freerdp_dsp_ffmpeg_context_reset(FREERDP_DSP_CONTEXT* context,