Lines Matching defs:ffmt
573 struct fimc_fmt *ffmt;
586 ffmt = fimc_find_format(fourcc, code, mask, 0);
587 if (WARN_ON(!ffmt))
591 *code = ffmt->mbus_code;
593 *fourcc = ffmt->fourcc;
596 max_w = fimc_fmt_is_user_defined(ffmt->color) ?
602 fimc_fmt_is_user_defined(ffmt->color) ?
605 return ffmt;
608 if (fimc_fmt_is_user_defined(ffmt->color)) {
611 return ffmt;
623 align_h = fimc_fmt_is_rgb(ffmt->color) ? 0 : 1;
625 depth = fimc_get_format_depth(ffmt);
636 return ffmt;
769 struct fimc_fmt *ffmt;
784 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL,
786 if (ffmt == NULL) {
793 mf->code = tfmt->code = ffmt->mbus_code;
822 fcc = ffmt->fourcc;
825 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
827 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
829 if (ffmt && ffmt->mbus_code)
830 mf->code = ffmt->mbus_code;
837 if (fmt_id && ffmt)
838 *fmt_id = ffmt;
1519 struct fimc_fmt *ffmt;
1528 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height,
1539 if (WARN_ON(ffmt == NULL))
1545 fimc_capture_mark_jpeg_xfer(ctx, ffmt->color);
1563 ff->fmt = ffmt;