History

avfilter/vf_fftdnoiz: improve filtering at edges

Paul B Mahol committed 4 years ago

Commit ff3c7081 parent ff3c4701 file · +3 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_fftdnoiz.c+3−2
@@ -308,6 +308,7 @@ static void import_block(FFTdnoizContext *s, · 307 unmodified lines
308 dst_out += data_linesize;308 dst_out += data_linesize;
309 }309 }
310 310
311 dst = dst_out;
311 for (int i = rh; i < block; i++) {312 for (int i = rh; i < block; i++) {
312 for (int j = 0; j < block; j++) {313 for (int j = 0; j < block; j++) {
313 dst[j].re = ddst[j].re;314 dst[j].re = ddst[j].re;
@@ -347,8 +348,8 @@ static void export_block(FFTdnoizContext *s, · 33 unmodified lines
347 AVComplexFloat *hdata = p->hdata[jobnr];348 AVComplexFloat *hdata = p->hdata[jobnr];
348 AVComplexFloat *hdata_out = p->hdata_out[jobnr];349 AVComplexFloat *hdata_out = p->hdata_out[jobnr];
349 AVComplexFloat *vdata_out = p->vdata_out[jobnr];350 AVComplexFloat *vdata_out = p->vdata_out[jobnr];
350 const int rw = FFMIN(size, width - x * size + hoverlap);351 const int rw = FFMIN(size, width - x * size);
351 const int rh = FFMIN(size, height - y * size + hoverlap);352 const int rh = FFMIN(size, height - y * size);
352 AVComplexFloat *hdst, *vdst = vdata_out, *hdst_out = hdata_out;353 AVComplexFloat *hdst, *vdst = vdata_out, *hdst_out = hdata_out;
353 float *bsrc = buffer;354 float *bsrc = buffer;
354 355

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