Hi all,<br>Can i use mi functions for 2D acceleration of drawing lines, rectangle and filling etc. The mi functions call the functions corresponding to entry in GCOps.I am not very clear about this machine independent X. Correct me if i am wrong.
<br><br>_X_EXPORT void<br>miPolySegment(pDraw, pGC, nseg, pSegs)<br>    DrawablePtr pDraw;<br>    GCPtr       pGC;<br>    int         nseg;<br>    xSegment    *pSegs;<br>{<br>    int i;<br><br>    for (i=0; i<nseg; i++)
<br>    {<br>        (*pGC->ops->Polylines)(pDraw, pGC, CoordModeOrigin, 2,(DDXPointPtr)pSegs);<br>        pSegs++;<br>    }<br>}<br> If i give assign  Polylines pointer to my accelerated function i can get line acceleration.Similarly
 I can use  miPolyRectangle for rectangle drawing acceleration.This way I can accelerate these 2D functions.<br>If not this approach then can anyone elaborate on the following comment given by Keith a little further.<br><br>
>Of course, changing kdrive to add line acceleration should be easy; as<br>>you can see, the structure within the driver is not complicated. Patches<br>>are always welcome. It's not like kdrive is fixed in any way; there is
<br>>no ABI or API guarantee necessary as the drivers are statically linked<br>>to the X server.<br><span class="q"><br></span><br>Also, how can i support video overlay features like image rotation , resizing and color conversion.
<br>Thanks for help.<br><br><br><div><span class="gmail_quote">On 2/4/07, <b class="gmail_sendername">Alex Deucher</b> <<a href="mailto:alexdeucher@gmail.com">alexdeucher@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2/3/07, Daniel Stone <<a href="mailto:daniel@fooishbar.org">daniel@fooishbar.org</a>> wrote:<br>> On Fri, Feb 02, 2007 at 02:04:42PM -0800, Keith Packard wrote:<br>> > For short lines, software is almost always faster; the cost of setting
<br>> > up the line and synchronizing with the hardware swamps the benefit of<br>> > using it. For long lines, you fill the screen fast enough that using the<br>> > hardware doesn't make a huge difference. That's why I didn't bother
<br>> > adding hardware line hooks.<br>><br>> (FWIW, this is the case on the Nokia 770 and N800.)<br>><br><br>Do the 770 or the N800 have an sort of accelerated X server or is it<br>just fbdev?  Just curious.
<br><br>Alex<br><br>> Cheers,<br>> Daniel<br>><br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.3 (GNU/Linux)<br>><br>> iD8DBQFFxL+7RkzMgPKxYGwRAsrvAJ0T4B0Ivdafhq/21PkTQ6HPjiCwagCfWZnp<br>> ohNSfjNCV94eVjWmaBTBIAU=
<br>> =45Lf<br>> -----END PGP SIGNATURE-----<br>><br>><br>> _______________________________________________<br>> xorg mailing list<br>> <a href="mailto:xorg@lists.freedesktop.org">xorg@lists.freedesktop.org
</a><br>> <a href="http://lists.freedesktop.org/mailman/listinfo/xorg">http://lists.freedesktop.org/mailman/listinfo/xorg</a><br>><br>_______________________________________________<br>xorg mailing list<br><a href="mailto:xorg@lists.freedesktop.org">
xorg@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/xorg">http://lists.freedesktop.org/mailman/listinfo/xorg</a><br></blockquote></div><br>