This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how can I to generate a black image

Dear all:

I need a black image when a special time , but i don't know how to fill the array of image

The format of data is YUV420 , originally  from deocde.

But I have to replace that , and i need a black image output to screen

can anyone provide me with some information or related program

thansk for your visit

 

Best regard

PS : I run in DM365

  • You can use DMA to create a copy of black frame. This would be a one time affair, maybe at init time of you app. You can store this frame in DDR. Whenever you need black frame, just pass this black frame pointer instead of the normal frame. It is suggested not to do DMA copy of the black frame everytime you need it as it may degrade the performance.

    regards

    Yashwant

  • Put zeros in the luma and 0x80 in the chroma.  Check out the DMAI function "_Dmai_blackFill".

    John A