mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-17 17:58:07 +02:00
As mentioned in the previous commit message, we can't create an RBO out of an NV12 buffer in GL ES2.0. Instead, we render in 2 passes to 2 separate RBOs. This could be made more generic by having a lookup table for the parameters that need to be set for each plane for any given format, but as of yet, I see no practical reason for implementing any other kind of YCbCr target buffer rendering as NV12 seems to be the only format that's commonly supported by hardware video encoders. I chose to use BT.709 full-range cofficients as that is what is prescribed by sRGB, annex f. Signed-off-by: Andri Yngvason <andri@yngvason.is> |
||
|---|---|---|
| .. | ||
| shaders | ||
| meson.build | ||
| pass.c | ||
| pixel_format.c | ||
| renderer.c | ||
| texture.c | ||