author | Yixin Peng <yixin.peng@amlogic.com> | 2019-12-06 02:07:16 (GMT) |
---|---|---|
committer | Zhi Zhou <zhi.zhou@amlogic.com> | 2020-01-17 02:33:48 (GMT) |
commit | 4443fc37b2b7439cef3fe9ed80347f5061a0e552 (patch) | |
tree | c69a49e228b03f96648db943f404b262b3183b95 | |
parent | 58b2b74d09d712ba132c9391dbff7f25d7a9ba60 (diff) | |
download | media_modules-4443fc37b2b7439cef3fe9ed80347f5061a0e552.zip media_modules-4443fc37b2b7439cef3fe9ed80347f5061a0e552.tar.gz media_modules-4443fc37b2b7439cef3fe9ed80347f5061a0e552.tar.bz2 |
media_module: interlace file playback stuck [1/1]
PD#SWPL-17439
Problem:
Interlace file playback will stuck
Solution:
Since multiple vf are not supported in
v4l2 to correspond to a buffer, and there
is no di module at present, only one vf
is transmitted to the interlace source first,
and then how to implement it will be discussed
after adding di module to v4l2.
Verify:
U212
Change-Id: Ib5fb7f0dc8a4960ab3f7daff91ab88a0f53643e2
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
-rw-r--r-- | drivers/frame_provider/decoder/h264_multi/vmh264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c index 6b6260c..0426bd9 100644 --- a/drivers/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c @@ -2719,6 +2719,8 @@ int prepare_display_buf(struct vdec_s *vdec, struct FrameStore *frame) bForceInterlace = check_force_interlace(hw, frame); if (bForceInterlace) vf_count = 2; + if (hw->is_used_v4l) + vf_count = 1; hw->buffer_spec[buffer_index].vf_ref = 0; fill_frame_info(hw, frame); for (i = 0; i < vf_count; i++) { |