vpp: use new interface to increase accuracy of ar calculation [1/2]
authorBrian Zhu <brian.zhu@amlogic.com>
Thu, 11 Apr 2019 08:16:35 +0000 (16:16 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:33:43 +0000 (14:33 +0800)
commit641f666a195e6d6f8b35a5fee83d07d30206bbb7
treefcab577eca7501b9a588474592afd92a84303d20
parent3247c71a71a9d088371cb6b712eba3c972d77c54
vpp: use new interface to increase accuracy of ar calculation [1/2]

PD#OTT-2068

Problem:
When playing 1280x128 video under normal screen mode, the aspect ratio from
decodec is not accurate enough by multipling 0x100. (128x256/1280=25.6).
Dropping 0.6 will cause height losing 9 lines.

Solution:
Using new interface to pass real ar width and height following steps:
1.Set old ar variable to 0x3ff as a trigger flag.
2.set the original ar value into sar_width and sar_height of vframe

Verify:
verified on franklin

Change-Id: I8a794edd968a76f198ee9cb168a7cfb858c858f8
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
drivers/amlogic/media/video_sink/vpp.c
include/linux/amlogic/media/vfm/vframe.h