disp: msm: add VDC-m parameter calculation support
Add support to calculate the parameters needed to configure the VDC-m encoder. These are also needed to configure the PPS command which shall be sent to the decoder. Change-Id: I36db93f7555aee34b5b893e389a7eb88d0e05f68 Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
此提交包含在:
49
msm/sde_vdc_helper.h
一般檔案
49
msm/sde_vdc_helper.h
一般檔案
@@ -0,0 +1,49 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __SDE_VDC_HELPER_H__
|
||||
#define __SDE_VDC_HELPER_H__
|
||||
|
||||
#include "msm_drv.h"
|
||||
|
||||
#define VDC_BPP(bits_per_pixel) (bits_per_pixel >> 4)
|
||||
|
||||
#define VDC_NUM_BUF_RANGES (DSC_NUM_BUF_RANGES - 1)
|
||||
|
||||
#define VDC_FLAT_QP_LUT_SIZE 8
|
||||
#define VDC_MAX_QP_LUT_SIZE 8
|
||||
#define VDC_TAR_DEL_LUT_SIZE 16
|
||||
#define VDC_LBDA_BRATE_LUT_SIZE 16
|
||||
#define VDC_LBDA_BF_LUT_SIZE 16
|
||||
#define VDC_LBDA_BRATE_REG_SIZE 64
|
||||
|
||||
#define VDC_VIDEO_MODE 0
|
||||
#define VDC_CMD_MODE 1
|
||||
|
||||
#define VDC_TRAFFIC_SYNC_PULSES 0
|
||||
#define VDC_TRAFFIC_SYNC_START_EVENTS 1
|
||||
#define VDC_TRAFFIC_BURST_MODE 2
|
||||
|
||||
#define MAX_PIPELINE_LATENCY 68
|
||||
#define OB_DATA_WIDTH 128
|
||||
#define OUT_BUF_FULL_THRESH 2
|
||||
#define OUT_BUF_UF_MARGIN 3
|
||||
#define OUT_BUF_OF_MARGIN_TC_10 5
|
||||
#define OUT_BUF_OF_MARGIN_OB 3
|
||||
#define OUTPUT_DATA_WIDTH 64
|
||||
#define OB0_RAM_DEPTH 912
|
||||
#define OB1_RAM_DEPTH 736
|
||||
|
||||
#define SSM_MAX_SE_SIZE 128
|
||||
#define RC_TARGET_RATE_EXTRA_FTBLS 2
|
||||
|
||||
#define NUM_ACTIVE_HS 1
|
||||
#define MAX_PIXELS_PER_HS_LINE 5120
|
||||
|
||||
int sde_vdc_populate_config(struct msm_display_vdc_info *vdc_info,
|
||||
int intf_width, int traffic_mode);
|
||||
|
||||
#endif /* __SDE_VDC_HELPER_H__ */
|
||||
|
新增問題並參考
封鎖使用者