[Libva] display_order vs encode_order

Xiang, Haihao haihao.xiang at intel.com
Wed Mar 18 19:31:11 PDT 2015


On Wed, 2015-03-18 at 18:39 -0700, Shi Yan wrote:
> Hello there,
> 
> 
> I'm trying to learn libva video encoding. Since the pdf document is
> outdated, I have to learn the example encoder code.
> 
> 
> I noticed two kinds of orders, one is called encode_order, the other
> is called display_order. I can't understand the later one.
> 
> 
> how come the display order be different than encode_order? if I encode
> a video in the order of 0 1 2 3 4 5 ... Shouldn't we display them in
>  the same order?

The stream is encoded in a different order than it is displayed if
there are B frames.

E.g, 

                0    1    2    3    4    5    6
display order   I(0) B(1) B(2) P(3) B(4) B(5) P(6)
encoding order  I(0) P(3) B(1) B(2) P(6) B(4) B(5)


> Could you explain it to me? Thanks!
> 
> 
> 
> 
> _______________________________________________
> Libva mailing list
> Libva at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libva




More information about the Libva mailing list