Difference between revisions of "H.264 Prediction"

From MultimediaWiki
Jump to navigation Jump to search
m (→‎Vertical: revised convention)
m (→‎Horizontal: revised convention)
Line 22: Line 22:
* RV40: mode 1
* RV40: mode 1


  A | B C D E
  D | T0 T1 T2 T3
  ----------------
  ---------------------
   F | F F F F
   L0 | L0 L0 L0 L0
   G | G G G G
   L1 | L1 L1 L1 L1
   H | H H H H
   L2 | L2 L2 L2 L2
   I | I I I I
   L3 | L3 L3 L3 L3


=== DC ===
=== DC ===

Revision as of 16:38, 29 July 2007

This page documents the various prediction methods used in H.264 and related formats such as Sorenson Video 3 and RealVideo 4.

4x4 Prediction Modes

Vertical

  • H.264: mode 0
  • SVQ3: mode 0
  • RV40: mode 0
  D | T0  T1  T2  T3
---------------------
 L0 | T0  T1  T2  T3
 L1 | T0  T1  T2  T3
 L2 | T0  T1  T2  T3
 L3 | T0  T1  T2  T3

Horizontal

  • H.264: mode 1
  • SVQ3: mode 1
  • RV40: mode 1
  D | T0  T1  T2  T3
---------------------
 L0 | L0  L0  L0  L0
 L1 | L1  L1  L1  L1
 L2 | L2  L2  L2  L2
 L3 | L3  L3  L3  L3

DC

  • H.264: mode 2
  • SVQ3: mode 2
  • RV40: mode 2
 A | B  C  D  E
----------------
 F | Z  Z  Z  Z
 G | Z  Z  Z  Z
 H | Z  Z  Z  Z
 I | Z  Z  Z  Z

where Z is computed as:

Z = (B + C + D + E + F + G + H + I + 4) / 8

Diagonal Down/Left

Diagonal Down/Right

Vertical/Right

Horizontal/Down

Vertical/Left

Horizontal/Up

Left/DC

Top/DC

DC-128

16x16 Prediction Modes

DC

Vertical

Horizontal

Plane

Left Mean