video: driver: fix some checker err
Fix some checker err Change-Id: I3526a509f4cbb3d91284b21dad851b57bb43f57a Signed-off-by: Anshul Agarwal <quic_anshagar@quicinc.com>
This commit is contained in:
@@ -290,7 +290,8 @@ static struct msm_platform_core_capability core_data_kalama[] = {
|
|||||||
{MAX_SECURE_SESSION_COUNT, 3},
|
{MAX_SECURE_SESSION_COUNT, 3},
|
||||||
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
||||||
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
||||||
{MAX_MBPS, 7833600}, /* max_load
|
{MAX_MBPS, 7833600},
|
||||||
|
/* max_load
|
||||||
* 7680x4320@60fps or 3840x2176@240fps
|
* 7680x4320@60fps or 3840x2176@240fps
|
||||||
* which is greater than 4096x2176@120fps,
|
* which is greater than 4096x2176@120fps,
|
||||||
* 8192x4320@48fps
|
* 8192x4320@48fps
|
||||||
|
@@ -292,7 +292,8 @@ static struct msm_platform_core_capability core_data_pineapple[] = {
|
|||||||
{MAX_SECURE_SESSION_COUNT, 3},
|
{MAX_SECURE_SESSION_COUNT, 3},
|
||||||
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
||||||
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
||||||
{MAX_MBPS, 7833600}, /* max_load
|
{MAX_MBPS, 7833600},
|
||||||
|
/* max_load
|
||||||
* 7680x4320@60fps or 3840x2176@240fps
|
* 7680x4320@60fps or 3840x2176@240fps
|
||||||
* which is greater than 4096x2176@120fps,
|
* which is greater than 4096x2176@120fps,
|
||||||
* 8192x4320@48fps
|
* 8192x4320@48fps
|
||||||
|
@@ -196,7 +196,8 @@ static struct msm_platform_core_capability core_data_pineapple[] = {
|
|||||||
{MAX_NUM_8K_SESSIONS, 2},
|
{MAX_NUM_8K_SESSIONS, 2},
|
||||||
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
{MAX_RT_MBPF, 174080}, /* (8192x4352)/256 + (4096x2176)/256*/
|
||||||
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
{MAX_MBPF, 278528}, /* ((8192x4352)/256) * 2 */
|
||||||
{MAX_MBPS, 7833600}, /* max_load
|
{MAX_MBPS, 7833600},
|
||||||
|
/* max_load
|
||||||
* 7680x4320@60fps or 3840x2176@240fps
|
* 7680x4320@60fps or 3840x2176@240fps
|
||||||
* which is greater than 4096x2176@120fps,
|
* which is greater than 4096x2176@120fps,
|
||||||
* 8192x4320@48fps
|
* 8192x4320@48fps
|
||||||
|
@@ -1072,7 +1072,8 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
|
|||||||
#define AV1_CABAC_HDR_RATIO_HD_TOT 2
|
#define AV1_CABAC_HDR_RATIO_HD_TOT 2
|
||||||
#define AV1_CABAC_RES_RATIO_HD_TOT 2
|
#define AV1_CABAC_RES_RATIO_HD_TOT 2
|
||||||
/* some content need more bin buffer,
|
/* some content need more bin buffer,
|
||||||
* but limit buffer size for high resolution */
|
* but limit buffer size for high resolution
|
||||||
|
*/
|
||||||
#define SIZE_AV1D_HW_BIN_BUFFER(_size, frame_width, frame_height, delay, \
|
#define SIZE_AV1D_HW_BIN_BUFFER(_size, frame_width, frame_height, delay, \
|
||||||
num_vpp_pipes) \
|
num_vpp_pipes) \
|
||||||
do { \
|
do { \
|
||||||
|
@@ -1072,7 +1072,8 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
|
|||||||
#define AV1_CABAC_HDR_RATIO_HD_TOT 2
|
#define AV1_CABAC_HDR_RATIO_HD_TOT 2
|
||||||
#define AV1_CABAC_RES_RATIO_HD_TOT 2
|
#define AV1_CABAC_RES_RATIO_HD_TOT 2
|
||||||
/* some content need more bin buffer,
|
/* some content need more bin buffer,
|
||||||
* but limit buffer size for high resolution */
|
* but limit buffer size for high resolution
|
||||||
|
*/
|
||||||
#define SIZE_AV1D_HW_BIN_BUFFER(_size, frame_width, frame_height, delay, \
|
#define SIZE_AV1D_HW_BIN_BUFFER(_size, frame_width, frame_height, delay, \
|
||||||
num_vpp_pipes) \
|
num_vpp_pipes) \
|
||||||
do { \
|
do { \
|
||||||
|
@@ -382,10 +382,12 @@ u32 msm_vidc_encoder_output_size(struct msm_vidc_inst *inst)
|
|||||||
frame_size = frame_size << 1;
|
frame_size = frame_size << 1;
|
||||||
|
|
||||||
if (inst->rc_type == RATE_CONTROL_LOSSLESS)
|
if (inst->rc_type == RATE_CONTROL_LOSSLESS)
|
||||||
frame_size = (width * height * 9) >> 2; */
|
frame_size = (width * height * 9) >> 2;
|
||||||
|
*/
|
||||||
|
|
||||||
skip_calc:
|
skip_calc:
|
||||||
/* multiply by 10/8 (1.25) to get size for 10 bit case */
|
/* multiply by 10/8 (1.25) to get size for 10 bit case
|
||||||
|
*/
|
||||||
if (codec == MSM_VIDC_HEVC || codec == MSM_VIDC_HEIC)
|
if (codec == MSM_VIDC_HEVC || codec == MSM_VIDC_HEIC)
|
||||||
frame_size = frame_size + (frame_size >> 2);
|
frame_size = frame_size + (frame_size >> 2);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user