Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
1st August 2016, 16:13 | #1 | Link |
Registered User
Join Date: Jul 2016
Posts: 17
|
how to calculate the intra prediction angle?
after reading this, I finally understand what intra prediction is.
Here, I give my knowledge about intra prediction mode 2 and 10. So, every sample locations are projected to a single reference row. However, I don't understand how to calculate special angle, such as 6. If I use , does it mean p is projected to N? (because 14/33 is closer to 2/5 not 3/5.) Can any one help me how to draw the line or how the formula apply? Also, I know for some special cases, if the projected pixel indexes is negative, I have to extend the reference row and column. But, again, how to project the left reference column to the extended reference row? (not 23, so the Fig.3 of Intra Coding of the HEVC Standard cannot work here) Thanks a lot. Last edited by asdf013cv; 1st August 2016 at 16:31. Reason: change the tag url to IMG |
2nd August 2016, 07:51 | #2 | Link |
Registered User
Join Date: Jul 2016
Posts: 17
|
OK.
I think I understand how it works. So I am here to give my answer, this is intra prediction mode 6 . The color is based on the arrow which is closer to the center of the block. Am I right? But I still don't understand the intra prediction mode 22 . Which block is the "?", K or L? And why? |
2nd August 2016, 09:59 | #3 | Link |
Registered User
Join Date: Sep 2014
Posts: 12
|
Down to this detail level, you need to read the spec, section 8.4.4.2.6 formula 8-48 extends the reference row by filling the negative indices of the ref row with the column data (AJKL...). For 4x4 mode 22, 8-48 applies just for ref[-1], which calculates to p[-1][1], which would be K.
And don't forget extrapolation (see formula 8-52). Your coloring would not make sense because each predicted sample would depend on 2 pixels in ref array. |
2nd August 2016, 15:55 | #4 | Link | |
Registered User
Join Date: Jul 2016
Posts: 17
|
Quote:
However, I have a problem while calculating Code:
ref[x]=p[-1+x][-1], x=nTbS+1..2*nTbS (8-49) x=4+1..2*4? 8 to 12? How could it be possible. What is real range for x? |
|
3rd August 2016, 07:20 | #5 | Link |
Registered User
Join Date: Jul 2016
Posts: 17
|
OK.
"nTbS+1..2*nTbS" means "nTbS+1 to 2*nTbS". if nTbS is 4, then it is "5 to 8". This is intra prediction 27 The color it not totally true (because the actual extrapolation is (30*B+2*C+16)/32), but the idea is almost correct. |
Tags |
hevc. h.265, intra-prediction |
Thread Tools | Search this Thread |
Display Modes | |
|
|