[cairo] Images with stride == width?

Vladimir Vukicevic vladimir at pobox.com
Tue Jan 20 11:07:38 PST 2009

On 1/20/09 6:44 AM, Ian Britten wrote:
> Damian Frank wrote:
>> *bump*
>> I'd like to know the answer to this, too.  Can anyone comment?
>> (I recall browsing the source suggested to me that I was fine for now,
>> but future revisions could break my code.  Is this accurate?)
> [ Sorry for the delay - Been upgrading my computer... ]
> Having now tried this, I can report that you'll simply get a
> CAIRO_STATUS_INVALID_STRIDE error if you try this.

Er, whoa.  When did this change?  This seems like a pretty major 
performance-breaker when using cairo to interface with any existing 
buffer of data -- having two copies of the data around or copying the 
data is really not a good solution.  I thought the suggestion was to use 
the computed stride if possible, but any stride should be possible 
(because, why wouldn't it be?) as long as it's at least whatever the 
minimum is for the relevant format.  Is this no longer the case?

     - Vlad

More information about the cairo mailing list