Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b14a2381
Commit
b14a2381
authored
Nov 28, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pixfmt: Add 32bit rgb without alpha formats
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1e19927f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
pixdesc.c
libavutil/pixdesc.c
+50
-0
pixfmt.h
libavutil/pixfmt.h
+6
-0
No files found.
libavutil/pixdesc.c
View file @
b14a2381
...
...
@@ -464,6 +464,56 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
},
.
flags
=
PIX_FMT_RGB
,
},
[
PIX_FMT_0RGB
]
=
{
.
name
=
"0rgb"
,
.
nb_components
=
3
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
3
,
2
,
0
,
7
},
/* R */
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
4
,
0
,
7
},
/* B */
},
.
flags
=
PIX_FMT_RGB
,
},
[
PIX_FMT_RGB0
]
=
{
.
name
=
"rgb0"
,
.
nb_components
=
3
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
3
,
1
,
0
,
7
},
/* R */
{
0
,
3
,
2
,
0
,
7
},
/* G */
{
0
,
3
,
3
,
0
,
7
},
/* B */
{
0
,
3
,
4
,
0
,
7
},
/* A */
},
.
flags
=
PIX_FMT_RGB
,
},
[
PIX_FMT_0BGR
]
=
{
.
name
=
"0bgr"
,
.
nb_components
=
3
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
3
,
2
,
0
,
7
},
/* B */
{
0
,
3
,
3
,
0
,
7
},
/* G */
{
0
,
3
,
4
,
0
,
7
},
/* R */
},
.
flags
=
PIX_FMT_RGB
,
},
[
PIX_FMT_BGR0
]
=
{
.
name
=
"bgr0"
,
.
nb_components
=
3
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
3
,
1
,
0
,
7
},
/* B */
{
0
,
3
,
2
,
0
,
7
},
/* G */
{
0
,
3
,
3
,
0
,
7
},
/* R */
{
0
,
3
,
4
,
0
,
7
},
/* A */
},
.
flags
=
PIX_FMT_RGB
,
},
[
PIX_FMT_GRAY16BE
]
=
{
.
name
=
"gray16be"
,
.
nb_components
=
1
,
...
...
libavutil/pixfmt.h
View file @
b14a2381
...
...
@@ -175,6 +175,10 @@ enum PixelFormat {
PIX_FMT_BGRA64BE
,
///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian
PIX_FMT_BGRA64LE
,
///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian
#endif
PIX_FMT_0RGB
=
0x123
+
4
,
///< packed RGB 8:8:8, 32bpp, 0RGB0RGB...
PIX_FMT_RGB0
,
///< packed RGB 8:8:8, 32bpp, RGB0RGB0...
PIX_FMT_0BGR
,
///< packed BGR 8:8:8, 32bpp, 0BGR0BGR...
PIX_FMT_BGR0
,
///< packed BGR 8:8:8, 32bpp, BGR0BGR0...
PIX_FMT_NB
,
///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
};
...
...
@@ -191,6 +195,8 @@ enum PixelFormat {
#define PIX_FMT_RGB32_1 PIX_FMT_NE(RGBA, ABGR)
#define PIX_FMT_BGR32 PIX_FMT_NE(ABGR, RGBA)
#define PIX_FMT_BGR32_1 PIX_FMT_NE(BGRA, ARGB)
#define PIX_FMT_0RGB32 PIX_FMT_NE(0RGB, BGR0)
#define PIX_FMT_0BGR32 PIX_FMT_NE(0BGR, RGB0)
#define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE)
#define PIX_FMT_RGB48 PIX_FMT_NE(RGB48BE, RGB48LE)
...
...
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