<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 1 juil. 2017 6:58 AM, "方明" <<a href="mailto:77949218@qq.com">77949218@qq.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>hi everyone</div><div>        </div><div>   I developed a element ,which work like textoverlay but use cairo to draw</div><div><span style="font-size:14px;line-height:1.5"><br></span></div><div><span style="font-size:14px;line-height:1.5">line or rect on a surface .</span></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Textoverlay also uses Cairo to draw the glyph, just to clarify.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-size:14px;line-height:1.5"><br></span></div><div><span style="font-size:14px;line-height:1.5">then </span><span style="line-height:1.5;font-size:14px">call </span><span style="line-height:1.5;font-size:14px">gst_video_overlay_<wbr>composition_add_rectangle</span><span style="line-height:1.5;font-size:14px"> to video buffer(N times)</span></div><div><span style="font-size:14px;line-height:1.5"><br></span></div><div><span style="font-size:14px;line-height:1.5">and then call </span>gst_video_overlay_<wbr>composition_blend. </div><div><br></div><div>lastly push to dshowvideosink(I am working in win32).</div><div><br></div><div>It can work,but result in high cpu usage.</div><div><br></div><div>how can I improve its performace ?</div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>Thanks.</div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>