MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifSampleTableDestroy

Function avifSampleTableDestroy

src/read.c:341–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static void avifSampleTableDestroy(avifSampleTable * sampleTable)
342{
343 avifArrayDestroy(&sampleTable->chunks);
344 for (uint32_t i = 0; i < sampleTable->sampleDescriptions.count; ++i) {
345 avifSampleDescription * description = &sampleTable->sampleDescriptions.description[i];
346 avifPropertyArrayDestroy(&description->properties);
347 }
348 avifArrayDestroy(&sampleTable->sampleDescriptions);
349 avifArrayDestroy(&sampleTable->sampleToChunks);
350 avifArrayDestroy(&sampleTable->sampleSizes);
351 avifArrayDestroy(&sampleTable->timeToSamples);
352 avifArrayDestroy(&sampleTable->syncSamples);
353 avifFree(sampleTable);
354}
355
356static uint32_t avifSampleTableGetImageDelta(const avifSampleTable * sampleTable, uint32_t imageIndex)
357{

Callers 2

avifSampleTableCreateFunction · 0.85
avifDecoderDataDestroyFunction · 0.85

Calls 3

avifArrayDestroyFunction · 0.85
avifPropertyArrayDestroyFunction · 0.85
avifFreeFunction · 0.85

Tested by

no test coverage detected