)]}'
{
  "commit": "db5d32c38b43e35cf18c04c3ebaa4fc8db407795",
  "tree": "6cf40e44cd95648a9a1cb3f95d4aeeb35a737e65",
  "parents": [
    "6ab82d534323f9f99b2a056b3f9c8fae8075f16b"
  ],
  "author": {
    "name": "Maryla Ustarroz-Calonge",
    "email": "maryla@google.com",
    "time": "Tue Nov 03 09:49:13 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 03 09:49:13 2026 +0100"
  },
  "message": "Support gain map XMP metadata from recent Apple devices (#3444)\n\nBased on the the sample file from #3440 shot on an iPhone 17, it seems that\nrecent iPhones now encode gain map metadata using (mostly) the standard XMP format\nfrom the Android spec, but slightly different from what the libavif code expected,\nand was therefore not detected. The metadata ALSO includes the legacy Apple\nXML gain map  \"HDRGainMapHeadroom\" property, which was detected, but this format\ndoes not provide values for other metadata properties which where then wrongly\nassumed to have default values.\n\nThe XML did not match expectations because:\n- it uses a child element for the Version where we expected a property\n- it uses version \"1\" where we expected \"1.0\"\n- it uses Base/AlternateHeadroom instead of the standard HDRCapacityMin/Max\n- it uses \"0\" and \"1\" for booleans where we expected \"true\"/\"false\"\n\nFixes #3440",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cd9e061aa689ca5f47938de776409ec97b336971",
      "old_mode": 33188,
      "old_path": "apps/shared/avifjpeg.c",
      "new_id": "2b96fee9d7904704609b85259dee60e1fed92247",
      "new_mode": 33188,
      "new_path": "apps/shared/avifjpeg.c"
    },
    {
      "type": "modify",
      "old_id": "31499f51abf3c2b803671db12f9b2ab3fd2a755c",
      "old_mode": 33188,
      "old_path": "tests/data/README.md",
      "new_id": "6bc284ced4935bfb2ec6ee79b513bad23fa11708",
      "new_mode": 33188,
      "new_path": "tests/data/README.md"
    },
    {
      "type": "rename",
      "old_id": "2f5da6ecb965814e1b311ce6026428025f5d6929",
      "old_mode": 33188,
      "old_path": "tests/data/apple_gainmap_old.jpg",
      "new_id": "2f5da6ecb965814e1b311ce6026428025f5d6929",
      "new_mode": 33188,
      "new_path": "tests/data/apple_gainmap_v1.jpg",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "f39bd94c21dc556d9a729c089acbfe2accc3886a",
      "old_mode": 33188,
      "old_path": "tests/data/apple_gainmap_new.jpg",
      "new_id": "f39bd94c21dc556d9a729c089acbfe2accc3886a",
      "new_mode": 33188,
      "new_path": "tests/data/apple_gainmap_v2.jpg",
      "score": 100
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "06c51ef925b8b7577ed84b287bd51b06b231b215",
      "new_mode": 33188,
      "new_path": "tests/data/apple_gainmap_v3.jpg"
    },
    {
      "type": "delete",
      "old_id": "0413d8b4b543044707d8b6d25979bb229e30a23a",
      "old_mode": 33188,
      "old_path": "tests/data/goldens/apple_gainmap_old.jpg.avif.xml",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "copy",
      "old_id": "734854db585bd08bf2620262a6ed2112bd4e3752",
      "old_mode": 33188,
      "old_path": "tests/data/goldens/apple_gainmap_new.jpg.avif.xml",
      "new_id": "bfe1994b5f48fcba7023596655c0e14aca517b4b",
      "new_mode": 33188,
      "new_path": "tests/data/goldens/apple_gainmap_v1.jpg.avif.xml",
      "score": 99
    },
    {
      "type": "copy",
      "old_id": "734854db585bd08bf2620262a6ed2112bd4e3752",
      "old_mode": 33188,
      "old_path": "tests/data/goldens/apple_gainmap_new.jpg.avif.xml",
      "new_id": "ff9b3ee34bf356a0ab7a8816be752cfaafef0f5a",
      "new_mode": 33188,
      "new_path": "tests/data/goldens/apple_gainmap_v2.jpg.avif.xml",
      "score": 99
    },
    {
      "type": "rename",
      "old_id": "734854db585bd08bf2620262a6ed2112bd4e3752",
      "old_mode": 33188,
      "old_path": "tests/data/goldens/apple_gainmap_new.jpg.avif.xml",
      "new_id": "0aa7dd909e98795424383ed3ad4a5325d9748d84",
      "new_mode": 33188,
      "new_path": "tests/data/goldens/apple_gainmap_v3.jpg.avif.xml",
      "score": 99
    },
    {
      "type": "modify",
      "old_id": "12fa468c9fa61a9771ffd5c9a944097b1d0556bc",
      "old_mode": 33188,
      "old_path": "tests/gtest/avifjpeggainmaptest.cc",
      "new_id": "97fbdf80131a26b95deee1f7c5908963f674da02",
      "new_mode": 33188,
      "new_path": "tests/gtest/avifjpeggainmaptest.cc"
    },
    {
      "type": "modify",
      "old_id": "b138b0e852b503c14dbbb15297eb58fc3b10b9fc",
      "old_mode": 33188,
      "old_path": "tests/test_cmd_enc_gainmap_boxes_golden.sh",
      "new_id": "e4ba9a10cfa58bb9839a7279937ed01f6fc3602e",
      "new_mode": 33188,
      "new_path": "tests/test_cmd_enc_gainmap_boxes_golden.sh"
    }
  ]
}
