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

Function avifCodecDecodeInputDestroy

src/read.c:495–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void avifCodecDecodeInputDestroy(avifCodecDecodeInput * decodeInput)
496{
497 for (uint32_t sampleIndex = 0; sampleIndex < decodeInput->samples.count; ++sampleIndex) {
498 avifDecodeSample * sample = &decodeInput->samples.sample[sampleIndex];
499 if (sample->ownsData) {
500 avifRWDataFree((avifRWData *)&sample->data);
501 }
502 }
503 avifArrayDestroy(&decodeInput->samples);
504 avifFree(decodeInput);
505}
506
507// Returns how many samples are in the chunk.
508static uint32_t avifGetSampleCountOfChunk(const avifSampleTableSampleToChunkArray * sampleToChunks, uint32_t chunkIndex)

Callers 2

Calls 3

avifRWDataFreeFunction · 0.85
avifArrayDestroyFunction · 0.85
avifFreeFunction · 0.85

Tested by

no test coverage detected