[cairo] Bringing back the dead... RGB16_565

Vladimir Vukicevic vladimir at pobox.com
Wed Mar 11 23:15:10 PDT 2009


One issue though is that there is no way to create a 565 image surface, 
even though pixman supports this format.  I don't really know how to 
introduce it just for image surfaces though, since doing so would 
require them to be expanded out to rgb24 if used with another surface 
that can't handle 565 natively.

One option that comes to mind is that 
acquire_source_surface/acquire_dest_surface can pass along a list of 
formats that would be acceptable to the caller, so that the 
conversion/expansion would take place there if necessary.

     - Vlad

On 2/2/09 1:19 PM, Behdad Esfahbod wrote:
> I don't think it has any comeback in its future.
>
> Most of the situations where RGB16_565 may be needed, create_similar() does a
> better job.
>
> behdad
>
> Richard Meng wrote:
>> I am expecting the same answer of this question, anyone will update ?
>>
>> On Fri, Jan 23, 2009 at 7:10 PM, Niranjan H<nmlist at gmail.com>  wrote:
>>> Hi,
>>>    I am working on a platform which has RGB16_565 surface.
>>> I would like to know if there is any progress towards bringing back
>>> RGB16_565 onto Cairo.
>>>
>>> I saw this posting some time back :
>>> http://lists.cairographics.org/archives/cairo/2007-May/010658.html
>>>
>>> I saw the bugs also at
>>> http://lists.cairographics.org/archives/cairo/2007-May/010669.html
>>> Most of them are marked as RESOLVED/FIXED,
>>> but still I see that 565 is marked deprecated in 1.8.6
>>>
>>> typedef enum _cairo_format {
>>>      /* The value of 4 is reserved by a deprecated enum value.
>>>       * The next format added must have an explicit value of 5.
>>>      CAIRO_FORMAT_RGB16_565 = 4,
>>>      */
>>> } cairo_format_t;
>>>
>>> Can some one throw some light on what is the current status and  future for
>>> RGB565 (if any) ?
>>>
>>>
>>> Regards,
>>> Niranjan H
>>>
>>> _______________________________________________
>>> cairo mailing list
>>> cairo at cairographics.org
>>> http://lists.cairographics.org/mailman/listinfo/cairo
>>>
>> _______________________________________________
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list