Convert 8bit grayscale buffer to be accepted by vpuenc gstreamer element?

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

Convert 8bit grayscale buffer to be accepted by vpuenc gstreamer element?

856 Views
chriswhittenbur
Contributor I

I have a monochrom image sensor connected to my imx6q board, capturing 30fps 1280x960 8bit grayscale images using gstreamer and the mfw_v4lsrc element.  Converting from 8bit grayscale to I420 should be quick, but it appears memcpy out of a dma coherent buffer is very inefficient.  What other tricks can I use to do this in hardware?  Converting to I420 should involve just growing the buffer by 614,400 bytes and filling that area with 128.

Labels (3)
1 Reply

461 Views
joanxie
NXP TechSupport
NXP TechSupport

how did you change capture the grayscale? one can use the mxc_v4l2_capture.out to test, maybe you can give me the mail address, I can send the demo code for how to capture 8bit grayscale data to you. or if you have already create SR, pls tell me the SR number. I posted here failed.

0 Kudos