~emersion/go-kdf

96b64554d0a52d9a31dcabc51eb98f7e5ef29ba3 — Simon Ser 1 year, 29 days ago f8c5b83
drm: fix component order for YCbCr packed formats

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4105#note_1918117
1 files changed, 1 insertions(+), 1 deletions(-)

M drm/drm.go
M drm/drm.go => drm/drm.go +1 -1
@@ 192,7 192,7 @@ func parseYUVAPackedFormat(s string) (channels []kdf.Channel, bitsPerChannel []i
		channels = append(channels, ch)
	}

	reverseChannels(channels)
	// Note: DRM packed YCbCr formats have a reversed component order!

	bitsPerChannel = []int{8, 8, 8, 8}