I should note that the purpose of hadamard_ac in x264 was to avoid biasing towards any particular transform by averaging the 8x8 and 4x4 hadamard sums -- this might need to be tweaked for x265, since there's more transform sizes available. Jason