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

相关推荐
runing_an_min2 小时前
ffmpeg视频滤镜:网格-drawgrid
ffmpeg·音视频·网格·drawgrid
间彧7 小时前
FFmpeg推流器
ffmpeg
生命几十年3万天9 小时前
ffmpeg常用命令
ffmpeg
qs11379818439 小时前
怎么提取视频里的音频?关于提取视频里音频的几种方法
linux·网络·ffmpeg
cuijiecheng201810 小时前
音视频入门基础:AAC专题(12)——FFmpeg源码中,解码AudioSpecificConfig的实现
ffmpeg·音视频·aac
fensnote1 天前
ffmpeg拉流分段存储到文件-笔记
笔记·ffmpeg
cpp_learners1 天前
Windows环境 ffmpeg 命令使用介绍
windows·ffmpeg·ffmpeg命令
HockerF2 天前
ffmpeg环境
ffmpeg
学前端的小朱3 天前
【视频混剪Demo】FFmpeg的使用【Windows】
windows·ffmpeg·音视频·1024程序员节·更改参数·视频混剪
从后端到QT3 天前
HLS协议之nginx-hls-多码率测试环境搭建
运维·nginx·ffmpeg·音视频·rtmp