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

相关推荐
韩曙亮12 小时前
【FFmpeg】FFmpeg 内存结构 ③ ( AVPacket 函数简介 | av_packet_ref 函数 | av_packet_clone 函数 )
ffmpeg·音视频·avpacket·av_packet_clone·av_packet_ref·ffmpeg内存结构
oushaojun216 小时前
ubuntu中使用ffmpeg和nginx推流rtmp视频
nginx·ubuntu·ffmpeg·rtmp
莫固执,朋友17 小时前
网络抓包工具tcpdump 在海思平台上的编译使用
网络·ffmpeg·音视频·tcpdump
lxkj_202418 小时前
修改ffmpeg实现https-flv内容加密
网络协议·https·ffmpeg
cuijiecheng201818 小时前
音视频入门基础:MPEG2-TS专题(6)——FFmpeg源码中,获取MPEG2-TS传输流每个transport packet长度的实现
ffmpeg·音视频
VisionX Lab1 天前
数据脱敏工具:基于 FFmpeg 的视频批量裁剪
python·ffmpeg·音视频
柳鲲鹏2 天前
全网首发:Ubuntu编译跨平台嵌入式支持ffmpeg的OpenCV
linux·ubuntu·ffmpeg
冰山一脚20132 天前
ffplay音频SDL播放处理
ffmpeg
cuijiecheng20182 天前
音视频入门基础:MPEG2-TS专题(7)——FFmpeg源码中,读取出一个transport packet数据的实现
ffmpeg·音视频
Maxwellhang2 天前
【java-ffmpeg】java 内存测试和集成
java·ffmpeg·jni