MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / alloc_tu

Function alloc_tu

libavcodec/vvc/ctu.c:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212static TransformUnit* alloc_tu(VVCFrameContext *fc, CodingUnit *cu)
213{
214 TransformUnit *tu = av_refstruct_pool_get(fc->tu_pool);
215 if (!tu)
216 return NULL;
217
218 tu->next = NULL;
219
220 if (cu->tus.tail)
221 cu->tus.tail->next = tu;
222 else
223 cu->tus.head = tu;
224 cu->tus.tail = tu;
225
226 return tu;
227}
228
229static TransformUnit* add_tu(VVCFrameContext *fc, CodingUnit *cu, const int x0, const int y0, const int tu_width, const int tu_height)
230{

Callers 1

add_tuFunction · 0.85

Calls 1

av_refstruct_pool_getFunction · 0.85

Tested by

no test coverage detected