-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2b2f48
commit 12df233
Showing
15 changed files
with
1,681 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,306 changes: 1,260 additions & 46 deletions
1,306
project/3rdparty/source/media/media/drm_media_api.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
project/3rdparty/source/rockchip/rkmpp/mpp/hal/rkenc/h264e/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
obj-y += hal_h264e_vepu541.o | ||
obj-n += hal_h264e_vepu580_tune.o | ||
obj-y += hal_h264e_vepu580_tune.o | ||
obj-y += hal_h264e_vepu580.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
project/3rdparty/source/rockchip/rkmpp/mpp/hal/rkenc/h264e/hal_h264e_vepu580_private.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#ifndef __HAL_H264E_VEPU580_PRIVATE_H__ | ||
#define __HAL_H264E_VEPU580_PRIVATE_H__ | ||
|
||
#include <string.h> | ||
#include <stdlib.h> | ||
|
||
#include "../../../../osal/inc/mpp_env.h" | ||
#include "../../../../osal/inc/mpp_mem.h" | ||
#include "../../../../osal/inc/mpp_common.h" | ||
#include "../../../base/inc/mpp_frame_impl.h" | ||
#include "../../../base/inc/mpp_packet_impl.h" | ||
#include "../../../codec/inc/mpp_rc.h" | ||
|
||
#include "../../../codec/enc/h264/h264e_sps.h" | ||
#include "../../../codec/enc/h264/h264e_pps.h" | ||
#include "../../../codec/enc/h264/h264e_dpb.h" | ||
#include "../../../codec/enc/h264/h264e_slice.h" | ||
|
||
#include "../../common/h264/hal_h264e_debug.h" | ||
#include "../../common/hal_bufs.h" | ||
#include "../../inc/mpp_enc_hal.h" | ||
#include "../common/vepu541_common.h" | ||
#include "hal_h264e_vepu580_reg.h" | ||
#include "../../../base/inc/mpp_enc_cb_param.h" | ||
|
||
#define DUMP_REG 0 | ||
#define MAX_TASK_CNT 2 | ||
|
||
#define CHROMA_KLUT_TAB_SIZE (24 * sizeof(RK_U32)) | ||
|
||
typedef struct HalH264eVepu580Ctx_t { | ||
MppEncCfgSet *cfg; | ||
|
||
MppDev dev; | ||
RK_S32 frame_cnt; | ||
RK_U32 task_cnt; | ||
|
||
/* buffers management */ | ||
HalBufs hw_recn; | ||
RK_S32 pixel_buf_fbc_hdr_size; | ||
RK_S32 pixel_buf_fbc_bdy_size; | ||
RK_S32 pixel_buf_size; | ||
RK_S32 thumb_buf_size; | ||
RK_S32 max_buf_cnt; | ||
MppDevRegOffCfgs *offsets; | ||
|
||
/* external line buffer over 4K */ | ||
MppBufferGroup ext_line_buf_grp; | ||
MppBuffer ext_line_bufs[MAX_TASK_CNT]; | ||
RK_S32 ext_line_buf_size; | ||
|
||
/* syntax for input from enc_impl */ | ||
RK_U32 updated; | ||
H264eSps *sps; | ||
H264ePps *pps; | ||
H264eDpb *dpb; | ||
H264eSlice *slice; | ||
H264eFrmInfo *frms; | ||
H264eReorderInfo *reorder; | ||
H264eMarkingInfo *marking; | ||
H264ePrefixNal *prefix; | ||
|
||
/* syntax for output to enc_impl */ | ||
EncRcTaskInfo hal_rc_cfg; | ||
|
||
/* roi */ | ||
void *roi_data; | ||
|
||
/* osd */ | ||
Vepu541OsdCfg osd_cfg; | ||
|
||
/* finetune */ | ||
void *tune; | ||
|
||
/* two-pass deflicker */ | ||
MppBuffer buf_pass1; | ||
|
||
/* register */ | ||
HalVepu580RegSet *regs_sets; | ||
|
||
/* frame parallel info */ | ||
RK_S32 task_idx; | ||
RK_S32 curr_idx; | ||
RK_S32 prev_idx; | ||
HalVepu580RegSet *regs_set; | ||
MppBuffer ext_line_buf; | ||
|
||
/* slice low delay output callback */ | ||
MppCbCtx *output_cb; | ||
RK_S32 poll_slice_max; | ||
RK_S32 poll_cfg_size; | ||
MppDevPollCfg *poll_cfgs; | ||
} HalH264eVepu580Ctx; | ||
|
||
extern RK_U32 h264e_klut_weight[30]; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
project/3rdparty/source/rockchip/rkmpp/mpp/hal/rkenc/h265e/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
obj-y += hal_h265e_vepu541.o | ||
obj-n += hal_h265e_vepu580_tune.o | ||
obj-y += hal_h265e_vepu580_tune.o | ||
obj-y += hal_h265e_vepu580.o |
Oops, something went wrong.