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

Function avifParseImageSpatialExtentsProperty

src/read.c:2474–2483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2472}
2473
2474static avifBool avifParseImageSpatialExtentsProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen, avifDiagnostics * diag)
2475{
2476 BEGIN_STREAM(s, raw, rawLen, diag, "Box[ispe]");
2477 AVIF_CHECK(avifROStreamReadAndEnforceVersion(&s, /*enforcedVersion=*/0, /*flags=*/NULL));
2478
2479 avifImageSpatialExtents * ispe = &prop->u.ispe;
2480 AVIF_CHECK(avifROStreamReadU32(&s, &ispe->width));
2481 AVIF_CHECK(avifROStreamReadU32(&s, &ispe->height));
2482 return AVIF_TRUE;
2483}
2484
2485static avifBool avifParseAuxiliaryTypeProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen, avifDiagnostics * diag)
2486{

Callers 1

Calls 2

avifROStreamReadU32Function · 0.85

Tested by

no test coverage detected