Commit graph

99 commits

Author SHA1 Message Date
Herman Chen
3b338216a4 fix[vproc]: Fix missing hdr_info on vproc flow
When vproc create new output buffer with hdr_info the original hdr_info
in old buffer must be copy to the new one with hdr_offset and hdr_size.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I7cbfec07adf2de8147f2918332e391074291e4c5
2025-11-06 16:42:28 +08:00
Yanjun Liao
60dfbcaace refactor[mpp]: Refactor C++ mpp to C
Change-Id: Icfe26b36d066b32355bda919e605e165399c0781
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-10-11 09:10:42 +00:00
Yanjun Liao
9a079f8c6f refactor[mpp]: Rename file type from C++ to C
Change-Id: I657ec099b95ee745a6963c0768dc97308c2c6735
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-10-11 09:10:42 +00:00
Alexander Koval
90c205ca47 fix[vdpp] Fix building tests against musl libc
Reported by https://github.com/rockchip-linux/mpp/pull/893

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I76c362823337f6dba5fcffe4aac43e2798fbfce1
2025-08-25 09:20:56 +08:00
nyanmisaka
e0e59e5ce2 fix[vproc]: Fix unit tests cannot be disabled
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Change-Id: Icfd755d6bfee95bc3803a90e89ab790e8eb0e889
2025-07-07 09:59:49 +08:00
Herman Chen
ccee46d061 fix[cmake]: Fix compile error on linux with asan
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I90a815835048e7931d773f3dc5ed42cb39640ab6
2025-06-24 02:28:11 +00:00
Hongjin Li
aa6ae2c5f6 refactor[osal]: Refactor more module from C++ to C
Refactor thread, list, queue and time module.

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I96c07e1549868085867502c8bb974ffd3875ea9d
2025-06-12 18:32:09 +08:00
Herman Chen
38ee436830 feat[kmpp_obj]: Add userspace objdef functions
1. Add mpp_internal.h for simplifing mpp_trie, mpp_cfg, mpp_cfg_io,
kmpp_obj relationship.
2. Add objdef userspace interface: register / unregister, add init,
deinit, dump function registration.
3. Fix vdpp/CMakeLists.txt lack of kmpp_base issue.
4. Adjust utils order to fix compile error.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I50304a84c4baf5b49ee2658713ac171c91983209
2025-05-07 16:56:48 +08:00
akira.wang
f18ff4b254 fix[vdpp]: Fix vdpp blk_size calculation.
update hsd_mode/vsd_mode before blk_size calculation, fix the mismatch
between hsd_mode/vsd_mode registers and blk_size registers.

Change-Id: I49215f99430382ec8f59adad3cd81b9f9ab736d8
Signed-off-by: akira.wang <akira.wang@rock-chips.com>
2025-04-02 06:02:22 +00:00
Johnson Ding
bd8954a8f8 fix[vproc]: fix height out of boundary problem
Some interlaced stream with height not fully aligned to CTU may have
random values at bottom with some height. This part should not be
processed by IEP. Otherwise the output of IEP will have some flaws bottom.

Change-Id: Ia648d50b65511a091dee0701dae6f1b2b8e30407
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-02-13 06:33:22 +00:00
Johnson Ding
fb957ea36a fix[vproc]: fix frame output disorder problem
When frame-field detection result changes from field mode to unknow or
frame mode, source picture will be output disordered.

Change-Id: I77d4da4d09b06e273e9e8b090182811a5e2c6f10
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-01-20 01:47:05 +00:00
Johnson Ding
1d285e9e10 feat[vproc]: Add more log for debugging
Change-Id: I594f796c87d82d346ce1a651eaac3f40812fdfb8
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-01-20 01:47:05 +00:00
Johnson Ding
66b669ef98 fix[vproc]: Fix field disordered problem
Change-Id: I69aa3ce0010eae221dc46fedd05d66b318e623f2
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-01-20 01:47:05 +00:00
Johnson Ding
5b0f01d582 fix[vproc]: Fix error info missed problem
Change-Id: Ic9049ddec01ceaa1c160a7b3c2eada87133c140e
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-01-13 10:00:04 +08:00
Johnson Ding
5e26aa37e0 fix[vproc]: Fix output blank buffer problem
Change-Id: I3934186aa075880283ab1501da15db496a16c600
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2025-01-13 01:51:51 +00:00
xueman.ruan
518037c606 refactor[vproc]: Refactor iep2 progress
1. solving deinterlace mode changes when video is
   progressive at detection mode. Frame output
   order will be wrong for the first 10 frames.
