Re: [sdljava-users] Anyone using get/setPixelDataXX()?
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-06-28 03:13:15
|
Hi Steph, Sorry for the late reply I was travelling last week. I think I had this in at one point but then removed it in favour of the byte buffers. Also the get/setPixelDataXXXX methods are VERY inefficient due to the fact this results in copies between java and the native layer. I don't see any harm in providing this methods though so they will be added. Just be aware of the fact they are inefficient. I will add them as soon as I can. Thanks, -Ivan/ S. Meslin-Weber wrote: >Hi everyone, > >I'm cleaning up some code in Odonata and in the sdljava provider I've >found that I use get/setPixelData32(long[]). Would it be possible to >rationalise the types used for these methods? Does anyone still use >them? > >long[] 64 bit colour data >int[] 32 ... >short[] 16 ... >byte[] 8 ... > >Essentially it'd mean changing the signatures for the get/set methods to >match the bit sizes they're operating with. > >I've seen the gradual move to using ByteBuffer and Buffers in general... >Odonata intends to work with JVM versions 1.1+ so those classes wouldn't >necessarily be available on those targets :) > >Cheers, > >Steph > > > |