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

Function avifPropertyArrayFind

src/read.c:199–208  ·  view source on GitHub ↗

Finds the first property of a given type.

Source from the content-addressed store, hash-verified

197
198// Finds the first property of a given type.
199static const avifProperty * avifPropertyArrayFind(const avifPropertyArray * properties, const char * type)
200{
201 for (uint32_t propertyIndex = 0; propertyIndex < properties->count; ++propertyIndex) {
202 const avifProperty * prop = &properties->prop[propertyIndex];
203 if (!memcmp(prop->type, type, 4)) {
204 return prop;
205 }
206 }
207 return NULL;
208}
209
210AVIF_ARRAY_DECLARE(avifExtentArray, avifExtent, extent);
211

Calls

no outgoing calls

Tested by

no test coverage detected