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
9c2436e1
Commit
9c2436e1
authored
Mar 19, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu: add AV_PIX_FMT_FLAG_BAYER
parent
f052b1b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
14 deletions
+22
-14
APIchanges
doc/APIchanges
+3
-0
pixdesc.c
libavutil/pixdesc.c
+13
-13
pixdesc.h
libavutil/pixdesc.h
+5
-0
version.h
libavutil/version.h
+1
-1
No files found.
doc/APIchanges
View file @
9c2436e1
...
...
@@ -15,6 +15,9 @@ libavutil: 2015-08-28
API changes, most recent first:
2017-03-xx - xxxxxxx - lavu 55.49.100 - pixdesc.h
Add AV_PIX_FMT_FLAG_BAYER pixel format flag.
2017-03-18 - xxxxxxx - lavfi 6.77.100 - avfilter.h
Deprecate AVFilterGraph.resample_lavr_opts
It's never been used by avfilter nor passed to anything.
...
...
libavutil/pixdesc.c
View file @
9c2436e1
...
...
@@ -1915,62 +1915,62 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_BAYER_BGGR8
]
=
{
.
name
=
"bayer_bggr8"
,
BAYER8_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_BGGR16LE
]
=
{
.
name
=
"bayer_bggr16le"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_BGGR16BE
]
=
{
.
name
=
"bayer_bggr16be"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_RGGB8
]
=
{
.
name
=
"bayer_rggb8"
,
BAYER8_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_RGGB16LE
]
=
{
.
name
=
"bayer_rggb16le"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_RGGB16BE
]
=
{
.
name
=
"bayer_rggb16be"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GBRG8
]
=
{
.
name
=
"bayer_gbrg8"
,
BAYER8_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GBRG16LE
]
=
{
.
name
=
"bayer_gbrg16le"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GBRG16BE
]
=
{
.
name
=
"bayer_gbrg16be"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GRBG8
]
=
{
.
name
=
"bayer_grbg8"
,
BAYER8_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GRBG16LE
]
=
{
.
name
=
"bayer_grbg16le"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_BAYER_GRBG16BE
]
=
{
.
name
=
"bayer_grbg16be"
,
BAYER16_DESC_COMMON
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
,
.
flags
=
AV_PIX_FMT_FLAG_BE
|
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_BAYER
,
},
[
AV_PIX_FMT_NV16
]
=
{
.
name
=
"nv16"
,
...
...
@@ -2415,7 +2415,7 @@ void ff_check_pixfmt_descriptors(void){
}
else
{
av_assert0
(
8
*
c
->
step
>=
c
->
depth
);
}
if
(
!
strncmp
(
d
->
name
,
"bayer_"
,
6
)
)
if
(
d
->
flags
&
AV_PIX_FMT_FLAG_BAYER
)
continue
;
av_read_image_line
(
tmp
,
(
void
*
)
data
,
linesize
,
d
,
0
,
0
,
j
,
2
,
0
);
av_assert0
(
tmp
[
0
]
==
0
&&
tmp
[
1
]
==
0
);
...
...
libavutil/pixdesc.h
View file @
9c2436e1
...
...
@@ -172,6 +172,11 @@ typedef struct AVPixFmtDescriptor {
*/
#define AV_PIX_FMT_FLAG_ALPHA (1 << 7)
/**
* The pixel format is following a Bayer pattern
*/
#define AV_PIX_FMT_FLAG_BAYER (1 << 8)
/**
* Return the number of bits per pixel used by the pixel format
* described by pixdesc. Note that this is not the same as the number
...
...
libavutil/version.h
View file @
9c2436e1
...
...
@@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR 4
8
#define LIBAVUTIL_VERSION_MINOR 4
9
#define LIBAVUTIL_VERSION_MICRO 100
#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