[cairo] Images with stride == width?
Behdad Esfahbod
behdad at behdad.org
Tue Jan 20 11:20:58 PST 2009
Vladimir Vukicevic wrote:
> 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?
Strides not multiple of 4 never worked. We just formalized it so you get an
error message that makes sense, instead of NO_MEMORY or memory corruption in
pixman.
behdad
> - Vlad
More information about the cairo
mailing list