Commit graph

18 commits

Author SHA1 Message Date
Herman Chen
359b5c075c chore: A fix for company release requirement
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Id24b2448a0fe1cbda19c1d1421f8ddb7c21c40dd
2025-05-08 03:31:54 +00:00
Johnson Ding
be45576b34 refactor[hal_jpegd]: init devices at hal_jpegd_api
Calling mpp_dev_init at hal_jpegd_api before calling each device init
function. Client type can be and should be specified before calling each
device init function. There is no need to re-initialize MppDev when
PP should be used. This fix also avoid lossing format information after
re-initialize MppDev, which result in extra_info storing at higher bits of
bitstream base address register instead of appending after registers datas.

Change-Id: I2edd8f91f29d04a151c94e9d342f153f42118eb1
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-06-06 18:12:50 +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
Herman Chen
fc8c86154e [hal_task]: Change hal_task to info with status
1. Split encoder and decoder hal_task defs and infos.
2. Change hal_task to a general info list with status.

Change-Id: I6f26035eeee4772d1ef99a21d85716e9c33eb9a6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-02-18 15:35:56 +08:00
Herman Chen
549ef870ce [hal_jpegd]: Add have_pp check
Change-Id: Id9b9a5004d0bdc5fd88e084966ada360f575b1a7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-08-23 14:05:41 +08:00
Johnson Ding
e81e72eca6 [jpegd]: Support RGB 16-bit format output
Change-Id: I0f3152bd068498fccc95569bb2950ab78ade2bf6
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2021-08-19 15:20:51 +08:00
Herman Chen
be76be4634 [hal_jpegd_vdpu]: Add pp switch for MppDev
Change-Id: I9e38ac2097b4fff6e33fd8c4fd9f16fbe92adf68
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2021-08-12 14:17:56 +08:00
Herman Chen
0c43069763 [hal_jpegd]: Fix hal jpeg RGB output byte stride
NOTE: RGB format horizontal stride is byte stride. The pixel_stride in
MppFrame is the stride by pixel.

Change-Id: I09e87c5f7fb871ee2b285451ed2f0abfb1351f19
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-07-20 08:54:43 +08:00
Johnson Ding
f1c2d025b4 [jpegd]: Suport RGB32 format output
Change-Id: I2eed0a16895196a1270ba3d8e1ec6074be533f4f
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2021-06-04 18:00:17 +08:00
Johnson Ding
2e611ffac7 [jpegd]: Fix jpeg decoder timeout issue
FF00 before EOI should be kept. The test source file is at
"server=172.16.4.246,share=mediaframework/jpeg_ff00_before_eoi/CIF_98.jpg"

Change-Id: Ic5e7781a329f8effb5b674a1816350be732fffbb
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2021-03-29 15:12:39 +08:00
Johnson Ding
fd7db64eed [jpegd]: Call RKV jpegd prior to old jpegd
Change-Id: I4af49a28a6ce23289c690b5ff185a863e99f8926
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2021-01-05 18:44:54 +08:00
Herman Chen
9ee20c594a [mpp]: Clean up header
Remove extra mpp_dec.h and mpp_enc.h for later modification.

Change-Id: I43c0e1c4ca0cf36070887556b1cd9d428f167090
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-09-19 11:40:59 +08:00
Johnson Ding
d2459e4fac [jpegd]: Add YUV400 support
Change-Id: I110f0f2a16977f985d32204704ca4c2effcd8b90
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2019-06-12 10:55:58 +08:00
Herman Chen
10c9a2d64e [jpegd]: Add vpu jpegd stream patch
VPU hardware will generate error when there is extra 0xFF or 0x00FF
before tailing 0xFFD9. Remove them will fix some jpeg stream.

Change-Id: Ifac26870086e13958e17a41b547fa94c763062f6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-01-02 15:40:04 +08:00
Herman Chen
7d1f812873 [jpegd]: Add YUV444 support
1. Fix missing 444 case on parser stage. Parser should setup YUV444
   format for original jpeg stream format.
2. Fix missing case on MPP_DEC_SET_OUTPUT_FORMAT. When user change
   the output format the corresponding MppFrameFormat should be
   changed.

Change-Id: I111ba2bcadd675339bfe2948a054301780177f9a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2018-10-12 15:35:08 +08:00
timkingh.huang
93aa8a0c8a [jpegd]: modify jpegd parser
scan the stream just for one time in jpegd parser and
remove redundant codes.

Change-Id: I72920b15fc4ed15cfa1de55d9ed249d50cceebb2
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2017-04-01 18:25:15 +08:00
Randy Li
ccdc1377ed [jpegd]: fix the wrong register table of VDPU1
I didn't verify the PP fully, thanks to Timkingh fixed those
mistakes.

Also some register for ROI is added this time.

Change-Id: I713b59bdcb844b516804d5b17ebdfb01924fcc70
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-03-23 17:52:49 +08:00
Randy Li
e8cafa3ed4 [jpegd]: isolate the common functions
The compression table or color coefficient are just relevent
to the JPEG standard.

Change-Id: I4883e45d560e23e6f796af9f674e861f9098777c
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-03-17 10:50:32 +08:00