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

Function avifCodecDecodeInputCreate

src/read.c:481–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479// avifCodecDecodeInput
480
481avifCodecDecodeInput * avifCodecDecodeInputCreate(void)
482{
483 avifCodecDecodeInput * decodeInput = (avifCodecDecodeInput *)avifAlloc(sizeof(avifCodecDecodeInput));
484 if (decodeInput == NULL) {
485 return NULL;
486 }
487 memset(decodeInput, 0, sizeof(avifCodecDecodeInput));
488 if (!avifArrayCreate(&decodeInput->samples, sizeof(avifDecodeSample), 1)) {
489 avifFree(decodeInput);
490 return NULL;
491 }
492 return decodeInput;
493}
494
495void avifCodecDecodeInputDestroy(avifCodecDecodeInput * decodeInput)
496{

Callers 1

Calls 3

avifAllocFunction · 0.85
avifArrayCreateFunction · 0.85
avifFreeFunction · 0.85

Tested by

no test coverage detected