Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RGA Sample from RZ/A1 Framework: Unable to use 32-bit pixels for display

$
0
0

I am trying to use the RGA driver from the RZ/A1 Framework (R01AN3638EJ0103).

I have successfully run the sample code on the RSK and adapted it to run on my custom hardware.

However, in both cases, if I switch the code to use 32-bit pixels (RGB888 instead of RGB565), I get an error 1 from R_GRAPHICS_Initialize().

I've changed the FRAME_FORMAT definition in r_rga_sample.h.  Then I added two more definitions: PIXEL_SIZE and PIXEL_FORMAT.  These get used when setting up the frame_buffer structure for the call to R_GRAPHICS_Initialize().

I've added debug code to all the OSPL routines - and none of them seem to be reporting this error.  It looks to me as if it's coming from the RGA library itself.

According to the RGA document (R01AN3703EJ0100), RGB888 is a supported format.  So either the documentation is wrong or I'm missing some setting somewhere.

I'm attaching my modified r_rga_sample.h and r_box_fill.c, in case anyone wants to explore this on their end.

Any insights into this issue would be greatly appreciated.

Thanks.

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 1583

Trending Articles