2019-12-03 05:35 AM
2019-12-03 10:51 PM
And why wouldn't you convert it in DCMI as received?
JW
2019-12-04 12:05 AM
@Community member
The DCMI does not convert any thing its just accept different format from the camera. I need to convert YCbCR to RGB because i want to encode the YCbCr to JPEG using the hardware encoder.
2019-12-04 12:54 AM
You're right, sorry (it can strip chroma, but that's probably not what you wanted).
The DMA2D which can input YCbCr (in 'H7 - you did not tell us the STM32 model you are using) apears to need it with luma/chroma components arranged "squares" (MCUs) as output from the JPEG decoder, so you'd need to rearrange the data between DCMI and DMA2D "manually" (in program).
JW
2019-12-04 10:00 AM
@Community member
That sound good idea but i looked on other questions related to the same topic and i saw your answer that the STM32H747 can not do it but it was 1 year ago so do you think this still same or you think its possible to be done and it will be fast too.
Mahmoud
2019-12-04 12:43 PM
> i saw your answer that the STM32H747 can not do it
I don't remember it, maybe that was in some particular context.
I don't use video, I was briefly interested when we considered a new product some time ago, but then dropped the idea. So don't have experience to help you further. You may want to try yourself on a Nucleo, EVAL or DISCO board - the camer ainput can be quite easily simulated by software generated pattern (e.g. stripes).
JW