Lines Matching defs:format

238 const char *drm_get_format_name(uint32_t format)
244 printable_char(format & 0xff),
245 printable_char((format >> 8) & 0xff),
246 printable_char((format >> 16) & 0xff),
247 printable_char((format >> 24) & 0x7f),
248 format & DRM_FORMAT_BIG_ENDIAN ? "big" : "little",
249 format);
1005 * @modes: array of pointers to strings containing name of each format
1009 * responsible for allocating a list of format names and passing them to
1872 /* Check whether this plane supports the fb pixel format. */
1877 DRM_DEBUG_KMS("Invalid pixel format 0x%08x\n", fb->pixel_format);
2252 DRM_ERROR("bad bpp, assuming x8r8g8b8 pixel format\n");
2285 /* Use new struct with format internally */
2319 uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN;
2321 switch (format) {
2394 DRM_DEBUG_KMS("bad framebuffer format %s\n",
2444 * Add a new FB to the specified CRTC, given a user request with format.
3519 DRM_DEBUG_KMS("Page flip is not allowed to change frame buffer format.\n");
3640 void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth,
3643 switch (format) {
3697 DRM_DEBUG_KMS("unsupported pixel format\n");
3705 * drm_format_num_planes - get the number of planes for format
3706 * @format: pixel format (DRM_FORMAT_*)
3709 * The number of planes used by the specified pixel format.
3711 int drm_format_num_planes(uint32_t format)
3713 switch (format) {
3739 * @format: pixel format (DRM_FORMAT_*)
3745 int drm_format_plane_cpp(uint32_t format, int plane)
3750 if (plane >= drm_format_num_planes(format))
3753 switch (format) {
3778 drm_fb_get_bpp_depth(format, &depth, &bpp);
3785 * @format: pixel format (DRM_FORMAT_*)
3789 * specified pixel format.
3791 int drm_format_horz_chroma_subsampling(uint32_t format)
3793 switch (format) {
3819 * @format: pixel format (DRM_FORMAT_*)
3823 * specified pixel format.
3825 int drm_format_vert_chroma_subsampling(uint32_t format)
3827 switch (format) {