Commit graph

4037 commits

Author SHA1 Message Date
Herman Chen
4ed4f77864 docs: Update 1.0.11 CHANGELOG.md
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia04f68f2cbbb973b4e97b0ef97937e6ad48c6c5c
2025-09-10 17:02:04 +08:00
Herman Chen
ddb95f5a4f feat[mpp_trie]: Add info name max length record
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I0a784d6938e9a19632c20e6e92597b77c12604d9
2025-09-10 17:01:22 +08:00
Herman Chen
b313e9c018 chore[dec_test]: Remove unused code
https://github.com/rockchip-linux/mpp/issues/901

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I7cf65a6f277caced12960ca50885c2bab5ed1e72
2025-09-10 16:59:06 +08:00
Herman Chen
5d9da6f29e feat[mpp_enc_cfg]: Separate init function
Add mpp_enc_cfg_init_k for kernel encoder config init.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I4ebdc179b27115d72a2efa213405cbb4dca564d0
2025-09-10 16:57:08 +08:00
Yandong Lin
fdba12d3fa fix[h265e]: Remove unused buffer
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ief949dd9a1f00252e0268007f9dac1449578d997
2025-09-03 09:38:17 +00:00
Herman Chen
fb23f69ca7 chore[mpp_singleton]: Update name print
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I24c4ce23032a8b264837040425123e0027f90578
2025-09-03 12:03:49 +08:00
Herman Chen
aa15b9b5bd refactor[sys_cfg]: Refactor C++ sys_cfg to C
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I59f4e3b13ba5e49ae34bb1b4886f37bd3341ce56
2025-09-03 11:48:55 +08:00
Herman Chen
ced006c2a8 refactor[test]: Refactor C++ test file to C
1. Refactor test cpp files to c.
2. Update test license to Apache-2.0 OR MIT.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I02f3e23ddae8435ca851a5f0164f04ef5f51ccc2
2025-09-03 11:15:38 +08:00
Herman Chen
ca061993ef refactor[osal]: Refactor C++ osal file to C
1. Refactor osal cpp files to c.
2. Update osal license to Apache-2.0 OR MIT.
3. Remove windows support.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ic5545d861676880f7a6247515404d585cd4fcef5
2025-09-02 17:49:14 +08:00
Herman Chen
6666925dab refactor[rc]: Refactor C++ rc/rc_base to C
Change-Id: Iae123d5bc76e74b06a09655829de3ef0508ebd30
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>
2025-09-02 15:04:56 +08:00
Yandong Lin
8beb56a735 fix[mpp]: Add null check for sync pkt buffer
Change-Id: I5e17ce26ee3af2232d97a414f52820122e2402f9
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-09-02 03:26:29 +00:00
Yanjun Liao
d135040c83 fix[mpp_meta]: Add user data deep copy support
Platform: all
Spec: all

Deep copy user data/datas in meta to ensure async safety
and avoid use-after-free

Change-Id: Iebc42563b7700a1f3ca24a535a446cc1f6a7c451
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-09-02 10:55:34 +08:00
timkingh.huang
6588b71f2b fix[mpp_meta]: Add KEY_NPU_UOBJ_FLAG and KEY_NPU_SOBJ_FLAG
UOBJ: deliver userspace buffer for rk3588 and rk3576
SOBJ: deliver shared memory buffer for rv1126b

Sync to kmpp-develop patch with the same log:
If596371639eaedb01d6900c737d1f7fec49bf8d4

Change-Id: I8927f6341b5d3f94bf52af32c02b75cd24ad0681
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2025-09-01 17:35:25 +08:00
Yanjun Liao
9a6bf0e0b0 fix[kmpp_obj]: Fix obj ioctl typo
Use "flags" instead of "flag" for KmppIoc entry

Change-Id: I87b0557a09cfad87d825836de1c6be72478957e5
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-08-28 14:52:11 +08:00
Herman Chen
63343c7761 fix[mpp_trie]: Fix get err node issue
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia4db61137545f55be0ef08acf06f8d6a439297e2
2025-08-28 09:46:10 +08: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
Alexander
07805f336b fix[script]: Prepend bash with /usr/bin/env
Reported by https://github.com/rockchip-linux/mpp/pull/890

