Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
7471352f
Commit
7471352f
authored
8 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
pixfmt: Add GRAY12
parent
4ab61cd9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/pixdesc.c
+22
-0
22 additions, 0 deletions
libavutil/pixdesc.c
libavutil/pixfmt.h
+4
-0
4 additions, 0 deletions
libavutil/pixfmt.h
libavutil/version.h
+1
-1
1 addition, 1 deletion
libavutil/version.h
with
30 additions
and
1 deletion
doc/APIchanges
+
3
−
0
View file @
7471352f
...
...
@@ -13,6 +13,9 @@ libavutil: 2015-08-28
API changes, most recent first:
2016-xx-xx - xxxxxxx - lavu 55.28.0 - pixfmt.h
Add AV_PIX_FMT_GRAY12(LE/BE).
2016-xx-xx - xxxxxxx - lavu 55.27.0 - hwcontext.h
Add av_hwframe_map() and associated AV_HWFRAME_MAP_* flags.
Add av_hwframe_ctx_create_derived().
...
...
This diff is collapsed.
Click to expand it.
libavutil/pixdesc.c
+
22
−
0
View file @
7471352f
...
...
@@ -493,6 +493,27 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
},
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_ALPHA
,
},
[
AV_PIX_FMT_GRAY12BE
]
=
{
.
name
=
"gray12be"
,
.
nb_components
=
1
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
2
,
0
,
0
,
12
,
1
,
11
,
1
},
/* Y */
},
.
flags
=
AV_PIX_FMT_FLAG_BE
,
.
alias
=
"y12be"
,
},
[
AV_PIX_FMT_GRAY12LE
]
=
{
.
name
=
"gray12le"
,
.
nb_components
=
1
,
.
log2_chroma_w
=
0
,
.
log2_chroma_h
=
0
,
.
comp
=
{
{
0
,
2
,
0
,
0
,
12
,
1
,
11
,
1
},
/* Y */
},
.
alias
=
"y12le"
,
},
[
AV_PIX_FMT_GRAY16BE
]
=
{
.
name
=
"gray16be"
,
.
nb_components
=
1
,
...
...
@@ -1950,6 +1971,7 @@ enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt)
case AV_PIX_FMT_ ## fmt ## LE: return AV_PIX_FMT_ ## fmt ## BE
switch
(
pix_fmt
)
{
PIX_FMT_SWAP_ENDIANNESS
(
GRAY12
);
PIX_FMT_SWAP_ENDIANNESS
(
GRAY16
);
PIX_FMT_SWAP_ENDIANNESS
(
YA16
);
PIX_FMT_SWAP_ENDIANNESS
(
RGB48
);
...
...
This diff is collapsed.
Click to expand it.
libavutil/pixfmt.h
+
4
−
0
View file @
7471352f
...
...
@@ -245,6 +245,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_GRAY12BE
,
///< Y , 12bpp, big-endian
AV_PIX_FMT_GRAY12LE
,
///< Y , 12bpp, 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
};
...
...
@@ -259,6 +262,7 @@ enum AVPixelFormat {
#define AV_PIX_FMT_BGR32 AV_PIX_FMT_NE(ABGR, RGBA)
#define AV_PIX_FMT_BGR32_1 AV_PIX_FMT_NE(BGRA, ARGB)
#define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE)
#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)
...
...
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
1
−
1
View file @
7471352f
...
...
@@ -54,7 +54,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR 2
7
#define LIBAVUTIL_VERSION_MINOR 2
8
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment