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.

Cropping in DM365

I would like some help on hardware cropping in DM365

I am trying to build a demonstration that includes
Capturing(v4l2src, NV12, 736x576, 25fps) ->   Crop(left=80,right=200,height=400,width=300) ->  Encoding(h264)->   Streaming(udp).
the sizes are unimportant for this demonstration and the croping sizes can change and move

I tried to use Gstreamer videocrop but it didn't supported the NV12 format and to use two color converters isn't an option in term of arm cpu.
is there a way for hardware croping in encoder or to configure TIResizer to do the job.

 

  • Please refer to below thread, scenarios are very similar.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/96325/336199.aspx#336199

     

  • Just to add to the thread pointed by Nag, for your usecase, if you just want a cropped image to be encoded, you can get a cropped output from the V4L2 capture itself. You can use VIDIOC_S_CROP ioctl to get the required cropped NV12 data. But in this case, you wont get the extra original D1 resolution that was asked in the other thread.

    Regards,

    Anshuman

    PS: Please mark this thread as verified, if you think it has answered your question. Thanks.