Re: [sdljava-users] SDLVideoTest fails on FC4
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2006-03-04 19:44:33
|
Greeting Shane, Any example code you can provide in C++ would be helpful. Or if you=20 could give me a C program I can compile and run against sdl that tests=20 the YUV I could then implement enough so those calls can be made on the=20 sdljava side. Once I can see how the code needs to be utilized I can=20 have some idea if it can be done easily... Thanks, -Ivan/ =20 Shane M. Walton wrote: > Thanks Ivan. > > The SDL_Overlay is very powerful when one would like to render video. > > Typically MPEG codecs encode/decode pixels into a YUV color space=20 > which is more efficient to operate on than RGB. So DVD/MPEG2=20 > rendering applications usually take advantage of the YUV overlay=20 > acceleration capabilities of a video card. This is known as Xv in the=20 > Linux world. All in all, what you get is the video on the screen with=20 > little or no CPU overhead. The overlay architecture also typically=20 > have scaling capabilities, which look much softer than any software=20 > routine. > > I think it would be very worthwhile to have SDL_Overlay(s) implemented=20 > in sdljava, as Java in general really seems to be missing efficient=20 > video rendering capabilities. > > I can provide you with C/C++ source code examples if you are=20 > interested in adding the SDL_Overlay functionality. It really isn't=20 > too difficult. I would offer to add it, but I don't have a clue as to=20 > how SWIG works, but always willing to learn. > > Shane > > Ivan Z. Ganza wrote: > >> Greetings Shane, >> >> Sorry that your having trouble. I just tried it myself and I don't=20 >> see the image either. Just a blank window. Not sure when this stopped=20 >> working. Should hit myself for not regression testing. I will try to=20 >> figure out the problem. >> >> Don't want to add more bad news but I never implemented the YUV=20 >> Overlay stuff. Don't really know much about that aspect. Is it just a=20 >> few method calls or much more involved? I think I remember it wasn't=20 >> easy to map (via swig) initially so that is why I skipped it. >> >> testimage seems to be working fine though. hmm. >> >> -Ivan/ >> >> Shane M. Walton wrote: >> >>> The current binary download for Linux i386 doesn=92t give me the=20 >>> NullPointerException, but it doesn=92t show the test_bmp.bmp aka powe= r=20 >>> plant. >>> >>> My ultimate goal is to create a Java video application that can=20 >>> render video using the YUV Overlay. Maybe it would just work, but I=20 >>> don=92t feel all warm and fuzzy if the test application doesn=92t. Ha= s=20 >>> anybody else had this issue? >>> >>> Shane >>> >>> ---------------------------------------------------------------------= ---=20 >>> >>> >>> *From:* sdl...@li...=20 >>> [mailto:sdl...@li...] *On Behalf Of=20 >>> *Shane M. Walton >>> *Sent:* Friday, March 03, 2006 7:35 AM >>> *To:* sdl...@li... >>> *Subject:* [sdljava-users] SDLVideoTest fails on FC4 >>> >>> OS: Fedora Core 4 (i686) >>> >>> SDL: 1.2.8-3.2 >>> >>> JDK: Sun 1.5.0_06 >>> >>> SWIG: 1.3.24-2 >>> >>> The following happens with both stable release and cvs trunk checkout= : >>> >>> java -Djava.library.path=3D./lib -cp ./classes/=20 >>> sdljava.video.SDLVideoTest >>> >>> Video subsystem initialized >>> >>> java.lang.NullPointerException >>> >>> at sdljava.video.SDLPixelFormat.getPalette(SDLPixelFormat.java:61) >>> >>> at sdljava.video.SDLPixelFormat.toString(SDLPixelFormat.java:375) >>> >>> at sdljava.video.SDLSurface.toString(SDLSurface.java:1122) >>> >>> at java.lang.String.valueOf(String.java:2577) >>> >>> at java.lang.StringBuffer.append(StringBuffer.java:220) >>> >>> at sdljava.video.SDLVideoTest.init(SDLVideoTest.java:21) >>> >>> at sdljava.video.SDLVideoTest.main(SDLVideoTest.java:70) >>> >>> Seems like all accessors in SDLPixelFormat throw a=20 >>> NullPointerException. >>> >>> Thanks. >>> >>> Shane >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 >> language >> that extends applications into web and mobile media. Attend the live=20 >> webcast >> and join the prime developer group breaking into this new coding=20 >> territory! >> http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 >> _______________________________________________ >> sdljava-users mailing list >> sdl...@li... >> https://lists.sourceforge.net/lists/listinfo/sdljava-users >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 > language > that extends applications into web and mobile media. Attend the live=20 > webcast > and join the prime developer group breaking into this new coding=20 > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |