mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 04:50:39 +01:00
[mpp_buf_slot]: Formating code
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: If48dbc3eb797495e4c62a8d8c30c5c0aee105c16
This commit is contained in:
parent
0b670f2ec0
commit
7bf0f1a54c
1 changed files with 16 additions and 16 deletions
|
|
@ -265,22 +265,22 @@ static void generate_info_set(MppBufSlotsImpl *impl, MppFrame frame, RK_U32 forc
|
|||
RK_U32 hor_stride_pixel;
|
||||
|
||||
switch (fmt & MPP_FRAME_FMT_MASK) {
|
||||
case MPP_FMT_YUV420SP_10BIT: {
|
||||
hor_stride_pixel = hal_hor_stride * 8 / 10;
|
||||
} break;
|
||||
case MPP_FMT_YUV422_YVYU:
|
||||
case MPP_FMT_YUV422_YUYV:
|
||||
case MPP_FMT_RGB565:
|
||||
case MPP_FMT_BGR565: {
|
||||
hor_stride_pixel = hal_hor_stride / 2;
|
||||
} break;
|
||||
case MPP_FMT_RGB888:
|
||||
case MPP_FMT_BGR888: {
|
||||
hor_stride_pixel = hal_hor_stride / 3;
|
||||
} break;
|
||||
default : {
|
||||
hor_stride_pixel = hal_hor_stride;
|
||||
} break;
|
||||
case MPP_FMT_YUV420SP_10BIT: {
|
||||
hor_stride_pixel = hal_hor_stride * 8 / 10;
|
||||
} break;
|
||||
case MPP_FMT_YUV422_YVYU:
|
||||
case MPP_FMT_YUV422_YUYV:
|
||||
case MPP_FMT_RGB565:
|
||||
case MPP_FMT_BGR565: {
|
||||
hor_stride_pixel = hal_hor_stride / 2;
|
||||
} break;
|
||||
case MPP_FMT_RGB888:
|
||||
case MPP_FMT_BGR888: {
|
||||
hor_stride_pixel = hal_hor_stride / 3;
|
||||
} break;
|
||||
default : {
|
||||
hor_stride_pixel = hal_hor_stride;
|
||||
} break;
|
||||
}
|
||||
|
||||
hal_hor_stride = (force_default_align && codec_hor_stride) ? codec_hor_stride : hal_hor_stride;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue