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
e9abafca
Commit
e9abafca
authored
Jul 29, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: add AV_PIX_FMT_YA16 pixel format
parent
e96c3b81
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
2 deletions
+29
-2
APIchanges
doc/APIchanges
+3
-0
pixdesc.c
libavutil/pixdesc.c
+19
-0
pixfmt.h
libavutil/pixfmt.h
+5
-0
version.h
libavutil/version.h
+2
-2
No files found.
doc/APIchanges
View file @
e9abafca
...
...
@@ -13,6 +13,9 @@ libavutil: 2013-12-xx
API changes, most recent first:
2014-08-xx - xxxxxxx - lavu 53.22.0 - pixfmt.h
Add AV_PIX_FMT_YA16 pixel format for 16 bit packed gray with alpha.
2014-08-xx - xxxxxxx - lavu 53.21.1 - avstring.h
Rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8 to better identify the format.
An alias pixel format and color space name are provided for compatibility.
...
...
libavutil/pixdesc.c
View file @
e9abafca
...
...
@@ -1349,6 +1349,24 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.
flags
=
AV_PIX_FMT_FLAG_ALPHA
,
.
alias
=
"gray8a"
,
},
[
AV_PIX_FMT_YA16LE
]
=
{
.
name
=
"ya16le"
,
.
nb_components
=
2
,
.
comp
=
{
{
0
,
3
,
1
,
0
,
15
},
/* Y */
{
0
,
3
,
3
,
0
,
15
},
/* A */
},
.
flags
=
AV_PIX_FMT_FLAG_ALPHA
,
},
[
AV_PIX_FMT_YA16BE
]
=
{
.
name
=
"ya16be"
,
.
nb_components
=
2
,
.
comp
=
{
{
0
,
3
,
1
,
0
,
15
},
/* Y */
{
0
,
3
,
3
,
0
,
15
},
/* A */
},
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_ALPHA
,
},
[
AV_PIX_FMT_GBRP
]
=
{
.
name
=
"gbrp"
,
.
nb_components
=
3
,
...
...
@@ -1640,6 +1658,7 @@ enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt)
switch
(
pix_fmt
)
{
PIX_FMT_SWAP_ENDIANNESS
(
GRAY16
);
PIX_FMT_SWAP_ENDIANNESS
(
YA16
);
PIX_FMT_SWAP_ENDIANNESS
(
RGB48
);
PIX_FMT_SWAP_ENDIANNESS
(
RGB565
);
PIX_FMT_SWAP_ENDIANNESS
(
RGB555
);
...
...
libavutil/pixfmt.h
View file @
e9abafca
...
...
@@ -202,6 +202,10 @@ enum AVPixelFormat {
AV_PIX_FMT_YVYU422
,
///< packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
AV_PIX_FMT_VDA
,
///< HW acceleration through VDA, data[3] contains a CVPixelBufferRef
AV_PIX_FMT_YA16BE
,
///< 16bit gray, 16bit alpha (big-endian)
AV_PIX_FMT_YA16LE
,
///< 16bit gray, 16bit alpha (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
...
...
@@ -221,6 +225,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_BGR32_1 AV_PIX_FMT_NE(BGRA, ARGB)
#define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)
#define AV_PIX_FMT_YA16 AV_PIX_FMT_NE(YA16BE, YA16LE)
#define AV_PIX_FMT_RGB48 AV_PIX_FMT_NE(RGB48BE, RGB48LE)
#define AV_PIX_FMT_RGB565 AV_PIX_FMT_NE(RGB565BE, RGB565LE)
#define AV_PIX_FMT_RGB555 AV_PIX_FMT_NE(RGB555BE, RGB555LE)
...
...
libavutil/version.h
View file @
e9abafca
...
...
@@ -54,8 +54,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 53
#define LIBAVUTIL_VERSION_MINOR 2
1
#define LIBAVUTIL_VERSION_MICRO
1
#define LIBAVUTIL_VERSION_MINOR 2
2
#define LIBAVUTIL_VERSION_MICRO
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