diff options
author | Niklas Haas <git@haasn.xyz> | 2017-07-24 23:22:30 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-07-24 23:26:15 +0200 |
commit | 241d5ebc4612041e2731b55b8831d6e7a290cba8 (patch) | |
tree | ff62a22ab821cf3412fb9eb1706ad26e8af1be2c /waftools | |
parent | 13ef6bcf6fe129614299bb40daa1427a213ed949 (diff) | |
download | mpv-241d5ebc4612041e2731b55b8831d6e7a290cba8.tar.bz2 mpv-241d5ebc4612041e2731b55b8831d6e7a290cba8.tar.xz |
vo_opengl: adjust the rules for linearization
Two changes, compounded into one since they affect the same logic:
1. Never use linearization for HDR downscaling
2. Always use linearization for interpolation
Instead of fixing p->use_linear at the beginning of pass_render_frame,
we flip it on "dynamically" as needed. I plan on killing this
p->use_linear frame (along with other per-pass metadata) and moving them
into their own struct for tracking the "current" state of the video, but
that's a separate/upcoming refactor.
As a small bonus, reduce some code duplication in the interpolation
logic.
Fixes #4631
Diffstat (limited to 'waftools')
0 files changed, 0 insertions, 0 deletions