> 1. if I want to add my own codec using the OMX way into > gingerbread's stagefright, what should I do step by step? i listed highlevel steps sometime this week, should give u a idea. link http://groups.google.com/group/android-porting/msg/5d88e76845a22bbb
> 2. as to adding parser together with video and audio codec, what > should I do? for example, I want to add my own mkv parser with h264 > and aac decoder(hardware or software decoder), > what should I do? can you explain it in details? MediaExtractor is the base parser class. Stagefright today already have parsers for these containers (AMRExtractor.cpp MediaExtractor.cpp MP3Extractor.cpp MPEG4Extractor.cpp OggExtractor.cpp WAVExtractor.cpp) For MKV -> you need to derive MKVExtractor class, implement a sniffer (to detect if mkv container and return yes), register sniffer and parser routines. (it would be really great if some one make MKV/AVI container support in stagefright., they are universal containers which can contain all possible video/audio streams) On Wed, Jan 19, 2011 at 11:45 AM, alex <[email protected]> wrote: > Hi Sparks, > > I have read the source code of stagefright in gingerbread, and find > that stagefright has two methods to use codec: > 1. direct software codec called in OMXCodec class > 2. OMX plugins > > I have heard that in froyo, stagefright shares opencore's omx codec > plugins. however, gingerbread removed opencore totally. > So, my questions: > 1. if I want to add my own codec using the OMX way into > gingerbread's stagefright, what should I do step by step? > 2. as to adding parser together with video and audio codec, what > should I do? for example, I want to add my own mkv parser with h264 > and aac decoder(hardware or software decoder), > what should I do? can you explain it in details? > > > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- Regards, Deva www.bittoggler.com -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
