Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-01-31 | render/pixel-format: Move has_alpha into it's own array | Leo Li | |
Some opaque pixel formats (nv12, p010) require per-plane bytes_per_block info. However, it doesn't make sense to store them in wlr_pixel_format_info, as they will never be useful (currently, this info is used for shm, which doesn't have a concept of multi-planar buffers.) Let's define a separate array and function for determining whether a pixel format has alpha. | |||
2023-05-21 | render/pixel-format: add support for block-based formats | Simon Ser | |
Some formats like sub-sampled YCbCr use a block of bytes to store the color values for more than one pixel. Update our format table to be able to handle such formats. | |||
2023-05-21 | render/pixel-format: add docs | Simon Ser | |
2022-11-15 | render/pixel_format: import pixel_format_info_check_stride() | Simon Ser | |
We'll use this function from wlr_shm too. Add some assertions, use int32_t (since the wire protocol uses that, and we don't want to use 16-bit integers on exotic systems) and switch the stride check to be overflow-safe. | |||
2021-03-25 | Move render/shm_format functions to render/pixel_format | Simon Zeni | |
2021-03-25 | render/pixel_format: introduce pixel format info table | Simon Zeni | |