wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
decode.h
Go to the documentation of this file.
1#pragma once
2#include "stream.h"
3
10#ifdef __cplusplus
11extern "C" {
12#endif
13
31
32
38 int32_t level,
39 int32_t maxWidth,
40 int32_t maxHeight,
41 uint32_t *outMemoryRequirement);
42
43
48H264DECInitParam(int32_t memorySize,
49 void *memory);
50
51
56H264DECSetParam(void *memory,
57 H264Parameter parameter,
58 void *value);
59
60
67
68
75 uint32_t value);
76
77
83 void **value);
84
85
91 uint32_t size);
92
93
98H264DECOpen(void *memory);
99
100
105H264DECBegin(void *memory);
106
107
113 uint8_t *buffer,
114 uint32_t bufferLength,
115 double timestamp);
116
117
122H264DECExecute(void *memory,
123 void *frameBuffer);
124
125
130H264DECFlush(void *memory);
131
132
137H264DECEnd(void *memory);
138
139
144H264DECClose(void *memory);
145
146
147#ifdef __cplusplus
148}
149#endif
150
H264Error H264DECCheckMemSegmentation(void *memory, uint32_t size)
Check if the provided memory can be used for decoding.
H264Error H264DECExecute(void *memory, void *frameBuffer)
Perform decoding of the bitstream and put the output frame into frameBuffer.
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...
H264Error H264DECBegin(void *memory)
Prepare for decoding.
H264Error H264DECOpen(void *memory)
Open a H264 decoder.
H264Error H264DECSetParam_FPTR_OUTPUT(void *memory, H264DECFptrOutputFn value)
Set the callback which is called when a frame is output from the decoder.
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.
H264Error H264DECSetBitstream(void *memory, uint8_t *buffer, uint32_t bufferLength, double timestamp)
Set the bit stream to be read for decoding.
H264Error H264DECInitParam(int32_t memorySize, void *memory)
Initialise a H264 decoder in the given memory.
H264Error H264DECClose(void *memory)
Cleanup the decoder.
H264Error H264DECEnd(void *memory)
End decoding of the current stream.
H264Error H264DECSetParam(void *memory, H264Parameter parameter, void *value)
Set H264 decoder parameter.
H264Error H264DECSetParam_USER_MEMORY(void *memory, void **value)
Set a user memory pointer which is passed to the frame output callback.
H264Error H264DECFlush(void *memory)
Flush any internally buffered frames.
H264Parameter
h264 decoder parameters for H264DECSetParam.
Definition decode.h:16
@ H264_PARAMETER_UNKNOWN_20000040
Definition decode.h:26
@ H264_PARAMETER_UNKNOWN_20000010
Definition decode.h:24
@ H264_PARAMETER_FRAME_POINTER_OUTPUT
Set the callback which is called when a frame is output from the decoder.
Definition decode.h:18
@ H264_PARAMETER_USER_MEMORY
Set a user memory pointer which is passed to the frame output callback.
Definition decode.h:29
@ H264_PARAMETER_OUTPUT_PER_FRAME
Set whether the decoder should internally buffer frames or call the callback immediately as soon as a...
Definition decode.h:22
@ H264_PARAMETER_UNKNOWN_20000030
Definition decode.h:25
void(* H264DECFptrOutputFn)(H264DecodeOutput *output)
Definition stream.h:17
H264Error
h264 library errors.
Definition stream.h:21