bjin / mpv-prescalers

prescalers for mpv, as user shaders
GNU Lesser General Public License v3.0
367 stars 33 forks source link

scale = bilinear (rgb) query #40

Closed Shashank066 closed 4 years ago

Shashank066 commented 4 years ago

@bjin stats, I am seeing scale = bilinear (rgb) with ravu_zoom r4 Without ravu scale = ewa_lanczossharp (rgb) as specified in mpv.conf

ravu zoom Without ravu

You had explained to another user:

Chroma is upscaled to luma resolution (video size), and then the converted RGB is upscaled to target resolution (screen size).

Isn't bilinear a low quality algorithm for scaling? Is there a way to switch it to better algorithm or am I missing something?

glsl-shader = E:/Softwares/Video Player\mpv/shaders/KrigBilateral.glsl
glsl-shader = E:/Softwares/Video Player\mpv/shaders/SSimDownscaler.glsl
glsl-shader = E:/Softwares/Video Player\mpv/shaders/SSimSuperRes.glsl
glsl-shader = E:/Softwares/Video Player\mpv/shaders/ravu-zoom-r4.hook

scale = ewa_lanczossharp
cscale = ewa_lanczossharp
dscale = mitchell
correct-downscaling = yes

gpu-api = d3d11
hwdec = no
deus0ww commented 4 years ago

You're seeing scale=bilinear because the built-in scale is not actually used when ravu-zoom is active. This is controlled by the scaler-resizes-only option.

Shashank066 commented 4 years ago

Thanks, that explains it.