Add FLAC to stagefright

There is no documentation on Stagefright. I haven't tried implementing a new stream type yet, but it does look pretty straightforward:

1. Create a FLAC stream extractor. See MP3Extractor.cpp or AMRExtractor.cpp for examples of audio stream extractors. It needs to be able to handle things like sniff a file to recognize FLAC content, seek in the stream, resync, etc. Add the new extractor to the list of stream extractors registered in DataSource.cpp.

2. Create a FLAC decoder node. See MP3Decoder.cpp or AMRNBDecoder.cpp for examples. Add the new codec to various places in OMXCodec.cpp so that the player engine can find it. Add the new mime type to the list of supported formats.

3. Add the FLAC container format to the MediaScanner (3 place if I remember correctly). This may already in Kenny's original FLAC submission.

4. Add FLAC to the unit tests in the media test framework.

This took all of about 5 minutes of spelunking in the code. The trick is just to use the existing audio formats as a guide.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值