[Mesa-dev] [PATCH v3] st/vdpau: change the order in which filters are applied(v3)

Andy Furniss adf.lists at gmail.com
Wed Aug 17 09:11:38 UTC 2016


Nayan Deshmukh wrote:

> Sorry for the misleading language. What I meant was that the filter should only
> be applied to first resource i.e. use only first sampler_view and
> surface. As you
> replaced i by 0 the filter gets applied multiple times. I tried doing
> that and I am
> experiencing same problems i.e. artifacts with positive sharpen.
>
> So can you please it try it again by replacing VL_MAX_SURFACES with 1 in the
> for loop. It should probably fix the problems.

Possibly a stupid question, because I don't know how this stuff works,
but why does it loop 6 times per frame rather than 3?

I mean as seen if I put a printf as below.

>>>>>> +   for(i = 0; i < VL_MAX_SURFACES; ++i) {
>>>>>> +      if(sampler_views[i] != NULL && surfaces[i] != NULL) {
                  fprintf(stderr,"ADF: i = %d\n", i);
>>>>>> +         if (vmixer->noise_reduction.filter)
>>>>>> +            vl_median_filter_render(vmixer->noise_reduction.filter,
>>>>>> +                                    sampler_views[i], surfaces[i]);
>>>>>> +
>>>>>> +         if (vmixer->sharpness.filter)
>>>>>> +            vl_matrix_filter_render(vmixer->sharpness.filter,
>>>>>> +                                    sampler_views[i], surfaces[i]);



More information about the mesa-dev mailing list