This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CHROMIUM_ycbcr_422_image extension. Add an extension that provides a method for GL to process images that are defined in '2vuy' video format. GL_YCRCR_422_CHROMIUM <internalformat> as been added and it is an accepted value when creating an image if the extension is supported. This extension maps to GL_APPLE_ycbcr_422 and will allow us to determine if we can use IOSurfaces with that format. BUG=524582 Review URL: https://codereview.chromium.org/1305153005 Cr-Commit-Position: refs/heads/master@{#345693} (cherry picked from commit a93c581) Review URL: https://codereview.chromium.org/1319783009 . Cr-Commit-Position: refs/branch-heads/2490@{#200} Cr-Branched-From: 7790a35-refs/heads/master@{#344925}
- Loading branch information
1 parent
3ffaac7
commit 320e32b
Showing
13 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
gpu/GLES2/extensions/CHROMIUM/CHROMIUM_ycbcr_422_image.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Name | ||
|
||
CHROMIUM_ycbcr_422_image | ||
|
||
Name Strings | ||
|
||
GL_CHROMIUM_ycbcr_422_image | ||
|
||
Version | ||
|
||
Last Modifed Date: August 26, 2015 | ||
|
||
Dependencies | ||
|
||
OpenGL ES 2.0 is required. | ||
|
||
GL_CHROMIUM_image is required. | ||
|
||
Overview | ||
|
||
This extension provides a new internal image format to use when creating an | ||
image from underlying '2vuy' buffers. | ||
|
||
This extension is useful in conjunction with CreateImageCHROMIUM and | ||
CreateGpuMemoryBufferImageCHROMIUM to define the format of GpuMemoryBuffer | ||
backing the image. | ||
|
||
New Procedures and Functions | ||
|
||
None. | ||
|
||
Errors | ||
|
||
None. | ||
|
||
New Tokens | ||
|
||
Accepted by the <internalformat> parameter of CreateImageCHROMIUM, and | ||
<internalformat> parameter of CreateGpuMemoryBufferImageCHROMIUM: | ||
GL_RGB_YCBCR_422_CHROMIUM 0x78FB | ||
|
||
New State | ||
|
||
None. | ||
|
||
Revision History | ||
|
||
8/26/2015 Documented the extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1862,6 +1862,7 @@ | |
'valid': [ | ||
'GL_RGB', | ||
'GL_RGB_YUV_420_CHROMIUM', | ||
'GL_RGB_YCBCR_422_CHROMIUM', | ||
'GL_RGBA', | ||
], | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters