Interface H264Parser
access this type via: media.video.H264Parser (provides, requires or uses)
This is an API to parse a H.264 video file as a stream of frames. This API assumes that your entire H.264 file (or self-contained segment) is in a byte array in memory.
Functions
NALFrame getNextFrame(byte content[], int offset)
SPSHeader parseSPS(byte content[], int offset)
NALFrame getNextFrame(byte content[], int offset)
This function gets the next frame from the input 'content' array, starting at the index denoted by 'offset'. It returns the type of frame this this is, with the start and end offset of its content.
SPSHeader parseSPS(byte content[], int offset)
This function parses an SPS header from the input 'content' array, starting at the index denoted by 'offset'. SPS frames are generally at the start of a H.264 file / segment.