Languages

Menu
Sites
Language
How to display RGB565 bitmap in native 2.3?

I'm looking for a way to display a RGB565 btimap.

My app is a simple bitmap viewer. Current I'm using pixel's buffer not a file, because my app receive a input data as RGB raw.

So, I use evas_object_image_data_set function and I pass a pixel's buffer(RGB raw) to this function.

When colorspace is EVAS_COLORSPACE_ARGB8888, there is no problem. But when colorspace is EVAS_COLORSPACE_RGB565_A5P, app is crashed.

Since input data is RGB565 format, I have to use EVAS_COLORSPACE_RGB565_A5P colorspace.

I tried a way to convert RGB565 to ARGB8888, but I couldn't satisfy the performance.

How to display RGB565 bitmap in native 2.3?

Thank you!

Responses

4 Replies
KJ Lee

In addition, my app is crashed when evas_object_image_size_set is called.

ad->image = evas_object_image_add(evas_object_evas_get(ad->win));
evas_object_image_colorspace_set(ad->image, EVAS_COLORSPACE_RGB565_A5P);
evas_object_image_size_set(ad->image, WIDTH, HEIGHT);
evas_object_image_fill_set(ad->image, 0, 0, WIDTH, HEIGHT);

 

Alex Ashirov

Hi,

I have not used this API. I can only note from the help:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.apireference/group__Evas__Object__Image.html

EVAS_COLORSPACE_YCBCR422P709_PL: Not implemented yet.

EVAS_COLORSPACE_RGB565_A5P: In the process of being implemented in one engine only. This may change.

So, it seems that EVAS_COLORSPACE_RGB565_A5P probably isn’t implemented/supported yet.

KJ Lee

Hi,

Thank you for your answer!

You're right, it seems that EVAS_COLORSPACE_RGB565_A5P is not supported yet.

Is there way of diplaying RGB565 raw data?

Thank you!

Alex Dem

Hi,
imho uncomfortable, that it is impossible to extract the error code from evas_object_image_colorspace_set() call

p.s. just fyi: I tried to load some different image files via evas_object_image_file_set and evas_object_image_colorspace_get() returns EVAS_COLORSPACE_ARGB8888 (checked on emulator).
Alexey.