aml-v4l2: CF1 capture buf num remain the same when resolution change [2/2]

PD#SWPL-108744

Problem:
capture buf num will not remain the same when resolution change
Continuously seeking across resolutions
will cause the instantaneous buffer num to exceed the limit value

Solution:
reduce margin to 4
Dynamically adjust the max bufs num of current other pool
according the last other pool's outstanding buf num
Since the display occupies up to 2 frames
Therefore, maintain last 2 other bp can contain the most extreme scenes:
each resolution contains only one frame

Verify:
(detail info)

Change-Id: Idad8ded77000cb735b1b0306943df40784682770
Signed-off-by: xuesong.jiang <xuesong.jiang@amlogic.com>
6 files changed