| 479 | // avifCodecDecodeInput |
| 480 | |
| 481 | avifCodecDecodeInput * 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 | |
| 495 | void avifCodecDecodeInputDestroy(avifCodecDecodeInput * decodeInput) |
| 496 | { |
no test coverage detected