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

Function avifImageApplyOperations

src/sampletransform.c:390–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390avifResult avifImageApplyOperations(avifImage * dstImage,
391 avifSampleTransformBitDepth bitDepth,
392 uint32_t numTokens,
393 const avifSampleTransformToken tokens[],
394 uint8_t numInputImageItems,
395 const avifImage * inputImageItems[],
396 avifPlanesFlags planes)
397{
398 avifSampleTransformExpression expression = { 0 };
399 AVIF_CHECKERR(avifArrayCreate(&expression, sizeof(avifSampleTransformToken), numTokens), AVIF_RESULT_OUT_OF_MEMORY);
400 for (uint32_t t = 0; t < numTokens; ++t) {
401 avifSampleTransformToken * token = (avifSampleTransformToken *)avifArrayPush(&expression);
402 AVIF_ASSERT_OR_RETURN(token != NULL);
403 *token = tokens[t];
404 }
405 const avifResult result = avifImageApplyExpression(dstImage, bitDepth, &expression, numInputImageItems, inputImageItems, planes);
406 avifArrayDestroy(&expression);
407 return result;
408}

Callers 3

avifImageApplyImgOpConstFunction · 0.85
TEST_PFunction · 0.85

Calls 4

avifArrayCreateFunction · 0.85
avifArrayPushFunction · 0.85
avifImageApplyExpressionFunction · 0.85
avifArrayDestroyFunction · 0.85

Tested by 1

TEST_PFunction · 0.68