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
f7f60749
Commit
f7f60749
authored
Nov 30, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_colorspace: Add support for jedec p22 primaries
Signed-off-by:
Vittorio Giovara
<
vittorio.giovara@gmail.com
>
parent
35c76f2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
filters.texi
doc/filters.texi
+3
-0
vf_colorspace.c
libavfilter/vf_colorspace.c
+2
-0
No files found.
doc/filters.texi
View file @
f7f60749
...
...
@@ -5606,6 +5606,9 @@ SMPTE-432
@item bt2020
BT.2020
@item jedec-p22
JEDEC P22 phosphors
@end table
@anchor{range}
...
...
libavfilter/vf_colorspace.c
View file @
f7f60749
...
...
@@ -296,6 +296,7 @@ static const struct ColorPrimaries color_primaries[AVCOL_PRI_NB] = {
[
AVCOL_PRI_SMPTE432
]
=
{
WP_D65
,
0
.
680
,
0
.
320
,
0
.
265
,
0
.
690
,
0
.
150
,
0
.
060
},
[
AVCOL_PRI_FILM
]
=
{
WP_C
,
0
.
681
,
0
.
319
,
0
.
243
,
0
.
692
,
0
.
145
,
0
.
04
9
},
[
AVCOL_PRI_BT2020
]
=
{
WP_D65
,
0
.
708
,
0
.
292
,
0
.
170
,
0
.
797
,
0
.
131
,
0
.
046
},
[
AVCOL_PRI_JEDEC_P22
]
=
{
WP_D65
,
0
.
630
,
0
.
340
,
0
.
295
,
0
.
605
,
0
.
155
,
0
.
077
},
};
static
const
struct
ColorPrimaries
*
get_color_primaries
(
enum
AVColorPrimaries
prm
)
...
...
@@ -1112,6 +1113,7 @@ static const AVOption colorspace_options[] = {
ENUM
(
"smpte431"
,
AVCOL_PRI_SMPTE431
,
"prm"
),
ENUM
(
"smpte432"
,
AVCOL_PRI_SMPTE432
,
"prm"
),
ENUM
(
"bt2020"
,
AVCOL_PRI_BT2020
,
"prm"
),
ENUM
(
"jedec-p22"
,
AVCOL_PRI_JEDEC_P22
,
"prm"
),
{
"trc"
,
"Output transfer characteristics"
,
OFFSET
(
user_trc
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AVCOL_TRC_UNSPECIFIED
},
...
...
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