Lines Matching defs:width
357 f->fmt.pix.width = dev->width;
361 f->fmt.pix.bytesperline = dev->width * 2;
371 unsigned int width, height;
380 /* Minimum width and height is 5% the frame size */
381 width = clamp_t(unsigned int, f->fmt.pix.width,
391 f->fmt.pix.width = base_width;
396 if (width < base_width && width > base_width / 2) {
401 * n = width / (frame width - width)
403 * And the width is:
405 * width = (n / n + 1) * frame width
407 col_n = div_round_integer(width, base_width - width);
411 f->fmt.pix.width = (base_width * col_n) / (col_n + 1);
414 } else if (width <= base_width / 2) {
420 * n = (frame width / width) - 1
422 * And the width is:
424 * width = frame width / (n + 1)
426 col_n = div_round_integer(base_width, width) - 1;
430 f->fmt.pix.width = base_width / (col_n + 1);
453 f->fmt.pix.bytesperline = f->fmt.pix.width * 2;
466 stk1160_dbg("width %d, height %d\n",
467 f->fmt.pix.width, f->fmt.pix.height);
493 dev->width = f->fmt.pix.width;
531 dev->width = 720;
657 size = dev->width * dev->height * 2;
706 if (buf->length < dev->width * dev->height * 2)
822 dev->width = 720;