2. solving the issue that ff_mode judge will not
   be updated when info changes.

Change-Id: I85ef0abe7af972dbe9ee7965f2c17de78330c506
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-12-05 15:49:43 +08:00
Herman Chen
a49f851c65 fix[iep2]: Remove unnessary log on init failed
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I19a979246ccf7ceeed8e8598ad17420b6d7cb952
2024-10-29 09:44:46 +08:00
Yandong Lin
b9a9ba00d5 chore: fix compile warning
warning: variable 'xxx' set but not used

Change-Id: I0dc5d434b7f08e776f98e08885d4b25eaab199c1
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-08-01 11:12:51 +08:00
xueman.ruan
558c249a4e fix[vdpp]: fix invalid-free err when init failure
Change-Id: Id3bf0104dd1baddcf601ce79fc8b00d67bf8d777
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-06-19 16:13:22 +08:00
xueman.ruan
4c1d759105 fix[vdpp]: Fix dmsr reg size imcompat error
Change-Id: I856bd44fefa322ff8e1136f3055851f72a74b508
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-04-19 09:21:42 +08:00
xueman.ruan
f4bef33104 feat[vdpp]: Add libvdpp for hwpq
Change-Id: Ief67782a6b4623897b0fbe58dbf8846a2a2a7742
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-29 09:04:16 +08:00
xueman.ruan
38c370076b fix[vdpp]: Add error detection
Change-Id: I8819b8ae1224f2166f555a9905d097fa2ff24ea4
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-29 09:04:01 +08:00
xueman.ruan
dbf20001b7 feat[vdpp]: Add capacity check function
Change-Id: If14ad6e664b2dd58a8df9aecbb81b3d92682eb7d
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-21 09:49:29 +08:00
xueman.ruan
ead0f06f44 feat[vdpp_test]: Add vdpp slt testcase
slt verify file sample:
vdpp_test -w 720 -h 480 -s 0 -i <input> -W 1920 -H 1080 -F yuv444 -S 0 -n 1 -slt <verify>

Change-Id: Ibcf34981019f0f4944a05e7a581ca0890103cc92
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-12 17:54:56 +08:00
akira.wang
331e2dc3da fix[vdpp]: fix sharp config error
Change-Id: I66457dd53f200918872265c747d2acf53ab0596a
Signed-off-by: akira.wang <akira.wang@rock-chips.com>
2024-03-04 10:15:18 +08:00
xueman.ruan
fe9bfab9f7 feat[vdpp]: Add vdpp2 for rk3576
new feat: sharp, es, hist, luma and chroma output
respectively

Change-Id: I9ceab887ee6dcd75f6d848b579dc4c86c4dc1f1a
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-02-27 18:00:54 +08:00
xueman.ruan
677b2a877e feat[vdpp]: Add vdpp module and vdpp_test
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Change-Id: I8bd74ad9b4404864ea3d88c7f2e57eecc4c0e35d
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-02-27 18:00:54 +08:00
Herman Chen
9431bbc980 fix[vproc]: Fix deadlock in vproc thread
BUG is reported from https://redmine.rock-chips.com/issues/464206

