OSDN Git Service

Use f_code to determine max MV length
authorMark Thompson <sw@jkqxz.net>
Wed, 25 Apr 2018 22:44:33 +0000 (23:44 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Sat, 28 Apr 2018 08:15:40 +0000 (16:15 +0800)
commit40b15a5c6c0103c23a5db810aef27cf75d0b6723
treed0481f8945d6ce2a43968ed7a196286cdfc2132b
parentfab8943a42d31293191a8365f8813365c2afc0ab
Use f_code to determine max MV length

The motion vector length is constrained by the level but not set by it -
we should instead use the f_code values to set the max MV length.

This fixes encoding when the f_code values are not set to the highest
allowed for the level, and also adds support for intermediate levels such
as High 1440 which were not previously handled here.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
src/gen6_mfc_common.c