OSDN Git Service

genX_mfd: remove one-to-one mapping for picture_type
authorcarpalis <jerome.borsboom@carpalis.nl>
Sun, 22 Oct 2017 17:53:11 +0000 (19:53 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 5 Jan 2018 06:57:31 +0000 (14:57 +0800)
commit1591f6c1be689c5265cb5beab18c97771d056cb9
tree98142168df3fda8606c0d79ec4a531b655d8a619
parentfd7263aca3444401b82538e48b420310bcec5bb9
genX_mfd: remove one-to-one mapping for picture_type

In genX_mfd_vc1_pic_state, the logic of picture_type is not very clear
as it is mapped from the input range to the hardware range. The mapping,
however, is an identity mapping that, effectively, only maps a skipped
picture to a P picture. By putting the skipped picture logic explicitly
in the ocde, we can remove the unnecessary mapping and make the logic
much more clear.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
src/gen6_mfd.c
src/gen75_mfd.c
src/gen7_mfd.c
src/gen8_mfd.c