Change-Id: I066dad0e3cef66546994406394daf29df4a67849
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2025-08-22 09:10:30 +08:00
xiaoxu.chen
54bdc5ddbc refactor[enc]: Use KmppShmPtr to represent osd buffer
Change-Id: I2211b806d4b4a065faf1f0fa5a240e104bbb30ab
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-13 14:55:14 +08:00
Yandong Lin
0ce028aaa9 fix[kmpp_buffer]: Close fd when deinit
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ie12c20ecaa6d2b090d257e8fe1ba8f578da4a054
2025-08-12 09:27:30 +00:00
xiaoxu.chen
317fce0bee chore[hal]: Organize the relevant processes for vepu fmt
1. Move Vepu fmt from vepu541_common to vepu5xx_common
2. Create vepu580_common
3. Add vepu ARGB4444, ARGB1555, AYUV1BPP, AYUV2BPP

Change-Id: I372e35d9ccf93ecf082d4a279c03841bef3bc581
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-12 03:40:29 +00:00
xiaoxu.chen
bb2f5bba51 refactor[kmpp]: Fix kmpp obj compilation warning
Change-Id: I081c631b1e921b67324e81dc193732b338aefe17
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-12 10:39:52 +08:00
wangbin
9751e7ac96 fix[mpp_thread]: Fix thread name is not set
https://github.com/rockchip-linux/mpp/pull/887

Change-Id: I96937a2fb42cb40f60d432ead3c826b6d89bee23
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2025-08-12 02:30:40 +00:00
Herman Chen
32767f39fb fix: Rename FFmpeg to FF for sdk release request
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia78a214cd5544e6d7ad14c19201d5cb53138c6d5
2025-08-11 15:04:24 +08:00
Herman Chen
a91e70bd23 chore: Rename Dolby for sdk release requirement
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia5293f7963937ce57c123590abc32d208d181602
2025-08-11 07:01:16 +00:00
xiaoxu.chen
45246e9c89 fix[kmpp_obj]: Fix kmpp obj get by sptr
Change-Id: I2db2823448351200ac25ae5496319e80fee2985e
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-11 10:07:23 +08:00
Rimon Xu
3e54310f7f fix[h265d]: Ensure the DTS is transmitted to the frame
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Change-Id: Ic950a1c4f9ab8d7c54d699773f7a0629fe04fb3d
2025-08-08 02:44:03 +00:00
xiaoxu.chen
c70028a976 test[mpi_enc_test]: Add jpeg roi test
Change-Id: Ie76605bca67c39ca47b2200418190ee4af22e0df
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-06 14:39:34 +08:00
xiaoxu.chen
8808b16d7a feat[mpp]: Add jpeg roi function for RV1126B
Change-Id: I41bb66fbe1abf4adfa32162630e00d4050adb516
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-06 14:39:34 +08:00
xiaoxu.chen
7043132d0c feat[kmpp]: Add jpeg roi function for kmpp
Sync with kmpp-develop commit:
feat[kmpp]: Add jpeg roi function for RV1126B

Change-Id: Ifeb5ce7b75af6fc3fc0e66fbe727dfd30a325a0e
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-06 14:39:22 +08:00
Yanjun Liao
225418ca78 fix[kmpp_obj]: Rename kmpp_obj_impl_put func
Change-Id: I08313a43e68fe93ecf141505a2be4439a5b507f8
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-08-04 01:51:03 +00:00
Yanjun Liao
7fbdfbe3c1 fix[kmpp_obj]: Fix kmpp frm/pkt self meta erro
Change-Id: Ibfb4409962e4f35fdcc73cf239253b44a86a52ce
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-08-03 14:05:33 +08:00
Yandong Lin
8dcf903d9e feat[kmpp]: Set chan_fd to init cfg
Depend on the commit:
270375: feat[kmpp_venc_objs]: Add chan_fd to init cfg | https://10.10.10.29/c/rk/mpp/+/270375

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I5d174695f023cf306e7f4df59243d21f255c2bc3
2025-07-31 17:02:05 +08:00
Yanjun Liao
ac16b2c63e fix[h264e_api_v2]: Fix bit_real calc in skip mode
Platform: all
Spec: h264e

The hw_length is in bytes, but bit_real is in bits.

Change-Id: I53428c6347c3f33ad63d2f6dd78daa72b910055f
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-31 00:55:45 +00:00
Hongjin Li
cca218ca73 fix[h264d]: Fix fast play mode not working in shell environment.
Platform: General
Spec: h264

