amstream: add pts checkin for no parser mode. [2/2]
authorshihong.zheng <shihong.zheng@amlogic.com>
Wed, 15 Jul 2020 06:04:42 +0000 (14:04 +0800)
committershihong.zheng <shihong.zheng@amlogic.com>
Wed, 26 Aug 2020 03:14:59 +0000 (11:14 +0800)
commit36114cbdb1be36d7446c8d309de9d902d97a9765
tree08c39dc1cea8ce068cbef070f78429f13dcb8b24
parentb4a59a5a3bd601c51de5971623116b33c26f9b58
amstream: add pts checkin for no parser mode. [2/2]

PD#SWPL-25652

Problem:
1. pts checkin with error offset in no parser mode.
2. decode driver output offset for no pts server mode.

Solution:
1. add stream offset, and update the checkin interface;
2. lookup pts when set use pts server enable;
3. when not use pts server, the pts_us64 in vf is offset.

Verify:
AH219

Change-Id: Ie5ea52decb4bad162f3526f03e714244a0481c3d
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
13 files changed:
drivers/frame_provider/decoder/avs2/vavs2.c
drivers/frame_provider/decoder/avs_multi/avs_multi.c
drivers/frame_provider/decoder/h264_multi/vmh264.c
drivers/frame_provider/decoder/h265/vh265.c
drivers/frame_provider/decoder/mjpeg/vmjpeg_multi.c
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c
drivers/frame_provider/decoder/utils/vdec.c
drivers/frame_provider/decoder/vp9/vvp9.c
drivers/stream_input/amports/amstream.c
drivers/stream_input/amports/stream_buffer_base.c
drivers/stream_input/amports/stream_buffer_interface.c
drivers/stream_input/amports/streambuf.h