Re: [Libxine-java-devel] VM Crash on ubuntu
Status: Beta
Brought to you by:
freckle
From: Matthias R. <mri...@in...> - 2008-09-26 08:54:55
|
Hi Kristian > I was very close to installing 32bit to get rid of the crashes, but on > the other hand, I thought i might give you some info on what was going > wrong, so you could fix the problem. You did that very fast, so no > problem :). thanks for your confidence. :) > I'm hoping to write some kind of wrap for container wrap for your > video > display, and a small framework of components for it. I hope to > create a > transparent way of creating components which can be used on > traditional > panels and as OSD component. > Something like: > > XineVideoContainer xvc = new XineAWTCanvasWrap(); > xvc.setLayout(new BorderLayout()); > xvc.add(new XButton("play")); > > ... or something. Haven't quite thought it through, but something to > make it easier and more (java)-intuitive to write UI's. hey, that sounds cool! we definitely need a OSD widget library. And, your toolkit approach could facilitate the development of UIs. The Xine{AWT,Swing,SWT}Canvas all provide mouse events, even in fullscreen mode. I could give you feedback on the architecture design, if you like. One thing to consider is the use of the color palette with 256 entries. In a PNG, the graphic tool would calculate the best set of colors to match the original image with the least difference. But, as you can imagine, this only helps as long as you only have a single image. When browsing the java classes for support for color palettes and image loading, I've found this: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#TYPE_BYTE_INDEXED BufferedImage uses a color palette where red, green, blue have a values from 0 to 5. this requires 6x6x6 = 216 colors and leaves 40 colors for general stuff and font-anti-aliasing. xine-lib uses 11 colors to draw an anti-aliased font. based on this, we could use a color resolution of about 2.58 bits per component (216), a gray scale of 6 levels, three different font colors (33) and a single completely transparent entry for the background. does this make sense? it would limit the image quality (a bit), but it is easy to manage. with the current XineOSD you can already try this out, although the image drawing does not work, yet. It works, but the colors are wrong, and the background gets green although it should just get BLACK (which is the first entry in the java color palette) . There must be something I did not understand yet. > anyway, nice work so far. If I were to develop directly in your java > source, how would you like me to suggest the changes to you? as > patches? I have not much experience with receiving and applying patches, but patches are commonly used for this, so let's try with patches first. cheers, matthias |