> > To me, an XImage layout would just be another format in the list... Usually > > only on the ´To´ side. The number is limited anyway: 555packed, 565packe, > > rgb24 and rgb32, that´s about (and the latter two are already standard :)) > > For these formats "to" is useful for X display, and "from" is useful for > V4L and AVI. You're right that's the way it's implemented - as a bunch > of individual converters that cover the common XImage formats, but the > point is that the app can just do a dumb "descriptor.format = PackedRGB, > descriptor.r/g/b masks = XImage.r/g/b masks", then ask for a converter > to/from that format. ... and xawtv has some functions which use lookup tables as default catch. These lookup tables are initialized at startup with approximate values for the X-Servers ximage format. This way everything works fine even if the ximage format is _not_ one of the common ones (rgb555 on a byteswapped display, rgb with 10 bit color dept, ...). Gerd -- Gerd Knorr <kraxel@xxxxxxxxxxx> -- SuSE Labs, Außenstelle Berlin