In Android 4.2 release, I observe that the miracast implementation mandates an OMX encoder to support a new extension index “OMX.google.android.index.prependSPSPPSToIDRFrames“. However, when I studied the subsequent implementation of MediaCodec, Converter and WifiDisplaySource, I observe that there is enough support in the existing framework to support this feature without the need of adding another index for the OMX component.
Can someone please confirm if my understanding is correct? If so, can you kindly provide some further information on reasons/rationale behind the same?
Thanks.
I have found the answers to my question in latest release of
Android 4.2.2. As per my earlier question, Google has decided to support both anindexinside theOMX Componentas well as aStagefrightframework level handling ofprepend SPS and PPS to IDR frames. This way anOMX Componentneedn’t support the new index. The creation of the component fromACodecinterface doesn’t fail and the framework takes up the responsibility ofprepend.