H264DECMemoryRequirement

Syntax

#include <cafe/h264.h>

s32	H264DECMemoryRequirement(s32 Profile, s32 Level, s32 MaxWidth,
				 s32 MaxHeight, s32 *CodecMemSize);

Parameters

Profile Profile identifier (Input):
  • 66: Constrained Baseline Profile
  • 77: Main Profile
  • 100: High Profile
Level Level multiplied by 10 (Input). Examples:
  • 10: Level 1
  • 41: Level 4.1
MaxWidth The width of the image to decode (Input).
MaxHeight The height of the image to decode (Input).
CodecMemSize The size (in bytes) of the work memory (Output).

Return Values

A return value of 0 indicates success. Any nonzero return value indicates failure. For more information on errors, see Error Codes.

Description

Calculates the work memory and frame memory required by this library based on the profile identifier, level, and frame size.

Do Not Call From

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

See Also

H264DECGetImageSize
H264DECFindDecstartpoint
H264DECFindIdrpoint
H264DECCheckDecunitLength
H264DECCheckMemSegmentation
H264DECCheckSkipableFrame

Revision History

2014/07/22 Initial version.


CONFIDENTIAL