409 points · by birdculture · 1y ago · 72 comments
If you have Netflix, look up "Cunk on Earth". Trust me, you won't regret it.
I have some vague memory of programs whose windows had funky shapes (i.e. not rectangular) also using overlays of some kind. Maybe that's a different sort of overlay?
Every so often you could get a glimpse of the man behind the curtain, by dragging the window quickly or the drivers stuttering, which would momentarily reveal the green color (or whatever color it was) before the video card resumed doing its thing. Switching between full screen and windowed mode probably also revealed the magic, or starting a game that attempted to grab the video hardware context. And of course sometimes other graphical content would have the exact right shade of color, and have video-displaying pixels.
Darn, I thought this explained why, after upgrading my GPU, videos playing in Chrome have a thin green stripe on their right edge.
This issue can happen with overlays, but also non-overlay GPU drawing or CPU conversion routines.
Your green stripe is likely because of the classic combination of unclamped bilinear filtering and a texture that's larger than the output region being used as the drawing surface for the video.
MS started exposing some capabilities using MPO in the windows 8 era [0], and they've pretty much always had pretty comprehensive composition pipes in hardware for mobile platforms due to the power/bandwidth limitations meaning compositing the display can be a significant fraction of the total device's performance.
I suspect green (or other block colour) artifacts on video edges are due to bugs/mismatches in specification with the hardware video decoder and how the app displays it, and the bugs that often fall out of that.
Most video compression requires pretty large blocks, normally from 16x16 up 64x64 depending on format, and that may not align with the actual video size (e.g. 1080 does not divide by either). But often implementations still need that extra surface, as things like motion vectors may still refer to data in the "invisible" portion. And it has to be filled with something. It's then real easy to fall into bugs where small numeric errors in things like blending, or even just mix-ups between the different "sizes" that surface has, to cause issues at the edges.
I suspect the other comment about using ANGLE/dx9/dx11-on-12 may be effective as it /also/ causes the hardware video decoder not to be used, which is often a source of "unexpected" differences or limitations that commonly cause errors like that.
[0] https://learn.microsoft.com/en-us/windows-hardware/drivers/d...
https://old.reddit.com/r/OLED_Gaming/comments/1kovgdx/green_...
I'd make sure your drivers are up to date before fiddling with Chrome flags though.
If video rendering used overlays, then YouTube could not put the toolbar or subtitles on top of the video, and they’ve been doing so for a long time.
https://issues.chromium.org/issues/40140067
>In today's Chrome, when a device supports hardware overlays, we promote at most one video's frames to hardware overlays.
...This is the oldest I've ever felt, unsure of my own memories regarding something I have to consult historical records about...
As OP noted, using hardware display planes can have efficiency advantages for cases like floating controls over a video or smoothly animating a plane over a static background, since it avoids an extra read+write for the composited image. However, it also has some quirks -- like hardware bandwidth limits on how small a display plane can be scaled.
They were rendered in some kind of overlay, that the rest of the GUI didn't know anything about.
Was this dependent on the OS? Or the driver?
You had to use the builtin screenshot function from your video player/tv viewer.
The current MPlayer under OpenBSD 7.7 still has the overlay video output
mplayer -vo xoverWhile cameras were definitely common, they also weren't quiet as ubiquitous as they're today.
Lots of families only had them for trips etc, not readily available for kids to make photos of screens.
I was about 15 at the time, I'd had multiple digital cameras and had a phone with a crappy camera on it. All of my friends had digital cameras. Myspace had already peaked, Facebook was taking off, and that was largely driven by kids taking pictures.
The idea that the ability to take a photo wasn't ubiquitous for big parts of the western world in 2005 doesn't seem accurate.
I hate how incompetent tech writing and marketing rewrote and simplified mobile phone history into pre/post-iphone. Yes, we did have touchscreens, smartphones and camera-enabled devices many years before the iPhone. Arguably, on several metrics, many Symbian/Linux/blackberry phones of that era are better smartphones than today's iPhone/Androids as defined by hardware capabilities which got removed over time while arbitrary constraints got added on the software front.
At least by typing them the typer might learning something. :)
the latency of the camera feed on the crt screen was unbelievable even (especially?) by modern standards!
after a minute of pure wonder i remembered about overlays. still mighty impressive.
The desktop compositors takes the graphics content of all the windows, including their composition visuals, and combines them to form a full desktop image that is sent to the monitor.
...at the cost of latency and efficiency.
I was always stumped as to what the hell was happening.