ADPCM_DECODER

#define ADPCM_DECODER_0(id_, sample_fmts_, name_, long_name_)

#define ADPCM_DECODER_1(id_, sample_fmts_, name_, long_name_) \

const FFCodec ff_ ## name_ ## _decoder = { \

.p.name = #name_, \

CODEC_LONG_NAME(long_name_), \

.p.type = AVMEDIA_TYPE_AUDIO, \

.p.id = id_, \

.p.capabilities = AV_CODEC_CAP_DR1, \

.p.sample_fmts = sample_fmts_, \

.priv_data_size = sizeof(ADPCMDecodeContext), \

.init = adpcm_decode_init, \

FF_CODEC_DECODE_CB(adpcm_decode_frame), \

.flush = adpcm_flush, \

};

#define ADPCM_DECODER_2(enabled, codec_id, name, sample_fmts, long_name) \

ADPCM_DECODER_ ## enabled(codec_id, name, sample_fmts, long_name)

#define ADPCM_DECODER_3(config, codec_id, name, sample_fmts, long_name) \

ADPCM_DECODER_2(config, codec_id, name, sample_fmts, long_name)

#define ADPCM_DECODER(codec, name, sample_fmts, long_name) \

ADPCM_DECODER_3(CONFIG_ ## codec ## DECODER, AV_CODEC_ID ## codec, \

name, sample_fmts, long_name)

/* Note: Do not forget to add new entries to the Makefile as well. */
ADPCM_DECODER(ADPCM_4XM, sample_fmts_s16p, adpcm_4xm, "ADPCM 4X Movie")
ADPCM_DECODER(ADPCM_AFC, sample_fmts_s16p, adpcm_afc, "ADPCM Nintendo Gamecube AFC")
ADPCM_DECODER(ADPCM_AGM, sample_fmts_s16, adpcm_agm, "ADPCM AmuseGraphics Movie")
ADPCM_DECODER(ADPCM_AICA, sample_fmts_s16p, adpcm_aica, "ADPCM Yamaha AICA")
ADPCM_DECODER(ADPCM_ARGO, sample_fmts_s16p, adpcm_argo, "ADPCM Argonaut Games")
ADPCM_DECODER(ADPCM_CT, sample_fmts_s16, adpcm_ct, "ADPCM Creative Technology")
ADPCM_DECODER(ADPCM_DTK, sample_fmts_s16p, adpcm_dtk, "ADPCM Nintendo Gamecube DTK")

相关推荐
ZouZou老师4 小时前
FFmpeg性能优化经典案例
性能优化·ffmpeg
aqi007 小时前
FFmpeg开发笔记(九十)采用FFmpeg套壳的音视频转码百宝箱FFBox
ffmpeg·音视频·直播·流媒体
齐齐大魔王9 小时前
FFmpeg
ffmpeg
你好音视频10 小时前
FFmpeg RTSP拉流流程深度解析
ffmpeg
IFTICing21 小时前
【环境配置】ffmpeg下载、安装、配置(Windows环境)
windows·ffmpeg
haiy201121 小时前
FFmpeg 编译
ffmpeg
aqi001 天前
FFmpeg开发笔记(八十九)基于FFmpeg的直播视频录制工具StreamCap
ffmpeg·音视频·直播·流媒体
八月的雨季 最後的冰吻1 天前
FFmepg--28- 滤镜处理 YUV 视频帧:实现上下镜像效果
ffmpeg·音视频
ganqiuye1 天前
向ffmpeg官方源码仓库提交patch
大数据·ffmpeg·video-codec
草明1 天前
ffmpeg 把 ts 转换成 mp3
ffmpeg