search for: fourcc_cod

Displaying 6 results from an estimated 6 matches for "fourcc_cod".

Did you mean: fourcc_code
2025 Jan 13
0
[PATCH v2 02/25] drm/dumb-buffers: Provide helper to set pitch and size
...s. > > /* > * 1-plane YUV 4:2:0 > * In these formats, the component ordering is specified (Y, followed by U > * then V), but the exact Linear layout is undefined. > * These formats can only be used with a non-Linear modifier. > */ > #define DRM_FORMAT_YUV420_8BIT fourcc_code('Y', 'U', '0', '8') > #define DRM_FORMAT_YUV420_10BIT fourcc_code('Y', 'U', '1', '0') > >> As we still have to support these all use cases, I've modified the new >> helper to fallback to computing the pitch from...
2016 Apr 21
0
[PATCH 03/24] drm: add extern C guard for the UAPI headers
...if diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 4d8da69..a5890bf 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -26,6 +26,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + #define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \ ((__u32)(c) << 16) | ((__u32)(d) << 24)) @@ -229,4 +233,8 @@ */ #define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1) +#if defined(__cplusplus) +} +#endif + #endif /* DRM_FOURCC_H */ diff --git a/includ...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...rm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -21,8 +21,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef DRM_FOURCC_H -#define DRM_FOURCC_H +#ifndef _UAPI_DRM_DRM_FOURCC_H +#define _UAPI_DRM_DRM_FOURCC_H #include <linux/types.h> @@ -132,4 +132,4 @@ #define DRM_FORMAT_YUV444 fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */ #define DRM_FORMAT_YVU444 fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */ -#endif /* DRM_FOURCC_H */ +#endif /* _UAPI_DRM_DRM_FOURCC_H...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...rm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -21,8 +21,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef DRM_FOURCC_H -#define DRM_FOURCC_H +#ifndef _UAPI_DRM_DRM_FOURCC_H +#define _UAPI_DRM_DRM_FOURCC_H #include <linux/types.h> @@ -132,4 +132,4 @@ #define DRM_FORMAT_YUV444 fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */ #define DRM_FORMAT_YVU444 fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */ -#endif /* DRM_FOURCC_H */ +#endif /* _UAPI_DRM_DRM_FOURCC_H...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...rm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -21,8 +21,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef DRM_FOURCC_H -#define DRM_FOURCC_H +#ifndef _UAPI_DRM_DRM_FOURCC_H +#define _UAPI_DRM_DRM_FOURCC_H #include <linux/types.h> @@ -132,4 +132,4 @@ #define DRM_FORMAT_YUV444 fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */ #define DRM_FORMAT_YVU444 fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */ -#endif /* DRM_FOURCC_H */ +#endif /* _UAPI_DRM_DRM_FOURCC_H...
2016 Apr 21
25
[PATCH 00/24] drm: add extern C guard for the UAPI headers
Hi all, As some of you may know there some subtle distinction between C and C++ structs, thus one should wrap/annotate them roughly like below. ... #if defined(__cplusplus) extern "C" { #endif struct foo { int bar; ... }; ... #if defined(__cplusplus) } #endif In order to work around the lack of these users can wrap the header inclusion in the same way. For example: