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

Function avifDecoderCleanup

src/read.c:5090–5102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5088}
5089
5090static void avifDecoderCleanup(avifDecoder * decoder)
5091{
5092 if (decoder->data) {
5093 avifDecoderDataDestroy(decoder->data);
5094 decoder->data = NULL;
5095 }
5096
5097 if (decoder->image) {
5098 avifImageDestroy(decoder->image);
5099 decoder->image = NULL;
5100 }
5101 avifDiagnosticsClearError(&decoder->diag);
5102}
5103
5104void avifDecoderDestroy(avifDecoder * decoder)
5105{

Callers 2

avifDecoderDestroyFunction · 0.85
avifDecoderParseFunction · 0.85

Calls 3

avifDecoderDataDestroyFunction · 0.85
avifImageDestroyFunction · 0.85

Tested by

no test coverage detected