[Sent for discuss][Proposal: Make libSDL Compatible with XRender]

Hi, all,
New to this list,
I have great interests in applying this topic for GSOC 2009,
and I am attaching my proposal, got this idea from libSDL website.
Though I am new to SDL, I am not new to CGs and I’ll try to learn quick.
The main reason for me to apply is my interest on such a project and I
feel the joy to dig a hole into it :smiley:

So, any feedback for my sketch proposal is fully welcomed,

giving my thanks first,

ciao,

tac


 [Proposal: Make libSDL Compatible with XRender]
  1. Synopsis
    Xorg is a broadly used window system in free software world.
    It is flexible with its many available extensions.
    XRender is a powerful rendering backend provided in Xlib.
    Major Graphical Cards have their supports for XRender,
    such as NVIDIA, ATI. In a similiar cas, Java2D has announced its
    XRender backend[1].
    libSDL is a cross platform library to ease the coding work when
    building a multimedia application. It provides video, audio and
    other input support for potential users.
    It is reasonable to have XRender support in libSDL.
    This project aims at moving the libSDL fully support for XRender,
    and let the user have a experience with the features of XRender.

  2. Deliverables
    Deliver a libSDL library that supports XRender.
    Deliver a set of examples for demonstrating the new feature with
    XRender.

  3. Biography
    Tac
    A senior student in EECS of Beijing Normal University, China.
    Computer Graphics and free source lover.
    As for something related with the proposal, I am quite familiar with
    openGL and osglib.
    Once developing VTP, Virtual Terrain Project, http://www.vterrain.org/
    I am also good with DirectX and using it to develop a visualization
    tool for one embeded application, though this may not count much in this
    project :stuck_out_tongue:
    I have a solid coding sense. And could do well with C.

I have my guts and enthusiams in investing my time on this project.

[…] things omitted here

[1]http://78.31.67.79:8080/jxrender/

I would say that SDL 1.3 allready has XRender support.

sami at who ~/prog/cvs/SDL/test $ ./testsprite2 --info render
Built-in render drivers:
Renderer x11:
Flags: 0x0000005F (SingleBuffer | PresentCopy | PresentFlip2 | PresentFlip3
| PresentDiscard | Accelerated)
Blend: 0x00000000 ()
Scale: 0x00000000 ()
Texture formats (6): RGB888, YV12, IYUV, YUY2, UYVY, YVYU
Renderer opengl:
Flags: 0x00000071 (SingleBuffer | PresentDiscard | PresentVSync |
Accelerated)
Blend: 0x0000000F (Mask | Blend | Add | Mod)
Scale: 0x00000003 (Fast | Slow)
Texture formats (15): Index1LSB, Index1MSB, Index8, RGB332, RGB444,
RGB555, ARGB4444, ARGB1555, RGB565, RGB24, BGR24, RGB888, BGR888, ARGB8888,
ABGR8888
Renderer software:
Flags: 0x0000003F (SingleBuffer | PresentCopy | PresentFlip2 | PresentFlip3
| PresentDiscard | PresentVSync)
Blend: 0x0000000F (Mask | Blend | Add | Mod)
Scale: 0x00000001 (Fast)
Texture formats (14): Index8, RGB555, RGB565, RGB888, BGR888, ARGB8888,
RGBA8888, ABGR8888, BGRA8888, YV12, IYUV, YUY2, UYVY, YVYU
Current renderer:
Renderer x11:
Flags: 0x00000042 (PresentCopy | Accelerated)
Blend: 0x00000000 ()
Scale: 0x00000000 ()
Texture formats (6): RGB888, YV12, IYUV, YUY2, UYVY, YVYU
3369.98 frames per secondOn Wednesday 01 April 2009 08:29:18 tac wrote:

Hi, all,
New to this list,
I have great interests in applying this topic for GSOC 2009,
and I am attaching my proposal, got this idea from libSDL website.
Though I am new to SDL, I am not new to CGs and I’ll try to learn
quick. The main reason for me to apply is my interest on such a project and
I feel the joy to dig a hole into it :smiley:

So, any feedback for my sketch proposal is fully welcomed,

giving my thanks first,

ciao,

tac


 [Proposal: Make libSDL Compatible with XRender]
  1. Synopsis
    Xorg is a broadly used window system in free software world.
    It is flexible with its many available extensions.
    XRender is a powerful rendering backend provided in Xlib.
    Major Graphical Cards have their supports for XRender,
    such as NVIDIA, ATI. In a similiar cas, Java2D has announced its
    XRender backend[1].
    libSDL is a cross platform library to ease the coding work when
    building a multimedia application. It provides video, audio and
    other input support for potential users.
    It is reasonable to have XRender support in libSDL.
    This project aims at moving the libSDL fully support for XRender,
    and let the user have a experience with the features of XRender.

  2. Deliverables
    Deliver a libSDL library that supports XRender.
    Deliver a set of examples for demonstrating the new feature with
    XRender.

  3. Biography
    Tac
    A senior student in EECS of Beijing Normal University, China.
    Computer Graphics and free source lover.
    As for something related with the proposal, I am quite familiar with
    openGL and osglib.
    Once developing VTP, Virtual Terrain Project, http://www.vterrain.org/
    I am also good with DirectX and using it to develop a visualization
    tool for one embeded application, though this may not count much in this
    project :stuck_out_tongue:
    I have a solid coding sense. And could do well with C.

I have my guts and enthusiams in investing my time on this project.

[…] things omitted here

[1]http://78.31.67.79:8080/jxrender/

Den Tue, 28 Apr 2009 21:12:02 +0300
skrev Sami N??t?nen <sn.ml at keijukammari.fi>:

I would say that SDL 1.3 allready has XRender support.

Not really … XRender could be used to support blending (and scaling?)
in the x11 driver. Missing support for that is the reason the
testsprite2 example doesn’t display properly with the x11 driver.

I looked into fixing that a while ago actually, but as I’ve no
experience with X, documentation is sparse, and SDL svn didn’t work at
the time, I didn’t get very far and moved on to other things. From what
I did find out though, apparently XRender was designed only for
antialiased font support(?!), and if you want to do anything else
you’re pretty much in uncharted territory (this sounds bizarre, so I’m
probably wrong, but that’s the impression I got). Anyway, it supports
many blending modes, but of the modes SDL wants, only ‘Blend’ and 'Add’
seems to be supported directly. ‘Mod’ can maybe be done by abusing
per-channel alpha. No easy way to do ‘Mask’ that I could see though.

  • Gerry