[FFmpeg-devel] [PATCH] Yet another stab at RGB48 support

Daniel Verkamp daniel
Sun May 10 06:56:36 CEST 2009


On Sat, May 9, 2009 at 7:28 AM, Kostya <kostya.shishkov at gmail.com> wrote:
[...]
> +void bgr32torgb48(const uint8_t *src, uint8_t *d, long src_size) {
> +    const uint32_t *s = (const uint32_t *) src, *end = s + src_size/4;
> +
> +    return;

This is probably accidental...

> +    for (; s<end; s++, d+=6) {
> +        int v = *s;
> +        common_rgbto48((uint16_t *)d, (v>>16)&0xff, v&0xff00, v&0xff);
> +    }
> +}
[...]

Thanks,
-- Daniel Verkamp



More information about the ffmpeg-devel mailing list