I checked internally, and it seems that the design is intentional. For an mp4 file, to detect whether a frame is syncframe or not involves a table lookup. This will turn out to be expensive, especially for long clips. Hence, is being omitted. Also, for RTP streaming cases, the information on whether a frame is a sync frame or not is optional.
We could potentially add a change inside the decoder node to do some parsing of bitstream to determine whether a frame is keyframe or not. But, currently there is no need for such information in the framework. -Ravi On Jul 20, 11:27 am, RaviY <[email protected]> wrote: > This is usually set by the source node. > > But, it looks like, in some cases, it is being set only during > repositioning and not during regular playback. > > Can you explain what your usecase is and I can try to see what could > be done? > > -Ravi > > On Jul 20, 11:04 am, Andy Quan <[email protected]> wrote: > > > Ravi,How is this bit "PVMF_MEDIA_DATA_MARKER_INFO_RANDOM_ACCESS_POINT_BIT" > > set during decoding? I mean what PVMF relies to recognize a random access > > point. > > > I printed nflags of certain H264 mp4 file but found no > > OMX_BUFFERFLAG_SYNCFRAME set. > > > Could you please help? Thanks. > > > On Mon, Jul 20, 2009 at 11:52 PM, RaviY <[email protected]> wrote: > > > >http://android.git.kernel.org/?p=platform%2Fexternal%2Fopencore.git&a... > > > > PVMF has a bit set for each frame > > > (PVMF_MEDIA_DATA_MARKER_INFO_RANDOM_ACCESS_POINT_BIT) that is > > > considered to be a random access point. The OMX node looks at that bit > > > and then sets the OMX_BUFFERFLAG_SYNCFRAME bit to the input buffer > > > header flags. > > > > -Ravi > > > > On Jul 20, 1:47 am, Andy Quan <[email protected]> wrote: > > > > Hi, > > > > I am working on video playback in Android 1.5 with OpenCORE. I want to > > > know > > > > whether OpenCORE provides any method to recognize Intra frame in the > > > > framework, that is, outside OMX IL component. > > > > > I find there is OMX flag named "OMX_BUFFER_SYNCFRAME", but I did not > > > > find > > > it > > > > set when Intra frame was passed in "SendInputBuffertoOMXComponent". > > > > > Thanks a lot. > > > > > -- > > > > Thanks, > > > > Andy > > > -- > > Thanks, > > Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
