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
e6d4e687
Commit
e6d4e687
authored
Feb 23, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu: add planar 16 bit and 8 bit rgb with alpha
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
f51aa92b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
2 deletions
+47
-2
pixdesc.c
libavutil/pixdesc.c
+39
-0
pixfmt.h
libavutil/pixfmt.h
+3
-0
version.h
libavutil/version.h
+2
-2
utils.c
libswscale/utils.c
+3
-0
No files found.
libavutil/pixdesc.c
View file @
e6d4e687
...
...
@@ -1653,6 +1653,45 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
},
.
flags
=
PIX_FMT_BE
|
PIX_FMT_PLANAR
|
PIX_FMT_RGB
,
},
[
AV_PIX_FMT_GBRAP
]
=
{
.
name
=
"gbrap"
,
.
nb_components
=
4
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
2
,
0
,
1
,
0
,
7
},
/* R */
{
0
,
0
,
1
,
0
,
7
},
/* G */
{
1
,
0
,
1
,
0
,
7
},
/* B */
{
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
=
{
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
0
,
1
,
1
,
0
,
15
},
/* G */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
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
=
{
{
2
,
1
,
1
,
0
,
15
},
/* R */
{
0
,
1
,
1
,
0
,
15
},
/* G */
{
1
,
1
,
1
,
0
,
15
},
/* B */
{
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 @
e6d4e687
...
...
@@ -234,6 +234,9 @@ enum AVPixelFormat {
AV_PIX_FMT_GBRP12LE
,
///< planar GBR 4:4:4 36bpp, little-endian
AV_PIX_FMT_GBRP14BE
,
///< planar GBR 4:4:4 42bpp, big-endian
AV_PIX_FMT_GBRP14LE
,
///< planar GBR 4:4:4 42bpp, 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
...
...
libavutil/version.h
View file @
e6d4e687
...
...
@@ -75,8 +75,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 2
7
#define LIBAVUTIL_VERSION_MICRO 10
1
#define LIBAVUTIL_VERSION_MINOR 2
8
#define LIBAVUTIL_VERSION_MICRO 10
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
libswscale/utils.c
View file @
e6d4e687
...
...
@@ -198,6 +198,9 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_GBRP16BE
]
=
{
1
,
0
},
[
AV_PIX_FMT_XYZ12BE
]
=
{
1
,
0
},
[
AV_PIX_FMT_XYZ12LE
]
=
{
1
,
0
},
[
AV_PIX_FMT_GBRAP
]
=
{
0
,
0
},
[
AV_PIX_FMT_GBRAP16LE
]
=
{
0
,
0
},
[
AV_PIX_FMT_GBRAP16BE
]
=
{
0
,
0
},
};
int
sws_isSupportedInput
(
enum
AVPixelFormat
pix_fmt
)
...
...
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