help:cairooverlay on win32 makes high cpu usage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help:cairooverlay on win32 makes high cpu usage

方明

hi everyone
       
   I developed a element ,which work like textoverlay but use cairo to draw

line or rect on a surface .

then call gst_video_overlay_composition_add_rectangle to video buffer(N times)

and then call gst_video_overlay_composition_blend. 

lastly push to dshowvideosink(I am working in win32).

It can work,but result in high cpu usage.

how can I improve its performace ?

Thanks.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

=?gb18030?B?UVHNvMasMjAxNzA2MjYxMDQwMzkucG5n?= (112K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: help:cairooverlay on win32 makes high cpu usage

Nicolas Dufresne-5


Le 1 juil. 2017 6:58 AM, "方明" <[hidden email]> a écrit :

hi everyone
       
   I developed a element ,which work like textoverlay but use cairo to draw

line or rect on a surface .

Textoverlay also uses Cairo to draw the glyph, just to clarify.


then call gst_video_overlay_composition_add_rectangle to video buffer(N times)

and then call gst_video_overlay_composition_blend. 

lastly push to dshowvideosink(I am working in win32).

It can work,but result in high cpu usage.

how can I improve its performace ?

You should use a profiler to identify the bottleneck. Then it will be easier to know what need to be optimized. It's possible that adding CompositionMeta support to dshowviseosink is what you want.



Thanks.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel