wut  v1.5.0
Wii U Toolchain
Typedefs | Enumerations | Functions
H264 Decode

Typedefs

typedef enum H264Parameter H264Parameter
 h264 decoder parameters for H264DECSetParam. More...
 

Enumerations

enum  H264Parameter {
  H264_PARAMETER_FRAME_POINTER_OUTPUT = 1 ,
  H264_PARAMETER_OUTPUT_PER_FRAME = 0x20000002 ,
  H264_PARAMETER_UNKNOWN_20000010 = 0x20000010 ,
  H264_PARAMETER_UNKNOWN_20000030 = 0x20000030 ,
  H264_PARAMETER_UNKNOWN_20000040 = 0x20000040 ,
  H264_PARAMETER_USER_MEMORY = 0x70000001
}
 h264 decoder parameters for H264DECSetParam. More...
 

Functions

H264Error H264DECMemoryRequirement (int32_t profile, int32_t level, int32_t maxWidth, int32_t maxHeight, uint32_t *outMemoryRequirement)
 Calculate the amount of memory required for the specified parameters. More...
 
H264Error H264DECInitParam (int32_t memorySize, void *memory)
 Initialise a H264 decoder in the given memory. More...
 
H264Error H264DECSetParam (void *memory, H264Parameter parameter, void *value)
 Set H264 decoder parameter. More...
 
H264Error H264DECSetParam_FPTR_OUTPUT (void *memory, H264DECFptrOutputFn value)
 Set the callback which is called when a frame is output from the decoder. More...
 
H264Error H264DECSetParam_OUTPUT_PER_FRAME (void *memory, uint32_t value)
 Set whether the decoder should internally buffer frames or call the callback immediately as soon as a frame is emitted. More...
 
H264Error H264DECSetParam_USER_MEMORY (void *memory, void *value)
 Set a user memory pointer which is passed to the frame output callback. More...
 
H264Error H264DECCheckMemSegmentation (void *memory, uint32_t size)
 Check if the provided memory can be used for decoding. More...
 
H264Error H264DECOpen (void *memory)
 Open a H264 decoder. More...
 
H264Error H264DECBegin (void *memory)
 Prepare for decoding. More...
 
H264Error H264DECSetBitstream (void *memory, uint8_t *buffer, uint32_t bufferLength, double timestamp)
 Set the bit stream to be read for decoding. More...
 
H264Error H264DECExecute (void *memory, void *frameBuffer)
 Perform decoding of the bitstream and put the output frame into frameBuffer. More...
 
H264Error H264DECFlush (void *memory)
 Flush any internally buffered frames. More...
 
H264Error H264DECEnd (void *memory)
 End decoding of the current stream. More...
 
H264Error H264DECClose (void *memory)
 Cleanup the decoder. More...
 

Detailed Description

Typedef Documentation

◆ H264Parameter

h264 decoder parameters for H264DECSetParam.

Enumeration Type Documentation

◆ H264Parameter

h264 decoder parameters for H264DECSetParam.

Enumerator
H264_PARAMETER_FRAME_POINTER_OUTPUT 

Set the callback which is called when a frame is output from the decoder.

H264_PARAMETER_OUTPUT_PER_FRAME 

Set whether the decoder should internally buffer frames or call the callback immediately as soon as a frame is emitted.

H264_PARAMETER_UNKNOWN_20000010 
H264_PARAMETER_UNKNOWN_20000030 
H264_PARAMETER_UNKNOWN_20000040 
H264_PARAMETER_USER_MEMORY 

Set a user memory pointer which is passed to the frame output callback.

Definition at line 15 of file decode.h.

Function Documentation

◆ H264DECMemoryRequirement()

H264Error H264DECMemoryRequirement ( int32_t  profile,
int32_t  level,
int32_t  maxWidth,
int32_t  maxHeight,
uint32_t *  outMemoryRequirement 
)

Calculate the amount of memory required for the specified parameters.

◆ H264DECInitParam()

H264Error H264DECInitParam ( int32_t  memorySize,
void *  memory 
)

Initialise a H264 decoder in the given memory.

◆ H264DECSetParam()

H264Error H264DECSetParam ( void *  memory,
H264Parameter  parameter,
void *  value 
)

Set H264 decoder parameter.

◆ H264DECSetParam_FPTR_OUTPUT()

H264Error H264DECSetParam_FPTR_OUTPUT ( void *  memory,
H264DECFptrOutputFn  value 
)

Set the callback which is called when a frame is output from the decoder.

◆ H264DECSetParam_OUTPUT_PER_FRAME()

H264Error H264DECSetParam_OUTPUT_PER_FRAME ( void *  memory,
uint32_t  value 
)

Set whether the decoder should internally buffer frames or call the callback immediately as soon as a frame is emitted.

◆ H264DECSetParam_USER_MEMORY()

H264Error H264DECSetParam_USER_MEMORY ( void *  memory,
void *  value 
)

Set a user memory pointer which is passed to the frame output callback.

◆ H264DECCheckMemSegmentation()

H264Error H264DECCheckMemSegmentation ( void *  memory,
uint32_t  size 
)

Check if the provided memory can be used for decoding.

◆ H264DECOpen()

H264Error H264DECOpen ( void *  memory)

Open a H264 decoder.

◆ H264DECBegin()

H264Error H264DECBegin ( void *  memory)

Prepare for decoding.

◆ H264DECSetBitstream()

H264Error H264DECSetBitstream ( void *  memory,
uint8_t *  buffer,
uint32_t  bufferLength,
double  timestamp 
)

Set the bit stream to be read for decoding.

◆ H264DECExecute()

H264Error H264DECExecute ( void *  memory,
void *  frameBuffer 
)

Perform decoding of the bitstream and put the output frame into frameBuffer.

◆ H264DECFlush()

H264Error H264DECFlush ( void *  memory)

Flush any internally buffered frames.

◆ H264DECEnd()

H264Error H264DECEnd ( void *  memory)

End decoding of the current stream.

◆ H264DECClose()

H264Error H264DECClose ( void *  memory)

Cleanup the decoder.