8MPLUSLPD4-PEVK g2d support

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

8MPLUSLPD4-PEVK g2d support

1,484 Views
marcus-castlepeakinc
Contributor III

I just ran the following C program

g2d_open(&handle);
int available=100;
int ret = g2d_query_hardware (&handle, G2D_HARDWARE_2D, &available);
fprintf(stderr, "ret = %d, available = %d\n", ret, available);

When built, it printed out

ret = 0, available = 0

According to https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf,

section 2.3.16, this should be used to verify 2d hardware availability.

Anyone out there have any ideas?

0 Kudos
Reply
2 Replies

1,469 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello marcus,

Your API function is allrigth just return 0 is success and fail -1. Is one need code you should try the Color space conversion in section  2.5.

Regards

 

 

 

0 Kudos
Reply

1,464 Views
marcus-castlepeakinc
Contributor III

One need I have is to do what is outlined in section 2.5.5

Taking V4L2 buffers, fast copying them into a g2d_alloc() buffer, so I can then provide the vaddr and paddr as parameters to glTexDirectVIVMap.

I can get things to work with a memcpy.  With g2d_copy, the display texture is not correct.

Are there any tricks with g2d_alloc buffers in this use case?

0 Kudos
Reply