H264DECFindDecstartpoint

Syntax

#include <cafe/h264.h>

s32	H264DECFindDecstartpoint(const u8 *buf, s32 totalBytes, s32 *streamOffset);

Parameters

buf Pointer to the beginning of the input data (Input).
totalBytes The overall size of the input data (Input).
streamOffset The offset (the position of the sequence parameter set) at which to start decoding (Output).

Return Values

A return value of 0 indicates success. Any nonzero return value indicates failure.

Description

Searches for the position in the input data at which to start decoding the input data (a sequence parameter set).

To decode a bitstream, you need information on a sequence parameter set. First call this utility function and then start decoding from the position that the function returns.

This utility function handles Video Elementary Streams that have not been converted into MP4 format and is not necessary when using the MP4 demultiplexer.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.

See Also

H264DECMemoryRequirement
H264DECGetImageSize
H264DECFindIdrpoint
H264DECCheckDecunitLength
H264DECCheckMemSegmentation
H264DECCheckSkipableFrame

Revision History

2014/07/22 Initial version.


CONFIDENTIAL