Decoding ISO/IEC 23008-12 `irot` Anti-Clockwise Angles & Transformative Property Order
Anti-Clockwise `irot` vs Clockwise EXIF Conventions
Engineers accustomed to TIFF/EXIF often misread raw HEIF rotation bytes because the two standards measure positive angles in opposite directions. In ISO/IEC 23008-12 Section 6.5.10, the two least-significant bits of the 1-byte irot payload encode an anti-clockwise (counter-clockwise) multiple of 90 degrees: value 1 rotates 90 degrees anti-clockwise (equivalent to EXIF Orientation 8), whereas value 3 rotates 270 degrees anti-clockwise (90 degrees clockwise, equivalent to EXIF Orientation 6).
Furthermore, the exact order of associations inside ItemPropertyAssociation (ipma) is normative. When an image combines clean-aperture cropping (clap), rotation (irot), and mirroring (imir), compliant decoders must evaluate transformative properties in the exact sequence listed for that item ID in ipma.
- Extracts exact byte offset and 2-bit angle index of every irot box inside ipco.
- Lists the complete E/N (essential vs non-essential) ipma chain per visual item.
- Verifies that thumbnail and auxiliary items do not inherit master irot unless explicitly associated.
Case Study: `rotated-aux-thumb.heic`
In Fixture C, Master Item 1 associates with E:4(irot = 90 deg CCW) and renders at 24×32, whereas Thumbnail Item 2 (8×6) and Depth Item 3 (16×12) omit property 4 and attach their own clap boxes instead.