Lines Matching defs:width
361 f->fmt.pix.width = dev->width;
365 f->fmt.pix.bytesperline = dev->width * 2;
375 unsigned int width, height;
384 /* Minimum width and height is 5% the frame size */
385 width = clamp_t(unsigned int, f->fmt.pix.width,
395 f->fmt.pix.width = base_width;
400 if (width < base_width && width > base_width / 2) {
405 * n = width / (frame width - width)
407 * And the width is:
409 * width = (n / n + 1) * frame width
411 col_n = div_round_integer(width, base_width - width);
415 f->fmt.pix.width = (base_width * col_n) / (col_n + 1);
418 } else if (width <= base_width / 2) {
424 * n = (frame width / width) - 1
426 * And the width is:
428 * width = frame width / (n + 1)
430 col_n = div_round_integer(base_width, width) - 1;
434 f->fmt.pix.width = base_width / (col_n + 1);
457 f->fmt.pix.bytesperline = f->fmt.pix.width * 2;
470 stk1160_dbg("width %d, height %d\n",
471 f->fmt.pix.width, f->fmt.pix.height);
497 dev->width = f->fmt.pix.width;
535 dev->width = 720;
661 size = dev->width * dev->height * 2;
710 if (buf->length < dev->width * dev->height * 2)
826 dev->width = 720;