I have a task which involves integration of a video decoder into Stagefright
(Android's multimedia framework). I searched and found the following about creating a new plugin for Stagefright
:
To add support for a new format, you need to:
Develop a new Extractor class, if the container is not supported yet.
Develop a new Decoder class, that implements the interface needed by the
StageFright
core to read the data.Associate the mime-type of the files to read to your new Decoder in the
OMXCodec.cpp
file, in thekDecoderInfo
array.
static const CodecInfo kDecoderInfo[] = {
{MEDIA_MIMETYPE_AUDIO_AAC, "OMX.TI.AAC.decode"},
{MEDIA_MIMETYPE_AUDIO_AAC, "AACDecoder"},
};
The above data is all i could find out on net. Right now i have a simple app that will take a file as an input and render it on the screen using native API's in android. Can anyone please tell me how to proceed further. And from where does all these OMXCodec.cpp
and others come into picture and which directory of my project should i have them in. Please provide solutions regarding the same. Thanks in advance.