cancel
Showing results for 
Search instead for 
Did you mean: 

OV2640 YCbCr 4:2:2 + DMA2D

Chuev.Vladimir
Associate III

I have a few questions about DMA2D.

I do not want to create separate topics for each question, so I will be glad if you answer at least one of them.

1) I successfully get a picture in RGB565, but as soon as I choose YCbCr, it turns out a bad picture (in the photo). How can I fix this?

2) Is it possible to use OV2640 YCbCr 4:2:2 to encode JPEG faster? I would like to get 30FPS 720p

3) I’m worried that I had to swap the high and low byte RGB565. This is normal?

DMA2D config:

hdma2d.Instance = DMA2D;
 
// Out
hdma2d.Init.Mode = DMA2D_M2M_PFC;
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
hdma2d.Init.OutputOffset = 0;
 
// In
hdma2d.LayerCfg[1].InputOffset = 0;
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_RGB565;
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
hdma2d.LayerCfg[1].InputAlpha = 0;
hdma2d.LayerCfg[1].ChromaSubSampling = DMA2D_NO_CSS;

0690X000006Dl8qQAC.jpg

0 REPLIES 0