Thread 18 (LWP 2440):
#0  __lll_lock_wait (futex=0x7f34000d48, private=0) at lowlevellock.c:52
#1  0x0000007fab5b1540 in __GI___pthread_mutex_lock (mutex=0x7f34000d48) at pthread_mutex_lock.c:115
#2  0x0000007fa9e0299c in dec_vproc_signal (ctx=0x7f34001260) at ../git/mpp/vproc/mpp_dec_vproc.cpp:929
#3  0x0000007fa9df5bdc in mpp_dec_notify (ctx=0x7f602be600, flag=1088) at ../git/mpp/codec/mpp_dec.cpp:956
#4  0x0000007fa9e0ef30 in mpp_buffer_ref_dec (buffer=0x7f6403f6c8, caller=caller@entry=0x7fa9ee300c "mpp_frame_deinit") at ../git/mpp/base/mpp_buffer_impl.cpp:509
#5  0x0000007fa9e0fb84 in mpp_buffer_put_with_caller (buffer=<optimized out>, caller=caller@entry=0x7fa9ee300c "mpp_frame_deinit") at ../git/mpp/base/mpp_buffer.cpp:105
#6  0x0000007fa9e11820 in mpp_frame_deinit (frame=frame@entry=0x7f602ec340) at ../git/mpp/base/mpp_frame.cpp:85
#7  0x0000007fabd6bf4c in rkmpp_release_frame (opaque=<optimized out>, data=0x7f602ba600 <error: Cannot access memory at address 0x7f602ba600>) at src/libavcodec/rkmppdec.c:339
#8  0x0000007fab9547dc in buffer_replace (src=0x0, dst=<optimized out>) at src/libavutil/buffer.c:133
#9  av_buffer_unref (buf=<optimized out>) at src/libavutil/buffer.c:144
#10 0x0000007fac714bb8 in mp_image_destructor (ptr=0x7f60252c80) at ../../../../../../sources/mpv/video/mp_image.c:209
#11 0x0000007fac748d40 in ta_free (ptr=0x7f60252c80) at ../../../../../../sources/mpv/ta/ta.c:244
#12 0x0000007fac715178 in mp_image_unrefp (p_img=p_img@entry=0x7f4c00bfc0) at ../../../../../../sources/mpv/video/mp_image.c:472
#13 0x0000007fac73396c in wlbuf_pool_entry_release (data=0x7f4c00bfa0, wl_buffer=<optimized out>) at ../../../../../../sources/mpv/video/out/wlbuf_pool.c:132
#14 0x0000007fb4cfe328 in ffi_call_SYSV () at ../libffi-3.3/src/aarch64/sysv.S:114
#15 0x0000007fb4cfdb44 in ffi_call_int (cif=cif@entry=0x7f70fdec80, fn=0x7f70fdeca0, orig_rvalue=orig_rvalue@entry=0x0, avalue=0x10, avalue@entry=0x7f70fded50, closure=0x200000001, closure@entry=0x0) at ../libffi-3.3/src/aarch64/ffi.c:747
#16 0x0000007fb4cfdf24 in ffi_call (cif=cif@entry=0x7f70fdec80, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7f70fded50) at ../libffi-3.3/src/aarch64/ffi.c:756
#17 0x0000007faa49c7c0 in wl_closure_invoke (closure=0x7f4c00bff0, flags=<optimized out>, target=<optimized out>, opcode=0, data=<optimized out>) at ../wayland-1.22.0/src/connection.c:1025
#18 0x0000007faa499df0 in dispatch_event (display=display@entry=0x7f4c001d40, queue=<optimized out>) at ../wayland-1.22.0/src/wayland-client.c:1644
#19 0x0000007faa49b2c8 in dispatch_queue (queue=0x7f4c001e30, display=0x7f4c001d40) at ../wayland-1.22.0/src/wayland-client.c:1790
#20 wl_display_dispatch_queue_pending (display=0x7f4c001d40, queue=0x7f4c001e30) at ../wayland-1.22.0/src/wayland-client.c:2032
#21 0x0000007faa49b2f4 in wl_display_dispatch_pending (display=<optimized out>) at ../wayland-1.22.0/src/wayland-client.c:2095
#22 0x0000007fac73e2cc in vo_wayland_dispatch_events (wl=0x7f4c000e40, nfds=nfds@entry=2, timeout=timeout@entry=100) at ../../../../../../sources/mpv/video/out/wayland_common.c:1933
#23 0x0000007fac741d7c in vo_wayland_wait_events_timeout (vo=vo@entry=0x7f600abed0, timeout_ms=timeout_ms@entry=100) at ../../../../../../sources/mpv/video/out/wayland_common.c:2594
#24 0x0000007fac73baf4 in draw_frame (vo=0x7f600abed0, frame=0x7f302063b0) at ../../../../../../sources/mpv/video/out/vo_dmabuf_wayland.c:1113
#25 0x0000007fac7360c4 in render_frame (vo=0x7f600abed0) at ../../../../../../sources/mpv/video/out/vo.c:984
#26 vo_thread (ptr=0x7f600abed0) at ../../../../../../sources/mpv/video/out/vo.c:1123
#27 0x0000007fab5af370 in start_thread (arg=0x7f72ffbe06) at pthread_create.c:477
#28 0x0000007fab51bedc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78

