Accelerate the thumbnail extraction when the sync-frame duration is long

BZ: 58036

When the sync frame duration is very long in the test clips, the
thumbnail extration will be very slow. Because the program will
have to decode from the previous sync-frame to the desired frame.
If end user presses the exit button before the thumbnail
extraction finishes, sometimes ANR will happen.

In this patch, if the desized frame's timestamp is 3secs larger
than the previous sync-frame, we will choose to use the sync-frame
as the thumbnail.

Change-Id: Ia6c2f31fce13bb0af35f4c72cd8600f3540d87c3
Signed-off-by: wfeng6 <>
Reviewed-by: Guo, Nana N <>
Reviewed-by: Tang, Richard <>
Reviewed-by: Jiang, Fei <>
Reviewed-by: Chen, Tianmi <>
Reviewed-by: Ding, Haitao <>
Tested-by: Ding, Haitao <>
Reviewed-by: buildbot <>
Tested-by: buildbot <>
1 file changed