You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#defineMVD_CALC_WITH_LEVEL_FLAG_ENABLE_CALC 0x01 //Enable calculation with level.
25
+
#defineMVD_CALC_WITH_LEVEL_FLAG_ENABLE_EXTRA_OP 0x02 //Enable extra op after base calculation (see : https://www.3dbrew.org/wiki/MVDSTD:CalculateWorkBufSize.
/// See here for detailed explanations : https://www.3dbrew.org/wiki/MVDSTD:CalculateWorkBufSize.
138
+
typedefstruct {
139
+
u8unused_0x00; //Unused.
140
+
MVDSTD_WithLevellevel; //Calc buffer size with H.264 level.
141
+
MVDSTD_WithNumOfRefFramesref_frames_a; //Calc buffer size with num of reference frames and resolution.
142
+
MVDSTD_WithNumOfRefFramesref_frames_b; //Calc buffer size with num of reference frames and resolution.
143
+
u8unused_0x09[3]; //Unused.
144
+
u32unk_0x0c; //Unknown.
145
+
u32unk_0x10; //Unknown.
146
+
u32unk_0x14; //Unknown.
147
+
u32unk_0x18; //Unknown.
148
+
u32unk_0x1c; //Unknown.
149
+
u32unk_0x20; //Unknown.
150
+
u32unk_0x24; //Unknown.
151
+
u32width; //Video width.
152
+
u32height; //Video height.
153
+
} MVDSTD_CalculateWorkBufSizeConfig;
154
+
99
155
/**
100
156
* @brief Initializes MVDSTD.
101
157
* @param mode Mode to initialize MVDSTD to.
@@ -109,6 +165,13 @@ Result mvdstdInit(MVDSTD_Mode mode, MVDSTD_InputFormat input_type, MVDSTD_Output
109
165
/// Shuts down MVDSTD.
110
166
voidmvdstdExit(void);
111
167
168
+
/**
169
+
* @brief Calculate working buffer size for H.264 decoding.
170
+
* @param config Calculation config, config->level.level must NOT exceed MVD_H264_LEVEL_5_2. See here for more explanations : https://www.3dbrew.org/wiki/MVDSTD:CalculateWorkBufSize.
171
+
* @param size_out Calculated buffer size in bytes.
0 commit comments