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

Function avifDecoderDataDestroy

src/read.c:1119–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1117}
1118
1119static void avifDecoderDataDestroy(avifDecoderData * data)
1120{
1121 if (data->meta) {
1122 avifMetaDestroy(data->meta);
1123 }
1124 for (uint32_t i = 0; i < data->tracks.count; ++i) {
1125 avifTrack * track = &data->tracks.track[i];
1126 if (track->sampleTable) {
1127 avifSampleTableDestroy(track->sampleTable);
1128 }
1129 if (track->meta) {
1130 avifMetaDestroy(track->meta);
1131 }
1132 }
1133 avifArrayDestroy(&data->tracks);
1134 avifDecoderDataClearTiles(data);
1135 avifArrayDestroy(&data->tiles);
1136 avifArrayDestroy(&data->compatibleBrands);
1137 avifFree(data);
1138}
1139
1140// This returns the max extent that has to be read in order to decode this item. If
1141// the item is stored in an idat, the data has already been read during Parse() and

Callers 2

avifDecoderDataCreateFunction · 0.85
avifDecoderCleanupFunction · 0.85

Calls 5

avifMetaDestroyFunction · 0.85
avifSampleTableDestroyFunction · 0.85
avifArrayDestroyFunction · 0.85
avifFreeFunction · 0.85

Tested by

no test coverage detected