History

avfilter/vf_lut: make it possible to clip pixel values that are out of valid range

Previous behavior was not useful at all as such pixels where all mapped to 0.

Paul B Mahol committed 9 years ago

Commit aa234691 parent 72864541 file · +1 −1Browse files

Unified · Split

libavfilter/vf_lut.c+1−1
@@ -310,7 +310,7 @@ static int config_props(AVFilterLink *inlink) · 309 unmodified lines
310 s->var_values[VAR_MAXVAL] = max[color];310 s->var_values[VAR_MAXVAL] = max[color];
311 s->var_values[VAR_MINVAL] = min[color];311 s->var_values[VAR_MINVAL] = min[color];
312 312
313 for (val = 0; val < (1 << desc->comp[0].depth); val++) {313 for (val = 0; val < FF_ARRAY_ELEMS(s->lut[comp]); val++) {
314 s->var_values[VAR_VAL] = val;314 s->var_values[VAR_VAL] = val;
315 s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]);315 s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]);
316 s->var_values[VAR_NEGVAL] =316 s->var_values[VAR_NEGVAL] =

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t