Thread 14 (LWP 3455):
#0  __lll_lock_wait (futex=0x7f60208040, private=0) at lowlevellock.c:52
#1  0x0000007fab5b1540 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x7f60208040) at pthread_mutex_lock.c:115
#2  0x0000007fa9e0ef48 in mpp_buffer_ref_dec (buffer=0x7f6406fee8, caller=caller@entry=0x7fa9ee1ae7 "check_entry_unused") at ../git/mpp/base/mpp_buffer_impl.cpp:503
#3  0x0000007fa9e0fb84 in mpp_buffer_put_with_caller (buffer=<optimized out>, caller=caller@entry=0x7fa9ee1ae7 "check_entry_unused") at ../git/mpp/base/mpp_buffer.cpp:105
#4  0x0000007fa9e0bf1c in check_entry_unused (entry=0x7f601ef530, impl=0x7f60263ec0) at ../git/mpp/base/mpp_buf_slot.cpp:627
#5  mpp_buf_slot_clr_flag (slots=0x7f60263ec0, index=<optimized out>, type=type@entry=SLOT_QUEUE_USE) at ../git/mpp/base/mpp_buf_slot.cpp:919
#6  0x0000007fa9e00eb0 in dec_vproc_clr_prev0 (ctx=ctx@entry=0x7f34001260) at ../git/mpp/vproc/mpp_dec_vproc.cpp:149
#7  0x0000007fa9e00fd0 in dec_vproc_clr_prev (ctx=ctx@entry=0x7f34001260) at ../git/mpp/vproc/mpp_dec_vproc.cpp:180
#8  0x0000007fa9e012b8 in dec_vproc_thread (data=0x7f34001260) at ../git/mpp/vproc/mpp_dec_vproc.cpp:631
#9  0x0000007fab5af370 in start_thread (arg=0x7f47ffdf16) at pthread_create.c:477
#10 0x0000007fab51bedc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I742e55e745c46a4adb229e2f6f0e2a2c3498e369
2024-02-05 10:33:35 +08:00
xueman.ruan
3a5851e4bb fix[iep_test]: use internal buffer group
Change-Id: I5c61c0d4fa0c9795e92146a2613349e886af453b
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-01-11 16:12:11 +08:00
Herman Chen
8db63d761a fix[common]: Add mpp_dup function
mpp_dup function use fnctl F_DUPFD_CLOEXEC for fd dup with CLOEXEC flag.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Idd82eb935b06d2885685aeb696b95e910981539d
2024-01-10 18:15:45 +08:00
Johnson Ding
f07778c8c1 [vproc]: Fix output frame repeated problem
For IEP2, the first two frames will be deinterlaced at I1O1 mode. I5O2
mode only works when the 3rd frame arrived. Thus the 2nd frame will be
deinterlaced twice and PTS will be repeated as following pattern:
-------------------------------------
IEP in  : 0   1   2       3     4
IEP out : 0   1   0.5 1   2.5 3   3.5
-------------------------------------
To fix this, just skip the 2nd frame processing.

Change-Id: I2d66951a941a664da093f1b9edbdd73855c57060
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-26 09:02:19 +08:00
Johnson Ding
3c5cb158eb [iep2]: Fix frame field detection
Change-Id: Ic5ecd2a7945c9e9e97ef6cc66a43b10a163b1e86
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-20 11:24:39 +08:00
Johnson Ding
24d1594b7f [iep2]: Disable OSD check
OSD checking will cost much CPU time and affecting field detection. So
disable it.

Change-Id: I18fa811623d7d219e207672c7835c366409a9e07
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-20 11:23:46 +08:00
Johnson Ding
8d368ce49d [iep2]: fix timestamp incorrect problem
Field order shown at bistream syntax may be conflict with the detection
result of IEP. If there is obvious index showing that the detection
of IEP is right, we should trust IEP.

