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")

相关推荐
用户967151139167215 小时前
Rust 如何轻松实现 RTMP 流媒体推送?深入解析直播推流场景与解决方案
rust·ffmpeg
小小码农Come on15 小时前
ffmpeg命令整理
ffmpeg
暮云星影16 小时前
三、FFmpeg学习笔记
linux·ffmpeg
都非拉得1 天前
FFmpeg命令详解
ffmpeg
cuijiecheng20181 天前
音视频入门基础:MPEG2-TS专题(26)——通过FFmpeg命令使用RTP发送TS流
ffmpeg·音视频
Yeauty2 天前
Rust 中的高效视频处理:利用硬件加速应对高分辨率视频
开发语言·rust·ffmpeg·音视频·音频·视频
winfredzhang2 天前
Python视频标签工具详解:基于wxPython和FFmpeg的实现
python·ffmpeg·音视频·视频标签
Yeauty3 天前
从0到1:Rust 如何用 FFmpeg 和 OpenGL 打造硬核视频特效
rust·ffmpeg·音视频
witton4 天前
MinGW下编译ffmpeg源码时生成compile_commands.json
ffmpeg·json·makefile·mingw·调试·compile_command·remake