vdec: add calculation for duration [1/1]
authorapollo.ling <apollo.ling@amlogic.com>
Tue, 9 Jun 2020 10:07:49 +0000 (18:07 +0800)
committerApollo Ling <apollo.ling@amlogic.com>
Mon, 20 Jul 2020 12:15:10 +0000 (05:15 -0700)
commit833bb93df92e98e49e527bf0b36e80059746bd66
tree5f8b8609d092f9b380445b9f43ef17a509c54302
parent9787d42524cfe4bc4e58b7f75acd8bc9c349f3eb
vdec: add calculation for duration [1/1]

PD#SWPL-26472

Problem:
this is a new feature.

Solution:
Use the first 5 frame's pts to calculate the duration,
then compare to driver's duration,select the best one.

Verify:
ac214

Change-Id: I198fc7d761c08508c56bbe85fcd0ae8c71de37a0
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
drivers/frame_provider/decoder/utils/vdec.c