Paul B Mahol
d64cbd4fda
remove CHAR_MIN/CHAR_MAX usage
...
It is not needed at all.
2020-03-17 22:46:36 +01:00
Clément Bœsch
eb1860e017
lavfi/selectivecolor: fix neutral color filtering
...
Neutrals are supposed to be anything not black (0,0,0) and not white
(N,N,N).
Previous neutral filtering code was too strict by excluding colors with
any of its RGB component maxed instead of just the white color.
Reported-by: Royi Avital <royiavital@yahoo.com>
2018-08-09 19:56:26 +02:00
Paul B Mahol
ed93ed5ee3
avfilter: don't anonymously typedef structs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-05-13 11:39:28 +02:00
Clément Bœsch
27627c281e
lavfi/selectivecolor: add a link to algorithm explanations
2017-01-07 14:25:57 +01:00
Clément Bœsch
771b3a956e
lavfi/selectivecolor: rename adjust_range to scale
...
This variable corresponds to the final scale of the adjustement for a
given color range.
2016-12-31 13:01:04 +01:00
Clément Bœsch
afaaf8db18
lavfi/selectivecolor: simplify crazy mid val computations
2016-12-27 23:56:23 +01:00
Paul B Mahol
a0a57072c9
avfilter: make use of ff_filter_get_nb_threads
2016-08-29 16:27:09 +02:00
Clément Bœsch
308f9b1c49
lavfi/selectivecolor: add 16-bit support
2016-07-24 15:29:37 +02:00
Clément Bœsch
b8aaedcd01
lavfi/selectivecolor: fix picking black as neutral when alpha is present
2016-07-24 14:21:50 +02:00
Clément Bœsch
8c9c8fd035
avfilter/selectivecolor: fix correction_method option range
2015-10-17 15:01:57 +02:00
Clément Bœsch
49f4967dd0
avfilter: add selectivecolor filter
2015-10-11 13:44:33 +02:00