It is simple that the first element of the discrete cosine transform (DCT) is a constant or direct current, which is the average value of a pixel. The remaining elements, members of AC or AC, are independent of the average. Therefore, if you add the same number to all pixel values, only the DC-DC DCT will change. AC conditions have not changed.
This is similar to filtering the DC component of the signal with a capacitor, allowing only AC components to pass through.
source share