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.

Linux/AM5728: Reducing MPU load in H.264 encode

Part Number: AM5728


Tool/software: Linux

Follow up to https://e2e.ti.com/support/arm/sitara_arm/f/791/p/649297/2388747#2388747

Customer performing video transcode to H264 on AM57x and they are trying to reduce CPU consumption/loading to achieve this.

 

They are using ion heap to get incoming data from HDMI/videoShare.

So they already have contiguous physical address.

 

Is there any way to use this allocated contiguous physical address w/o any memory copy?(memcpy/dma buffer transfer)

Currently, they do following memcpy to allocated ybuff and uvbuff, but it consumes a lot of CPU overhead.

 

        memcpy((char *)dceEncObj->buf.ybuff, inFrameObj->buff, (videoEnc->vidWidth * videoEnc->vidHeight));<

        memcpy((char *)dceEncObj->buf.uvbuff, &inFrameObj->buff[videoEnc->vidWidth * videoEnc->vidHeight],<