vpp: including crop info when AFBC switch to normal frame [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Tue, 26 Mar 2019 11:13:27 +0000 (19:13 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 27 Mar 2019 06:56:49 +0000 (23:56 -0700)
commit3ae164f02066ab8f4b6070641a0363ab1c39e5d7
treeb05848b97863295e245bca818f595dd9b7afa1c6
parenta7b67babbc7fb1383f37ff5715d0bb30c7a3ddb4
vpp: including crop info when AFBC switch to normal frame [1/1]

PD#SWPL-6347

Problem:
When AFBC switch to normal frame, excluding the crop information, the pps
parameters are calculated with wrong input size.

Solution:
1.Add the crop information, when afbc swicth to normal frame.
2.check ratio of compress_width/width, sync to crop value

Verify:
verified on x301

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