prrt
12th January 2012, 11:30
I can't understand how to calculate intra chroma prediction samples in DC mode, 4:2:0, 8 bit (intra_chroma_prediction_mode = 0 and
coded_block_pattern = 31).
Pre-LP filter samples (U-plane) of macroblock 1 (i.e. the second macroblock from the beginning) from attached file test.h264 are:
...................... 135 135 135 135
...................... 135 135 135 135
...................... 135 135 135 135
...................... 135 135 135 135
128 128 128 128 block 3 ................
128 128 128 128 ......................
128 128 128 128 ......................
128 128 128 128 ......................
So I expect that predicted samples of block 3 (in raster scan) of this macroblock (bold sample) will be (128 + 128 + 128 + 128 + 135 + 135 + 135 + 135 + 4 ) >> 3 = 132 but it is 128.
Please, could you help me: how to calculate chroma predicted samples? Why is it 128 and not 132 in this test?
I attached this test h264 file.
coded_block_pattern = 31).
Pre-LP filter samples (U-plane) of macroblock 1 (i.e. the second macroblock from the beginning) from attached file test.h264 are:
...................... 135 135 135 135
...................... 135 135 135 135
...................... 135 135 135 135
...................... 135 135 135 135
128 128 128 128 block 3 ................
128 128 128 128 ......................
128 128 128 128 ......................
128 128 128 128 ......................
So I expect that predicted samples of block 3 (in raster scan) of this macroblock (bold sample) will be (128 + 128 + 128 + 128 + 135 + 135 + 135 + 135 + 4 ) >> 3 = 132 but it is 128.
Please, could you help me: how to calculate chroma predicted samples? Why is it 128 and not 132 in this test?
I attached this test h264 file.