On 1/19/12, Justin Ruggles <[email protected]> wrote: > On 01/19/2012 04:22 PM, Paul B Mahol wrote: > >> +#if HAVE_BIGENDIAN >> + p->data[1][i * 4 ] = 0xFF; >> + p->data[1][i * 4 + 1] = bytestream_get_be16(&buf) >> 8; >> + p->data[1][i * 4 + 2] = bytestream_get_be16(&buf) >> 8; >> + p->data[1][i * 4 + 3] = bytestream_get_be16(&buf) >> 8; >> +#else >> + p->data[1][i * 4 + 3] = 0xFF; >> + p->data[1][i * 4 + 2] = bytestream_get_be16(&buf) >> 8; >> + p->data[1][i * 4 + 1] = bytestream_get_be16(&buf) >> 8; >> + p->data[1][i * 4 ] = bytestream_get_be16(&buf) >> 8; >> +#endif > > > If the palette can be true 16-bit, maybe we should round here. Or are > the low bytes always 0?
AFAIK X11 does not support 48 depth output yet. The entries are just duplicated: FF FF, 00 00 and so on. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
