Nanxin Qin [Tue, 17 Dec 2019 09:04:06 +0000 (17:04 +0800)]
v4l: fixed the problem of multi plane addr [1/1]
PD#SWPL-13705
Problem:
1. HEBC/VP9 doesn't support multi planar buffer
2. revert limite the buffer number returned from REQBUFS
as some issue on the mediahal will to be fixed.
Solution:
Configure canvas correctly according to vdec_v4l2_buffer
Verify:
U212 with VP9/HEVC streamer playback
Change-Id: I0ba73005ae6e610d19eba7e8bed1b038022f7cd1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Hui Zhang [Tue, 28 Jan 2020 10:32:52 +0000 (18:32 +0800)]
avs: avs single mode use 8 bufs. [2/2]
PD#SWPL-17453
Problem:
vc1 format decoder need set 8 decoder output margin.
Solution:
1)add 8 refer buffers for vc1 decoder.
2) compatible with old 4 buf driver
ucode gerrit: 98011
ucode commit id: 3e888
Verify:
u212
Change-Id: I8bda273f55529f948ba532658793636bde6c315b
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Song Zhao [Wed, 18 Dec 2019 05:35:41 +0000 (21:35 -0800)]
v4l2: mpeg2: support multi-planar [1/1]
PD#SWPL-12624
Problem:
1. Enable V4L2 Mpeg2 decoder
2. Enable V4L2 Mpeg2 ucode parser to support secure mode
Solution:
* Use canvas linear mode
* Support NV21
* Add frame dump feature in aml_port
* Use width/heigh from IF layer before ucode is enable to parse it, it
will make sure canvas is correctly configured (not 0 width and height).
* Add 00 00 01 00 padding for every frame in unsecure mode
* pass buffer margin number from interface to decoder. Make sure
vdec_mpeg12_hw_s->buf_num and aml_vcodec_ctx->dpb_size are in sync.
* use completion to wait for decoder to parse the stream
* Also limite the buffer number returned from REQBUFS to ctx->dbp_size
It will prevent application from allocate more memory than enough.
Verify:
U212
Change-Id: Ib7542fccdde6a10f9ec38b5584b8b523d4d378dc
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
Zhiqiang Han [Sun, 19 Jan 2020 04:57:19 +0000 (12:57 +0800)]
sub: may sleep in irq-disabled [1/2]
PD#SWPL-20113
Problem:
may sleep in irq-disabled
Solution:
use self maintaining buf for sub pes channel
Verify:
Patchbuild
Change-Id: I12ebc0182c9789f026b0f31246d7ba99b01792ca
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
shihong.zheng [Mon, 10 Feb 2020 09:10:07 +0000 (17:10 +0800)]
vmpeg12: fix stream mode no frame ouput. [1/1]
PD#SWPL-20197
Problem:
mpeg12 no frame output in stream mode.
Solution:
fix bug condition in run.
Verify:
newton
Change-Id: I12a46256679421f4e5bf7297d5cfe798b6305aa9
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Nanxin Qin [Sat, 1 Feb 2020 10:37:37 +0000 (18:37 +0800)]
v4l: opitimize v4l debug module and interface unification. [1/1]
PD#SWPL-20310
Problem:
Opitimize v4l debug module and interface unification.
Solution:
opitimize v4l debug module and interface unification.
Verify:
u212
Change-Id: Ic7ee875c87389771505c838453dd2f5dd1c3e529
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Hui Zhang [Sat, 1 Feb 2020 11:55:45 +0000 (19:55 +0800)]
vmh264: bitstream cts case fail on Q
PD#SWPL-15890
Problem:
bitstream test case fail randomly
Solution:
1)for tiny picure (64 width), need disable Hw Cache
2)add ENABLE_WAIT_BUFDW_WRRSP
3)flush yuv buf cache after allocated
ucode gerrit : 98032
ucode commit : c1c101
Verify:
AC214
Change-Id: I8e845f4c87860b2495f7bbc40cec2f8156521e5c
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
apollo.ling [Tue, 7 Jan 2020 11:01:48 +0000 (19:01 +0800)]
decoder: Android P hardware/amlogic/media_modules coverity issue [1/1]
PD#SWPL-11723
Problem:
media_modules coverity issue
Solution:
According to the coverity reports, fix the decoder related issues
Verify:
u212
Change-Id: I7931abe2d10ff59282d6f1148d437b09ffabe70e
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Nanxin Qin [Tue, 14 Jan 2020 06:34:13 +0000 (14:34 +0800)]
h265: fixed the issue of release sequence. [1/1]
PD#SWPL-19283
Problem:
Irdeto and YouTube switch between each other, OTT restarts automatically
Solution:
1. it's wrong of release seq that the pic release after dec instance rm..
2. fixed some worring of kasan that caused by release sequece abnormal.
Verify:
ac214
Change-Id: I9a4347e94d9cbb16df295ed1b893e50bef99375b
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
apollo.ling [Mon, 20 Jan 2020 15:39:46 +0000 (23:39 +0800)]
vdec: add struct for getting multi-vdec information modules part [1/1]
PD#SWPL-1449
Problem:
sizeof in android P is unsined int but long unsigned int in Q
Solution:
covert sizeof type to u32
Verify:
u212
Change-Id: Iee31852ddbb3af61fd9636f2ccd39afb1253d8c7
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
apollo.ling [Sun, 29 Sep 2019 06:57:18 +0000 (14:57 +0800)]
vdec: add struct for getting multi-vdec information modules part [1/4]
PD#SWPL-1449
Problem:
need to implement a way to get multi-vdec information
Solution:
add new data struct to dynamically record each VDEC's information
Verify:
u212
Change-Id: I03cf0ff013e64b865dbd83cce85ff7abc43b15a4
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Nanxin Qin [Sun, 12 Jan 2020 09:08:17 +0000 (17:08 +0800)]
v4l: fixed video blurred when resolution change. [2/2]
PD#SWPL-19709
Problem:
Playback youtube 360vr video blurred screen when switch
Solution:
need to check the inst is valid when the res change.
Verify:
u212
Change-Id: I8d9f65a320e62568f470d0ed17621f9cfd5b6dd5
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Yixin Peng [Fri, 6 Dec 2019 02:07:16 +0000 (10:07 +0800)]
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>
miaohong chen [Thu, 16 Jan 2020 12:42:05 +0000 (20:42 +0800)]
vmh264: Solve the problem of picture shake [1/1]
PD#IPTV-5848
Problem:
local play "LHDMI--wumochou.ts" the video is judders
Solution:
Obtain the top and bottom field priority flags from the sei grammar
to determine whether to output the top or bottom field first.
Verify:
S905L2A
Change-Id: Id3dd99d90b782a97014c7b0f7b7b0c4c94537751
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Yixin Peng [Thu, 12 Dec 2019 02:43:44 +0000 (10:43 +0800)]
media_module: h264 playback freeze on v4l2. [1/1]
PD#SWPL-18089
Problem:
h264 playback freeze on v4l2.
Solution:
1. Solve the DPB size error of v4l2 parsing.
2. Solve the problem of v4l2 not detecting
the video switch.
Verify:
AC214
Change-Id: I31a7b91d604f3e7ef535f11c546a15b73e469da3
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
Hui Zhang [Sat, 11 Jan 2020 02:58:39 +0000 (10:58 +0800)]
vh265: some h265 stream playback stuck issue [1/1]
PD#SWPL-19329
Problem:
there is error in errors in some h265 stream which cause dpb overflow and
decoder can't get free buf to go on.
Solution:
1. force release error and output mark frames
2. if hard to release buf since error inside dpb, flush out dpb
Verify:
AC214
Change-Id: I9b603f13a94db13c91564d337b7e918a8a30391e
Hui Zhang [Thu, 16 Jan 2020 09:00:48 +0000 (01:00 -0800)]
Merge "Revert "vmh264: Solve the problem of picture shake [1/1]"" into amlogic-4.9-dev
Miaohong Chen [Thu, 16 Jan 2020 08:47:57 +0000 (00:47 -0800)]
Revert "vmh264: Solve the problem of picture shake [1/1]"
This reverts commit
a59d2f8c71f7322d2c91861b57b522a968aef030.
Change-Id: Ia5dc9ffc2211666e97796fb18f1e853cfa916e11
Rico Yang [Wed, 15 Jan 2020 06:10:54 +0000 (14:10 +0800)]
media_modules: fix hardfault in h264 encoder [1/1]
PD#SWPL-18911
Problem:
h264 encoder may encounter hardfault
Solution:
reset encoder after every frame
Verify:
verified on franklin
Change-Id: If1985e76b0edb191a848baee7e2644ea13d9648e
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
Nanxin Qin [Mon, 30 Dec 2019 03:27:44 +0000 (11:27 +0800)]
decode: the second part of local reset patches. [1/1]
PD#SWPL-18664
Problem:
optimize local reset when decode error happened.
Solution:
optimize local reset when decode error happened
Verify:
u212
Change-Id: I3a32c5a21e125a412167c839cd28cee108f1dcd0
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Zhiqiang Han [Mon, 13 Jan 2020 12:44:42 +0000 (20:44 +0800)]
sub: fixed crash in sub process [1/1]
PD#SWPL-19896
Problem:
obsolete virt addr
Solution:
renew the addr of sub buf on every vid start
Verify:
Patchbuild
Change-Id: I709192d0aa0a006a38ea89e5f2eb742c045e922e
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
miaohong chen [Tue, 14 Jan 2020 09:20:27 +0000 (17:20 +0800)]
vmh264: Solve the problem of picture shake [1/1]
PD#IPTV-5848
Problem:
local play "LHDMI--wumochou.ts" the video is judders
Solution:
Obtain the top and bottom field priority flags from the sei grammar
to determine whether to output the top or bottom field first.
Verify:
S905L2A
Change-Id: I6163c9e2a32e03d5d2f1ee7b2837a7735ac1c2c1
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Rain Zhang [Thu, 19 Sep 2019 22:46:14 +0000 (15:46 -0700)]
media_module: avs support multi instance for frame mode [1/1]
PD#SWPL-1471
Problem:
support multi instance for both stream and frame mode.
Solution:
1) support frame mode.
2) handle pts for frame base code.
3) fix print id bug if there are mult instances.
4) fix mosaic problem (need update ucode)
5) increase default buffer num to 8
ucode gerrit: 86236
ucode change id: Ia26e5
ucode commit id: 32c848
Verify:
U212
Change-Id: Ib35911731e73021818edd12877583394c571e9e8
Signed-off-by: Rain Zhang <rain.zhang@amlogic.com>
apollo.ling [Mon, 13 Jan 2020 08:02:03 +0000 (16:02 +0800)]
vdec: When set double write mode 0x80000010, it doesn't take effect [1/1]
PD#SWPL-19870
Problem:
When set double write mode 0x80000010, it doesn't take effect
Solution:
Don't use the application passed double_write_mode value
Verify:
X301
Change-Id: I93eb3daed6ceb053c979553a2c988b5b3a5e99b3
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Pengfei Liu [Thu, 9 Jan 2020 10:07:53 +0000 (18:07 +0800)]
dmx: reduce demux file clock [1/1]
PD#SWPL-19729
Problem:
Some stream inject by HIU and use AES CIPLUS,
dumxe would empty some bytes.
Solution:
reduce demux file clock.
Verify:
Android P + U212
Change-Id: I3082ca2ad46bac951d34391a953a95e76fbd95f6
Signed-off-by: Pengfei Liu <pengfei.liu@amlogic.com>
Hui Zhang [Fri, 10 Jan 2020 01:24:21 +0000 (17:24 -0800)]
Merge "media_module: Optimize h264 decoder error recovery issue [1/1]" into amlogic-4.9-dev
Peng Yixin [Thu, 9 Jan 2020 09:00:26 +0000 (17:00 +0800)]
media_module: Optimize h264 decoder error recovery issue [1/1]
PD#NONE
Problem:
1.Set the correct value for error_proc_policy.
2.Modify the value of the mb_count_threshold
to reduce the display of the mosaic.
Solution:
1.Set the value of error_proc_policy to 0x7Cfb6
2.Set the value of mb_count_threshold to 5
Verify:
U212
Change-Id: I89421ef9953ec1189e793b6af07a0b9102dad679
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Zhiqiang Han [Mon, 30 Dec 2019 07:54:38 +0000 (15:54 +0800)]
sub: sleep in irq_handler [1/4]
PD#SWPL-19036
Problem:
sleep in irq_handler
Solution:
change dynamic phys2virt to init base once
Verify:
Patchbuild
Change-Id: I734a6c5c02c84daa5eda1ceb00d97287d7b699ba
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
Peng Yixin [Mon, 30 Dec 2019 16:24:00 +0000 (00:24 +0800)]
media_module: h264 Update the ref queue correctly [1/1]
PD#OTT-7782
Problem:
When there is some error data in the stream, the error ref frame is
forced to be released. Since the list of ref frames is not updated,
decoder driver thinks that the DPB buffer is incorrect and the entire
DPB queue to be cleared, result frame drop.
Solution:
This problem is resolved by updating the list of refs when the
incorrect ref frames are removed to dpb queue.
Verify:
u212
Change-Id: I754434ae1daaaf8df56e9efc10233ca7725df86e
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Wed, 25 Dec 2019 14:43:08 +0000 (22:43 +0800)]
media_module: A minute later, display the previous frame with the mosaic [1/1]
PD#OTT-7781
Problem:
Due to some error data in the video stream, several reference frames
remained in the DPB queue and were referenced by other frames
incorrectly later, resulting in show mosaic picture.
Solution:
A timeout mechanism has been added so that when one frame is in
the DPB queue for a long time, this frame will be forcibly removed
from the DPB queue.
Verify:
U212
Change-Id: I42350771c2a88465750f20fbef2e463a4115d691
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
shihong.zheng [Wed, 1 Jan 2020 03:37:33 +0000 (11:37 +0800)]
amstream: dump streambuf data. [1/1]
PD#OTT-7937
Problem:
demux error data cause decoder reset.
Solution:
dump stream buf to locate issue.
usage:
change stbuf size and block the stream mode decode
to dump more data.
dump video stbuf cmd:
mdkir -p /data/tmp -m 777;setenforce 0;
echo 0 > /sys/class/amstream/dump_stream;
Verify:
P212
Change-Id: I1f44a95841038265d71c746889d01b46c6154fb1
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Nanxin Qin [Fri, 3 Jan 2020 08:09:04 +0000 (16:09 +0800)]
h264: fixed playback stuck when local reset. [1/1]
PD#SWPL-15748
Problem:
the program will stuck after the bitstream play for a cycle.
Solution:
it is not notity the reset event to backend when error reset
happend, the vf could not be back to decode on android P.
Verify:
x301
Change-Id: Ia0e1883b43d52c9d44cdcab2c5932c682e05c50c
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Peng Yixin [Thu, 26 Dec 2019 04:32:03 +0000 (12:32 +0800)]
media_module: h264 detect wrong multi slice status[1/1]
PD#OTT-7782
Problem:
When the stream has some error video data, one frame data is
incomplete, ucode interrupt messages do not report the completion
of decoding this frame, cause can't store this frame in the DPB
queue, and continue to decode the next frame data, which causes
the DPB queue incorrect and the entire DPB queue to be cleared.
Solution:
Through slice header parameter to determine whether there is no correct
interrupt messages received, thus we can store the incomplete data
frame in the DPB queue.
Verify:
U212
Change-Id: I9991f2599dc02ec69ad7cc798edbbc380b584d1d
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Sat, 28 Dec 2019 09:41:52 +0000 (17:41 +0800)]
media_module: Optimize the h264 frame drop problem [1/1]
PD#OTT-7782
Problem:
Very few decoded macro block error can also cause the
frame drop.
Solution:
If the decoded macro block error rate less than 10% (it can adjust
the threshold based on field conditions later), the frame is
considered correct, thus reducing the frame drop and ensuring that
there is only a small mosaic.
Verify:
U212
Change-Id: I62d9d4ed5c4929689f2102979081a223765b3a18
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Mon, 30 Dec 2019 05:32:39 +0000 (13:32 +0800)]
media_module: h264 store picture to dpb buffer when timeout status. [1/1]
PD#OTT-7782
Problem:
For the timeout state, the driver will discards the frame,
causing the buffer reset.
Solution:
store picture to dpb buffer when timeout status.
Verify:
u212
Change-Id: If14f02fc0ac44eaf4947dd44ef66095d38941d7a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Wed, 23 Oct 2019 05:57:38 +0000 (13:57 +0800)]
media_module: h264 mosaics appear after buffer reset [1/1]
PD#SWPL-16745
Problem:
h264 mosaics appear after buffer reset.
Solution:
The frame following I frame, but belonging to the
previous POC is not display.
Verify:
AC214
Change-Id: I4e949a292d8a64085a5325b1f6a667b19370fd6d
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Thu, 2 Jan 2020 04:24:33 +0000 (12:24 +0800)]
media_module: h264 playback freeze [1/1]
PD#OTT-7774
Problem:
the h264 ucode has the swap operation,
so it needs to be reloaded every run time.
Solution:
reload ucode every time
Verify:
U212
Change-Id: I37d0485be67df56d63ea3157bc27cd40392027e4
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
apollo.ling [Mon, 21 Oct 2019 05:07:18 +0000 (13:07 +0800)]
vdec: add work to substitude directly calling vp9_recycle_mmu_buf [1/1]
PD#SWPL-13765
Problem:
BuildRoot S905X2 mutex_lock called in timer context
Solution:
add work to substitude directly calling vp9_recycle_mmu_buf
Verify:
u212
Change-Id: I329579c7f24beddaa18092fdde1409f3f26f0076
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
miaohong chen [Fri, 3 Jan 2020 11:53:53 +0000 (19:53 +0800)]
vmh264: fix frames drop bug [1/1]
PD#IPTV-5464
Problem:
Video stutter about 2s when start play time-shift of HD channel.
Solution:
When encountering an IDR frame, end the dropped frame.
Verify:
S905M2
Change-Id: I641c9e0d8c4eebfe9f7f3a331846d05b0b117a3a
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
apollo.ling [Mon, 23 Dec 2019 13:57:48 +0000 (21:57 +0800)]
media_module: avoid out-of-bound writing [1/1]
PD#OTT-7799
Problem:
kernel crash and system reboot when switch channel playback.
Solution:
Check sei data bound before writing.
avoid new thread function when in vdec releasing.
Verify:
U212
Change-Id: I221babcd5c06c70a06197644be984ad4a245da5b
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Nanxin Qin [Thu, 2 Jan 2020 08:18:20 +0000 (16:18 +0800)]
h264: flush dpb queue when error reset. [1/1]
PD#SWPL-15748
Problem:
the program will stuck after the bitstream play for a cycle.
Solution:
flush dpb queue when error reset.
Verify:
x301
Change-Id: I8dfcc4ffe54fafdca0f9a9219476aa599147a258
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Tao Guo [Wed, 13 Nov 2019 09:13:18 +0000 (17:13 +0800)]
esparser: fix wrong return value when drm_write [1/1]
PD#OTT-7272
Problem:
Video can not start due to codec_write return 0
When playing drm, omx write drminfo to amstream, but codec_write
return the data size in drminfo, then omx calculate the wrong
remain size, and trying to write the remain data. but codec_write
always return 0 due to wrong data
Solution:
if drminfo only, return drminfo size
if drminfo + esdata, return esdata size + drminfo size
if esdata only, return esdata size
Verify:
JIO project
Change-Id: Iec0481a1a3a1ff928bcb0998fd19e0015c62593f
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
shihong.zheng [Sat, 28 Dec 2019 06:33:26 +0000 (14:33 +0800)]
h264: fix unsmooth caused by frame dur wrong. [1/1]
PD#SWPL-18973
Problem:
h264 force interlace video unsmooth.
frame duration is double than normal.
Solution:
video vui param time_scale is wrong,
correct duration from key frames pts
and other conditions.
Verify:
AC214
Change-Id: Idea1b79afb868f14e02eaac6b2a8f0e0182f658b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
shihong.zheng [Mon, 30 Dec 2019 11:15:59 +0000 (19:15 +0800)]
mpeg2: fix cts adaptive playback test fail. [1/1]
PD#SWPL-19221
Problem:
mpeg2 cts case AdaptivePlaybackTest
failed.
Solution:
add two extra buffers for display.
Verify:
AC214
Change-Id: I34602c30447f2a91d387177c49be2e25b762a1ac
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Nanxin Qin [Mon, 23 Dec 2019 17:17:31 +0000 (01:17 +0800)]
v4l: optimize flow of reset for v4l codec. [1/1]
PD#SWPL-18391
Problem:
youtube playback drop amount of frames.
Solution:
1. default config input size is 2M.
2. dont free vdec input buffer when have not frames in block.
3. vp9 mv buffer has not free when reset happend.
Verify:
u212
Change-Id: If907625d73cb2dce68047cb605efaa9e8d87d4f5
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
renjiang.han [Thu, 26 Dec 2019 11:05:04 +0000 (19:05 +0800)]
media_module: renamed first deinterlace to dimulti for pip. [1/1]
PD#SWPL-18842
Problem:
When dtv and youTube are switched, the kernel panic is
caused by the deinterlace same name.
Solution:
Renamed first deinterlace to dimulti for pip
Verify:
on S905X3-AC214
Change-Id: I8a970337f13367fbd72bd8156a131bfd2fcb8b88
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
Nanxin Qin [Wed, 18 Dec 2019 14:17:33 +0000 (22:17 +0800)]
decode: optimize local reset when decode error happened. [1/1]
PD#SWPL-18664
Problem:
optimize local reset when decode error happened.
Solution:
just clear dpb reference when decode error reset.
Verify:
u212
Change-Id: If8628625ce8ed0d95048ea900dbd972fcfa57ccf
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Yixin Peng [Fri, 20 Dec 2019 06:05:44 +0000 (14:05 +0800)]
media_module: mpeg2 playback stuck [1/1]
PD#OTT-7825
Problem:
mpeg2 playback stuck.
Solution:
Due to do not clear some flag of cc
subtitle in time, cause normal the
interrupt of video decoding are mistaken
for CC interrupts and cause freeze.
Verify:
AC214
Change-Id: Ia25a376d56932f318c5effd3c23e3b9b65696eed
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
Nanxin Qin [Mon, 23 Dec 2019 08:37:33 +0000 (16:37 +0800)]
decode: fixed the kernel crash when testing sts. [1/1]
PD#SWPL-18697
Problem:
CtsSecurityTestCases 2 fail
Solution:
fixed the kernel crash when testing sts
Verify:
u212
Change-Id: Ic7ec31daadb4c2374f1527db5b355b14e85549b3
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Chuangcheng Peng [Fri, 11 Oct 2019 03:11:23 +0000 (11:11 +0800)]
irdeto: support msr2 set dsc in ta [1/2]
PD#RSP-245
Problem:
dmx reset will clear TA dsc setting
Solution:
add dsc in/out setting and not clear dsc
Verify:
verify at ac213
Change-Id: I66edccd3dfac6a1bc3f331e3df38165f7ce3a38d
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Yixin Peng [Fri, 6 Dec 2019 11:36:05 +0000 (19:36 +0800)]
media_module: h264 mosaics appear after seek operation [1/1]
PD#SWPL-17412
Problem:
reset the iqidct register cause mosaics.
Solution:
Don't to reset the iqidct register.
Verify:
AC214
Change-Id: I24c3d8c9b95134f65e1dab02404bb993761467e4
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
shihong.zheng [Tue, 10 Dec 2019 12:13:25 +0000 (20:13 +0800)]
decoder: add dynamic buf margin for mpeg12/mpeg4/mjpeg/avs2/mvc. [1/1]
PD#SWPL-18189
Problem:
add more buffers control mpeg2/mpeg4/mjpeg/avs2/mvc
for multi-instance.
Solution:
add dynamic_buf_num_margin interface for
mpeg2/mpeg4/mjpeg/avs2 decoder driver.
Verify:
U212
Change-Id: I1e5edccbea1d51e7d85c65fdeb83305cf21d50fc
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
shihong.zheng [Tue, 17 Dec 2019 12:44:13 +0000 (20:44 +0800)]
vmh264: fix baseline fast output bug. [1/1]
PD#OTT-7765
Problem:
baseline h264 stream but reorder_pic_num is 2.
fast output set will cause output frame disorder.
Solution:
add reorder_pic_num check when set baseline
fast output 8.
Verify:
S905X
Change-Id: Ia6a5ace66296d0034404f7974b6e43de485ea997
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
yongchun.li [Tue, 10 Dec 2019 02:52:48 +0000 (18:52 -0800)]
henc: disable the flooding print by default [1/1]
PD#SWPL-18190
Problem:
There is flooding print information by default
Solution:
move the flooding inforamtion to INFO level
Verify:
A311D
Change-Id: Ibbf1fc4ef0c58ee2546da8cdebcf617961107afb
Signed-off-by: yongchun.li <yongchun.li@amlogic.com>
rongrong zhou [Wed, 4 Dec 2019 10:38:43 +0000 (18:38 +0800)]
v4l2: drop frames [2/3]
PD#SWPL-17328
Problem:
drop frames
Solution:
1. add trace for debug
2. store vf get count in vf->index_disp
3. set out thread SCHED_FIFO
4. install privdata every vf
Verify:
local
Change-Id: I08fda1994a40d8331bff159bdfdeb20b38fa871c
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
Nanxin Qin [Sat, 7 Dec 2019 13:46:08 +0000 (21:46 +0800)]
v4l: fixed the issue of mosaic shows when seeking. [1/1]
PD#SWPL-18134
Problem:
playback youtube 4k videos, the automatically switched resolution or
seek operation,Display abnormal.
Solution:
fixed the issue of mosaic shows when seeking or resolution change.
Verify:
u212
Change-Id: I9654fdbba7711c76dfcee4b999f63ee8ed12899d
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
jintao xu [Tue, 10 Dec 2019 11:20:21 +0000 (19:20 +0800)]
vdec: enable two channnel di [2/2]
PD#SWPL-18329
Problem:
enable two channel di
Solution:
enable two channel di
Verify:
Verify on u212
Change-Id: I4fc94bc45d221432fca15009ebfa4548e756bd83
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Nanxin Qin [Thu, 5 Dec 2019 18:15:41 +0000 (02:15 +0800)]
v4l: optimize the input buff schedule.
Change-Id: I8224639e94696d99484e7cb94c4a0e97457389bd
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Zhi Zhou [Wed, 4 Dec 2019 10:10:57 +0000 (02:10 -0800)]
Merge "v4l: fixed the issue of parser. [1/1]" into amlogic-4.9-dev
hualing chen [Fri, 29 Nov 2019 12:12:27 +0000 (20:12 +0800)]
dvb: the AD audio output noise. [1/2]
PD#SWPL-17238
Problem:
play Dual_Strm_2PID_swp_AssocRouting_
ddp_DVB_h264_25fps.trp,
the audio output noise.
Solution:
add AUDIO3 type for AD get pes data.
we set default type to BYPASS_PACKET for dvr mode.
Verify:
verify at ac214 in android p.
Change-Id: Ifa70d83eb5f04fd69a9d06bb5c11a2fdd5a7871a
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Nanxin Qin [Mon, 2 Dec 2019 03:05:46 +0000 (11:05 +0800)]
v4l: fixed the issue of parser. [1/1]
PD#SWPL-17646
Problem:
the stream parse err when the memory alloc failed.
Solution:
1. replace the kmalloc to vmalloc, when there are more
memory fragments and order that maybe cause alloc failed.
2. reference a unique struct of file_private_data
Verify:
U212
Change-Id: I499c1bb128c929d2144dc3f9f17e8555bd62d5d3
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Brian Zhu [Thu, 28 Nov 2019 16:58:03 +0000 (00:58 +0800)]
decoder: add interface to get vf put count [2/2]
PD#SWPL-17393
Problem:
dv el can not drop frame
Solution:
add vf put count for drop frame
Verify:
verified on u212
Change-Id: I5fa699b44f174b27e4a8046cbb026563ea7fb107
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Yixin Peng [Sun, 1 Dec 2019 08:12:19 +0000 (16:12 +0800)]
media_module: fixed some issues for gts. [1/1]
PD#SWPL-17322
Problem:
h265 seeking test fail.
Solution:
After seek, Clear the DPB queue.
Verify:
AC214
Change-Id: I52b6d4b7a64c99916e5ec0efc2ae48619c877a7d
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
Nanxin Qin [Sat, 30 Nov 2019 13:58:36 +0000 (21:58 +0800)]
v4l: fixed the issue of h264/h265 parser. [1/1]
PD#SWPL-17322
Problem:
1. when a frame inclued 2 or more sps and they are differnt
which cause to triggle event of resultion change infinite.
2. play the tiny stream maybe caused crash.
Solution:
1. fixed the issue of h264/h265 parser.
2. fixed the tiny es playback iusse.
Verify:
U212
Change-Id: I313991b13867b3c057225473e0407c05b20d799f
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Nanxin Qin [Thu, 28 Nov 2019 06:30:53 +0000 (14:30 +0800)]
v4l: fixed some issues for v4l codec. [1/1]
PD#SWPL-5313
Problem:
Decoder V4L2 interface Phase3(AFBC&MMU Support)
Solution:
1. add the limit of vdec input frames.
2. add config parms canvas_mode and endian.
Verify:
U212
Change-Id: Ib3365cd1a09fac7c029bba64c70a3ed40bbd8e3f
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Yixin Peng [Thu, 28 Nov 2019 14:33:34 +0000 (22:33 +0800)]
media_module: h264 playback stuck [1/1]
PD#SWPL-17322
Problem:
resolution changes cause stuck.
Solution:
The DPB size is updated every time
to solve this problem.
Verify:
U212
Change-Id: I232961c836ee5a071de506d45cbde958c9ff3305
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
Yixin Peng [Wed, 27 Nov 2019 13:29:00 +0000 (21:29 +0800)]
media_module: h264 add REQUEST_RESET message to user space [1/1]
PD#SWPL-5313
Problem:
When the decode driver needs to reset,
a message needs to be sent to the user
space for this operation.
Solution:
Add this feature.
Verify:
U212
Change-Id: If112862058db61b870dce0e0eb9d6d13c6109152
Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
shihong.zheng [Thu, 28 Nov 2019 08:52:18 +0000 (16:52 +0800)]
mpeg12 mpeg4: fix some mpeg video problem. [1/1]
PD#SWPL-17549
Problem:
1. testCodecResetsMpeg2WithSurface fail on andorid q.
2. special xvid video can not seek.
Solution:
1. add timeout for mpeg12 ucode WAIT_MCW_WRRSP
2. save context even some frames canot be decode,
the context may necessary for behind frames(tv-10657).
ucode gerrit id: 90009
ucode change id: I6d127c5c
ucode commit id:
6cea5dfc
Verify:
AC214 x301
Change-Id: I822f6812f7b1774e7fe2cfb5d1ba935fd96132de
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Nanxin Qin [Sun, 24 Nov 2019 09:40:53 +0000 (17:40 +0800)]
v4l: fixed some issues for v4l codec. [1/1]
PD#SWPL-5313
Problem:
Decoder V4L2 interface Phase3(AFBC&MMU Support)
Solution:
1. fixed an issue of get/set parms abnormal.
2. fixed the issue of register vfm failed cause crash.
3. added post events for exception happend.
4. fixed profile_idc changes cause stuck.
Verify:
U212
Change-Id: I4519c91409d570e6fe8f9fedaad6c48628be85a0
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Rico Yang [Mon, 25 Nov 2019 15:45:36 +0000 (23:45 +0800)]
h264_enc: set colorspace to bt709 for 720p and above [1/1]
PD#SWPL-15982
Problem:
h264 encoder set colorspace to bt709 for all resolution
Solution:
set colorspace to bt709 for 720p and above only
Verify:
verified on franklin
Change-Id: Ic1755181681de32750473548f96a25c05fa10044
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
shihong.zheng [Wed, 13 Nov 2019 08:35:34 +0000 (16:35 +0800)]
decoder: fix mpeg4 display green screen. [1/1]
PD#IPTV-5117
Problem:
mpeg4 start decode when first frame not
ready.
Solution:
add set start_dec_buf_level for ready to run.
same with mpeg2 mjpeg mpeg4.
Verify:
S905L2A
Change-Id: I046fbfd4dfee97238eaf0982375a3a1e1759a12e
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Nanxin Qin [Sat, 23 Nov 2019 15:16:03 +0000 (23:16 +0800)]
v4l: fixed build issue on the android P. [1/1]
PD#SWPL-5313
Problem:
the symbol undefined cause build fail.
Solution:
fixed build issue on the android P
Verify:
u212
Change-Id: I7a576efc202b851bf88e68769f7627f7db501a82
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Nanxin Qin [Tue, 29 Oct 2019 14:08:34 +0000 (22:08 +0800)]
v4l: fixed some issues for v4l codec. [3/3]
PD#SWPL-5313
Problem:
Decoder V4L2 interface Phase3(AFBC&MMU Support)
Solution:
1. opitimize the event of notify eos when play end,
need not alloc more buffer to dispatch ending event.
2. opitimize the interface of get buffs from m2m pool.
3. v4l2 vf video display support.
4. support config parms for v4l codec.
5. add afbc an dw for h265, vp9.
6. fixed the box and memory leak.
7. support report hdr infos from v4l codec.
8. opitimize the event of report resolution change.
Verify:
U212
Change-Id: I446f9bb3f3b64a66540f6dd32af2cd7e71d0a280
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
jintao xu [Wed, 31 Jul 2019 03:01:32 +0000 (11:01 +0800)]
media_modlue: add v4lvideo path [1/1]
PD#SWPL-5996
Problem:
add v4lvideo path
Solution:
add v4lvideo path
Verify:
U212
Change-Id: I1cab775e74b8365a7995a2b479a21bd0a5979564
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
shihong.zheng [Wed, 20 Nov 2019 13:15:02 +0000 (21:15 +0800)]
mh264: fix i only not out frame. [1/1]
PD#IPTV-4993
Problem:
i_only do not ouput frames. the dpb is full.
all frames are ref pic.
Solution:
flush dpb when decode next frame.
do not check dpb error for i_only
Verify:
S905L2A
Change-Id: I6739491e56d38440d7875f679df405a44b58f2b9
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Peng Yixin [Thu, 31 Oct 2019 05:47:20 +0000 (13:47 +0800)]
media_module: h264 green pixelation is seen during playback [1/1]
PD#OTT-6820
Problem:
Only when the resolution is switched from a stream with a lot of
decoded buffers to another stream that needs a lot of decoded
buffers,this problem occur when the canvas id used at the same
time has exceeded the maximum value and cannot be allocated.
Solution:
When switching the resolution, there is no need the canvas id
of the previous resolution, so release it, the canvas id will
not be insufficient to cause flower screen.
Verify:
S922X
Change-Id: Ie9944f71d1bc85c8c90198573c9b209b74f5f828
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Gan Zhang [Wed, 20 Nov 2019 05:49:54 +0000 (13:49 +0800)]
h265: The code stream with width and height of 64 failed the CTS test. [1/1]
PD#SWPL-17038
Problem:
When the width and height of the decoded macro block is 1,
the HEVC_PARSER_LCU_START parameter read from the register is 0,
which will cause the decoded data to be set to error.
Solution:
(hevc->lcu_x_num * hevc->lcu_y_num != 1)
Add the above judgment conditions to unset the decoded data to Error.
Verify:
P212
Change-Id: Ia89f5381059ef6d996bb8c60408324e0509e5b2d
Signed-off-by: Gan Zhang <gan.zhang@amlogic.com>
Peng Yixin [Thu, 17 Oct 2019 05:14:31 +0000 (13:14 +0800)]
media_module: h265 full-screen mosaic during playback [1/1]
PD#SWPL-12387
Problem:
The first I frame was not incorrectly detected,
resulting display mosaic picture.
Solution:
Add error detection for the first I frame to
solve this problem.
Verify:
Verified U212
Change-Id: I2247a878c3bd7b9d13c17614856cb101623e6dab
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Sat, 26 Oct 2019 08:36:12 +0000 (16:36 +0800)]
media_module: h265 interlace format show mosaic pitcutre [1/1]
PD#SWPL-12376
Problem:
1. The incorrect type information was transmitted to the backend.
2. pending_q KFIFO is not initialized.
3. Error data in video file causes picture freeze.
Solution:
1. Pass the correct type vf information to the back end.
2. Initialize pending_q KFIFO.
3. Modify error handling logic to solve the picture freeze problem.
Verify:
Verified AC213
Change-Id: I939fa780c30d500b1a16d43cc13764f4f862e808
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
apollo.ling [Tue, 5 Nov 2019 08:16:15 +0000 (16:16 +0800)]
media_module: fix the call sequence of del_timer_sync and cancel_work_sync [1/1]
PD#SWPL-16242
Problem:
{stresstest} {KASAN} avs bug causes system crash when do DTV 2s channel switch
and 15s suspend.(1/6,none)
Solution:
correct the call sequence of del_timer_sync and cancel_work_sync
Verify:
X301
Change-Id: I53534f207d3379fe6e463ae2e57badeceeb5f9ec
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Cheng Tong [Wed, 6 Nov 2019 06:11:31 +0000 (14:11 +0800)]
dvb: fix demux set serial ts mode issue [1/1]
PD#OTT-7142
Problem:
demux can't set ts source correctly if ts 1 at serial mode
Solution:
fix the right ts mode
Verify:
verify on s805y
Change-Id: Ie8cbbe1320d925bcd4744ea5c0ab710b58055d3b
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
apollo.ling [Mon, 4 Nov 2019 08:09:02 +0000 (16:09 +0800)]
vdec: update the many parse_one_sei_record printings [1/1]
PD#SWPL-16189
Problem:
{stresstest} it continues print "parse_one_sei_record: payload_type"
and causes watchdog_reboot when do DTV 2s channel switch and 15s
suspend.(4/6,none)
Solution:
update the many parse_one_sei_record printings
Verify:
X301
Change-Id: Ia9aa165c1f37bd0db9f23ee5c027aaad1d124f60
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Peng Yixin [Sat, 2 Nov 2019 04:04:00 +0000 (12:04 +0800)]
media_module: fix vp9 video with encoded with VBAQ,show macro blocks [1/1]
PD#SWPL-16144
Problem:
When playing the vp9 video with encoded with VBAQ enabled, there're
macro blocks on the screen and sometimes even worse, the decoded frames
may be crashed because of incapable of decoding.
Solution:
Modify microcode to solve this problem.
Verify:
AC213
Change-Id: Idac43674047ca9481154ef9054688e6ed66ae832
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Gan Zhang [Wed, 30 Oct 2019 06:48:42 +0000 (14:48 +0800)]
media_module: h265 playback show some mosaic pictures [1/1]
PD#IPTV-4309
Problem:
In stream mode,h265 format playback show some mosaic pictures.
Solution:
Optimize the logic of handling error frames to solve
this problem.
Verify:
AC213
Change-Id: Ibaf07e45557fdf597a48bab742a092942530608b
Signed-off-by: Gan Zhang <gan.zhang@amlogic.com>
apollo.ling [Thu, 31 Oct 2019 07:14:26 +0000 (15:14 +0800)]
vdec: remove some printings [1/1]
PD#SWPL-15106
Problem:
h264 keep print "ref_pic_list_reordering error"
Solution:
remove some printings
Verify:
X301
Change-Id: Ic8f9bc0c1c536abd209775d4d1b501303fc4ef67
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
apollo.ling [Tue, 29 Oct 2019 09:33:17 +0000 (17:33 +0800)]
vdec: improve timeout handling for vmmpeg12/vmmh264/vmmh265 [1/1]
supplementary commit.
PD#SWPL-14196
Problem:
{stress test} trunk crash and watchdog reboot happen when
do DTV h264 2s channel switch and 15s suspend.(1/5,none)
Solution:
improve the timout handling mechanism
Verify:
X301
Change-Id: I7989ad2b015855d6cacec1c54e8e05d585c8934e
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Nanxin Qin [Mon, 19 Aug 2019 12:50:09 +0000 (20:50 +0800)]
v4l: fixed some issues for v4l codec. [2/2]
PD#SWPL-5313
Problem:
Decoder V4L2 interface Phase3(AFBC&MMU Support)
Solution:
1. fixed issue of the dpb size calc.
2. remove dpb size_margin and enable 4k.
3. fixed playback stuck when work on the muti-instance.
4. remove virt to phy address to avoid warring.
5. alloc the buf of v4l when it is about to decoding.
6. timestamp unsigned long int -> u64
7. add the common module of bitstream parser.
8. h264, vp9 & h265 supports playback with multi-resolution.
9. add mpeg12 mpeg4 and mjpeg for v4l codec.
10. supports single plane for the capture buffer.
11. only count capture buff with the mode mmap.
12. supports memory scatter for v4l codec.
13. supports ucode to parse params sets.
14. implement the interface of reset for h265 & vp9.
15. supports to switch picture formats nv12 & nv21
Verify:
u212
Change-Id: I1e7fb210e1a7c8acafa81ab6f30fd03a69b94c26
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
apollo.ling [Thu, 17 Oct 2019 08:00:16 +0000 (16:00 +0800)]
vdec: avoid double release same resources [1/1]
PD#SWPL-10720
Problem:
Media AutoTest system met kernel crash and RAM DUMP
Solution:
check to avoid double release same resources
Verify:
P215
Change-Id: I58928ad333036aa4e146798f50764a9e201c4ecd
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
apollo.ling [Thu, 17 Oct 2019 12:31:08 +0000 (20:31 +0800)]
vdec: improve timeout handling for vmmpeg12/vmmh264/vmmh265 [1/1]
PD#SWPL-14196
Problem:
{stress test} trunk crash and watchdog reboot happen when
do DTV h264 2s channel switch and 15s suspend.(1/5,none)
Solution:
improve the timout handling mechanism
Verify:
X301
Change-Id: Id7bad614c3aff15630daef13ac598e3a86405e01
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Zhizhong Zhang [Fri, 25 Oct 2019 05:22:58 +0000 (13:22 +0800)]
amports: audio: Add mutex lock protect for audio port reset [1/1]
PD#OTT-6893
Problem:
System restart after launch/exit LiveTv multiple
Solution:
Add mutex lock protect for audio port reset
Verify:
patch build of U212
Change-Id: Id175422a3c829e23b59927aea6c60e8818b9dd37
Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
shihong.zheng [Fri, 25 Oct 2019 03:30:13 +0000 (11:30 +0800)]
mpeg2: fix mosaics when set error_skip. [1/1]
PD#SWPL-12375
Problem:
mpeg2 mosaics after set error_frame_skip_level to 2.
a error p frame store to ref list, so have not set
error skip flag in error_skip(). the next mosaic b frame
display before p.
Solution:
set b frame error when error p in ref list.
set error_frame_skip_level to 2 default.
Verify:
u212
Change-Id: Ide23f0cf8a5f6ef72e1a6a6e129a7f7f1ef658fa
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
shihong.zheng [Thu, 24 Oct 2019 09:31:28 +0000 (17:31 +0800)]
mh264: reload ucode when decode error. [1/1]
PD#SWPL-14162
Problem:
h264 can not decode out frame when reboot or
hot plug signal cable.
pmem ucode may switch to swap code. and decode
timeout or other error, then amvdec_stop, the
pmem ucode cannot start decode when start next
frame, so need reload ucode.
Solution:
reload ucode to avoid the swap code in pmem when
start decode.
Verify:
x301
Change-Id: Id55054599b90b2baab5d5a0ccff191e1186a03ad
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Hui Zhang [Sun, 29 Sep 2019 08:46:04 +0000 (16:46 +0800)]
vmh264: fix error frame detect issue [1/1]
PD#SWPL-12967
Problem:
in frame mode, some pic miss stream data, which may cause
data_request from hw, but driver think it is data not comming
,not skip this error frame
Solution:
in frame mode, change data_reqest handle to pic_done. driver
will check if there is error with mb number. the error will
be detected
Verify:
AC-213
Change-Id: I186c6149fc6802fbd4636f4e02b1ea787fba85be
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Gan Zhang [Tue, 8 Oct 2019 05:14:40 +0000 (13:14 +0800)]
media_module: tiny h264 stream decode error [1/1]
PD#SWPL-13083
Problem:
tiny h264 stream decode error
Solution:
disable this read cache when frame width <= 64
IQIDCT_CONTROL, bit[16] – dcac_dma_read_cache_disable
Verify:
AC213
Change-Id: I8a07b70347b335709ebe7be44735f6aa667801c6
Signed-off-by: Gan Zhang <gan.zhang@amlogic.com>
Peng Yixin [Tue, 10 Sep 2019 11:54:06 +0000 (19:54 +0800)]
media_module: fixed mpeg2 playback stuck issue [1/1]
PD#OTT-5167
Problem:
mpeg2 formate playback stuck when switch channel.
Solution:
Modify the condition to trigger decoder timeout to
resolve this problem.
Verify:
U212
Change-Id: I2642a90f9debd1dcc656581c0771c0f1d8a640d0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Chuangcheng Peng [Mon, 30 Sep 2019 05:52:17 +0000 (13:52 +0800)]
dvb: support two si2168(si2151/av2018) [1/3]
PD#SWPL-13198
Problem:
support U212-D814
Solution:
support U212-D814
Verify:
verify at u212-D814
Change-Id: Iede357c8cdfa24975db9d19f1f5121a51a48c85a
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Hui Zhang [Mon, 30 Sep 2019 02:16:04 +0000 (19:16 -0700)]
Merge "h264: h264 dpb_print error. [1/1]" into amlogic-4.9-dev
Zhi Zhou [Sun, 29 Sep 2019 11:16:38 +0000 (04:16 -0700)]
Merge "media: h264 encoder add svc feature [1/1]" into amlogic-4.9-dev
Peng Yixin [Fri, 27 Sep 2019 07:48:39 +0000 (15:48 +0800)]
media_module: h264 add force modify canvas mode node [1/1]
PD#NONE
Problem:
Cannot modify canvas mode with node.
Solution:
Add logic to solve this problem.
Verify:
u212
Change-Id: I487fa2d50b60f7bdfb309fd9f2a18e42c9658956
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Fri, 14 Dec 2018 09:26:26 +0000 (17:26 +0800)]
media_module: add without display node [1/1]
PD#IPTV-4140
Problem:
There are no nodes to test for decoding performance without display.
Solution:
Add without display node to resolve this issue.
Verify:
u212
Change-Id: Idec4b174f194dd719853cae7fd8fdbe56f54f816
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>