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

Function getInfeName

src/write.c:1232–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230static const char infeNameSampleTransform[] = "SampleTransform";
1231
1232static const char * getInfeName(avifItemCategory itemCategory)
1233{
1234 if (avifIsAlpha(itemCategory)) {
1235 return infeNameAlpha;
1236 }
1237 if (itemCategory == AVIF_ITEM_GAIN_MAP) {
1238 return infeNameGainMap;
1239 }
1240 if (itemCategory >= AVIF_SAMPLE_TRANSFORM_MIN_CATEGORY && itemCategory <= AVIF_SAMPLE_TRANSFORM_MAX_CATEGORY) {
1241 return infeNameSampleTransform;
1242 }
1243 return infeNameColor;
1244}
1245
1246// Adds the items for a single cell or a grid of cells. Outputs the topLevelItemID which is
1247// the only item if there is exactly one cell, or the grid item for multiple cells.

Callers 1

avifEncoderAddImageItemsFunction · 0.85

Calls 1

avifIsAlphaFunction · 0.85

Tested by

no test coverage detected