Why is cropping with videocrop and imxvideoconvert_g2d videocrop-meta-enable=true more efficient?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why is cropping with videocrop and imxvideoconvert_g2d videocrop-meta-enable=true more efficient?

487件の閲覧回数
vincentz63
Contributor IV

According to this post and the iMX Linux User Guide section 7.3.17 Video Conversion.i.MX Linux User's Guide (nxp.com) cropping is hardware accelerated when using a pipeline like this:

gst-launch-1.0 videotestsrc ! videocrop top=10 bottom=10 right=10 left=10 !
imxvideoconvert_g2d videocrop-meta-enable=true ! queue ! ximagesink display=:0

rather than just:

gst-launch-1.0 videotestsrc ! videocrop top=10 bottom=10 right=10 left=10 ! queue ! ximagesink display=:0

Why this is more efficient? Is the cropping done by the GPU when imxvideoconvert_g2d is used?

If so, what is telling videocrop not to do the cropping? I realise this is a GStreamer question, but I need to do something similar with another element, and it would be super helpful if someone could point me in the right direction.

ラベル(3)
タグ(1)
0 件の賞賛
返信
1 返信

441件の閲覧回数
brian14
NXP TechSupport
NXP TechSupport

Hi @vincentz63

Thank you for contacting NXP Support.

Yes, in this case the imxvideoconvert_g2d is a proprietary Gstreamer plugin with HW acceleration.
You can check more information about g2d API for i.MX in the following documentation:
i.MX Graphics User's Guide (nxp.com)

I hope this information will be helpful.

Have a great day! 

0 件の賞賛
返信