Finds the first property of a given type.
| 197 | |
| 198 | // Finds the first property of a given type. |
| 199 | static 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 | |
| 210 | AVIF_ARRAY_DECLARE(avifExtentArray, avifExtent, extent); |
| 211 |
no outgoing calls
no test coverage detected