sdljava-users Mailing List for Java Binding for SDL (Page 5)
Status: Beta
Brought to you by:
ivan_ganza
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(43) |
Feb
(50) |
Mar
(44) |
Apr
(14) |
May
(18) |
Jun
(7) |
Jul
(26) |
Aug
(29) |
Sep
(28) |
Oct
(10) |
Nov
(5) |
Dec
(7) |
2006 |
Jan
(2) |
Feb
(9) |
Mar
(16) |
Apr
(1) |
May
(11) |
Jun
(8) |
Jul
(8) |
Aug
(5) |
Sep
(15) |
Oct
|
Nov
|
Dec
(2) |
2007 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(4) |
Jul
(1) |
Aug
(14) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(3) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
(5) |
Mar
|
Apr
|
May
(3) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2013 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2016 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Nuno S. <dev...@im...> - 2006-05-25 13:17:33
|
Hi, I'm having a lot of time wasted because of initialization errors. When i turn on my machine everything runs fine! After running 1 time the program using the sdl technology and then break it with ctr-C to correct bugs that i found in my program, when i compile and run it again i have initialization errors like the following: Direct/Thread: Running 'PS/2 Input' (INPUT,6895)... DirectFB/linux_input: could not grab device --> Device or resource busy .. And the same happens for PC Speaker and mouse What can i do to free this resources? What can be wrong to have all this kind of issues? Many thx, Nuno |
From: Ivan Z. G. <iva...@ya...> - 2006-05-23 12:41:17
|
Greetings Nuno, Sorry I have been away for a while. Glad you got this far. Not sure why the color is weird. Perhaps try to dump the bytes coming back from the blob to the filesystem. Then compare those bytes to the actual working image. Are they any different? -Ivan/ Nuno Santos wrote: > Hi, > > I've been writing to this list a few times in the last weeks and i'm > happy to say that i ultrapassed those problems myself. > > I can compile, run and show images. But is with images that i'm > having troubles. > > When i getted the image from a file the image was perfect, but now > that i'm taking them from database blob the image color is very > weird. It is displayed but with a strange color. > > Can anybody tell me what is this? > > Many thx, > > Nuno Santos > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Ivan Z. G. <iva...@ya...> - 2006-05-23 12:39:56
|
Greetings, Sorry its been so long between releases...the weather is nice now and in Canada we try to enjoy it while it lasts. Definatly once things are cooling down again there will be a new release.... -Ivan/ Patric Rufflar wrote: > Hi Pascal, > > I found a precompiled library for win32 at > > http://gnuwin.epfl.ch/apps/luola/en/install/luola/ > > Best Regards, > Patric > > I hope Ivan will release a new version of sdljava soon - I can't await > it :) > > > > EISELE Pascal schrieb: > >> Hi, >> >> I can't find SDL_Gfx compiled for sdljava on the web... Is someone >> have it ? >> Thanks >> > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Ivan Z. G. <iva...@ya...> - 2006-05-23 12:36:07
|
Greetings Iskandar, Unfortunatly this is currently not possible. You cannot combine java's native GUI systems with sdljava. Maybe some day in the future...;-) -Ivan/ Iskandar Prins wrote: >Hi, > >Im trying to make some sort of leveleditor with java >and sdl. Now i want to create some viewports in my >gui. Any idea how i should do this? > >Can i just add an sdl_surface onto a canvas or panel >or something? > >Regards, >Iskandar > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > >------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Ivan Z. G. <iva...@ya...> - 2006-05-23 12:34:58
|
Sorry for the late reply. Been away for a while. It looks like it can't find the classes. Are there actually classes in the classes dir? Maybe you just have the sdljava jar file -- in which cases change the classpath to include it. Let me know how it goes... -Ivan/ Nuno Santos wrote: > Hi, > > I'm trying to compile a basic example just to understand how sdljava > works. > > I copied from the testsrc/image directory the file SDLImageTest.java > to a new directory and now i'm trying to compile that file using this > command: > > javac -classpath .:~/sdljava-0.9.1/lib/:~/sdljava-0.9.1/classes/ > SDLImageTest.java > > But i get a lot of errors.... it doesnt find the classes: > > What do i have to do to have a simple project compiled? > > Many thx, > > Nuno Santos > > PS: The errors: > > > SDLImageTest.java:1: package sdljava does not exist > import sdljava.SDLTest; > ^ > SDLImageTest.java:2: package sdljava does not exist > import sdljava.SDLException; > ^ > SDLImageTest.java:3: package sdljava does not exist > import sdljava.SDLMain; > ^ > SDLImageTest.java:5: package sdljava.video does not exist > import sdljava.video.SDLColor; > ^ > SDLImageTest.java:6: package sdljava.video does not exist > import sdljava.video.SDLVideo; > ^ > SDLImageTest.java:7: package sdljava.video does not exist > import sdljava.video.SDLSurface; > ^ > SDLImageTest.java:8: package sdljava.image does not exist > import sdljava.image.SDLImage; > ^ > SDLImageTest.java:14: cannot resolve symbol > symbol : class SDLTest > location: class SDLImageTest > public class SDLImageTest extends SDLTest { > ^ > SDLImageTest.java:16: cannot resolve symbol > symbol : class SDLSurface > location: class SDLImageTest > static SDLSurface framebuffer; > ^ > SDLImageTest.java:18: cannot resolve symbol > symbol : class SDLException > location: class SDLImageTest > public void init() throws SDLException { > ^ > SDLImageTest.java:19: cannot resolve symbol > symbol : variable SDLMain > location: class SDLImageTest > SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); > ^ > SDLImageTest.java:19: cannot resolve symbol > symbol : variable SDLMain > location: class SDLImageTest > SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); > ^ > SDLImageTest.java:20: cannot resolve symbol > symbol : variable SDLVideo > location: class SDLImageTest > framebuffer = SDLVideo.setVideoMode(800, 600, 24, > (long)SDLVideo.SDL_HWS > URFACE|SDLVideo.SDL_DOUBLEBUF); > ^ > SDLImageTest.java:20: cannot resolve symbol > symbol : variable SDLVideo > location: class SDLImageTest > framebuffer = SDLVideo.setVideoMode(800, 600, 24, > (long)SDLVideo.SDL_HWS > URFACE|SDLVideo.SDL_DOUBLEBUF); > > ^ > SDLImageTest.java:20: cannot resolve symbol > symbol : variable SDLVideo > location: class SDLImageTest > framebuffer = SDLVideo.setVideoMode(800, 600, 24, > (long)SDLVideo.SDL_HWS > URFACE|SDLVideo.SDL_DOUBLEBUF); > ^ > SDLImageTest.java:25: cannot resolve symbol > symbol : variable SDLMain > location: class SDLImageTest > SDLMain.quit(); > ^ > SDLImageTest.java:44: cannot resolve symbol > symbol : class SDLSurface > location: class SDLImageTest > SDLSurface gif = SDLImage.load("testdata" + > File.separator + fil > e + ".gif"); > ^ > SDLImageTest.java:44: cannot resolve symbol > symbol : variable SDLImage > location: class SDLImageTest > SDLSurface gif = SDLImage.load("testdata" + > File.separator + fil > e + ".gif"); > ^ > SDLImageTest.java:48: cannot resolve symbol > symbol : class SDLException > location: class SDLImageTest > } catch (SDLException e) { > ^ > SDLImageTest.java:56: cannot resolve symbol > symbol : class SDLSurface > location: class SDLImageTest > SDLSurface jpg = SDLImage.load("testdata" + > File.separator + fil > e + ".jpg"); > ^ > SDLImageTest.java:56: cannot resolve symbol > symbol : variable SDLImage > location: class SDLImageTest > SDLSurface jpg = SDLImage.load("testdata" + > File.separator + fil > e + ".jpg"); > ^ > SDLImageTest.java:61: cannot resolve symbol > symbol : class SDLException > location: class SDLImageTest > } catch (SDLException e) { > ^ > 22 errors > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Nuno S. <dev...@im...> - 2006-05-18 12:54:04
|
Hi, I've been writing to this list a few times in the last weeks and i'm happy to say that i ultrapassed those problems myself. I can compile, run and show images. But is with images that i'm having troubles. When i getted the image from a file the image was perfect, but now that i'm taking them from database blob the image color is very weird. It is displayed but with a strange color. Can anybody tell me what is this? Many thx, Nuno Santos |
From: Nuno S. <dev...@im...> - 2006-05-16 10:58:46
|
Hi, My first objective was achived. I manage to load and display images. My next objective is to get an byte array from a database blob and display it from time to time public void changeImage(byte[] data) throws SDLException { try { System.out.println("Loading image..."); try { System.out.println("Image loaded"); SDLSurface image = SDLImage.load(data); image.blitSurface(null,fb,null); fb.updateRect(); Thread.currentThread().sleep(2000); } catch (SDLException e) { System.out.println("Error: Couln't load image"); System.out.println(e.getMessage()); } } catch (Exception e) { e.printStackTrace(); } } I have this function which receives the byte array and displays it in the framebuffer. Something strange happens because the program crashes. Sometime i can even see the image for a fraction of time and then the following error happens: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x4c87d4ff, pid=7957, tid=262153 # # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.2-03 mixed mode) # Problematic frame: # C [libSDL-1.2.so.0+0x334ff] SDL_UpdateRects+0x1f # # An error report file with more information is saved as hs_err_pid7957.log # # If you would like to submit a bug report, please visit: # http://www.blackdown.org/cgi-bin/jdk # Can anybody tell me what is this? Many thx, Nuno |
From: Imaginando.net <in...@im...> - 2006-05-15 16:59:45
|
Hi, My first objective was achived. I manage to load and display images. My next objective is to get an byte array from a database blob and display it from time to time public void changeImage(byte[] data) throws SDLException { try { System.out.println("Loading image..."); try { System.out.println("Image loaded"); SDLSurface image = SDLImage.load(data); image.blitSurface(null,fb,null); fb.updateRect(); Thread.currentThread().sleep(2000); } catch (SDLException e) { System.out.println("Error: Couln't load image"); System.out.println(e.getMessage()); } } catch (Exception e) { e.printStackTrace(); } } I have this function which receives the byte array and displays it in the framebuffer. Something strange happens because the program crashes. Sometime i can even see the image for a fraction of time and then the following error happens: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x4c87d4ff, pid=7957, tid=262153 # # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.2-03 mixed mode) # Problematic frame: # C [libSDL-1.2.so.0+0x334ff] SDL_UpdateRects+0x1f # # An error report file with more information is saved as hs_err_pid7957.log # # If you would like to submit a bug report, please visit: # http://www.blackdown.org/cgi-bin/jdk # Can anybody tell me what is this? Many thx, Nuno |
From: Iskandar P. <ple...@ya...> - 2006-05-14 07:40:11
|
Hi, Im trying to make some sort of leveleditor with java and sdl. Now i want to create some viewports in my gui. Any idea how i should do this? Can i just add an sdl_surface onto a canvas or panel or something? Regards, Iskandar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Patric R. <pa...@ma...> - 2006-05-10 23:08:23
|
Hi Pascal, I found a precompiled library for win32 at http://gnuwin.epfl.ch/apps/luola/en/install/luola/ Best Regards, Patric I hope Ivan will release a new version of sdljava soon - I can't await it :) EISELE Pascal schrieb: > Hi, > > I can't find SDL_Gfx compiled for sdljava on the web... Is someone have it ? > > Thanks > |
From: Nuno S. <dev...@im...> - 2006-05-10 17:45:04
|
Hi, I'm trying to compile a basic example just to understand how sdljava works. I copied from the testsrc/image directory the file SDLImageTest.java to a new directory and now i'm trying to compile that file using this command: javac -classpath .:~/sdljava-0.9.1/lib/:~/sdljava-0.9.1/classes/ SDLImageTest.java But i get a lot of errors.... it doesnt find the classes: What do i have to do to have a simple project compiled? Many thx, Nuno Santos PS: The errors: SDLImageTest.java:1: package sdljava does not exist import sdljava.SDLTest; ^ SDLImageTest.java:2: package sdljava does not exist import sdljava.SDLException; ^ SDLImageTest.java:3: package sdljava does not exist import sdljava.SDLMain; ^ SDLImageTest.java:5: package sdljava.video does not exist import sdljava.video.SDLColor; ^ SDLImageTest.java:6: package sdljava.video does not exist import sdljava.video.SDLVideo; ^ SDLImageTest.java:7: package sdljava.video does not exist import sdljava.video.SDLSurface; ^ SDLImageTest.java:8: package sdljava.image does not exist import sdljava.image.SDLImage; ^ SDLImageTest.java:14: cannot resolve symbol symbol : class SDLTest location: class SDLImageTest public class SDLImageTest extends SDLTest { ^ SDLImageTest.java:16: cannot resolve symbol symbol : class SDLSurface location: class SDLImageTest static SDLSurface framebuffer; ^ SDLImageTest.java:18: cannot resolve symbol symbol : class SDLException location: class SDLImageTest public void init() throws SDLException { ^ SDLImageTest.java:19: cannot resolve symbol symbol : variable SDLMain location: class SDLImageTest SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); ^ SDLImageTest.java:19: cannot resolve symbol symbol : variable SDLMain location: class SDLImageTest SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); ^ SDLImageTest.java:20: cannot resolve symbol symbol : variable SDLVideo location: class SDLImageTest framebuffer = SDLVideo.setVideoMode(800, 600, 24, (long)SDLVideo.SDL_HWS URFACE|SDLVideo.SDL_DOUBLEBUF); ^ SDLImageTest.java:20: cannot resolve symbol symbol : variable SDLVideo location: class SDLImageTest framebuffer = SDLVideo.setVideoMode(800, 600, 24, (long)SDLVideo.SDL_HWS URFACE|SDLVideo.SDL_DOUBLEBUF); ^ SDLImageTest.java:20: cannot resolve symbol symbol : variable SDLVideo location: class SDLImageTest framebuffer = SDLVideo.setVideoMode(800, 600, 24, (long)SDLVideo.SDL_HWS URFACE|SDLVideo.SDL_DOUBLEBUF); ^ SDLImageTest.java:25: cannot resolve symbol symbol : variable SDLMain location: class SDLImageTest SDLMain.quit(); ^ SDLImageTest.java:44: cannot resolve symbol symbol : class SDLSurface location: class SDLImageTest SDLSurface gif = SDLImage.load("testdata" + File.separator + fil e + ".gif"); ^ SDLImageTest.java:44: cannot resolve symbol symbol : variable SDLImage location: class SDLImageTest SDLSurface gif = SDLImage.load("testdata" + File.separator + fil e + ".gif"); ^ SDLImageTest.java:48: cannot resolve symbol symbol : class SDLException location: class SDLImageTest } catch (SDLException e) { ^ SDLImageTest.java:56: cannot resolve symbol symbol : class SDLSurface location: class SDLImageTest SDLSurface jpg = SDLImage.load("testdata" + File.separator + fil e + ".jpg"); ^ SDLImageTest.java:56: cannot resolve symbol symbol : variable SDLImage location: class SDLImageTest SDLSurface jpg = SDLImage.load("testdata" + File.separator + fil e + ".jpg"); ^ SDLImageTest.java:61: cannot resolve symbol symbol : class SDLException location: class SDLImageTest } catch (SDLException e) { ^ 22 errors |
From: Ivan Z. G. <iva...@ya...> - 2006-04-01 15:19:00
|
Greetings, Right now there is no working support for the YUV overlay stuff. Its=20 almost there though. I recently added the code to support it. Except=20 there is one part that is not working so it won't be much good until=20 that is resolved. The problem in queston is line 207 of SDLVideo.i -- In the call to=20 NewDirectByteBuffer I am not sure how to implement the size=20 calculation. Right now its saying a size of 1. If this line could be=20 corrected then I think the YUV stuff should be working. You could=20 access the YUV functions via SDLVideo and SDLOverlay classes. -Ivan/ Pedro Ruiz wrote: >Hello. >I'm trying to play a xvid video with SDLjava. >So I've made: > >Runtime.getRuntime().exec("/sdljava-0.9.1/mencoder -of >rawvideo -ovc raw -vf format=3Drgb32 test.avi -o pipe"); > >Then I open screen ByteBuffer: >p=3Dscreen.getPixelData(); > >Read the pipe... > >and screen.flip(); =09 > >Works but It's slow, so I think that using YUV overlay >it'll work faster. >So I'm interesting to know how can I use the sdl yuv >functions like SDL_DisplayYUVOverlay. > >Nevertheless, if anybody knows another way ... > >Thanks > > > =09 >______________________________________________=20 >LLama Gratis a cualquier PC del Mundo.=20 >Llamadas a fijos y m=F3viles desde 1 c=E9ntimo por minuto.=20 >http://es.voice.yahoo.com > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting langu= age >that extends applications into web and mobile media. Attend the live web= cast >and join the prime developer group breaking into this new coding territo= ry! >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |
From: Pedro R. <bi...@ya...> - 2006-03-30 11:37:10
|
Hello. I'm trying to play a xvid video with SDLjava. So I've made: Runtime.getRuntime().exec("/sdljava-0.9.1/mencoder -of rawvideo -ovc raw -vf format=rgb32 test.avi -o pipe"); Then I open screen ByteBuffer: p=screen.getPixelData(); Read the pipe... and screen.flip(); Works but It's slow, so I think that using YUV overlay it'll work faster. So I'm interesting to know how can I use the sdl yuv functions like SDL_DisplayYUVOverlay. Nevertheless, if anybody knows another way ... Thanks ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: mailmur <ma...@ya...> - 2006-03-29 07:10:22
|
How do you run your java program, show us a full commandline. Probably you've typed wrong an invalid classname for java.exe program. Here is an example: [ run.bat ] set cp=c:/sdljava-0.9.1/lib/sdljava.jar;. set lib=sdljava-0.9.1/lib/ java.exe -Djava.library.path=%lib% -classpath %cp% sdljava.SDLMainTest Put all necessary jars and classes folder to cp variable. And lib variable must point to the _folder_ where sdl.dll files are stored. If it still cannot find a class then you havent saved it to the appropriate package folder c:/test/run.bat c:/test/sdljava/SDLMainTest.class >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hi, I have some problems with sdljava. When I compile and run any code applying SDL, like this testing code: --------------------------------------------------------------------------------- package sdljava; public class SDLMainTest { static { ... Greetings Karel, I'm not sure why you are having that problem. It is very strange. Try to compile the classes on your own and not using the jar file. What happens then? -Ivan/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Ivan Z. G. <iva...@ya...> - 2006-03-22 02:49:35
|
Greetings, I wasn't planning to do a release soon because I want to put out a full release and the problem is I need help on the windows side. If anyone would be willing to help 1) build the dlls and 2) test the dlls build before the release -- then we could have a release. I also need some help to clean up and update the windows build scripts. Currently I don't have sufficient time to do all this myself as I primarily live in linux... Once I get more free time I will certainly do a release though! -Ivan/ Patric Rufflar wrote: > Hello list, > > I also would like to have the features of SDL_Gfx (like rotation, > zooming et cetera) inside sdljava . > Ivan: Do you see any chances to include this? > > Best Regards, > Patric > > BTW: When will a new version of sdljava (with all current bugfixes) be > released? > > EISELE Pascal schrieb: > >> Hi, >> >> I can't find SDL_Gfx compiled for sdljava on the web... Is someone >> have it ? >> Thanks >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: EISELE P. <lem...@nw...> - 2006-03-20 17:34:06
|
The features are already included ! It's working for me under GNU Linux b= ut=20 you'll need to compile libsdl_gfx Le Dimanche 19 Mars 2006 23:30, Patric Rufflar a =E9crit : > Hello list, > > I also would like to have the features of SDL_Gfx (like rotation, > zooming et cetera) inside sdljava . > Ivan: Do you see any chances to include this? > > Best Regards, > Patric > > BTW: When will a new version of sdljava (with all current bugfixes) be > released? > > EISELE Pascal schrieb: > > Hi, > > > > I can't find SDL_Gfx compiled for sdljava on the web... Is someone ha= ve > > it ? > > > > Thanks > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new codin= g > 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 --=20 EISELE Pascal <lem...@nw...> http://www.nwolf.org |
From: Patric R. <pa...@ma...> - 2006-03-19 22:34:20
|
Hello list, I also would like to have the features of SDL_Gfx (like rotation, zooming et cetera) inside sdljava . Ivan: Do you see any chances to include this? Best Regards, Patric BTW: When will a new version of sdljava (with all current bugfixes) be released? EISELE Pascal schrieb: > Hi, > > I can't find SDL_Gfx compiled for sdljava on the web... Is someone have it ? > > Thanks > |
From: Ivan Z. G. <iva...@ya...> - 2006-03-19 02:08:39
|
Greetings Karel, I'm not sure why you are having that problem. It is very strange. Try to compile the classes on your own and not using the jar file. What happens then? -Ivan/ Karel X wrote: >Hi, I have some problems with sdljava. When I compile and run any code applying SDL, like this testing code: > >--------------------------------------------------------------------------------- >package sdljava; > >public class SDLMainTest { > > static { > System.loadLibrary("sdljava"); > } > > public static void main(String[] args) { > try { > SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); > > System.out.println("INIT OKAY!"); > > } catch (Exception e) { > System.out.println("INIT FAILED!"); > e.printStackTrace(); > } // try-catch > } >} >------------------------------------------------------------------------------------- >then I will get this error: >------------------------------------------------------------------------------------- >java.lang.NoClassDefFoundError: SDLMainTest (wrong name: sdljava/SDLMainTest) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) >Exception in thread "main" >Exit code: 1 > >------------------------------------------------------------------------------------- > >When I have installing sdljava, I have set CLASSPATH to C:\Program Files\Java\sdljava-0.9.1\lib\sdljava.jar;. . >What shell I still do? > >Thanks. > >P.S.: Please, excuse my poor English :) > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: <ka...@se...> - 2006-03-17 14:47:12
|
Hi, I have some problems with sdljava. When I compile and run any code applying SDL, like this testing code: --------------------------------------------------------------------------------- package sdljava; public class SDLMainTest { static { System.loadLibrary("sdljava"); } public static void main(String[] args) { try { SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); System.out.println("INIT OKAY!"); } catch (Exception e) { System.out.println("INIT FAILED!"); e.printStackTrace(); } // try-catch } } ------------------------------------------------------------------------------------- then I will get this error: ------------------------------------------------------------------------------------- java.lang.NoClassDefFoundError: SDLMainTest (wrong name: sdljava/SDLMainTest) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Exception in thread "main" >Exit code: 1 ------------------------------------------------------------------------------------- When I have installing sdljava, I have set CLASSPATH to C:\Program Files\Java\sdljava-0.9.1\lib\sdljava.jar;. . What shell I still do? Thanks. P.S.: Please, excuse my poor English :) |
From: Shane M. W. <swa...@co...> - 2006-03-06 03:18:49
|
Ivan, That is great news. I look forward to testing out the performance in Java. Thanks! Shane Ivan Z. Ganza wrote: > Hi Shane, > > Had a glance at the code. From what I see it should be no problem to > get the YUV stuff implemented. I'll try to get it soon. Most likely > I will work on it next weekend... > > Cheers, > -Ivan/ > > Ivan Z. Ganza wrote: > >> Great thanks, >> >> I will have a look at this and get back to you. >> >> Much appreciated, >> -Ivan/ >> >> Shane M. Walton wrote: >> >>> Ivan, >>> >>> Here you go. Just press the "q" key to quit the example. >>> >>> Shane >>> >>> Ivan Z. Ganza wrote: >>> >>>> Greeting Shane, >>>> >>>> Any example code you can provide in C++ would be helpful. Or if >>>> you could give me a C program I can compile and run against sdl >>>> that tests the YUV I could then implement enough so those calls can >>>> be made on the sdljava side. Once I can see how the code needs to >>>> be utilized I can have some idea if it can be done easily... >>>> >>>> Thanks, >>>> -Ivan/ >>>> >>>> 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 >>>>> which is more efficient to operate on than RGB. So DVD/MPEG2 >>>>> rendering applications usually take advantage of the YUV overlay >>>>> acceleration capabilities of a video card. This is known as Xv in >>>>> the Linux world. All in all, what you get is the video on the >>>>> screen with little or no CPU overhead. The overlay architecture >>>>> also typically have scaling capabilities, which look much softer >>>>> than any software routine. >>>>> >>>>> I think it would be very worthwhile to have SDL_Overlay(s) >>>>> implemented in sdljava, as Java in general really seems to be >>>>> missing efficient video rendering capabilities. >>>>> >>>>> I can provide you with C/C++ source code examples if you are >>>>> interested in adding the SDL_Overlay functionality. It really >>>>> isn't too difficult. I would offer to add it, but I don't have a >>>>> clue as to 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 see the image either. Just a blank window. Not sure when >>>>>> this stopped working. Should hit myself for not regression >>>>>> testing. I will try to figure out the problem. >>>>>> >>>>>> Don't want to add more bad news but I never implemented the YUV >>>>>> Overlay stuff. Don't really know much about that aspect. Is it >>>>>> just a few method calls or much more involved? I think I remember >>>>>> it wasn't 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’t give me the >>>>>>> NullPointerException, but it doesn’t show the test_bmp.bmp aka >>>>>>> power plant. >>>>>>> >>>>>>> My ultimate goal is to create a Java video application that can >>>>>>> render video using the YUV Overlay. Maybe it would just work, >>>>>>> but I don’t feel all warm and fuzzy if the test application >>>>>>> doesn’t. Has anybody else had this issue? >>>>>>> >>>>>>> Shane >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> *From:* sdl...@li... >>>>>>> [mailto:sdl...@li...] *On Behalf Of >>>>>>> *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=./lib -cp ./classes/ >>>>>>> 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 >>>>>>> NullPointerException. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> Shane >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by xPML, a groundbreaking >>>>>> scripting language >>>>>> that extends applications into web and mobile media. Attend the >>>>>> live webcast >>>>>> and join the prime developer group breaking into this new coding >>>>>> territory! >>>>>> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>>>> _______________________________________________ >>>>>> 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 >>>>> language >>>>> that extends applications into web and mobile media. Attend the >>>>> live webcast >>>>> and join the prime developer group breaking into this new coding >>>>> territory! >>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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 >>>> language >>>> that extends applications into web and mobile media. Attend the >>>> live webcast >>>> and join the prime developer group breaking into this new coding >>>> territory! >>>> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>> _______________________________________________ >>>> sdljava-users mailing list >>>> sdl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sdljava-users >>>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> /* >>> * Libavformat API example: Output a media file in any supported >>> * libavformat format. The default codecs are used. >>> * >>> * Copyright (c) 2003 Fabrice Bellard >>> * >>> * Permission is hereby granted, free of charge, to any person >>> obtaining a copy >>> * of this software and associated documentation files (the >>> "Software"), to deal >>> * in the Software without restriction, including without limitation >>> the rights >>> * to use, copy, modify, merge, publish, distribute, sublicense, >>> and/or sell >>> * copies of the Software, and to permit persons to whom the Software is >>> * furnished to do so, subject to the following conditions: >>> * >>> * The above copyright notice and this permission notice shall be >>> included in >>> * all copies or substantial portions of the Software. >>> * >>> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >>> EXPRESS OR >>> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF >>> MERCHANTABILITY, >>> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT >>> SHALL >>> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES >>> OR OTHER >>> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, >>> ARISING FROM, >>> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER >>> DEALINGS IN >>> * THE SOFTWARE. >>> */ >>> >>> /* >>> * The above is included per the fill_yuv_image() function I borrowed >>> from the >>> * FFmpeg output_example.c. It is a cool little YUV generator... >>> * >>> */ >>> >>> #include <stdio.h> // for fprintf >>> #include <unistd.h> // for usleep >>> >>> #include <SDL/SDL.h> >>> >>> typedef struct { >>> unsigned char *data[4] ; >>> int linesize[4] ; >>> } myImage ; >>> >>> void fill_yuv_image(myImage *pict, int frame_index, int width, int >>> height) >>> { >>> int x, y, i; >>> >>> i = frame_index; >>> >>> /* Y */ >>> for(y=0;y<height;y++) { >>> for(x=0;x<width;x++) { >>> pict->data[0][y * pict->linesize[0] + x] = x + y + i * 3; >>> } >>> } >>> >>> /* Cb and Cr or U and V */ >>> for(y=0;y<height/2;y++) { >>> for(x=0;x<width/2;x++) { >>> pict->data[1][y * pict->linesize[1] + x] = 128 + y + i * 2; >>> pict->data[2][y * pict->linesize[2] + x] = 64 + x + i * 5; >>> } >>> } >>> } >>> >>> int main ( int argc, char *argv[] ) >>> { >>> int flags, cnt = 0, looping = 1, w = 640, h = 480 ; >>> SDL_Surface *surface ; >>> SDL_Overlay *overlay ; >>> SDL_Rect area ; >>> SDL_Event event ; >>> myImage image ; >>> >>> SDL_Init ( SDL_INIT_VIDEO ) ; >>> >>> flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL ; >>> if ( ( surface = SDL_SetVideoMode ( w, h, 0, flags ) ) == NULL ) >>> { >>> fprintf ( stderr, "SDL_SetVideoMode: %s\n", SDL_GetError() ) ; >>> return -1 ; >>> } >>> >>> /* >>> * request a YVU420P overlay - Y + V + U >>> */ >>> overlay = SDL_CreateYUVOverlay ( w, h, SDL_YV12_OVERLAY, surface ) ; >>> if ( overlay == NULL ) >>> { >>> fprintf ( stderr, "SDL_CreateYUVOverlay: %s\n", SDL_GetError() ) ; >>> goto cleanup ; >>> } >>> >>> area.x = 0 ; >>> area.y = 0 ; >>> area.w = w ; >>> area.h = h ; >>> >>> while ( looping ) >>> { >>> /* >>> * lock the YUV overlay surface before messing with the pixels >>> */ >>> SDL_LockYUVOverlay ( overlay ) ; >>> >>> /* >>> * swap the U and V planes since... >>> * the overlay is YVU420P and the image YUV420P >>> */ >>> image.data[0] = overlay->pixels[0] ; >>> image.data[1] = overlay->pixels[2] ; >>> image.data[2] = overlay->pixels[1] ; >>> image.linesize[0] = overlay->pitches[0] ; >>> image.linesize[1] = overlay->pitches[2] ; >>> image.linesize[2] = overlay->pitches[1] ; >>> >>> /* >>> * copy in a YUV image >>> */ >>> fill_yuv_image ( &image, cnt++, w, h ) ; >>> >>> /* >>> * unlock the YUV overlay surface after messing with the pixels >>> */ >>> SDL_UnlockYUVOverlay ( overlay ) ; >>> >>> /* >>> * finally, display the YUV image >>> */ >>> SDL_DisplayYUVOverlay ( overlay, &area ) ; >>> >>> /* >>> * check to see if the "q" key was pressed to quit >>> */ >>> if ( SDL_PollEvent ( &event ) ) >>> { >>> if ( event.type == SDL_KEYDOWN ) >>> { >>> switch ( event.key.keysym.sym ) >>> { >>> case SDLK_q: >>> looping = 0 ; >>> break ; >>> } >>> } >>> } >>> >>> /* >>> * sleep for a bit to avoid over-driving the CPU >>> */ >>> usleep ( 20000 ) ; >>> } >>> >>> SDL_FreeYUVOverlay ( overlay ) ; >>> >>> cleanup: >>> >>> SDL_Quit ( ) ; >>> >>> return 0 ; >>> } >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 >> _______________________________________________ >> 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 > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > |
From: Ivan Z. G. <iva...@ya...> - 2006-03-06 02:50:04
|
Hi Shane, Had a glance at the code. From what I see it should be no problem to=20 get the YUV stuff implemented. I'll try to get it soon. Most likely I=20 will work on it next weekend... Cheers, -Ivan/ Ivan Z. Ganza wrote: > Great thanks, > > I will have a look at this and get back to you. > > Much appreciated, > -Ivan/ > > Shane M. Walton wrote: > >> Ivan, >> >> Here you go. Just press the "q" key to quit the example. >> >> Shane >> >> Ivan Z. Ganza wrote: >> >>> 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=20 >>> tests the YUV I could then implement enough so those calls can be=20 >>> made on the sdljava side. Once I can see how the code needs to be=20 >>> utilized I can have some idea if it can be done easily... >>> >>> Thanks, >>> -Ivan/ >>> >>> 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=20 >>>> the Linux world. All in all, what you get is the video on the=20 >>>> screen with little or no CPU overhead. The overlay architecture=20 >>>> also typically have scaling capabilities, which look much softer=20 >>>> than any software routine. >>>> >>>> I think it would be very worthwhile to have SDL_Overlay(s)=20 >>>> implemented in sdljava, as Java in general really seems to be=20 >>>> missing efficient 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=20 >>>> isn't too difficult. I would offer to add it, but I don't have a=20 >>>> clue as to 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=20 >>>>> stopped working. Should hit myself for not regression testing. I=20 >>>>> will try to 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=20 >>>>> just a few method calls or much more involved? I think I remember=20 >>>>> it wasn't easy to map (via swig) initially so that is why I=20 >>>>> 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=20 >>>>>> power 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=20 >>>>>> I don=92t feel all warm and fuzzy if the test application doesn=92= t.=20 >>>>>> Has 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=20 >>>>>> 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=20 >>>>> live 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=121= 642 >>>>> _______________________________________________ >>>>> 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=20 >>>> live 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=20 >>>> >>>> _______________________________________________ >>>> 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=3Dk&kid=110944&bid$1720&dat=12164= 2 >>> _______________________________________________ >>> sdljava-users mailing list >>> sdl...@li... >>> https://lists.sourceforge.net/lists/listinfo/sdljava-users >>> >> >> ----------------------------------------------------------------------= -- >> >> /* >> * Libavformat API example: Output a media file in any supported >> * libavformat format. The default codecs are used. >> * >> * Copyright (c) 2003 Fabrice Bellard >> * >> * Permission is hereby granted, free of charge, to any person=20 >> obtaining a copy >> * of this software and associated documentation files (the=20 >> "Software"), to deal >> * in the Software without restriction, including without limitation=20 >> the rights >> * to use, copy, modify, merge, publish, distribute, sublicense,=20 >> and/or sell >> * copies of the Software, and to permit persons to whom the Software i= s >> * furnished to do so, subject to the following conditions: >> * >> * The above copyright notice and this permission notice shall be=20 >> included in >> * all copies or substantial portions of the Software. >> * >> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,=20 >> EXPRESS OR >> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF=20 >> MERCHANTABILITY, >> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT=20 >> SHALL >> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES=20 >> OR OTHER >> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,=20 >> ARISING FROM, >> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER=20 >> DEALINGS IN >> * THE SOFTWARE. >> */ >> >> /* >> * The above is included per the fill_yuv_image() function I borrowed=20 >> from the >> * FFmpeg output_example.c. It is a cool little YUV generator... >> * >> */ >> >> #include <stdio.h> // for fprintf >> #include <unistd.h> // for usleep >> >> #include <SDL/SDL.h> >> >> typedef struct { >> unsigned char *data[4] ; >> int linesize[4] ; >> } myImage ; >> >> void fill_yuv_image(myImage *pict, int frame_index, int width, int=20 >> height) >> { >> int x, y, i; >> >> i =3D frame_index; >> >> /* Y */ >> for(y=3D0;y<height;y++) { >> for(x=3D0;x<width;x++) { >> pict->data[0][y * pict->linesize[0] + x] =3D x + y + i * 3; >> } >> } >> >> /* Cb and Cr or U and V */ >> for(y=3D0;y<height/2;y++) { >> for(x=3D0;x<width/2;x++) { >> pict->data[1][y * pict->linesize[1] + x] =3D 128 + y + i * = 2; >> pict->data[2][y * pict->linesize[2] + x] =3D 64 + x + i * 5= ; >> } >> } >> } >> >> int main ( int argc, char *argv[] ) >> { >> int flags, cnt =3D 0, looping =3D 1, w =3D 640, h =3D 480 ; >> SDL_Surface *surface ; >> SDL_Overlay *overlay ; >> SDL_Rect area ; >> SDL_Event event ; >> myImage image ; >> >> SDL_Init ( SDL_INIT_VIDEO ) ; >> >> flags =3D SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL ; >> if ( ( surface =3D SDL_SetVideoMode ( w, h, 0, flags ) ) =3D=3D NULL= ) >> { >> fprintf ( stderr, "SDL_SetVideoMode: %s\n", SDL_GetError() ) ; >> return -1 ; >> } >> >> /* >> * request a YVU420P overlay - Y + V + U >> */ >> overlay =3D SDL_CreateYUVOverlay ( w, h, SDL_YV12_OVERLAY, surface )= ; >> if ( overlay =3D=3D NULL ) >> { >> fprintf ( stderr, "SDL_CreateYUVOverlay: %s\n", SDL_GetError() ) = ; >> goto cleanup ; >> } >> >> area.x =3D 0 ; >> area.y =3D 0 ; >> area.w =3D w ; >> area.h =3D h ; >> >> while ( looping ) >> { >> /* >> * lock the YUV overlay surface before messing with the pixels >> */ >> SDL_LockYUVOverlay ( overlay ) ; >> >> /* >> * swap the U and V planes since... >> * the overlay is YVU420P and the image YUV420P >> */ >> image.data[0] =3D overlay->pixels[0] ; >> image.data[1] =3D overlay->pixels[2] ; >> image.data[2] =3D overlay->pixels[1] ; >> image.linesize[0] =3D overlay->pitches[0] ; >> image.linesize[1] =3D overlay->pitches[2] ; >> image.linesize[2] =3D overlay->pitches[1] ; >> >> /* >> * copy in a YUV image >> */ >> fill_yuv_image ( &image, cnt++, w, h ) ; >> >> /* >> * unlock the YUV overlay surface after messing with the pixels >> */ >> SDL_UnlockYUVOverlay ( overlay ) ; >> >> /* >> * finally, display the YUV image >> */ >> SDL_DisplayYUVOverlay ( overlay, &area ) ; >> >> /* >> * check to see if the "q" key was pressed to quit >> */ >> if ( SDL_PollEvent ( &event ) ) >> { >> if ( event.type =3D=3D SDL_KEYDOWN ) >> { >> switch ( event.key.keysym.sym ) >> { >> case SDLK_q: >> looping =3D 0 ; >> break ; >> } >> } >> } >> >> /* >> * sleep for a bit to avoid over-driving the CPU >> */ >> usleep ( 20000 ) ; >> } >> >> SDL_FreeYUVOverlay ( overlay ) ; >> >> cleanup: >> >> SDL_Quit ( ) ; >> >> return 0 ; >> } >> =20 >> > > > > ------------------------------------------------------- > 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=110944&bid$1720&dat=12164= 2 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Ivan Z. G. <iva...@ya...> - 2006-03-06 01:38:56
|
Great thanks, I will have a look at this and get back to you. Much appreciated, -Ivan/ Shane M. Walton wrote: > Ivan, > > Here you go. Just press the "q" key to quit the example. > > Shane > > Ivan Z. Ganza wrote: > >> 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=20 >> tests the YUV I could then implement enough so those calls can be=20 >> made on the sdljava side. Once I can see how the code needs to be=20 >> utilized I can have some idea if it can be done easily... >> >> Thanks, >> -Ivan/ >> >> 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=20 >>> the Linux world. All in all, what you get is the video on the=20 >>> screen with little or no CPU overhead. The overlay architecture=20 >>> also typically have scaling capabilities, which look much softer=20 >>> than any software routine. >>> >>> I think it would be very worthwhile to have SDL_Overlay(s)=20 >>> implemented in sdljava, as Java in general really seems to be=20 >>> missing efficient 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=20 >>> to 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=20 >>>> stopped working. Should hit myself for not regression testing. I=20 >>>> will try to 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=20 >>>> a few method calls or much more involved? I think I remember it=20 >>>> wasn't 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=20 >>>>> power 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=20 >>>>> I don=92t feel all warm and fuzzy if the test application doesn=92t= .=20 >>>>> Has 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=20 >>>>> 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=20 >>>> live 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=1216= 42 >>>> _______________________________________________ >>>> 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&d= at=3D121642=20 >>> >>> _______________________________________________ >>> 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=3Dk&kid=110944&bid$1720&dat=121642 >> _______________________________________________ >> sdljava-users mailing list >> sdl...@li... >> https://lists.sourceforge.net/lists/listinfo/sdljava-users >> > >------------------------------------------------------------------------ > >/* > * Libavformat API example: Output a media file in any supported > * libavformat format. The default codecs are used. > * > * Copyright (c) 2003 Fabrice Bellard > * > * Permission is hereby granted, free of charge, to any person obtaining= a copy > * of this software and associated documentation files (the "Software"),= to deal > * in the Software without restriction, including without limitation the= rights > * to use, copy, modify, merge, publish, distribute, sublicense, and/or = sell > * copies of the Software, and to permit persons to whom the Software is > * furnished to do so, subject to the following conditions: > * > * The above copyright notice and this permission notice shall be includ= ed in > * all copies or substantial portions of the Software. > * > * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRE= SS OR > * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILI= TY, > * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHA= LL > * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR = OTHER > * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISI= NG FROM, > * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALING= S IN > * THE SOFTWARE. > */ > >/* > * The above is included per the fill_yuv_image() function I borrowed fr= om the > * FFmpeg output_example.c. It is a cool little YUV generator... > * > */ > >#include <stdio.h> // for fprintf >#include <unistd.h> // for usleep > >#include <SDL/SDL.h> > >typedef struct { > unsigned char *data[4] ; > int linesize[4] ; >} myImage ; > >void fill_yuv_image(myImage *pict, int frame_index, int width, int heigh= t) >{ > int x, y, i; > > i =3D frame_index; > > /* Y */ > for(y=3D0;y<height;y++) { > for(x=3D0;x<width;x++) { > pict->data[0][y * pict->linesize[0] + x] =3D x + y + i * 3; > } > } > > /* Cb and Cr or U and V */ > for(y=3D0;y<height/2;y++) { > for(x=3D0;x<width/2;x++) { > pict->data[1][y * pict->linesize[1] + x] =3D 128 + y + i * 2= ; > pict->data[2][y * pict->linesize[2] + x] =3D 64 + x + i * 5; > } > } >} > >int main ( int argc, char *argv[] ) >{ > int flags, cnt =3D 0, looping =3D 1, w =3D 640, h =3D 480 ; > SDL_Surface *surface ; > SDL_Overlay *overlay ; > SDL_Rect area ; > SDL_Event event ; > myImage image ; > > SDL_Init ( SDL_INIT_VIDEO ) ; > > flags =3D SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL ; > if ( ( surface =3D SDL_SetVideoMode ( w, h, 0, flags ) ) =3D=3D NULL = ) > { > fprintf ( stderr, "SDL_SetVideoMode: %s\n", SDL_GetError() ) ; > return -1 ; > } > > /* > * request a YVU420P overlay - Y + V + U > */ > overlay =3D SDL_CreateYUVOverlay ( w, h, SDL_YV12_OVERLAY, surface ) = ; > if ( overlay =3D=3D NULL ) > { > fprintf ( stderr, "SDL_CreateYUVOverlay: %s\n", SDL_GetError() ) ; > goto cleanup ; > } > > area.x =3D 0 ; > area.y =3D 0 ; > area.w =3D w ; > area.h =3D h ; > > while ( looping ) > { > /* > * lock the YUV overlay surface before messing with the pixels > */ > SDL_LockYUVOverlay ( overlay ) ; > > /* > * swap the U and V planes since... > * the overlay is YVU420P and the image YUV420P > */ > image.data[0] =3D overlay->pixels[0] ; > image.data[1] =3D overlay->pixels[2] ; > image.data[2] =3D overlay->pixels[1] ; > image.linesize[0] =3D overlay->pitches[0] ; > image.linesize[1] =3D overlay->pitches[2] ; > image.linesize[2] =3D overlay->pitches[1] ; > > /* > * copy in a YUV image > */ > fill_yuv_image ( &image, cnt++, w, h ) ; > > /* > * unlock the YUV overlay surface after messing with the pixels > */ > SDL_UnlockYUVOverlay ( overlay ) ; > > /* > * finally, display the YUV image > */ > SDL_DisplayYUVOverlay ( overlay, &area ) ; > > /* > * check to see if the "q" key was pressed to quit > */ > if ( SDL_PollEvent ( &event ) ) > { > if ( event.type =3D=3D SDL_KEYDOWN ) > { > switch ( event.key.keysym.sym ) > { > case SDLK_q: > looping =3D 0 ; > break ; > } > } > } > > /* > * sleep for a bit to avoid over-driving the CPU > */ > usleep ( 20000 ) ; > } > > SDL_FreeYUVOverlay ( overlay ) ; > > cleanup: > > SDL_Quit ( ) ; > > return 0 ; >} > =20 > |
From: Shane M. W. <swa...@co...> - 2006-03-05 16:07:46
|
Ivan, Here you go. Just press the "q" key to quit the example. Shane Ivan Z. Ganza wrote: > Greeting Shane, > > Any example code you can provide in C++ would be helpful. Or if you > could give me a C program I can compile and run against sdl that tests > the YUV I could then implement enough so those calls can be made on > the sdljava side. Once I can see how the code needs to be utilized I > can have some idea if it can be done easily... > > Thanks, > -Ivan/ > > 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 >> which is more efficient to operate on than RGB. So DVD/MPEG2 >> rendering applications usually take advantage of the YUV overlay >> acceleration capabilities of a video card. This is known as Xv in >> the Linux world. All in all, what you get is the video on the screen >> with little or no CPU overhead. The overlay architecture also >> typically have scaling capabilities, which look much softer than any >> software routine. >> >> I think it would be very worthwhile to have SDL_Overlay(s) >> implemented in sdljava, as Java in general really seems to be missing >> efficient video rendering capabilities. >> >> I can provide you with C/C++ source code examples if you are >> interested in adding the SDL_Overlay functionality. It really isn't >> too difficult. I would offer to add it, but I don't have a clue as >> to 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 >>> see the image either. Just a blank window. Not sure when this >>> stopped working. Should hit myself for not regression testing. I >>> will try to figure out the problem. >>> >>> Don't want to add more bad news but I never implemented the YUV >>> Overlay stuff. Don't really know much about that aspect. Is it just >>> a few method calls or much more involved? I think I remember it >>> wasn't 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’t give me the >>>> NullPointerException, but it doesn’t show the test_bmp.bmp aka >>>> power plant. >>>> >>>> My ultimate goal is to create a Java video application that can >>>> render video using the YUV Overlay. Maybe it would just work, but I >>>> don’t feel all warm and fuzzy if the test application doesn’t. Has >>>> anybody else had this issue? >>>> >>>> Shane >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> *From:* sdl...@li... >>>> [mailto:sdl...@li...] *On Behalf Of >>>> *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=./lib -cp ./classes/ >>>> 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 >>>> NullPointerException. >>>> >>>> Thanks. >>>> >>>> Shane >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by xPML, a groundbreaking scripting >>> language >>> that extends applications into web and mobile media. Attend the live >>> webcast >>> and join the prime developer group breaking into this new coding >>> territory! >>> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>> _______________________________________________ >>> 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 >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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 > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > |
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 |
From: Shane M. W. <swa...@co...> - 2006-03-04 15:08:58
|
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 which is more efficient to operate on than RGB. So DVD/MPEG2 rendering applications usually take advantage of the YUV overlay acceleration capabilities of a video card. This is known as Xv in the Linux world. All in all, what you get is the video on the screen with little or no CPU overhead. The overlay architecture also typically have scaling capabilities, which look much softer than any software routine. I think it would be very worthwhile to have SDL_Overlay(s) implemented in sdljava, as Java in general really seems to be missing efficient video rendering capabilities. I can provide you with C/C++ source code examples if you are interested in adding the SDL_Overlay functionality. It really isn't too difficult. I would offer to add it, but I don't have a clue as to 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 see > the image either. Just a blank window. Not sure when this stopped > working. Should hit myself for not regression testing. I will try to > figure out the problem. > > Don't want to add more bad news but I never implemented the YUV > Overlay stuff. Don't really know much about that aspect. Is it just a > few method calls or much more involved? I think I remember it wasn't > 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’t give me the >> NullPointerException, but it doesn’t show the test_bmp.bmp aka power >> plant. >> >> My ultimate goal is to create a Java video application that can >> render video using the YUV Overlay. Maybe it would just work, but I >> don’t feel all warm and fuzzy if the test application doesn’t. Has >> anybody else had this issue? >> >> Shane >> >> ------------------------------------------------------------------------ >> >> *From:* sdl...@li... >> [mailto:sdl...@li...] *On Behalf Of >> *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=./lib -cp ./classes/ 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 NullPointerException. >> >> Thanks. >> >> Shane >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > |