[Mesa-dev] [PATCH 0/2] Implement lanczos interpolation filter
Christian König
deathsimple at vodafone.de
Thu Sep 22 13:00:47 UTC 2016
Am 21.09.2016 um 16:38 schrieb Andy Furniss:
> Andy Furniss wrote:
>> Andy Furniss wrote:
>>> Andy Furniss wrote:
>>>
>>>> bz2 compressed vid showing the issue -
>>>>
>>>> https://drive.google.com/open?id=0BxP5-S1t9VEEUE5sbUFBV20zSms
>>>
>>> To be clear this is just the test rez vid I used so you can
>>> possibly recreate the issue your self.
>>
>> Hmm, interesting, with bicubic, hqscaling=1 this vid behaves
>> differently with mplayer compared to mpv, the latter looks like
>> it's scaling a bit, maybe there's an off by one somewhere in mpv
>> code.
>
> I don't know if it's the cause, but looking for differences between
> mplayer and mpv it seems that mpv sets video mixer height so it's
> divisible by 32 but mplayer doesn't. For this 720p sample it uses 736
> and mplayer uses 720.
>
> vdp_video_mixer_create(1, 1, {11}, 3, {0, 1, 2}, {1280, 736, 0}, -)
>
> for output surfaces and render calls it uses 720.
>
> So does the bicubic code see/use this 736 somewhere?
Well that would clearly explain some differences. Are the video input
buffers rounded up to 32 as well?
If not then mpv is clearly not using the interface correctly here:
> #define VDP_VIDEO_MIXER_PARAMETER_VIDEO_SURFACE_HEIGHT
>
> The exact height of input video surfaces.
>
> This parameter's type is uint32_t.
>
> This parameter defaults to 0 if not specified, which entails that it
> must be specified.
>
> The application may query this parameter's supported range.
>
> #define VDP_VIDEO_MIXER_PARAMETER_VIDEO_SURFACE_WIDTH
>
> The exact width of input video surfaces.
>
> This parameter's type is uint32_t.
>
> This parameter defaults to 0 if not specified, which entails that it
> must be specified.
>
> The application may query this parameter's supported range.
>
Maybe we should make the checks done during rending more strict?
Regards,
Christian.
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160922/b2c8f1dd/attachment-0001.html>
More information about the mesa-dev
mailing list