vpp: set default aspect when the ratecontrol is zero [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Wed, 22 May 2019 14:03:43 +0000 (22:03 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 23 May 2019 05:49:42 +0000 (22:49 -0700)
commit1cd025d5fa173aa23842f004068c5e5dd0c7c5a7
tree548d6d1965e6f03ac19eedbafcef1819ccf538b6
parent1cf9d6149cb31ab139a749df9dea74fc045e4c9a
vpp: set default aspect when the ratecontrol is zero [1/1]

PD#TV-5266

Problem:
Vpp used the wrong aspect ratio in 3D, screen mode = normal
and aspect ratio is 0 in ratecontrol variable.

Solution:
When the aspect ratio is 0, set the default value as
(height << 8) / width

Verify:
Verified by x301

Change-Id: I34f7cd3ce5ed1818d3090ebb4be934225038625e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/video_sink/vpp.c