Change-Id: Ib151c4b538c187afb33e05c6e6a6e8a46c7629eb
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-20 11:22:57 +08:00
Johnson Ding
15eb1e9dba [iep2]: Fix field order and pulldown detect
Change-Id: I8df235ff9a85cdc1571f3d0fe90f4a32f6af94c1
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-20 11:22:21 +08:00
Herman Chen
c22b65ef22 [vproc]: Simplify reset lock
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I7f53706e74a16658309b3c027fb7c49817c15d86
2022-12-09 10:16:27 +08:00
Herman Chen
9d317ee674 [vproc]: Fix reset when task still in queue
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ic5d89db827024696c79ce51d1eef14d1b4ac415e
2022-12-09 10:07:52 +08:00
Chandler Chen
e59b06463d [iep2] md_pre_en off for rk3528 by default
add iep_md_pre_en env param for rk3528

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I98222263f29b3130e3ae16b6867a341c86755eef
2022-12-07 10:40:53 +08:00
Johnson Ding
e10c4c7f3a [iep2]: Uncomonet dumping yuv routine
Change-Id: Ifc21e5c4f9119433c49c6f64ca7eb42b6287a1ef
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-06 20:58:43 +08:00
Johnson Ding
2c93f73f49 [iep2]:fix crash on mv update
backtrace:
      #00 pc 00071fa4  /vendor/lib/libmpp.so (iep2_is_subt_mv+40)
      #01 pc 00072290  /vendor/lib/libmpp.so (iep2_update_gmv+548)
      #02 pc 0007056c  /vendor/lib/libmpp.so (iep2_done+176)

Change-Id: I0d8cd49a3df87150273216ac0110baae4918c14a
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-06 20:58:43 +08:00
Johnson Ding
f9395047f7 [iep2]: Add env params
Change-Id: Ib9d5292c0f1ecb865652342cd254a56aae2dbd9d
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-12-06 20:58:43 +08:00
Johnson Ding
c2e711cec1 [iep2]: fix output frame order at demo
Change-Id: Ia8dd092bda49e9f38a067914fa267011330f37b3
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-11-21 15:48:40 +08:00
Johnson Ding
5c33791b02 [iep2]: fix page fault
Change-Id: I9541aca0f6a749491b9d301c173b4f3b83794fdb
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-11-21 15:48:32 +08:00
Johnson Ding
4ce2785fd3 [vproc]: Fix dma buffer -1 issue
IEP2 out dst buffer may be NULL if doing reset.
log trace:
    mpp_dma_import_fd:198: dma_buf_get fd 1023 failed(-9)
    rk_vcodec: mpp_task_attach_fd:1679: can't import dma-buf 1023
    rk_vcodec: mpp_process_task_default:566: alloc_task failed.
    rk_vcodec: mpp_wait_result_default:826: session 00000000ca01418f
        pending list is empty!
    rk_vcodec: mpp_msgs_wait:1532: session 540 wait result ret -5

Change-Id: I8a824cd199d703f35d866d800dc7107caf1d76b3
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-11-02 16:46:19 +08:00
Johnson Ding
e2764751b4 [vproc]: Adjust vproc thread flow to fix dead lock
Change-Id: I0ae8e0f44a4a8df03183511086f47e5ba561042a
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-11-02 16:46:19 +08:00
Johnson Ding
293157e10f [iep2]: Frame mode all passed to iep2 for detected
1. Add MPP_VPROC_MODE_DETECTION for user to enable frame/field data
detection for iep2.
2. Use MPP_FRAME_FLAG_DEINTERLACED flag for frame/field data detection
flag in MppFrame.
3. Add vproc version and detection function to dec_vproc module.

Change-Id: I41e36c6df4a09970952b499eda5930091e6f716d
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2022-11-02 16:41:07 +08:00
Herman Chen
8828359534 [misc]: chmod all code file to 644
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2225d7508a7f8bf5693077d20f48065e8324b318
2022-11-02 11:10:49 +08:00
Herman Chen
bb3dd76f91 [hal_task]: Add task stage count on init
Change-Id: Ic983ae423f826e244518e8d5ef06124a5c65c5dc
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-05-26 15:09:47 +08:00
Herman Chen
2b35cee0ce [mpp_log]: Add more log helper function
1. Move mpp_log.h to inc for external user.
2. Add mpp_debug.h for mpp internal logging.
3. Fix some warning.
4. Add log level setup function.
5. Check env log_level value in mpp_get_log_level call.

NOTE:
1. mpp internal module should use mpp_debug.h and mpp external user
should use mpp_log.h
2. Use mpp_get_log_level to update mpp_log_level when the env changed.

Change-Id: I90a55a02a72db177533013280dfe111ca3479229
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-05-20 11:42:10 +08:00
Jeffy Chen
c07169d533 [misc]: Fix a few compile warnings and errors
Reported by llvm-clang.

Change-Id: I62f22fe5754d3e8d77405d213c81fda5d9f5e27d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-03-11 17:45:10 +08:00