• Zoe Liu's avatar
    Refactor the code for reference frame flag setup · 368bf16d
    Zoe Liu authored
    At the encoder side, for the 7 reference frames, we always set up the
    priority rank as follows:
    LAST, ALTREF, LAST2, LAST3, GOLDEN, BWDREF, ALTREF2
    That is, if two reference frames point to the same reference frame
    buffer, the flag for the latter frame in the rank will always be
    turned off.
    
    This patch does not change any coding performance / coding speed for
    the default configure setup. It only affects the following setup:
    one-sided-compound is on && ext-comp-refs is off
    As one-sided-compound is enabled by default when ext-comp-refs is
    enabled, and ext-comp-refs is enabled by default, above setup should
    not be considered.
    
    Change-Id: I6de18d3be938e1d4a8897e5ba0857b8d21e7f9d0
    368bf16d
encoder.c 243 KB