JeffyCN / rockchip_mirrors

Mirrors of a few Rockchip BSP repositories, some others in https://github.com/JeffyCN/mirrors.
Other
10 stars 2 forks source link

RGA problem with RGBtoYUV converstion #17

Closed kadirbeytorun closed 2 years ago

kadirbeytorun commented 2 years ago

Hello @JeffyCN ,

As mentioned in title, we are converting a grayscale RGB frame to YUV frame using RGA library. Both RGA lib and RGA kernel driver are from same SDK version. This is what we get as resulting frame after conversion using methods shown in linux-rga's samples/legacy : Selection_034 Obviously the frame got messed up and the issues is same as the one mentioned in RGA_FAQ.md/Q2.11.

When we convert RGB frame to YUV using " https://github.com/Jerzha/samples-toybrick-rga ", the frame is correctly converted: Selection_035 Conversion is correct, however the library Jerzha shared is not updated anymore and it makes more sense to use linux-rga library's methods, to be able to add more functionality to our projects. Also this library seems to communicate with rga library using "ioctl" commands, which is very confusing and there is no documentation about how it works.

What went wrong here? What would you suggest to solve this?

Thanks in advance.

JeffyCN commented 2 years ago

hi, please note this is just a mirror repo...

i'm not the rga maintainer ;)

for this kind of issues, please find the maintainer or recent commitors and mail them. or use rockchip's redmine issue system