28#if CONFIG_SWRESAMPLE && FF_API_DSD_PCM
52 "Converting DSD to PCM in the decoder is deprecated and will be "
53 "removed. Set request_sample_fmt to AV_SAMPLE_FMT_DSD to receive "
54 "the raw bitstream, and use libswresample to convert it to PCM "
Libavcodec external API header.
int ff_dsd_to_pcm_init(struct AVCodecContext *avctx, struct SwrContext **swrp)
(Re)create a libswresample context converting AV_SAMPLE_FMT_DSD to avctx->sample_fmt at the same samp...
#define AV_LOG_WARNING
Something somehow does not look correct.
@ AV_SAMPLE_FMT_DSD
DSD (Direct Stream Digital) bitstream, interleaved.
int swr_alloc_set_opts2(struct SwrContext **ps, const AVChannelLayout *out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, const AVChannelLayout *in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, int log_offset, void *log_ctx)
Allocate SwrContext if needed and set/reset common parameters.
av_cold void swr_free(SwrContext **ss)
Free the given SwrContext and set the pointer to NULL.
av_cold int swr_init(struct SwrContext *s)
Initialize context after user parameters have been set.
Libavcodec version macros.
Macro definitions for various function/variable attributes.
main external API structure.
AVChannelLayout ch_layout
Audio channel layout.
enum AVSampleFormat sample_fmt
audio sample format
int sample_rate
samples per second
The libswresample context.
libswresample public header