The code I looked at was probably outdated. The code in [1] suggests that 
goldfish does support HAL_PIXEL_FORMAT_RGBA_8888.

Does this also apply to the android kernel?

[1] 
https://github.com/android/platform_external_qemu/blob/master/hw/goldfish_fb.c

On Thursday, April 5, 2012 8:43:35 PM UTC+2, Erik Nijkamp wrote:
>
> I started to dig through the emulator code and stumbled over 
> (android_sdl.c):
>
> static void
> emulator_display_set_display( EmulatorDisplay*  disp,
>                               DisplayState*     ds,
>                               int               w,
>                               int               h )
> {
>     ds->depth  = 16;
>     ds->bgr    = 0;
>     ds->width  = w;
>     ds->height = h;
>     ds->opaque = disp;
>     disp->ds   = ds;
>
> ...
>
> This seems to imply that the emulator is really fixed to 16 bit colors. 
> Can anyone confirm this?
>
> Thanks so much
>   Erik
>
> On Wednesday, April 4, 2012 9:12:11 PM UTC+2, Erik Nijkamp wrote:
>>
>> Hey guys,
>>
>> we are experiencing dithering artifacts in the emulator. Most probably 
>> due to 16 bit colors - see [1] for an example.
>>
>> Thus we tried to enable true colors by inserting "hw.lcd.depth=32" in the 
>> config.ini file.
>>
>> Strangely, this works for 4.x, but doesnt do the trick in 2.3.x.
>>
>> This is a very critical feature for our current project and we are 
>> running out of ideas ...
>>
>> If anyone has any suggestions we would be ever so grateful.
>>
>> Thanks so much!
>>  Erik
>>
>> [1] http://imageshack.us/photo/my-images/600/twitterbuttondithering.png/
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to