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
5b509faf
Commit
5b509faf
authored
Sep 16, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_lut2: also export video input bit depth
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
51000b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
filters.texi
doc/filters.texi
+6
-0
vf_lut2.c
libavfilter/vf_lut2.c
+6
-0
No files found.
doc/filters.texi
View file @
5b509faf
...
...
@@ -9352,6 +9352,12 @@ The first input value for the pixel component.
@item y
The second input value for the pixel component.
@item bdx
The first input video bit depth.
@item bdy
The second input video bit depth.
@end table
All expressions default to "x".
...
...
libavfilter/vf_lut2.c
View file @
5b509faf
...
...
@@ -35,6 +35,8 @@ static const char *const var_names[] = {
"h"
,
///< height of the input video
"x"
,
///< input value for the pixel from input #1
"y"
,
///< input value for the pixel from input #2
"bdx"
,
///< input #1 video bitdepth
"bdy"
,
///< input #2 video bitdepth
NULL
};
...
...
@@ -43,6 +45,8 @@ enum var_name {
VAR_H
,
VAR_X
,
VAR_Y
,
VAR_BITDEPTHX
,
VAR_BITDEPTHY
,
VAR_VARS_NB
};
...
...
@@ -127,6 +131,7 @@ static int config_inputx(AVFilterLink *inlink)
s
->
var_values
[
VAR_W
]
=
inlink
->
w
;
s
->
var_values
[
VAR_H
]
=
inlink
->
h
;
s
->
depthx
=
desc
->
comp
[
0
].
depth
;
s
->
var_values
[
VAR_BITDEPTHX
]
=
s
->
depthx
;
return
0
;
}
...
...
@@ -138,6 +143,7 @@ static int config_inputy(AVFilterLink *inlink)
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
s
->
depthy
=
desc
->
comp
[
0
].
depth
;
s
->
var_values
[
VAR_BITDEPTHY
]
=
s
->
depthy
;
return
0
;
}
...
...
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