On Thu, Jun 07, 2007 at 12:10:21PM +0000, Tomas Groth wrote:
> std::auto_ptr<image::image_base> ret_image;
>
> if (outputFormat == YUV) {
> ret_image.reset(new image::yuv(width, height));
> } else if (outputFormat == RGB) {
> ret_image.reset(new image::rgb(width, height));
> + } else {
> + ret_image.reset(NULL);
log_error("Unknown outputFormat %d during decoding ..."); ?
> + return ret_image;
> + }
Question: why do we opt between RGB and YUV ? Do we do this also for other
kind of bitmaps (glyphs, whatever...) ? is any renderer using YUV ?
Could we have the renderer provide an "hint" but then accept any
of the two formats ?
--strk;
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit