Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ba623f6a
Commit
ba623f6a
authored
May 18, 2012
by
Laurent Pinchart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: Add NV24 and NV42 pixel formats
Signed-off-by:
Laurent Pinchart
<
laurent.pinchart@ideasonboard.com
>
parent
2e3b3c42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc.c
+6
-0
include/drm/drm_fourcc.h
include/drm/drm_fourcc.h
+2
-0
No files found.
drivers/gpu/drm/drm_crtc.c
View file @
ba623f6a
...
...
@@ -2169,6 +2169,8 @@ static int format_check(const struct drm_mode_fb_cmd2 *r)
case
DRM_FORMAT_NV21
:
case
DRM_FORMAT_NV16
:
case
DRM_FORMAT_NV61
:
case
DRM_FORMAT_NV24
:
case
DRM_FORMAT_NV42
:
case
DRM_FORMAT_YUV410
:
case
DRM_FORMAT_YVU410
:
case
DRM_FORMAT_YUV411
:
...
...
@@ -3718,6 +3720,8 @@ int drm_format_num_planes(uint32_t format)
case
DRM_FORMAT_NV21
:
case
DRM_FORMAT_NV16
:
case
DRM_FORMAT_NV61
:
case
DRM_FORMAT_NV24
:
case
DRM_FORMAT_NV42
:
return
2
;
default:
return
1
;
...
...
@@ -3751,6 +3755,8 @@ int drm_format_plane_cpp(uint32_t format, int plane)
case
DRM_FORMAT_NV21
:
case
DRM_FORMAT_NV16
:
case
DRM_FORMAT_NV61
:
case
DRM_FORMAT_NV24
:
case
DRM_FORMAT_NV42
:
return
plane
?
2
:
1
;
case
DRM_FORMAT_YUV410
:
case
DRM_FORMAT_YVU410
:
...
...
include/drm/drm_fourcc.h
View file @
ba623f6a
...
...
@@ -106,6 +106,8 @@
#define DRM_FORMAT_NV21 fourcc_code('N', 'V', '2', '1')
/* 2x2 subsampled Cb:Cr plane */
#define DRM_FORMAT_NV16 fourcc_code('N', 'V', '1', '6')
/* 2x1 subsampled Cr:Cb plane */
#define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1')
/* 2x1 subsampled Cb:Cr plane */
#define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4')
/* non-subsampled Cr:Cb plane */
#define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2')
/* non-subsampled Cb:Cr plane */
/* 2 non contiguous plane YCbCr */
#define DRM_FORMAT_NV12M fourcc_code('N', 'M', '1', '2')
/* 2x2 subsampled Cr:Cb plane */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment