hi_vpc_crop_resize_border_region

说明

VPC抠图缩放填充信息字典。

定义

hi_vpc_crop_resize_border_region = {"dest_pic_info": hi_vpc_pic_info,
                                    "crop_region": hi_vpc_crop_region,
                                    "resize_info": hi_vpc_resize_info,
                                    "dest_top_offset": dest_top_offset,
                                    "dest_left_offset": dest_left_offset,
                                    "border_type": hi_vpc_bord_type,
                                    "scalar_value": hi_vpc_scalar}

成员

成员名称

描述

dest_pic_info

字典, 目标图片信息。

crop_region

字典, 原图抠图区域信息。

resize_info

字典, 抠图缩放信息。

dest_top_offset

整型, 贴图到另外一张图的顶部偏移。

dest_left_offset

整型, 贴图到另外一张图的左侧偏移。

border_type

整型, 扩充边缘像素的类型。

当前仅支持HI_BORDER_CONSTANT类型。

scalar_value

字典, 仅在填充类型为HI_BORDER_CONSTANT的时候有效,指定填充的像素值;

当前支持用户手动按顺序存放R、G、B分量或Y、U、V分量的值。

注意事项

默认抠图区域的图片格式会转成目标图片的格式,然后再缩放、填充至目标图片的宽高。