video: driver: add space and move "{" to previous line

This change will fix some checker err.

Change-Id: I93da24e9b54bb1d5f6145b438858a977b06ca09c
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
This commit is contained in:
Ankush Mitra
2023-06-02 18:45:19 +05:30
parent 51a281409e
commit 400a782851
14 changed files with 88 additions and 98 deletions

View File

@@ -73,9 +73,11 @@ typedef HFI_U32 HFI_BOOL;
#define HFI_NV12_IL_CALC_BUF_SIZE(buf_size, y_bufSize, y_stride, y_buf_height, \
uv_buf_size, uv_stride, uv_buf_height) \
y_bufSize = (y_stride * y_buf_height); \
uv_buf_size = (uv_stride * uv_buf_height); \
(buf_size = HFI_ALIGN(y_bufSize + uv_buf_size, HFI_ALIGNMENT_4096))
do { \
y_bufSize = (y_stride * y_buf_height); \
uv_buf_size = (uv_stride * uv_buf_height); \
buf_size = HFI_ALIGN(y_bufSize + uv_buf_size, HFI_ALIGNMENT_4096) \
} while (0)
#define HFI_NV12_UBWC_IL_CALC_Y_BUF_SIZE(y_bufSize, y_stride, y_buf_height) \
(y_bufSize = HFI_ALIGN(y_stride * y_buf_height, HFI_ALIGNMENT_4096))
@@ -133,8 +135,10 @@ typedef HFI_U32 HFI_BOOL;
(buf_height = HFI_ALIGN(frame_height, min_buf_height_multiple))
#define HFI_YUV420_TP10_CALC_UV_STRIDE(stride, frame_width, stride_multiple) \
stride = HFI_ALIGN(frame_width, 192); \
stride = HFI_ALIGN(stride * 4 / 3, stride_multiple)
do { \
stride = HFI_ALIGN(frame_width, 192); \
stride = HFI_ALIGN(stride * 4 / 3, stride_multiple); \
} while (0)
#define HFI_YUV420_TP10_CALC_UV_BUFHEIGHT(buf_height, frame_height, \
min_buf_height_multiple) \
@@ -490,8 +494,7 @@ typedef HFI_U32 HFI_BOOL;
SIZE_H264D_HW_BIN_BUFFER(_size, n_aligned_w, \
n_aligned_h, delay, num_vpp_pipes); \
} \
else \
{ \
else { \
_size = 0; \
} \
} while (0)
@@ -575,8 +578,7 @@ typedef HFI_U32 HFI_BOOL;
_size = MIN(_size, H265D_MAX_SLICE + 1); \
_size = HFI_ALIGN(_size, 4); \
_size = 2 * _size * SIZE_H265D_VPP_CMD_PER_BUF; \
if (_size > VPP_CMD_MAX_SIZE) \
{ \
if (_size > VPP_CMD_MAX_SIZE) { \
_size = VPP_CMD_MAX_SIZE; \
} \
} while (0)
@@ -641,8 +643,7 @@ typedef HFI_U32 HFI_BOOL;
VENUS_DMA_ALIGNMENT) * 4 + \
HFI_ALIGN(SIZE_H265D_QP(frame_width, frame_height),\
VENUS_DMA_ALIGNMENT); \
if (is_opb) \
{ \
if (is_opb) { \
SIZE_VPSS_LB(vpss_lb_size, frame_width, frame_height,\
num_vpp_pipes); \
} \
@@ -746,7 +747,7 @@ typedef HFI_U32 HFI_BOOL;
#define HFI_IRIS3_VP9D_LB_SIZE(_size, frame_width, frame_height, num_vpp_pipes)\
do { \
_size = HFI_ALIGN(SIZE_VPXD_LB_FE_LEFT_CTRL(frame_width, \
frame_height),VENUS_DMA_ALIGNMENT) * num_vpp_pipes + \
frame_height), VENUS_DMA_ALIGNMENT) * num_vpp_pipes + \
HFI_ALIGN(SIZE_VPXD_LB_SE_LEFT_CTRL(frame_width, frame_height),\
VENUS_DMA_ALIGNMENT) * num_vpp_pipes + \
HFI_ALIGN(SIZE_VP9D_LB_VSP_TOP(frame_width, frame_height), \
@@ -826,8 +827,7 @@ typedef HFI_U32 HFI_BOOL;
#define HFI_BUFFER_LINE_MP2D(_size, frame_width, frame_height, \
_yuv_bufcount_min, is_opb, num_vpp_pipes) \
do \
{ \
do { \
HFI_U32 vpss_lb_size = 0; \
_size = HFI_ALIGN(SIZE_VPXD_LB_FE_LEFT_CTRL(frame_width, \
frame_height), VENUS_DMA_ALIGNMENT) * num_vpp_pipes + \
@@ -1173,8 +1173,7 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
tile_size = fixed_tile_width; \
tile_count = (frame_width_coded + tile_size - 1) / tile_size; \
last_tile_size = (frame_width_coded - (tile_size * (tile_count - 1))); \
if (last_tile_size < min_tile_size) \
{ \
if (last_tile_size < min_tile_size) { \
tile_count -= 1; \
last_tile_size = (tile_size + min_tile_size); \
} \
@@ -1217,8 +1216,7 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
#define SIZE_ROI_METADATA_ENC(size_roi, frame_width, frame_height, lcu_size)\
do { \
HFI_U32 width_in_lcus = 0, height_in_lcus = 0, n_shift = 0; \
while (lcu_size && !(lcu_size & 0x1)) \
{ \
while (lcu_size && !(lcu_size & 0x1)) { \
n_shift++; \
lcu_size = lcu_size >> 1; \
} \
@@ -1245,7 +1243,7 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
do { \
HFI_BUFFER_INPUT_METADATA_ENC(size_metadata, frame_width, \
frame_height, is_roi_enabled, 16); \
}while (0)
} while (0)
#define HFI_BUFFER_INPUT_METADATA_H265E(size_metadata, frame_width, \
frame_height, is_roi_enabled) \
@@ -1309,13 +1307,11 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
size_aligned_width = HFI_ALIGN((frame_width), lcu_size); \
size_aligned_height = HFI_ALIGN((frame_height), lcu_size); \
if (work_mode == HFI_WORKMODE_2) { \
if ((rc_type == HFI_RC_CQ) || (rc_type == HFI_RC_OFF)) \
{ \
if ((rc_type == HFI_RC_CQ) || (rc_type == HFI_RC_OFF)) { \
bitstream_size_eval = (((size_aligned_width) * \
(size_aligned_height) * 3) >> 1); \
} \
else \
{ \
else { \
bitstream_size_eval = ((size_aligned_width) * \
(size_aligned_height) * 3); \
if (rc_type == HFI_RC_LOSSLESS) { \
@@ -1779,8 +1775,7 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
} while (0)
#define HFI_IRIS3_ENC_MIN_INPUT_BUF_COUNT(numInput, TotalHBLayers) \
do \
{ \
do { \
numInput = 3; \
if (TotalHBLayers >= 2) \
{ \