mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 05:52:38 -04:00
media: staging: rkisp1: rsz: get the capture format info from the capture struct
Currently the format info of the capture is retrieved by calling the function v4l2_format_info. This is not needed since it is already saved in the capture object. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
839efdb65f
commit
e9ebce2d4c
@@ -387,11 +387,9 @@ static void rkisp1_rsz_config(struct rkisp1_resizer *rsz,
|
||||
if (rsz->pixel_enc == V4L2_PIXEL_ENC_YUV) {
|
||||
struct rkisp1_capture *cap =
|
||||
&rsz->rkisp1->capture_devs[rsz->id];
|
||||
const struct v4l2_format_info *pixfmt_info =
|
||||
v4l2_format_info(cap->pix.fmt.pixelformat);
|
||||
|
||||
hdiv = pixfmt_info->hdiv;
|
||||
vdiv = pixfmt_info->vdiv;
|
||||
hdiv = cap->pix.info->hdiv;
|
||||
vdiv = cap->pix.info->vdiv;
|
||||
}
|
||||
src_c.width = src_y.width / hdiv;
|
||||
src_c.height = src_y.height / vdiv;
|
||||
|
||||
Reference in New Issue
Block a user