)]}'
{
  "commit": "b98ccec5779f836f37e75a1baae1114dad44626e",
  "tree": "99223640d955bb6eb94d01482d0cec282a8d6bac",
  "parents": [
    "84877ce80853dba082fc90ecd16380a7428cbae4"
  ],
  "author": {
    "name": "Ihor Buhaiov",
    "email": "freedbrt@gmail.com",
    "time": "Thu Oct 22 08:54:41 2026 +0200"
  },
  "committer": {
    "name": "Marco Paniconi",
    "email": "marpan@google.com",
    "time": "Thu Nov 12 18:10:49 2026 -0800"
  },
  "message": "rtc: Set the active map up again on config change\n\nav1_change_config() calls av1_reset_segment_features(), which turns\nsegmentation off. It runs on every aom_codec_enc_config_set() and on\nevery control that updates the encoder config, like AOME_SET_CPUUSED.\nAn active map that was set once stays enabled, but active_map.update is\n0, so av1_apply_active_map() doesn\u0027t set it up again. From then on the\ninactive blocks are coded like active ones, until the app sets the map\nagain.\n\nWith aq mode 3, cyclic refresh keeps segmentation on because the map\nis enabled, but no segment has features left. Blocks that keep a\ncyclic refresh segment id then hit the assert in av1_neg_interleave()\nin a debug build.\n\nSet active_map.update to active_map.enabled there, so the next frame\napplies the map again if one is set. The map only fits the frame size\nit was set for, so store that size in mi units. av1_change_config() and\nav1_apply_active_map() turn the map off when the frame size differs,\nlike on intra only frames, and realloc_segmentation_maps() turns it off\nbecause it clears the map. The size before the config change can\u0027t be\nused for this check. After an internally scaled frame it is the scaled\nsize, so a map set for 384x256 would be read with the stride of a\n192x128 frame once g_w and g_h are set to 192x128.\n\nRepro: 1280x720, noise in every block, 1120 of 3600 16x16 blocks\nactive, map set once on frame 1, speed 11, screen content, VBR q 8 to\n13 at 500 kbps, 2000 kbps set with aom_codec_enc_config_set() before\nframe 10, 1 thread. Unchanged inactive blocks and frame size:\n\n          frame 9          frame 10         frame 20\n  before  2480, 198.3 kB   0, 689.7 kB      0, 688.3 kB\n  after   2480, 198.3 kB   2480, 199.2 kB   2480, 198.1 kB\n\nWith 4 threads and in a default build all 2480 blocks stay unchanged\ntoo. Streams with the map set on every frame, with no config change,\nwith an ROI map or with no map are unchanged. 10 bit park_joy and\nscreendata, 4:2:0 and 4:4:4, 1 and 4 threads, aq mode 0 and 3, with a\nconfig change and with an internally scaled frame: no recon mismatch.\n\nAdd InactiveAreaTest.ActiveMapSetOnceConfigChange. Without this change\nall 40 cases fail from frame 30 on, and 16 of the 20 aq mode 3 cases\nhit that assert in a debug build. Add\nActiveMapScaledConfigTest.MapSetForFullSize for the scaled case. If\nthe check used the size before the config change, all 10 cases would\nskip every block once g_w and g_h change.\n\nChange-Id: I26a4dae57597736c10c37b1b82fd7ab014d0adb1\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fa9f81fca30da7429f97910360acf2e8f8a512c5",
      "old_mode": 33188,
      "old_path": "av1/encoder/encoder.c",
      "new_id": "de63f0b54b0bbf01641af7a3b559946d514e4772",
      "new_mode": 33188,
      "new_path": "av1/encoder/encoder.c"
    },
    {
      "type": "modify",
      "old_id": "19936386bfd972d22eef778cd2ad564a3b10f5b6",
      "old_mode": 33188,
      "old_path": "av1/encoder/encoder.h",
      "new_id": "60528d2bb3a106c3c0d3df96d27496c710d47757",
      "new_mode": 33188,
      "new_path": "av1/encoder/encoder.h"
    },
    {
      "type": "modify",
      "old_id": "ac1a6508a9eebe9d58f6f58a945908345edd2c64",
      "old_mode": 33188,
      "old_path": "av1/encoder/encoder_alloc.h",
      "new_id": "687237b3985c5e60383da252983ccc01fb978e55",
      "new_mode": 33188,
      "new_path": "av1/encoder/encoder_alloc.h"
    },
    {
      "type": "modify",
      "old_id": "7a478da97dcc57ed4f405646dd14e2aa06466feb",
      "old_mode": 33188,
      "old_path": "av1/encoder/encoder_utils.c",
      "new_id": "d0fd7dbf6e553b83ac936dc18a69af3bc504ce83",
      "new_mode": 33188,
      "new_path": "av1/encoder/encoder_utils.c"
    },
    {
      "type": "modify",
      "old_id": "ccdf4ff9dc3255150d6c6288b34e6fb9e6ea16e9",
      "old_mode": 33188,
      "old_path": "test/active_map_test.cc",
      "new_id": "32db7100acc226a8d95c5ab1141d537e98a286e5",
      "new_mode": 33188,
      "new_path": "test/active_map_test.cc"
    }
  ]
}
