On Sep 24, 2008, at 7:26 AM, Kristian Lindemann Larsen wrote:
> Nice class.
> I've been trying to figure out something about coloring, but i'm
> stuck. When drawing text i guess it's limited, but what about drawing
> lines and stuff? There's an integer argument to ex. drawline which
> defines color, but can't seem to figure out how to use it. I've tried
> differing values, but only gets translucent black to white.
As far as I understand the xine documentation, you can use a
palette of max 256 colors. the color integer in the draw* methods
the color index into the color table/palette.
To actually set the at color, the xine_osd_set_palette function is used
which I did not wrap yet, as it require to pass on pointers. Adding this
isn't hard but will probably require bits of native code. I will add
in the next days.
> Is it possible to draw advanced graphics on the OSD?
I guess this depends on your definition of "advanced". I don't know
if you show e.g. a album cover, but showing a volume control,
a slider for seeking, the time, some text will be fine. check out the
oxine project which uses xine for a media center and only uses
OSD for everything. http://oxine.sourceforge.net/
now that I looked at it, too, I can see from their screenshots that
they even have album cover. Ok, I will have to look at the source
to see, if they use the standard xine mechanisms or do something else.
> I'm planning to look in to JOGL (opengl bindings) you know if there's
> any issues or anything?
In addition to JOGL, also have a look at LWJGL http://www.lwjgl.org/
anyway. no I don't think there are any issues with using JOGL or LWJGL
for doing OpenGL drawing... as long as you don't intend to show OpenGL
and videos in the same window...
Jokes aside, without changes to the internals of e.g. xine, they would
work togehter. what I can imagine is to use opengl for showing a 3d
and having a video playing on a "virtual" wall inside the 3d world.
both the xine opengl output plugin (used for x11) and the xine mac os x
video output plugin make use of open gl to just copy a video frame to
the screen by creating the frame in opengl texture. if the frame is a
it can be copied anywhere into the 3d scene, in any shape.
however, I never tried this or have seen an example of this.
about the 64-bit stuff. a colleague of mine has an AMD64 ubuntu
and is away, so I can check what's going on between libxine-java and the