)]}'
{
  "commit": "05acd5cd25af0d4de6d41ba143f1a29d5ec89dd7",
  "tree": "e336a5bf5745b40711af96258c6111e141c74c68",
  "parents": [
    "9532a9df0763402e4d509cc6a92fff683dcff3b7"
  ],
  "author": {
    "name": "Ihor Buhaiov",
    "email": "freedbrt@gmail.com",
    "time": "Mon Nov 02 12:17:18 2026 +0100"
  },
  "committer": {
    "name": "Marco Paniconi",
    "email": "marpan@google.com",
    "time": "Wed Nov 04 14:24:11 2026 -0800"
  },
  "message": "Hash IntraBC blocks up to 8x8 in one pass\n\nThe IntraBC hash table build made one pass over the tile per block\nsize. The 2x2 pass wrote a value for every pixel into a frame sized\nbuffer, the 4x4 pass read it and wrote a second one, and the 8x8 pass\nread that and wrote the first one again. Each buffer has 4 bytes per\npixel, 15 MB at 2560x1440, so most of the time went into memory\ntraffic.\n\nDo the 2x2, 4x4 and 8x8 steps in one pass, row by row. A 4x4 hash only\nneeds the 2x2 rows 0 and 2 below it, and an 8x8 hash the 4x4 rows 0\nand 4 below it. Keep only the last 3 rows of 2x2 values and 5 rows of\n4x4 hashes, 80 KB at 2560 wide, and write only the 8x8 hashes to the\nframe buffer. When the 4x4 table is built too, the 4x4 hashes go to\nthe second frame buffer instead of the ring. The sizes above 8x8 keep\ntheir passes, which start from the 8x8 hashes. The second buffer is\nnow only allocated when the 4x4 table or the sizes above 8x8 need it,\nso RT speed 11 allocates one instead of two.\n\nav1_combine_block_hashes() now hashes one row and takes the two source\nrows as separate pointers, since the rows of a ring buffer are not a\nfixed stride apart.\n\nThe hashes, the tables and the stream don\u0027t change. Packet hashes\nmatch before and after for RT speed 11 and all intra speed 6 and 2, 8\nbit and 10 bit, 4:2:0 and 4:4:4, 1 and 4 threads with 2x2 tiles, and\nthe encoder and decoder reconstructions match. A new unit test checks\nthe pass against av1_get_block_hash_value() on regions of odd sizes\nand offsets.\n\nTiming on an Apple M3 Pro at RT speed 11 with IntraBC on, every frame\na key frame, 4 screen recordings from 1920x1080 to 2560x1440, 10\ninterleaved rounds of 10 frames, medians per clip. The table build is\nthe hash passes plus the fill. Key frames are CPU time at 1 thread and\nwall time at 4 threads with 2x2 tiles. Less time than before, as\nranges over the clips:\n\n                          4:2:0             4:4:4\n  table build 1 thread    7.4 to 14.1%      8.4 to 11.0%\n  table build 4 threads   8.8 to 20.0%      8.4 to 21.3%\n  key frame 4 threads     0.2 to 5.8%       0.1 to 3.8%\n\nThe build saves 0.8 to 1.6 ms per key frame at 1 thread. The key frame\nCPU time at 1 thread is within the noise of the runs, between 1.3%\nless and 0.9% more for 4:2:0 and up to 1.7% less for 4:4:4.\n\nBug: 576320193\nChange-Id: I1b640ab0c42e7643f6b38d569263e14f2218d6d3\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b71c34776424ca549ad466c948ac56a59f826518",
      "old_mode": 33188,
      "old_path": "av1/common/av1_rtcd_defs.pl",
      "new_id": "b0851bb0dae683f9a50e697575f0fa65e04acfc9",
      "new_mode": 33188,
      "new_path": "av1/common/av1_rtcd_defs.pl"
    },
    {
      "type": "modify",
      "old_id": "6b2baec2dd8b7463a2769d78306c526cd4802ffe",
      "old_mode": 33188,
      "old_path": "av1/encoder/arm/hash_arm_crc32.c",
      "new_id": "18fc79229fed044829538798f69b2edf197ed4ce",
      "new_mode": 33188,
      "new_path": "av1/encoder/arm/hash_arm_crc32.c"
    },
    {
      "type": "modify",
      "old_id": "072d730c87d74180650efa8e2e35aa90cb924b59",
      "old_mode": 33188,
      "old_path": "av1/encoder/encodeframe.c",
      "new_id": "8b0a1addec5be58ab1c5893c3bb8fde5dbcd9aae",
      "new_mode": 33188,
      "new_path": "av1/encoder/encodeframe.c"
    },
    {
      "type": "modify",
      "old_id": "6fae8465c76e59ae1b1e86ac6118c87e59842777",
      "old_mode": 33188,
      "old_path": "av1/encoder/hash.c",
      "new_id": "fe911dae68081bb0dfcb0181923c9b582d743f34",
      "new_mode": 33188,
      "new_path": "av1/encoder/hash.c"
    },
    {
      "type": "modify",
      "old_id": "eaf9633e8fe7c1a5ac08073e52b01def7a58b1da",
      "old_mode": 33188,
      "old_path": "av1/encoder/hash_motion.c",
      "new_id": "f20c221305cb1014afc90d6035e87a5d835c754c",
      "new_mode": 33188,
      "new_path": "av1/encoder/hash_motion.c"
    },
    {
      "type": "modify",
      "old_id": "c7b14593e06c5108973ecf9c2fe3f92216c287bf",
      "old_mode": 33188,
      "old_path": "av1/encoder/hash_motion.h",
      "new_id": "1c2af68abc0367951bcca6aaab8f93ac993cf778",
      "new_mode": 33188,
      "new_path": "av1/encoder/hash_motion.h"
    },
    {
      "type": "modify",
      "old_id": "1f7d3181a317a44e457127e25a80fda8db54c0fb",
      "old_mode": 33188,
      "old_path": "av1/encoder/x86/hash_sse42.c",
      "new_id": "31551e34174162b599e6df42539d7b9a18a1b85c",
      "new_mode": 33188,
      "new_path": "av1/encoder/x86/hash_sse42.c"
    },
    {
      "type": "modify",
      "old_id": "e481203145dbfcd0ca544919651a4edc65a16e19",
      "old_mode": 33188,
      "old_path": "test/hash_test.cc",
      "new_id": "1f50f06afc72fad7b0aff27ff666a1255dbd66c2",
      "new_mode": 33188,
      "new_path": "test/hash_test.cc"
    }
  ]
}
