-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vo_gpu{,_next}: convert scale options to type choice #14221
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request: |
Since we require libplacebo anyway, maybe it is good time to unify filter definitions, instead of adding another layer of paint on top of it. libplacebo exports things like pl_scale_filters and all filters as structures. Sure, this would be breaking changes for some inconsistencies between vo_gpu, but the long-term plan is to replace it anyway, so we might do it bit by bit. |
6bdc500
to
6b05499
Compare
Doesn't vo gpu still needs its filter functions and parameters in |
You can get all that from |
Can this be done in a separate PR instead? There is no need to expand the scope of this. It's mostly semantic changes and some code simplification. |
This allows Tab completing them in the console and zsh, and using cycle scale. jinc is also added to --tscale=help's output, while before it was missing because validate_scaler_opt() skipped filter windows with the same name as a filter kernel, but the jinc kernel was skipped with --tscale because it is polar.
What is the scope of this PR though? All I see is another enum with filters and mapping tables. All this is far from simplification. Simplification would be to remove all this code from mpv. Like I said it is painting over something that should just be replaced. |
See commit message.
Removing several special
If @guidocella doesn't want to do this in this PR and you don't want to merge this PR at the current state, then please open another PR which removes the code, instead of stalling valid UX improvements. Once that is resolved we can go back to this one. |
This PR is just meant to provide Tab completion. I'm not sure it would be worth it to update all of vo gpu's code to use |
I'm sorry, but who are you to tell me what should I do? Also, I'm the last person who is stalling anything here. |
So is this PR ready to merge or not? If not, someone needs to do something about it. Maybe I was wrong to assume that no one other than you is interested to do that, but if you aren't and no one else is, then this PR has no future and it's better to be closed. |
This allows Tab completing them in the console and zsh, and using cycle scale.
jinc is also added to --tscale=help's output, while before it was missing because validate_scaler_opt() skipped filter windows with the same name as a filter kernel, but the jinc kernel was skipped with --tscale because it is polar.