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

Function avifDecoderApplySampleTransformForPlanes

src/read.c:6927–6937  ·  view source on GitHub ↗

Intermediate function used to safely destroy temporary buffers even in case of error.

Source from the content-addressed store, hash-verified

6925
6926// Intermediate function used to safely destroy temporary buffers even in case of error.
6927static 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
6939static avifResult avifDecoderApplySampleTransform(const avifDecoder * decoder, avifImage * dstImage)
6940{

Callers 1

Tested by

no test coverage detected