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

Function avifPushConstant

src/sampletransform.c:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60// Recipe to expression
61
62static avifBool avifPushConstant(avifSampleTransformExpression * expression, int32_t constant)
63{
64 avifSampleTransformToken * token = (avifSampleTransformToken *)avifArrayPush(expression);
65 if (token == NULL) {
66 return AVIF_FALSE;
67 }
68 token->type = AVIF_SAMPLE_TRANSFORM_CONSTANT;
69 token->constant = constant;
70 return AVIF_TRUE;
71}
72static avifBool avifPushInputImageItem(avifSampleTransformExpression * expression, uint8_t inputImageItemIndex)
73{
74 avifSampleTransformToken * token = (avifSampleTransformToken *)avifArrayPush(expression);

Callers 1

Calls 1

avifArrayPushFunction · 0.85

Tested by

no test coverage detected