Error case:
Forced fast play mode does not take effect.

Reported-by: redmine #567023
Change-Id: Ia167a9c59feb0d3b276588bcade691518984fca9
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2025-07-30 13:34:00 +00:00
Yanjun Liao
47cfaf2497 fix[kmpp_frame]: Remove unnecessary logs
Change-Id: I7c0a80540f2f80113fd70fec15e148dcec90325c
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-30 18:55:59 +08:00
Yanjun Liao
a899106f89 feat[kmpp]: Replace frame_infos with kmpp_frame
kernel patch:
fix[mpp_vcodec]: Replace frame_infos with kmpp_frame

Change-Id: Ie3b0358a7b79ad9755608f20b5b29175263b4dbb
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-30 18:39:07 +08:00
Yanjun Liao
136e6ae0c4 fix[enc_test]: Set input block mode in init kcfg
kernel patch:
270111: fix[mpp_vcodec]: Support input/output block mode

Change-Id: I1fb791872d36f77151db57520add33a5383d6cb6
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-30 18:35:16 +08:00
Herman Chen
9abddf0a7b chore[kmpp_meta]: Disable failure log
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I5d721014bac6345c32644cdadd4da7750f671100
2025-07-30 15:54:47 +08:00
Yanjun Liao
40d1857674 feat[kmpp_frame]: Add self_meta in kmpp_frame
Change-Id: Ieddb482e06c5230e04d6b05dec5bf48c307c411e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-29 10:22:44 +08:00
Yanjun Liao
f47eae175c feat[kmpp_buffer]: Add ioctl to inc ref and flush
Change-Id: Ia0c12d6bae71246c17e0a065761439702c529af9
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-28 22:30:35 +08:00
Herman Chen
b851fdc379 chore[mpp_enc_cfg]: Add base:smart_en option
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: If3799589a8a65a2181b117d70014af87957afe72
2025-07-25 14:44:46 +08:00
Herman Chen
fef2e2af06 feat[mpp_meta]: Add more frame buffer key to meta
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I8873dff77c85ddcacf0845ca81f6c0f3dd30e88e
2025-07-25 11:24:54 +08:00
Yanjun Liao
05f59be432 fix[hal_h265e]: Fix nal type in tsvc mode
Platform: vepu_580/540/510
Spec: h265e

In tsvc mode, top p-frames not used as reference frames.

Change-Id: I0b285e5ed753e73321fd728389195f0e5b118874
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-25 11:02:42 +08:00
Herman Chen
1893dede1c refactor[rc_api]: Refactor C++ rc_api to C
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I0130766b1f5817e4581454e72d478e112e6e836d
2025-07-23 18:01:09 +08:00
Hongjin Li
cc3194d336 fix[h265d]: Fix log issue
Reported-by: https://github.com/rockchip-linux/mpp/issues/874

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Ic2b60decee850f15db9e5145b62dbc5a05f4c03a
2025-07-23 01:45:08 +00:00
xiaoxu.chen
2f5e6399c3 feat[base]: Add toml function
1. add cfg to toml
2. add toml to cfg

Change-Id: Iab5cb8f498f8bb769a0bc90a5beca85365bc960f
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-07-23 01:32:05 +00:00
Herman Chen
9aef0ff7a7 feat[base]: Use enc cfg obj
Sync with kmpp-develop commit:
feat[kmpp]: Use enc cfg obj

Add MppEncCfgImpl to compatible with MppEncCfgSet and kmpp_obj path.

Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Id4e262d1053c03cd93d620828405f060f0f8517c
2025-07-18 15:48:19 +08:00
Herman Chen
f317f8c50f chore[kmpp_obj]: Add is_kobj query function
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3fde40bd823d5ca336931fc4e959cfb1deb96498
2025-07-17 18:10:55 +08:00
xiaoxu.chen
be7fc93fc2 fix[vepu511]: Add tune stat update
Change-Id: I813fbf37735673660bde2266a25939690d15e98d
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-07-14 17:51:16 +08:00
timkingh.huang
72492494ee feat[smart_v3]: Add new frame qp interface
min_bg_fqp: min frame qp for background region
max_bg_fqp: max frame qp for background region
min_fg_fqp: min frame qp for foreground region
max_fg_fqp: max frame qp for foreground region

Change-Id: Idc10767d545dd83e4157f839a621e4801c98201e
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2025-07-12 17:21:09 +08:00