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

Function avifDecoderCreate

src/read.c:5074–5088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5072// ---------------------------------------------------------------------------
5073
5074avifDecoder * avifDecoderCreate(void)
5075{
5076 avifDecoder * decoder = (avifDecoder *)avifAlloc(sizeof(avifDecoder));
5077 if (decoder == NULL) {
5078 return NULL;
5079 }
5080 memset(decoder, 0, sizeof(avifDecoder));
5081 decoder->maxThreads = 1;
5082 decoder->imageSizeLimit = AVIF_DEFAULT_IMAGE_SIZE_LIMIT;
5083 decoder->imageDimensionLimit = AVIF_DEFAULT_IMAGE_DIMENSION_LIMIT;
5084 decoder->imageCountLimit = AVIF_DEFAULT_IMAGE_COUNT_LIMIT;
5085 decoder->strictFlags = AVIF_STRICT_ENABLED;
5086 decoder->imageContentToDecode = AVIF_IMAGE_CONTENT_DECODE_DEFAULT;
5087 return decoder;
5088}
5089
5090static void avifDecoderCleanup(avifDecoder * decoder)
5091{

Callers 15

begin_loadFunction · 0.85
mainFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
ReadImageFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
CreateDecoderAndParseFunction · 0.85
runIOTestsFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
GetIoStatsFromEncodeFunction · 0.85

Calls 1

avifAllocFunction · 0.85

Tested by 15

runIOTestsFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
GetIoStatsFromEncodeFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
EncodeDecodeGridFunction · 0.68
DecodeIncrFunction · 0.68