Lines Matching refs:info

147  * drm_format_info_is_yuv_packed - check that the format info matches a YUV
149 * @info: format info
152 * A boolean indicating whether the format info matches a packed YUV format.
155 drm_format_info_is_yuv_packed(const struct drm_format_info *info)
157 return info->is_yuv && info->num_planes == 1;
161 * drm_format_info_is_yuv_semiplanar - check that the format info matches a YUV
163 * @info: format info
166 * A boolean indicating whether the format info matches a semiplanar YUV format.
169 drm_format_info_is_yuv_semiplanar(const struct drm_format_info *info)
171 return info->is_yuv && info->num_planes == 2;
175 * drm_format_info_is_yuv_planar - check that the format info matches a YUV
177 * @info: format info
180 * A boolean indicating whether the format info matches a planar YUV format.
183 drm_format_info_is_yuv_planar(const struct drm_format_info *info)
185 return info->is_yuv && info->num_planes == 3;
189 * drm_format_info_is_yuv_sampling_410 - check that the format info matches a
191 * @info: format info
194 * A boolean indicating whether the format info matches a YUV format with 4:1:0
198 drm_format_info_is_yuv_sampling_410(const struct drm_format_info *info)
200 return info->is_yuv && info->hsub == 4 && info->vsub == 4;
204 * drm_format_info_is_yuv_sampling_411 - check that the format info matches a
206 * @info: format info
209 * A boolean indicating whether the format info matches a YUV format with 4:1:1
213 drm_format_info_is_yuv_sampling_411(const struct drm_format_info *info)
215 return info->is_yuv && info->hsub == 4 && info->vsub == 1;
219 * drm_format_info_is_yuv_sampling_420 - check that the format info matches a
221 * @info: format info
224 * A boolean indicating whether the format info matches a YUV format with 4:2:0
228 drm_format_info_is_yuv_sampling_420(const struct drm_format_info *info)
230 return info->is_yuv && info->hsub == 2 && info->vsub == 2;
234 * drm_format_info_is_yuv_sampling_422 - check that the format info matches a
236 * @info: format info
239 * A boolean indicating whether the format info matches a YUV format with 4:2:2
243 drm_format_info_is_yuv_sampling_422(const struct drm_format_info *info)
245 return info->is_yuv && info->hsub == 2 && info->vsub == 1;
249 * drm_format_info_is_yuv_sampling_444 - check that the format info matches a
251 * @info: format info
254 * A boolean indicating whether the format info matches a YUV format with 4:4:4
258 drm_format_info_is_yuv_sampling_444(const struct drm_format_info *info)
260 return info->is_yuv && info->hsub == 1 && info->vsub == 1;
265 * @info: pixel format info
273 int drm_format_info_plane_width(const struct drm_format_info *info, int width,
276 if (!info || plane >= info->num_planes)
282 return width / info->hsub;
287 * @info: pixel format info
295 int drm_format_info_plane_height(const struct drm_format_info *info, int height,
298 if (!info || plane >= info->num_planes)
304 return height / info->vsub;
315 unsigned int drm_format_info_block_width(const struct drm_format_info *info,
317 unsigned int drm_format_info_block_height(const struct drm_format_info *info,
319 unsigned int drm_format_info_bpp(const struct drm_format_info *info, int plane);
320 uint64_t drm_format_info_min_pitch(const struct drm_format_info *info,