Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8100426f
Commit
8100426f
authored
Jun 10, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: add 10-bit planar RGB with alpha
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
d865e74e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
pixdesc.c
libavutil/pixdesc.c
+28
-0
pixfmt.h
libavutil/pixfmt.h
+4
-0
No files found.
libavutil/pixdesc.c
View file @
8100426f
...
...
@@ -2060,6 +2060,34 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_ALPHA
,
},
[
AV_PIX_FMT_GBRAP10LE
]
=
{
.
name
=
"gbrap10le"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
2
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* R */
{
0
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* G */
{
1
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* B */
{
3
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* A */
},
.
flags
=
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_ALPHA
,
},
[
AV_PIX_FMT_GBRAP10BE
]
=
{
.
name
=
"gbrap10be"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
2
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* R */
{
0
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* G */
{
1
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* B */
{
3
,
2
,
0
,
0
,
10
,
1
,
9
,
1
},
/* A */
},
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_PLANAR
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_ALPHA
,
},
};
#if FF_API_PLUS1_MINUS1
FF_ENABLE_DEPRECATION_WARNINGS
...
...
libavutil/pixfmt.h
View file @
8100426f
...
...
@@ -300,6 +300,9 @@ enum AVPixelFormat {
AV_PIX_FMT_GBRAP12BE
,
///< planar GBR 4:4:4:4 48bpp, big-endian
AV_PIX_FMT_GBRAP12LE
,
///< planar GBR 4:4:4:4 48bpp, little-endian
AV_PIX_FMT_GBRAP10BE
,
///< planar GBR 4:4:4:4 40bpp, big-endian
AV_PIX_FMT_GBRAP10LE
,
///< planar GBR 4:4:4:4 40bpp, little-endian
AV_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
};
...
...
@@ -355,6 +358,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_GBRP12 AV_PIX_FMT_NE(GBRP12BE, GBRP12LE)
#define AV_PIX_FMT_GBRP14 AV_PIX_FMT_NE(GBRP14BE, GBRP14LE)
#define AV_PIX_FMT_GBRP16 AV_PIX_FMT_NE(GBRP16BE, GBRP16LE)
#define AV_PIX_FMT_GBRAP10 AV_PIX_FMT_NE(GBRAP10BE, GBRAP10LE)
#define AV_PIX_FMT_GBRAP12 AV_PIX_FMT_NE(GBRAP12BE, GBRAP12LE)
#define AV_PIX_FMT_GBRAP16 AV_PIX_FMT_NE(GBRAP16BE, GBRAP16LE)
...
...
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