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
4719e563
Commit
4719e563
authored
Nov 27, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_zscale: export approximate gamma option and enable it by default
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a06e84b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vf_zscale.c
libavfilter/vf_zscale.c
+3
-0
No files found.
libavfilter/vf_zscale.c
View file @
4719e563
...
...
@@ -97,6 +97,7 @@ typedef struct ZScaleContext {
int
chromal_in
;
char
*
size_str
;
double
nominal_peak_luminance
;
int
approximate_gamma
;
char
*
w_expr
;
///< width expression string
char
*
h_expr
;
///< height expression string
...
...
@@ -480,6 +481,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
s
->
params
.
resample_filter
=
s
->
filter
;
s
->
params
.
resample_filter_uv
=
s
->
filter
;
s
->
params
.
nominal_peak_luminance
=
s
->
nominal_peak_luminance
;
s
->
params
.
allow_approximate_gamma
=
s
->
approximate_gamma
;
s
->
src_format
.
width
=
in
->
width
;
s
->
src_format
.
height
=
in
->
height
;
...
...
@@ -762,6 +764,7 @@ static const AVOption zscale_options[] = {
{
"chromalin"
,
"set input chroma location"
,
OFFSET
(
chromal_in
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
-
1
,
ZIMG_CHROMA_BOTTOM
,
FLAGS
,
"chroma"
},
{
"cin"
,
"set input chroma location"
,
OFFSET
(
chromal_in
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
-
1
,
ZIMG_CHROMA_BOTTOM
,
FLAGS
,
"chroma"
},
{
"npl"
,
"set nominal peak luminance"
,
OFFSET
(
nominal_peak_luminance
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
NAN
},
0
,
DBL_MAX
,
FLAGS
},
{
"agamma"
,
"allow approximate gamma"
,
OFFSET
(
approximate_gamma
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
NULL
}
};
...
...
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