Lines Matching defs:ffmt
572 const 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;
771 const struct fimc_fmt *ffmt;
785 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL,
787 if (ffmt == NULL) {
794 mf->code = tfmt->code = ffmt->mbus_code;
823 fcc = ffmt->fourcc;
826 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
828 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height,
830 if (ffmt && ffmt->mbus_code)
831 mf->code = ffmt->mbus_code;
838 if (fmt_id && ffmt)
839 *fmt_id = ffmt;
1522 const struct fimc_fmt *ffmt;
1531 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height,
1542 if (WARN_ON(ffmt == NULL))
1548 fimc_capture_mark_jpeg_xfer(ctx, ffmt->color);
1566 ff->fmt = ffmt;