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