Lines Matching full: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) in drm_format_info_is_yuv_packed() argument
157 return info->is_yuv && info->num_planes == 1; in drm_format_info_is_yuv_packed()
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) in drm_format_info_is_yuv_semiplanar() argument
171 return info->is_yuv && info->num_planes == 2; in drm_format_info_is_yuv_semiplanar()
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) in drm_format_info_is_yuv_planar() argument
185 return info->is_yuv && info->num_planes == 3; in drm_format_info_is_yuv_planar()
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) in drm_format_info_is_yuv_sampling_410() argument
200 return info->is_yuv && info->hsub == 4 && info->vsub == 4; in drm_format_info_is_yuv_sampling_410()
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) in drm_format_info_is_yuv_sampling_411() argument
215 return info->is_yuv && info->hsub == 4 && info->vsub == 1; in drm_format_info_is_yuv_sampling_411()
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) in drm_format_info_is_yuv_sampling_420() argument
230 return info->is_yuv && info->hsub == 2 && info->vsub == 2; in drm_format_info_is_yuv_sampling_420()
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) in drm_format_info_is_yuv_sampling_422() argument
245 return info->is_yuv && info->hsub == 2 && info->vsub == 1; in drm_format_info_is_yuv_sampling_422()
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) in drm_format_info_is_yuv_sampling_444() argument
260 return info->is_yuv && info->hsub == 1 && info->vsub == 1; in drm_format_info_is_yuv_sampling_444()
265 * @info: pixel format info
273 int drm_format_info_plane_width(const struct drm_format_info *info, int width, in drm_format_info_plane_width() argument
276 if (!info || plane >= info->num_planes) in drm_format_info_plane_width()
282 return DIV_ROUND_UP(width, info->hsub); in drm_format_info_plane_width()
287 * @info: pixel format info
295 int drm_format_info_plane_height(const struct drm_format_info *info, int height, in drm_format_info_plane_height() argument
298 if (!info || plane >= info->num_planes) in drm_format_info_plane_height()
304 return DIV_ROUND_UP(height, info->vsub); in drm_format_info_plane_height()
316 unsigned int drm_format_info_block_width(const struct drm_format_info *info,
318 unsigned int drm_format_info_block_height(const struct drm_format_info *info,
320 unsigned int drm_format_info_bpp(const struct drm_format_info *info, int plane);
321 uint64_t drm_format_info_min_pitch(const struct drm_format_info *info,