H264DECGetImageSize

Syntax

#include <cafe/h264.h>

s32	H264DECGetImageSize(const u8 *buf, s32 TotalBytes,
			    s32 streamOffset, s32 *Width, s32 *Height);

Parameters

buf Pointer to the beginning of the data to decode (Input).
TotalBytes Number of bytes of data to decode (Input).
streamOffset The offset at which to start decoding (Input).
Width The width of the image to decode (Output).
Height The height of the image to decode (Output).

Return Values

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

Description

Gets the image size (of which dimensions are multiples of 16) from the Video Elementary Stream to be decoded.

This is used by other functions, such as the utility function used to retrieve required memory sizes H264DECMemoryRequirement.

NOTE:
Image dimensions returned by this function are multiples of 16.

Do Not Call From

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

See Also

H264DECMemoryRequirement
H264DECFindDecstartpoint
H264DECFindIdrpoint
H264DECCheckDecunitLength
H264DECCheckMemSegmentation
H264DECCheckSkipableFrame

Revision History

2014/07/22 Initial version.


CONFIDENTIAL