#jogamp @ irc.freenode.net - 20150806 05:05:28 (UTC)


20150806 05:05:28 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150805050527.html
20150806 05:05:28 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150806050528.html
20150806 06:49:34 * elect_ (~elect@anon) has joined #jogamp
20150806 06:51:24 <elect_> hi
20150806 10:44:18 * gouessej (5ee4b442@anon) has joined #jogamp
20150806 10:44:22 <gouessej> Hi
20150806 10:44:39 <gouessej> sgothel: I can provide a first implementation for the bug 1159
20150806 10:44:58 <gouessej> https://jogamp.org/bugzilla/show_bug.cgi?id=1159
20150806 10:45:24 <sgothel> that would be great ..
20150806 10:46:21 <gouessej> sgothel: ok, I take this bug
20150806 10:46:22 <sgothel> https://jogamp.org/bugzilla/show_bug.cgi?id=1042 (would be more pressing for 2.3.2 .. incl the documentation of the *magic* numbers and references to the format)
20150806 10:46:35 <sgothel> I know you added things in bug report ..
20150806 10:47:01 <gouessej> sgothel: I have some questions for you about this bug report
20150806 10:47:02 <sgothel> but - since you are the author - maybe you can offer a git-patch ..
20150806 10:47:09 <sgothel> sure
20150806 10:48:02 <gouessej> sgothel: In which class should I put this mechanism so that a developer can guess where it is?
20150806 10:48:39 <sgothel> yeah ..
20150806 10:49:27 <sgothel> maybe an autonomous class detecting type from a byte[] or NIO ByteBuffer ..
20150806 10:49:41 <sgothel> which then can be used in Texture ..
20150806 10:49:58 <gouessej> or in com.jogamp.opengl.util.awt.ImageUtil?
20150806 10:50:02 <sgothel> make a proposal (i.e. do it) ..
20150806 10:50:05 <gouessej> no bad idea
20150806 10:50:07 <gouessej> sorry
20150806 10:50:11 <sgothel> surely it is not AWT :)
20150806 10:50:12 <gouessej> it has nothing to do with AWT
20150806 10:50:46 <sgothel> TextureIdent in parallel to Texture (same package) ?
20150806 10:50:59 <sgothel> or ImageType ..
20150806 10:51:07 <sgothel> well ..
20150806 10:51:38 <gouessej> yes, in com.jogamp.opengl.util.texture but I have to find a good name for the class
20150806 10:51:55 <sgothel> yeah .. you do the first try here :)
20150806 10:55:05 <sgothel> in case the magic numbers are not 8bit aligned, using Bitstream might be helpful here
20150806 10:57:25 <gouessej> I don't see what you mean exactly as I have never had such case
20150806 10:59:56 <sgothel> if they are all byte aligned, great - otherwise .. Bitstream helps parsing the bits .. thats all :)
20150806 11:00:06 <sgothel> Bitstream class
20150806 11:03:07 <gouessej> Actually, I can put this mechanism into TextureIO, in two separate methods, one taking a byte array in input and another one taking a stream in input
20150806 11:03:18 <gouessej> You can still move it somewhere else later
20150806 11:03:59 <sgothel> IMHO better to put the detection in its own class, easier for all of us to read and reuse .. just drop the class somewhere :)
20150806 11:04:15 <sgothel> w/ your great documentation (magic + refs)
20150806 11:05:45 <gouessej> Ok, ImageIOUtil.getFileSuffix()
20150806 11:07:12 <sgothel> nice
20150806 11:07:52 <gouessej> com.jogamp.opengl.util.texture.ImageIOUtil.getFileSuffix(InputStream stream) and com.jogamp.opengl.util.texture.ImageIOUtil.getFileSuffix(byte[] bytes)
20150806 11:09:29 <sgothel> only impl. one of those - I will remodel it using Bitstream, which can take either type (byte[] or ByteBuffer or Byte InputStream)
20150806 11:09:29 <gouessej> I'm looking for the necessary modification to use this mechanism in our texture provider
20150806 11:10:54 <sgothel> a structure describing the type would be nice, e.g. class Desc { byte magic; int offset; }; And having an array of Desc for each type
20150806 11:11:40 <sgothel> in case there will be a type w/ unaligned bits to parse, we can add a bit mask.
20150806 11:12:10 <sgothel> this way the parser is pretty generic and users can add their own Desc/Type ..
20150806 11:12:49 <gouessej> Excellent suggestion, it separates the concerns and it's more extendable
20150806 11:12:52 <sgothel> class Type { Desc[] desc; String suffix; } static final Type PNG = { .... };
20150806 11:13:17 <gouessej> "extensible"
20150806 11:14:56 <gouessej> "or null if the provider should infer the type from the file's contents" it will become true in our own providers soon :)
20150806 11:15:15 <sgothel> ay
20150806 11:17:36 * gouessej (5ee4b442@anon) Quit (Quit: Page closed)
20150806 11:18:10 * gouessej (5ee4b442@anon) has joined #jogamp
20150806 11:18:32 <gouessej> Where are our providers? I don't find them in com/jogamp/opengl/util/texture/spi
20150806 11:18:50 <sgothel> inner class ..
20150806 11:22:50 <gouessej> I can modify StreamBasedTextureProvider to use the mechanism
20150806 11:25:32 <sgothel> too late .. is called within the iteration of known provider ..
20150806 11:25:49 <sgothel> see: newTextureDataImpl
20150806 11:26:21 <sgothel> IMHO .. for 2.4.0 we shall drop 'File' and only leave InputStream .. oh well
20150806 11:26:51 <sgothel> but you go ahead .. and do what looks useful .. we can refine as we go
20150806 11:29:12 * gouessej (5ee4b442@anon) Quit (Ping timeout: 246 seconds)
20150806 11:38:37 * gouessej (5ee4b442@anon) has joined #jogamp
20150806 11:39:08 <gouessej> I don't want to affect the AWT provider
20150806 11:44:00 <gouessej> If I modify each provider except the AWT provider, I won't risk to break the existing AWT fallback
20150806 11:44:49 <gouessej> AWT/Swing already has its own mechanism to guess the image file type
20150806 11:47:26 <gouessej> DDSImage.isDDSImage() will become useless
20150806 11:56:03 <elect_> gouessej, are you modifying the dds provider?
20150806 11:56:07 <elect_> coz I am working on that
20150806 11:56:28 <elect_> for the dx10 tex support
20150806 11:56:41 <gouessej> elect_: I will modify only the image file type detection
20150806 11:57:00 <gouessej> elect_: it won't have any impact on your work
20150806 11:57:10 <gouessej> elect_: it was already correctly working
20150806 12:02:50 <gouessej> sgothel: in my humble opinion, it would be nice to have a similar class in JOGL when OpenGL isn't available: http://forum.lwjgl.org/index.php?PHPSESSID=gboje21rb37qntouau7bulacd7&topic=4800.msg30939#msg30939
20150806 12:04:13 <gouessej> sgothel: Imagine that there is no OpenGL support even with ANGLE or with the GDI renderer, it's nice to be able to alert the end user instead of just crashing or writing an error message in a log file
20150806 12:04:57 * gouessej (5ee4b442@anon) Quit (Quit: Page closed)
20150806 12:19:09 * jvanek (jvanek@anon) has joined #jogamp
20150806 13:29:39 * jvanek (jvanek@anon) Quit (Ping timeout: 255 seconds)
20150806 13:51:51 * jvanek (jvanek@anon) has joined #jogamp
20150806 14:11:05 * juank_prada (~juank_pra@anon) has joined #jogamp
20150806 14:53:21 * jvanek (jvanek@anon) Quit (Ping timeout: 255 seconds)
20150806 15:07:01 * elect_ (~elect@anon) Quit (Ping timeout: 244 seconds)
20150806 15:23:42 * jvanek (jvanek@anon) has joined #jogamp
20150806 15:25:18 * eclesia (~husky@anon) has joined #jogamp
20150806 15:25:23 <eclesia> hi
20150806 15:28:13 <eclesia> sgothel: quick question, I'm searching for a list of supported hardwares by jogamp ? android version, raspberry, linux, mac, ...
20150806 15:28:38 <sgothel> uh ..
20150806 15:29:18 <sgothel> well .. whats in our builds .. other platforms may/shall work .. unsupported. Debian has a few more working platforms for example.
20150806 15:30:03 <sgothel> Windows,Linux,OpenSolaris/Indiana,OSX i386 + amd64
20150806 15:30:29 <sgothel> Linux,Android arm6 (soft) and arm7hf (hard-float)
20150806 15:30:35 <sgothel> ^^ our builds .. AFAIK
20150806 15:30:43 <eclesia> cool thanks :)
20150806 15:30:55 <sgothel> maybe worth a wiki page .. hmm
20150806 15:31:14 <sgothel> i.e. OS version details etc
20150806 15:31:36 <eclesia> that would be nice, but no rush.
20150806 15:31:57 <sgothel> cleaning up NEWT flags and stuff .. for non-resizable and other states ..
20150806 15:32:11 <sgothel> ^^ I thought you do the wiki .. while you are at :)
20150806 15:32:29 <eclesia> I'm at work, that was a question from my boss :D
20150806 15:32:56 <eclesia> he's exploring computing solutions in java. OpenCL/Cuda etc..
20150806 15:32:58 <sgothel> contact Gothel Software e.K. for commercial support (-> Wiki)
20150806 15:33:41 <sgothel> http://jogamp.org/wiki/index.php/Maintainer_and_Contacts#Sven_Gothel
20150806 15:35:32 * elect (~elect@anon) has joined #jogamp
20150806 15:36:07 <sgothel> ok .. off to the beach .. laters :)
20150806 15:36:56 <eclesia> sgothel: bye
20150806 16:04:37 * eclesia (~husky@anon) has left #jogamp
20150806 16:23:15 * elect (~elect@anon) Quit (Ping timeout: 256 seconds)
20150806 18:06:45 * juank_prada (~juank_pra@anon) Quit (Ping timeout: 240 seconds)
20150806 18:08:12 * jvanek (jvanek@anon) Quit (Ping timeout: 255 seconds)
20150806 18:24:07 * juank_prada (~juank_pra@anon) has joined #jogamp
20150806 19:05:16 * jvanek (jvanek@anon) has joined #jogamp
20150806 19:30:25 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150806 19:53:15 * juank_prada (~juank_pra@anon) Quit (Ping timeout: 260 seconds)
20150806 20:35:07 * jvanek (jvanek@anon) has joined #jogamp
20150806 21:53:14 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150807 05:05:28 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150807050528.html