| 210 | } |
| 211 | |
| 212 | static 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 | |
| 229 | static TransformUnit* add_tu(VVCFrameContext *fc, CodingUnit *cu, const int x0, const int y0, const int tu_width, const int tu_height) |
| 230 | { |
no test coverage detected