From 0848f3f8325e10690d08c436fe71603a2cca0699 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Feb 2020 17:54:35 +0100 Subject: zimg: fix typos in a comment Also remove the "o" case, which was never implemented (probably was an idea to output alpha formats, now obsoleted by zimg's full alpha support). --- video/zimg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/video/zimg.c b/video/zimg.c index f0048aa195..145cd55a51 100644 --- a/video/zimg.c +++ b/video/zimg.c @@ -255,16 +255,15 @@ static int repack_align(void *user, unsigned i, unsigned x0, unsigned x1) // Naming convention: // pa_/un_ prefix to identify conversion direction. // Left (LSB, lowest byte address) -> Right (MSB, highest byte address). -// (This is unusual; MSG to LSB is more commonly used to describe formats, +// (This is unusual; MSB to LSB is more commonly used to describe formats, // but our convention makes more sense for byte access in little endian.) // "c" identifies a color component. // "z" identifies known zero padding. -// "o" identifies opaque alpha (unused/unsupported yet). // "x" identifies uninitialized padding. // A component is followed by its size in bits. // Size can be omitted for multiple uniform components (c8c8c8 == ccc8). // Unpackers will often use "x" for padding, because they ignore it, while -// packets will use "z" because they write zero. +// packers will use "z" because they write zero. #define PA_WORD_4(name, packed_t, plane_t, sh_c0, sh_c1, sh_c2, sh_c3) \ static void name(void *dst, void *src[], int x0, int x1) { \ -- cgit v1.2.3