Skip to main content
Chuev.Vladimir
Associate III
February 21, 2019
Question

OV2640 YCbCr 4:2:2 + DMA2D

  • February 21, 2019
  • 0 replies
  • 580 views

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

This topic has been closed for replies.