fix[buf_slots]: Fix the issue of fmt conv during info change

Platform: General

Error case:
The output format is initialized to fbc, and then converted to yuv
during info change

Solution:
In the SLOTS_FRAME_INFO case, improve the copy of frame information

From: Product Department 2, android15 youtube verification

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Ia78f1272c506ec1ff5e0789fd26b36e3cb1d63b1
This commit is contained in:
Hongjin Li
2024-11-23 11:34:08 +08:00
parent c3b2ece9c2
commit 7554e1c36d

View File

@@ -1270,6 +1270,10 @@ MPP_RET mpp_slots_set_prop(MppBufSlots slots, SlotsPropType type, void *val)
MppFrameImpl *src = (MppFrameImpl *)val;
dst->fmt = src->fmt;
dst->hor_stride = src->hor_stride;
dst->hor_stride_pixel = src->hor_stride_pixel;
dst->ver_stride = src->ver_stride;
dst->buf_size = src->buf_size;
if (MPP_FRAME_FMT_IS_FBC(dst->fmt) && impl->hal_fbc_adj_cfg.func)
impl->hal_fbc_adj_cfg.func(impl, dst, impl->hal_fbc_adj_cfg.expand);