On Fri, Nov 20, 2015 at 20:13:11 +0100, Paul B Mahol wrote:
Trivial, but:
> +{ "0fd", "set flash threshold detection for 1st color component",
> OFFSET(fthrd[0]), AV_OPT_TYPE_FLOAT, {.dbl=0.2}, 0, 5, FLAGS },
> +{ "0fr", "set ammount of flash reduction for 1st color component",
>
On Fri, Nov 20, 2015 at 08:13:11PM +0100, Paul B Mahol wrote:
[...]
> +for (y = 0; y < h; y++) {
> +for (x = 0; x < w; x++) {
> +int diff = next[x] - src[x];
> +int t = 0;
> +
> +for (z = 0; z < FF_BUFQUEUE_SIZE - 1; z++) {
> +
On Fri, Nov 20, 2015 at 08:13:11PM +0100, Paul B Mahol wrote:
[...]
> +static av_cold void uninit(AVFilterContext *ctx)
> +{
> +DeFlashContext *s = ctx->priv;
> +}
> +
> +static const AVFilterPad inputs[] = {
> +{
> +.name = "default",
> +.type =
On 11/21/15, Clement Boesch wrote:
> On Fri, Nov 20, 2015 at 08:13:11PM +0100, Paul B Mahol wrote:
> [...]
>> +for (y = 0; y < h; y++) {
>> +for (x = 0; x < w; x++) {
>> +int diff = next[x] - src[x];
>> +int t = 0;
>> +
>> +
Signed-off-by: Paul B Mahol
---
libavfilter/Makefile | 1 +
libavfilter/allfilters.c | 1 +
libavfilter/vf_deflash.c | 199 +++
3 files changed, 201 insertions(+)
create mode 100644 libavfilter/vf_deflash.c
diff --git