Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
5dca8493
Commit
5dca8493
authored
15 years ago
by
Mathias Agopian
Browse files
Options
Downloads
Patches
Plain Diff
remove unused YUV constants
parent
8e4f143d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/pixelflinger/format.h
+12
-14
12 additions, 14 deletions
include/pixelflinger/format.h
libpixelflinger/format.cpp
+15
-6
15 additions, 6 deletions
libpixelflinger/format.cpp
with
27 additions
and
20 deletions
include/pixelflinger/format.h
+
12
−
14
View file @
5dca8493
...
...
@@ -39,13 +39,15 @@ enum GGLPixelFormat {
GGL_PIXEL_FORMAT_LA_88
=
0xA
,
// 16-bit LA
GGL_PIXEL_FORMAT_RGB_332
=
0xB
,
// 8-bit RGB (non paletted)
// YCbCr formats (SP=semi-planar, P=planar)
GGL_PIXEL_FORMAT_YCbCr_422_SP
=
0x10
,
GGL_PIXEL_FORMAT_YCbCr_420_SP
=
0x11
,
GGL_PIXEL_FORMAT_YCbCr_422_P
=
0x12
,
GGL_PIXEL_FORMAT_YCbCr_420_P
=
0x13
,
GGL_PIXEL_FORMAT_YCbCr_422_I
=
0x14
,
GGL_PIXEL_FORMAT_YCbCr_420_I
=
0x15
,
// reserved range. don't use.
GGL_PIXEL_FORMAT_RESERVED_10
=
0x10
,
GGL_PIXEL_FORMAT_RESERVED_11
=
0x11
,
GGL_PIXEL_FORMAT_RESERVED_12
=
0x12
,
GGL_PIXEL_FORMAT_RESERVED_13
=
0x13
,
GGL_PIXEL_FORMAT_RESERVED_14
=
0x14
,
GGL_PIXEL_FORMAT_RESERVED_15
=
0x15
,
GGL_PIXEL_FORMAT_RESERVED_16
=
0x16
,
GGL_PIXEL_FORMAT_RESERVED_17
=
0x17
,
// reserved/special formats
GGL_PIXEL_FORMAT_Z_16
=
0x18
,
...
...
@@ -53,9 +55,9 @@ enum GGLPixelFormat {
GGL_PIXEL_FORMAT_SZ_24
=
0x1A
,
GGL_PIXEL_FORMAT_SZ_8
=
0x1B
,
//
other variations of YCbCr/YCrCb
GGL_PIXEL_FORMAT_
YCbCr_420_SP_TILED
=
0x20
,
GGL_PIXEL_FORMAT_
YCrCb_420_SP
=
0x21
,
//
reserved range. don't use.
GGL_PIXEL_FORMAT_
RESERVED_20
=
0x20
,
GGL_PIXEL_FORMAT_
RESERVED_21
=
0x21
,
};
enum
GGLFormatComponents
{
...
...
@@ -66,10 +68,6 @@ enum GGLFormatComponents {
GGL_RGBA
=
0x1908
,
GGL_LUMINANCE
=
0x1909
,
GGL_LUMINANCE_ALPHA
=
0x190A
,
GGL_Y_CB_CR_SP
=
0x8000
,
GGL_Y_CB_CR
=
GGL_Y_CB_CR_SP
,
GGL_Y_CB_CR_P
=
0x8001
,
GGL_Y_CB_CR_I
=
0x8002
,
};
enum
GGLFormatComponentIndex
{
...
...
This diff is collapsed.
Click to expand it.
libpixelflinger/format.cpp
+
15
−
6
View file @
5dca8493
...
...
@@ -40,12 +40,12 @@ static GGLFormat const gPixelFormatInfos[] =
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
1
,
16
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_SP
},
// PIXEL_FORMAT_
YCbCr_422_SP
{
1
,
12
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_SP
},
// PIXEL_FORMAT_
YCbCr_420_SP
{
1
,
16
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_P
},
// PIXEL_FORMAT_
YCbCr_422_P
{
1
,
12
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_P
},
// PIXEL_FORMAT_
YCbCr_420_P
{
1
,
16
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_I
},
// PIXEL_FORMAT_
YCbCr_422_I
{
1
,
12
,
{{
0
,
8
,
0
,
8
,
0
,
8
,
0
,
0
}},
GGL_Y_CB_CR_I
},
// PIXEL_FORMAT_
YCbCr_420_I
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_
NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
...
...
@@ -53,6 +53,15 @@ static GGLFormat const gPixelFormatInfos[] =
{
1
,
8
,
{{
8
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
GGL_STENCIL_INDEX
},
{
4
,
24
,
{{
0
,
0
,
24
,
0
,
0
,
0
,
0
,
0
}},
GGL_DEPTH_COMPONENT
},
{
4
,
8
,
{{
32
,
24
,
0
,
0
,
0
,
0
,
0
,
0
}},
GGL_STENCIL_INDEX
},
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
{
0
,
0
,
{{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}},
0
},
// PIXEL_FORMAT_NONE
};
};
// namespace android
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment