Lines Matching refs:height
547 static void ov9740_res_roundup(u32 *width, u32 *height) in ov9740_res_roundup() argument
556 if (*height > OV9740_MAX_HEIGHT) in ov9740_res_roundup()
557 *height = OV9740_MAX_HEIGHT; in ov9740_res_roundup()
561 static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height) in ov9740_set_res() argument
572 if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT)) in ov9740_set_res()
582 if ((OV9740_MAX_WIDTH * height) > (OV9740_MAX_HEIGHT * width)) { in ov9740_set_res()
583 scale_input_x = (OV9740_MAX_HEIGHT * width) / height; in ov9740_set_res()
587 scale_input_y = (OV9740_MAX_WIDTH * height) / width; in ov9740_set_res()
628 ret = ov9740_reg_write(client, OV9740_Y_OUTPUT_SIZE_HI, height >> 8); in ov9740_set_res()
631 ret = ov9740_reg_write(client, OV9740_Y_OUTPUT_SIZE_LO, height & 0xff); in ov9740_set_res()
680 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_s_fmt()
695 ret = ov9740_set_res(client, mf->width, mf->height); in ov9740_s_fmt()
710 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_try_fmt()
735 a->bounds.height = OV9740_MAX_HEIGHT; in ov9740_cropcap()
749 a->c.height = OV9740_MAX_HEIGHT; in ov9740_g_crop()