Clément Bœsch
f0a5f71074
lavfi/hue: reindent.
12 years ago
Clément Bœsch
3da54858d3
lavfi/hue: add an optimized direct path.
12 years ago
Stefano Sabatini
dd37326345
lavfi/hue: reindent after previous commit
12 years ago
Stefano Sabatini
d709a18ac2
lavfi/hue: simplify parsing by making use of option shorthands
12 years ago
Clément Bœsch
adfd9ca3fa
lavfi/hue: move to ff_filter_frame.
12 years ago
Clément Bœsch
2d9d444051
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79e
.
12 years ago
Hendrik Leppkes
79393a8363
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
7fe1ecefe1
lavfi/hue: simplify/fix setting logic in set_options()
Parse expression only when a new value is explicitly specified.
In particular, avoid double free in case an old expression value is
cached, it is set in the context, it is freed as the old value, and
finally the pointer stored in the context is freed again when the filter
is released.
12 years ago
Stefano Sabatini
3aa1b53256
lavfi/hue: set to NULL freed pointers
Possibly safer.
12 years ago
Stefano Sabatini
31aa5b1a78
lavfi/hue: fix crash when resetting the saturation expression
Previously when saturation was reinited, the old value was freed when
setting options, and freed again in PARSE_EXPRESSION().
12 years ago
Jérémy Tran
75d34864d1
lavfi/hue: add dynamic expression evaluation support
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Michael Niedermayer
e60fcdb989
vf_hue: fix AVOption defaults
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Jérémy Tran
54ca7e39da
lavfi/hue: add process_command callback
This allows dynamic reconfiguration of the filter.
The callback uses some code that was in the init function. Hence this code
has been moved in its own function.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Stefano Sabatini
42d621d131
lavfi: add priv class to filter definitions and flags to filter internal options
This allows the iteration callbacks to discover the internal class and
options, and show them when required.
13 years ago
Stefano Sabatini
208d6e6615
lavfi/hue: add verbose debug message showing initial parameters
13 years ago
Stefano Sabatini
5b0151a474
lavfi/hue: reindent after previous commits
13 years ago
Stefano Sabatini
419e1b7463
lavfi/hue: apply misc fixes to default values setting
In particular: signal error in case of bogus h:s values.
13 years ago
Jérémy Tran
191b77eb01
lavfi/hue: add named options support
Old syntax has been kept for compatibility reasons.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Jérémy Tran
ae60d2c877
lavfi: add hue filter
This is a port of the MPlayer hue filter (libmpcodecs/vf_hue.c) by
Michael Niedermayer.
Signed-off-by: Jérémy Tran <tran.jeremy.av@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago