msm: vidc: Fix the type of frame size
VIDIOC_ENUM_FRAMESIZES ioctl enumerate all frame sizes that the device supports for the given pixel format. It also provides the type of frame sizes the device supports. The frame type supported is stepwise and it is continuous i.e. the step size is 1. Keeping it as stepwise. Change-Id: I9c801bd3dface3b1d1d824aea124e9c0666e09e1 Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
parent
6d08baec31
commit
6ed59ad591
1 changed files with 1 additions and 4 deletions
|
@ -1223,10 +1223,7 @@ int msm_vidc_enum_framesizes(void *instance, struct v4l2_frmsizeenum *fsize)
|
|||
}
|
||||
|
||||
if (capability) {
|
||||
fsize->type = capability->width.step_size == 1 &&
|
||||
capability->height.step_size == 1 ?
|
||||
V4L2_FRMSIZE_TYPE_CONTINUOUS :
|
||||
V4L2_FRMSIZE_TYPE_STEPWISE;
|
||||
fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE;
|
||||
fsize->stepwise.min_width = capability->width.min;
|
||||
fsize->stepwise.max_width = capability->width.max;
|
||||
fsize->stepwise.step_width = capability->width.step_size;
|
||||
|
|
Loading…
Add table
Reference in a new issue