Expand description
A frame of the virtual screen as the pane wants it: the same kind byte and JPEG the streamed browser sends
(pane.rs), made only when the screen changed since the last one that was sent. The screen says which part of it changed
(the damage extension), so only that part is read; the picture of the whole screen is kept here and each change is written into it.
Structs§
- Picture
- The picture of the whole screen as last read: four bytes a pixel (blue, green, red, one unused), row after row. A part that was read again is written in, and says whether it was different.
- Rect
- A part of the screen, in pixels.
Constants§
- FRAME
- The first byte of a frame message (the pane’s
FRAME). - JPEG_
QUALITY 🔒 - The same quality as the streamed browser’s screencast.
Functions§
- frame_
message - The screen’s pixels as the X server hands them (blue, green, red, one unused byte per pixel) as one frame message: the kind byte, then a JPEG.