for (int c = 0; c < 3; c++)
{
- if (pv->strength[c] == 0)
+ if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU)
{
+ nlmeans_prefilter(&frame->plane[c], pv->prefilter[c]);
nlmeans_deborder(&frame->plane[c], buf->plane[c].data,
buf->plane[c].width, buf->plane[c].stride,
buf->plane[c].height);
continue;
}
- if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU)
+ if (pv->strength[c] == 0)
{
- nlmeans_prefilter(&frame->plane[c], pv->prefilter[c]);
nlmeans_deborder(&frame->plane[c], buf->plane[c].data,
buf->plane[c].width, buf->plane[c].stride,
buf->plane[c].height);
for (int c = 0; c < 3; c++)
{
- if (pv->strength[c] == 0)
+ if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU)
{
+ nlmeans_prefilter(&frame->plane[c], pv->prefilter[c]);
nlmeans_deborder(&frame->plane[c], buf->plane[c].data,
buf->plane[c].width, buf->plane[c].stride,
buf->plane[c].height);
continue;
}
- if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU)
+ if (pv->strength[c] == 0)
{
- nlmeans_prefilter(&frame->plane[c], pv->prefilter[c]);
nlmeans_deborder(&frame->plane[c], buf->plane[c].data,
buf->plane[c].width, buf->plane[c].stride,
buf->plane[c].height);