Intra Prediction

Intra prediction of H.264

Intra prediction mode是利用周圍已解的像素,如下圖大寫的英文字母

部分,根據各個mode依不同的角度來作預測.

    luma prediction modes

 提供兩個方法,分別以4x4及16x16為單位的區塊來作預測.

 

 

 

 

 

 

 

 

a.4x4 luma prediction mode

 

4x4block為單位的有九種不同的模式,分別為:

 ?          Mode 0 (vertical)

第一行的四個點的預測分別利用

A-a, A-e, A-i, A-m得到的差值

進行編碼,其他行B,C,D同理依此

類推,右圖為mode 0的示意圖

?          Mode 1 (horizontal

第一列四個點的預測

分別利用I-a, I-b, I-c,

I-d的差值進行編碼,其他

J,K,L依此類推,右圖

mode 1的示意圖

?         

Mode 2 (DC)

利用(A+B+C+D+I+J+K+L)/8這

八點的平均值減去a~p的差值

來作編碼,右圖為mode 2的

示意圖

?          Mode 3 (Diagonal Down-Left  45°)

a是由(A+2B+C+2)/4預測而來的

b,e是由(B+2C+D+2)/4預測而來的

c,f,i是由(C+2D+E+2)/4預測而來的

d,g,j是由(D+2E+F+2)/4預測而來的

h,k,n是由(E+2G+H+2)/4預測而來的

l,o是由(F+2G+H+2)/4預測而來的

p是由(G+3H+2)/4預測而來的

右圖為mode 3的示意圖

?          Mode 4 (Diagonal Down-Right 45°)

The samples are extrapolated at a

45 degree angle down and to the

right同理如上,右圖為mode 4 的示意圖

?         

Mode 5 (Vertical-Left 26.6°)

Extrapolation at an angle of

approximately 26.6 degree to

the left of vertical.右圖為

mode 5的示意圖

?         

Mode 6 (Horizontal-Down 26.6°)

  Extrapolation at an angle of

approximately 26.6 degree below

horizontal.右圖為 mode 6的示意圖

?         

Mode 7 (Vertical-Right 26.6°)

Extrapolation(or interpolation)

at an angle of approximately 26.6

degree to the right of vertical.

右圖為 mode 7的示意圖

?         

Mode 8 (Horizontal-Up 26.6

Interpolation at an angle of

approximately 26.6 degree above

horizontal.右圖為 mode 8的示意圖

 

b. 16x16 luma prediction modes

另外以16x16區塊為單位的有四個modes:

Mode 0 (vertical): extrapolation from upper samples(H)

Mode 1 (horizontal): extrapolation from left samples(V)

Mode 2 (DC): mean of upper and left-hand samples(H+V)

Mode 3 (Plane): a linear “plane” function is fitted to the upper and left-hand samples H and V. ( This works well in areas of smoothly-varying luma)

下圖為四個modes的示意圖

chrominance prediction modes

 H.264 also supports four 8x8 chrominance prediction modes (DC,   

Vertical, Horizontal and Planar)

投 票

觉得本文不错,投一票   

评 论


验证码: 看不清?换一张