Intermediate function used to safely destroy temporary buffers even in case of error.
| 6925 | |
| 6926 | // Intermediate function used to safely destroy temporary buffers even in case of error. |
| 6927 | static avifResult avifDecoderApplySampleTransformForPlanes(const avifDecoder * decoder, avifPlanesFlag planes, avifImage * dstImage) |
| 6928 | { |
| 6929 | avifImage * toDestroy[AVIF_SAMPLE_TRANSFORM_MAX_NUM_INPUT_IMAGE_ITEMS] = { NULL }; |
| 6930 | const avifResult result = avifDecoderApplySampleTransformForPlanesImpl(decoder, planes, dstImage, toDestroy); |
| 6931 | for (uint32_t i = 0; i < AVIF_SAMPLE_TRANSFORM_MAX_NUM_INPUT_IMAGE_ITEMS; ++i) { |
| 6932 | if (toDestroy[i] != NULL) { |
| 6933 | avifImageDestroy(toDestroy[i]); |
| 6934 | } |
| 6935 | } |
| 6936 | return result; |
| 6937 | } |
| 6938 | |
| 6939 | static avifResult avifDecoderApplySampleTransform(const avifDecoder * decoder, avifImage * dstImage) |
| 6940 | { |
no test coverage detected