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
ab6d89d7
Commit
ab6d89d7
authored
Aug 05, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavutil: add GRAY9 pixel format
parent
5621a99e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
pixdesc.c
libavutil/pixdesc.c
+21
-0
pixfmt.h
libavutil/pixfmt.h
+4
-0
version.h
libavutil/version.h
+2
-2
No files found.
libavutil/pixdesc.c
View file @
ab6d89d7
...
...
@@ -560,6 +560,27 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
},
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
},
[
AV_PIX_FMT_GRAY9BE
]
=
{
.
name
=
"gray9be"
,
.
nb_components
=
1
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
2
,
0
,
0
,
9
,
1
,
8
,
1
},
/* Y */
},
.
flags
=
AV_PIX_FMT_FLAG_BE
,
.
alias
=
"y9be"
,
},
[
AV_PIX_FMT_GRAY9LE
]
=
{
.
name
=
"gray9le"
,
.
nb_components
=
1
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
2
,
0
,
0
,
9
,
1
,
8
,
1
},
/* Y */
},
.
alias
=
"y9le"
,
},
[
AV_PIX_FMT_GRAY10BE
]
=
{
.
name
=
"gray10be"
,
.
nb_components
=
1
,
...
...
libavutil/pixfmt.h
View file @
ab6d89d7
...
...
@@ -326,6 +326,9 @@ enum AVPixelFormat {
*/
AV_PIX_FMT_D3D11
,
AV_PIX_FMT_GRAY9BE
,
///< Y , 9bpp, big-endian
AV_PIX_FMT_GRAY9LE
,
///< Y , 9bpp, 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
};
...
...
@@ -342,6 +345,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_0RGB32 AV_PIX_FMT_NE(0RGB, BGR0)
#define AV_PIX_FMT_0BGR32 AV_PIX_FMT_NE(0BGR, RGB0)
#define AV_PIX_FMT_GRAY9 AV_PIX_FMT_NE(GRAY9BE, GRAY9LE)
#define AV_PIX_FMT_GRAY10 AV_PIX_FMT_NE(GRAY10BE, GRAY10LE)
#define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE)
#define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)
...
...
libavutil/version.h
View file @
ab6d89d7
...
...
@@ -80,8 +80,8 @@
#define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR
69
#define LIBAVUTIL_VERSION_MICRO 10
1
#define LIBAVUTIL_VERSION_MINOR
70
#define LIBAVUTIL_VERSION_MICRO 10
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
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