Friday, April 6, 2012

[android-developers] Re: How to enable 24/32 bit color depth in the emulator (android 2.3.3)?

Unfortunately, that is not an option.

On Friday, April 6, 2012 12:01:36 AM UTC+2, lbendlin wrote:
If it's such a critical feature you may not want to rely on the emulator. Rather get a 2.3.x  development device.

On Thursday, April 5, 2012 3:21:18 PM UTC-4, Erik Nijkamp wrote:
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

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment