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
0e6c7dfa
Commit
0e6c7dfa
authored
Dec 17, 2014
by
Paul B Mahol
Committed by
Vittorio Giovara
Jan 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu: add planar 16 bit and 8 bit rgb with alpha
Signed-off-by:
Vittorio Giovara
<
vittorio.giovara@gmail.com
>
parent
e2ad0b66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
pixdesc.c
libavutil/pixdesc.c
+39
-0
pixfmt.h
libavutil/pixfmt.h
+6
-0
version.h
libavutil/version.h
+1
-1
No files found.
libavutil/pixdesc.c
View file @
0e6c7dfa
...
...
@@ -1451,6 +1451,45 @@ 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_GBRAP
]
=
{
.
name
=
"gbrap"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
0
,
1
,
0
,
7
},
/* G */
{
1
,
0
,
1
,
0
,
7
},
/* B */
{
2
,
0
,
1
,
0
,
7
},
/* R */
{
3
,
0
,
1
,
0
,
7
},
/* A */
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT_RGB
|
PIX_FMT_ALPHA
,
},
[
AV_PIX_FMT_GBRAP16LE
]
=
{
.
name
=
"gbrap16le"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
1
,
1
,
0
,
15
},
/* G */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
.
flags
=
PIX_FMT_PLANAR
|
PIX_FMT_RGB
|
PIX_FMT_ALPHA
,
},
[
AV_PIX_FMT_GBRAP16BE
]
=
{
.
name
=
"gbrap16be"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
1
,
1
,
0
,
15
},
/* G */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
3
,
1
,
1
,
0
,
15
},
/* A */
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT_RGB
|
PIX_FMT_ALPHA
,
},
[
AV_PIX_FMT_VDPAU
]
=
{
.
name
=
"vdpau"
,
.
log2_chroma_w
=
1
,
...
...
libavutil/pixfmt.h
View file @
0e6c7dfa
...
...
@@ -206,6 +206,10 @@ enum AVPixelFormat {
AV_PIX_FMT_YA16BE
,
///< 16bit gray, 16bit alpha (big-endian)
AV_PIX_FMT_YA16LE
,
///< 16bit gray, 16bit alpha (little-endian)
AV_PIX_FMT_GBRAP
,
///< planar GBRA 4:4:4:4 32bpp
AV_PIX_FMT_GBRAP16BE
,
///< planar GBRA 4:4:4:4 64bpp, big-endian
AV_PIX_FMT_GBRAP16LE
,
///< planar GBRA 4:4:4:4 64bpp, 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
#if FF_API_PIX_FMT
...
...
@@ -251,6 +255,8 @@ enum AVPixelFormat {
#define AV_PIX_FMT_GBRP10 AV_PIX_FMT_NE(GBRP10BE, GBRP10LE)
#define AV_PIX_FMT_GBRP16 AV_PIX_FMT_NE(GBRP16BE, GBRP16LE)
#define AV_PIX_FMT_GBRAP16 AV_PIX_FMT_NE(GBRAP16BE, GBRAP16LE)
#define AV_PIX_FMT_YUVA420P9 AV_PIX_FMT_NE(YUVA420P9BE , YUVA420P9LE)
#define AV_PIX_FMT_YUVA422P9 AV_PIX_FMT_NE(YUVA422P9BE , YUVA422P9LE)
#define AV_PIX_FMT_YUVA444P9 AV_PIX_FMT_NE(YUVA444P9BE , YUVA444P9LE)
...
...
libavutil/version.h
View file @
0e6c7dfa
...
...
@@ -54,7 +54,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 54
#define LIBAVUTIL_VERSION_MINOR
6
#define LIBAVUTIL_VERSION_MINOR
7
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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