<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><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_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_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><div><br></div><div>Thanks.</div>