Lines Matching defs:format

182 		if (fb->format->num_planes > 1) {
190 if (fb->format->num_planes > 2) {
200 if (fb->format->num_planes > 1)
203 if (fb->format->num_planes > 2)
212 if (fb->format->num_planes > 1)
216 if (fb->format->num_planes > 2)
221 swap = sun4i_frontend_format_chroma_requires_swap(fb->format->format);
228 if (fb->format->num_planes > 1) {
236 if (fb->format->num_planes > 2) {
247 sun4i_frontend_drm_format_to_input_fmt(const struct drm_format_info *format,
250 if (!format->is_yuv)
252 else if (drm_format_info_is_yuv_sampling_411(format))
254 else if (drm_format_info_is_yuv_sampling_420(format))
256 else if (drm_format_info_is_yuv_sampling_422(format))
258 else if (drm_format_info_is_yuv_sampling_444(format))
267 sun4i_frontend_drm_format_to_input_mode(const struct drm_format_info *format,
272 switch (format->num_planes) {
293 sun4i_frontend_drm_format_to_input_sequence(const struct drm_format_info *format,
297 if (drm_format_info_is_yuv_planar(format)) {
302 switch (format->format) {
407 const struct drm_format_info *format = fb->format;
416 ret = sun4i_frontend_drm_format_to_input_fmt(format, &in_fmt_val);
418 DRM_DEBUG_DRIVER("Invalid input format\n");
422 ret = sun4i_frontend_drm_format_to_input_mode(format, modifier,
429 ret = sun4i_frontend_drm_format_to_input_sequence(format, &in_ps_val);
437 DRM_DEBUG_DRIVER("Invalid output format\n");
445 ch1_phase_idx = (format->num_planes > 1) ? 1 : 0;
460 * Checking the input format is sufficient since we currently only
465 if (format->is_yuv) {
485 * bit 7 (ALPHA_EN) enabled when using a format with alpha (so
510 chroma_width = DIV_ROUND_UP(luma_width, fb->format->hsub);
511 chroma_height = DIV_ROUND_UP(luma_height, fb->format->vsub);