Lines Matching refs: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);
229 if (fb->format->num_planes > 1) {
237 if (fb->format->num_planes > 2) {
248 sun4i_frontend_drm_format_to_input_fmt(const struct drm_format_info *format,
251 if (!format->is_yuv)
253 else if (drm_format_info_is_yuv_sampling_411(format))
255 else if (drm_format_info_is_yuv_sampling_420(format))
257 else if (drm_format_info_is_yuv_sampling_422(format))
259 else if (drm_format_info_is_yuv_sampling_444(format))
268 sun4i_frontend_drm_format_to_input_mode(const struct drm_format_info *format,
273 switch (format->num_planes) {
294 sun4i_frontend_drm_format_to_input_sequence(const struct drm_format_info *format,
298 if (drm_format_info_is_yuv_planar(format)) {
303 switch (format->format) {
408 const struct drm_format_info *format = fb->format;
417 ret = sun4i_frontend_drm_format_to_input_fmt(format, &in_fmt_val);
419 DRM_DEBUG_DRIVER("Invalid input format\n");
423 ret = sun4i_frontend_drm_format_to_input_mode(format, modifier,
430 ret = sun4i_frontend_drm_format_to_input_sequence(format, &in_ps_val);
438 DRM_DEBUG_DRIVER("Invalid output format\n");
446 ch1_phase_idx = (format->num_planes > 1) ? 1 : 0;
461 * Checking the input format is sufficient since we currently only
466 if (format->is_yuv) {
486 * bit 7 (ALPHA_EN) enabled when using a format with alpha (so
511 chroma_width = DIV_ROUND_UP(luma_width, fb->format->hsub);
512 chroma_height = DIV_ROUND_UP(luma_height, fb->format->vsub);