Originally posted by stqn
View Post
Announcement
Collapse
No announcement yet.
Wayland's Weston Gets Output Scaling Support
Collapse
X
-
Originally posted by smitty3268 View PostIt looks like it's just using Cairo to do all the scaling (cairo_scale), although i didn't spot what algorithm it had set.
Comment
-
Originally posted by dee. View PostThis, and also: what scaling algorithms are available?
The scaling algorithm is not specified. If we did specify a certain algorithm, we would immediate exclude half of the hardware support. Specify a simple algorithm: most hardware will probably support it, but it will not allow capable hardware to make any better even if they could. Specify a fancy algorithm: lots of hardware simply may not be able to do it. This is also Wayland core protocol, so it is not only about PCs or desktops. Therefore the exact algorithm is left as an implementation detail.
Comment
-
@pq__
it would look ugly and probably unreadable.
Scaling video to fit on a smaller screen could look good while doing high-quality scaling on the client device.
Not all applications are about reading.
Things like miniature previews of windows can also use the scale down support, the content does not have to be readable.
There might be other use cases where scaling down is useful and readability is not important.
I hope there is a way for wayland devices to poll and negociate rescaling algorithms available?
This would allow for the most flexible way to adapt to hardware while avoiding support and compatibility problems.
Comment
-
Originally posted by plonoma View Post@pq__
Not necessarily.
Scaling video to fit on a smaller screen could look good while doing high-quality scaling on the client device.
Not all applications are about reading.
Things like miniature previews of windows can also use the scale down support, the content does not have to be readable.
[IMG---/IMG]
There might be other use cases where scaling down is useful and readability is not important.
I hope there is a way for wayland devices to poll and negociate rescaling algorithms available?
This would allow for the most flexible way to adapt to hardware while avoiding support and compatibility problems.
That means that everything on that output is *always* scaled by the specified factor, either by the compositor by default, or the clients rendering at the proper resolution as opt-in. There is nothing to negotiate of algorithms, a compositor uses what it has available.
There is a separate protocol extension being sketched for client-controlled per-surface scaling, especially for hardware scaling of videos but usable for anything.
Comment
-
That's very nice. The current, X way of scaling things up (changing DPI) doesn't work well, usually only changes text size. Having an ability to upscale everything would be really nice, even on today's monitors, given that full HD already gives a lot more space than many programs in the past considered possible to achieve.
Comment
Comment