[Scummvm-devel] Bitdepth/pixel format API concerns

Filippos Karapetis philipk79 at hotmail.com
Sat Jun 13 16:40:51 CEST 2009



> I see no need on adding any code to perform RGBA->AGBR mode by engine.
> It is backend task to do that. Engine should provide fixed order.
> 
> Consider this:
> 
> If engine are to provide conversion, then on adding new backend engine
> authors have to work on it. This is bad. Instead backend authors should
> know what they platform really requires.
> 
> And if, say, we will have some exotic ABRG1333 or whatever platform,
> why engines should bother? They should work with what is convenient for
> them, just as Kirben pointed out.
> 

I agree with this, it's easier to provide *one* mode to the engines (probably
RGBA). The engines should be agnostic of the platform they run under, so
if a backend supports AGBR, then the conversion to and from RGBA should 
be done at backend level, not engine level. This would simplify the overall
initialization phase at the engine level considerably, and the complexity 
would be moved to the backend level (where it belongs). There shouldn't
be any need to provide flexibility to the engines, in fact it would make
life easier for everyone if the engines would only have to deal with one
order (RGBA, most probably, as that's the one used currently).

Filippos

_________________________________________________________________
Insert movie times and more without leaving HotmailĀ®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20090613/1f2d8151/attachment.html>


More information about the Scummvm-devel mailing list