convert bayer 10 to bayer 8 on imx6q

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

convert bayer 10 to bayer 8 on imx6q

1,106 Views
liuan
Contributor I

I was now connecting  a 5M Raw10 camera to imx6q IPU CSI,and successfuly capture the raw 10 data。But i found when i use memcpy transfer imgData to system memory(user space),the really datas is 10MB and need about 50ms,this not include the time translating the 10MB raw data to a rgb or gray format imgData,it is too slow for our project.

So,i want to convert the bayer 10(raw 10)data   to bayer 8 data with IPU,and dealing the data as gray format.I read the TRM but find nothing.Finally i found a topic about bayer format convert "IPU - bayer pattern conversion",and someone said:"Got some comfirmed information from IC designer, for iMX6, the IPU can't support converting bayer format to RGB/YUV on the fly, it can only use generic mode to receive the CSI input bayer data to memory. The CPD can only be used to convert 10 bits color data to 8 bits."

But when i read the TRM about CPD , still dont know how to convert the bayer 10 format to bayer 8.So ,can the CPD convert bayer 10 to bayer 8? if it works,how?

Can anybody help me?

Thanks and best regards.

An liu

referfence: "IPU - bayer pattern conversion",  https://community.nxp.com/thread/302769

0 Kudos
2 Replies

803 Views
liuan
Contributor I

Hi igor

Thank you for your answer! It is really helpful.

So ,as you said,this means that imx6q ipu can not convert a raw10 gray data to raw8 gray data.

Although it is a sad message to me,but ,thanks your replay again!

Best regards

An

0 Kudos

803 Views
igorpadykov
NXP Employee
NXP Employee

Hi An

>So ,can the CPD convert bayer 10 to bayer 8?

color space conversion is described in sect.37.4.9.5 Color Space Conversion unit - CSC

i.MX6Q Reference Manual. Unfrotunately bayer 10 to bayer 8 conversion is not supported.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------