[CREATE] OpenRaster fallbacks (proposal/RFC)

Cyrille Berger cberger at cberger.net
Tue Aug 18 09:10:42 PDT 2009


On Sunday 09 August 2009, Martin Renold wrote:
> New pixel formats:
>
> As it is now, we need to use different attributes to save the "legacy" and
> the new file format side-by-side in a compatible way.  For example:
>
> <layer src="data/layer001.png" src_16bit="data/layer001_16bit.png"/>
> and also for fallbacks:
> <cache src="caches/checkerboard.png" src_float='caches/checkerboard.dat'/>
>
> Essentially, the specification needs to be updated to state that src=...
> attributes can only point to 8bpc PNG images, and all other formats need
> other attributes. Ugly? Acceptable? Alternatives?
I think it would work with fallback
<layer src="data/layer001_16bit.png">
  <fallback src="data/layer001.png" />
</layer>

> Layer modes:
>
> Would a compositing mode other than OVER be implemented as an <effect> in
> OpenRaster?  Or would the mode be part of the <layer> tag, which then can
> also have a fallback?  If so, can a <stack> tag also have a compositing
> mode?
I am more for the <layer> tag. And defaulting to OVER.

> Filter/Renderer variants:
>
> Implementation might like to have a way to decide whether they can render
> something without fallback.  This can be solved with version=...
> attributes.

I don't follow you, you mean different version of the filter ?

-- 
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/create/attachments/20090818/73e17590/attachment.htm 


More information about the CREATE mailing list