Skip to main content

JAI IIO native codecs and JAI in general for Mac - What does the Oracle/Apple announcement mean for them ?

12 replies [Last post]
dclunie
Offline
Joined: 2004-12-23
Points: 0

... if anything ?

http://www.apple.com/pr/library/2010/11/12openjdk.html

given that the issues have been described in the past to have been
"non-technical".

The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
on the Mac has long been a barrier to Java cross-platform applications
for medical imaging, for example, and continue to be so.

David

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
demonduck
Offline
Joined: 2008-03-14
Points: 0

Java is dead -- stop beating on it. Let it rest in peace.

David Clunie wrote:
> ... if anything ?
>
> http://www.apple.com/pr/library/2010/11/12openjdk.html
>
> given that the issues have been described in the past to have been
> "non-technical".
>
> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
> on the Mac has long been a barrier to Java cross-platform applications
> for medical imaging, for example, and continue to be so.
>
> David
>

rgd
Offline
Joined: 2005-08-23
Points: 0

Oh please. It's just as dead as C or C++ is. In other words, not.

The Apple/Oracle deal is a very good thing as it ensures we'll continue
to have a JDK available for Mac. And it'll probably be better and more
up-to-date too, given that it's being produced by those who actually
have a stake in the Java platform (Oracle). Because as we all know,
Apple couldn't care less about it (an attitude I never have understood,
but whatever).

As for the native codecs, what needs to happen is for people to bang on
Oracle to release the source for the IIO Tools and JAI native packages
in a manner similar to what they have for the Java code. There's no
evidence that Oracle is particularly inclined to invest much in JAI/IIO
Tools at this point. Which is fine, but in that case, they also have
nothing to lose by releasing the source so the community can support it.
They're *almost* there with the Java code, it's just the native code
that is missing.

Anyone at Oracle or Sun listening? PLEASE release the native code
source!! The community is more than capable of doing relevant builds
(Mac, 64-bit Linux or Windows, whatever).

Thanks...

-Bob

On 2/9/11 8:33 AM, Ken Warner wrote:
> Java is dead -- stop beating on it. Let it rest in peace.
>
> David Clunie wrote:
>> ... if anything ?
>>
>> http://www.apple.com/pr/library/2010/11/12openjdk.html
>>
>> given that the issues have been described in the past to have been
>> "non-technical".
>>
>> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
>> on the Mac has long been a barrier to Java cross-platform applications
>> for medical imaging, for example, and continue to be so.
>>
>> David
>>

demonduck
Offline
Joined: 2008-03-14
Points: 0

Good grief -- your message is just a repeat of what people have been
saying for the last 10 years!

NOTHING HAPPENED!!!!

Bob Deen wrote:
> Oh please. It's just as dead as C or C++ is. In other words, not.
>
> The Apple/Oracle deal is a very good thing as it ensures we'll continue
> to have a JDK available for Mac. And it'll probably be better and more
> up-to-date too, given that it's being produced by those who actually
> have a stake in the Java platform (Oracle). Because as we all know,
> Apple couldn't care less about it (an attitude I never have understood,
> but whatever).
>
> As for the native codecs, what needs to happen is for people to bang on
> Oracle to release the source for the IIO Tools and JAI native packages
> in a manner similar to what they have for the Java code. There's no
> evidence that Oracle is particularly inclined to invest much in JAI/IIO
> Tools at this point. Which is fine, but in that case, they also have
> nothing to lose by releasing the source so the community can support it.
> They're *almost* there with the Java code, it's just the native code
> that is missing.
>
> Anyone at Oracle or Sun listening? PLEASE release the native code
> source!! The community is more than capable of doing relevant builds
> (Mac, 64-bit Linux or Windows, whatever).
>
> Thanks...
>
> -Bob
>
>
> On 2/9/11 8:33 AM, Ken Warner wrote:
>> Java is dead -- stop beating on it. Let it rest in peace.
>>
>> David Clunie wrote:
>>> ... if anything ?
>>>
>>> http://www.apple.com/pr/library/2010/11/12openjdk.html
>>>
>>> given that the issues have been described in the past to have been
>>> "non-technical".
>>>
>>> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
>>> on the Mac has long been a barrier to Java cross-platform applications
>>> for medical imaging, for example, and continue to be so.
>>>
>>> David
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
>>> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>>>
>>>
>>

Rafael Santos Guest
Offline
Joined: 2010-11-18
Points: 0

> Good grief -- your message is just a repeat of what people have been
> saying for the last 10 years!
Oh please, if you want people to give up on Java/JAI you must have
better arguments than that.

Just for the sake of the argument let's suppose you're not a troll. Just
saying "Java is dead" is not going to make it go away, and if you want
to win people's mind, give a better alternative. Remember to factor in
that most (all?) development efforts cannot just switch
languages/frameworks because someone said so, Dilbert's PHB
notwithstanding.

>
> NOTHING HAPPENED!!!!
In the last 10 years I've used Java/JAI to solve several image
processing problems. Some of the applications I developed are still in
use and working. I still have lots of things to develop/deploy, will use
Java/JAI and don't see the point on switching to... what was that
alternative you gave?

Rafael

rgd
Offline
Joined: 2005-08-23
Points: 0

Let's see... 10 years ago was January 2001. At the time we had JDK 1.3,
JAI 1.1.0 was in pre-beta, ImageIO did not yet exist, and no source code
was available. Now we're at JDK 1.6 with 1.7 coming soon, JAI 1.1.3,
IIO is part of the core, we have IIO tools, and all source except the
native libraries is available. And yet you claim nothing happened?

Please get your facts straight.

Yes I'm intentionally taking a very literal interpretation of what you
wrote, and I will not reply further on the subject.

It is true that JAI has not had any signs of activity from Sun/Oracle
for about 2.5 years now. But what is there works. All that is needed
is for Oracle to open-source the native code, and the community will be
able to support it just fine. Everyone out there who would like that,
contact Oracle directly, since I doubt anyone from Oracle is reading
this forum.

We use Java and JAI every day, in mission-critical applications, and are
writing new code in it all the time, primarily GUI code. For science
applications, write once run anywhere works perfectly; apps may have
slight differences but they are irrelevant to our users, who just want
the functionality. We barely have funding to write code once, much less
multiple times for multiple platforms like the old days.

I was very disturbed at Apple's ham-fisted handling of the Java
transition, announcing they were dropping support several weeks before
this announcement came out. Very poor customer relations on Apple's
part; Java support is one reason we're a mostly-Mac shop. But, this
announcement will I believe mean nothing but good things for Java on Mac.

-Bob

On 2/9/11 3:53 PM, Ken Warner wrote:
> Good grief -- your message is just a repeat of what people have been
> saying for the last 10 years!
>
> NOTHING HAPPENED!!!!
>
> Bob Deen wrote:
>> Oh please. It's just as dead as C or C++ is. In other words, not.
>>
>> The Apple/Oracle deal is a very good thing as it ensures we'll
>> continue to have a JDK available for Mac. And it'll probably be better
>> and more up-to-date too, given that it's being produced by those who
>> actually have a stake in the Java platform (Oracle). Because as we all
>> know, Apple couldn't care less about it (an attitude I never have
>> understood, but whatever).
>>
>> As for the native codecs, what needs to happen is for people to bang
>> on Oracle to release the source for the IIO Tools and JAI native
>> packages in a manner similar to what they have for the Java code.
>> There's no evidence that Oracle is particularly inclined to invest
>> much in JAI/IIO Tools at this point. Which is fine, but in that case,
>> they also have nothing to lose by releasing the source so the
>> community can support it. They're *almost* there with the Java code,
>> it's just the native code that is missing.
>>
>> Anyone at Oracle or Sun listening? PLEASE release the native code
>> source!! The community is more than capable of doing relevant builds
>> (Mac, 64-bit Linux or Windows, whatever).
>>
>> Thanks...
>>
>> -Bob
>>
>>
>> On 2/9/11 8:33 AM, Ken Warner wrote:
>>> Java is dead -- stop beating on it. Let it rest in peace.
>>>
>>> David Clunie wrote:
>>>> ... if anything ?
>>>>
>>>> http://www.apple.com/pr/library/2010/11/12openjdk.html
>>>>
>>>> given that the issues have been described in the past to have been
>>>> "non-technical".
>>>>
>>>> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
>>>> on the Mac has long been a barrier to Java cross-platform applications
>>>> for medical imaging, for example, and continue to be so.
>>>>
>>>> David
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
>>>> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
>>> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>>>
>>
>>

demonduck
Offline
Joined: 2008-03-14
Points: 0

For some reason, I keep getting the images of buggy whips and wooden
wagon wheels. There are probably a few people left who make really
good buggy whips and wooden wagon wheels and take pride in doing so.

I don't really know what that means .....

Bob Deen wrote:
> Let's see... 10 years ago was January 2001. At the time we had JDK 1.3,
> JAI 1.1.0 was in pre-beta, ImageIO did not yet exist, and no source code
> was available. Now we're at JDK 1.6 with 1.7 coming soon, JAI 1.1.3,
> IIO is part of the core, we have IIO tools, and all source except the
> native libraries is available. And yet you claim nothing happened?
>
> Please get your facts straight.
>
> Yes I'm intentionally taking a very literal interpretation of what you
> wrote, and I will not reply further on the subject.

Martin Desruiss...
Offline
Joined: 2011-02-09
Points: 0

Hello all

Le 09/02/11 21:07, Bob Deen a écrit :
> There's no evidence that Oracle is particularly inclined to invest much in
> JAI/IIO Tools at this point.

Of course I don't know Oracle intend, but I would guess that Oracle may be more
interrested in JAI/IIO than Sun was, because Oracle is more invested in
geographic applications. "Oracle Spatial" is an important extension of their
Oracle database offering, and Oracle is a principal member of the Open
Geospatial Consortium (OGC - http://www.opengeospatial.org), which means that
they pay a lot of money every years to OGC. Oracle is also quite active at OGC
and a key contributor to ISO 19107 (spatial geometries) among others. Sun was
not even an observer as far as I remember.

Given that spatial data seems a significant part of Oracle business, and given
that raster (i.e. images) are a critical part of spatial data, I would not be
surprised to see Oracle re-invest in JAI. I hope so :)

Note sure if it means anything, but JAI seems to have a new home on java.net
beta (the port of Kenai infrastructure to java.net):

http://java.net/projects/jai/

The code is now hosted on Subversion (cool! - while Mercurial would have been
cool too), and they use JIRA for issue tracking (cool!!)

Regards,

Martin

agirbal
Offline
Joined: 2009-05-04
Points: 0

when I first implemented my photo editor based on jai, I noticed there
was no mac jai native library and basically assumed my app would run in
pure java mode on mac, i.e. unusable.
Was super glad to discover that the medialib native library came
preinstalled on mac, and my app runs super smoothly.
Took me just 2 days to give it a mac feel (keyboard shortcuts etc).
Now thanks to java + swing + jai, I get the same app on all platforms
with no duplicated effort, and runs as fast as native.

I tested it with standard jpeg, so you're saying some other formats on
mac dont have native codecs?
One thing I noticed, the subsample operation fails on mac (bug reported
1y ago).

On another note, it'd be great to also get sources for windows, since
the current available libs were compiled in 32bit only..
AG

On Wed, 2011-02-09 at 12:07 -0800, Bob Deen wrote:
> Oh please. It's just as dead as C or C++ is. In other words, not.
>
> The Apple/Oracle deal is a very good thing as it ensures we'll continue
> to have a JDK available for Mac. And it'll probably be better and more
> up-to-date too, given that it's being produced by those who actually
> have a stake in the Java platform (Oracle). Because as we all know,
> Apple couldn't care less about it (an attitude I never have understood,
> but whatever).
>
> As for the native codecs, what needs to happen is for people to bang on
> Oracle to release the source for the IIO Tools and JAI native packages
> in a manner similar to what they have for the Java code. There's no
> evidence that Oracle is particularly inclined to invest much in JAI/IIO
> Tools at this point. Which is fine, but in that case, they also have
> nothing to lose by releasing the source so the community can support it.
> They're *almost* there with the Java code, it's just the native code
> that is missing.
>
> Anyone at Oracle or Sun listening? PLEASE release the native code
> source!! The community is more than capable of doing relevant builds
> (Mac, 64-bit Linux or Windows, whatever).
>
> Thanks...
>
> -Bob
>
>
> On 2/9/11 8:33 AM, Ken Warner wrote:
> > Java is dead -- stop beating on it. Let it rest in peace.
> >
> > David Clunie wrote:
> >> ... if anything ?
> >>
> >> http://www.apple.com/pr/library/2010/11/12openjdk.html
> >>
> >> given that the issues have been described in the past to have been
> >> "non-technical".
> >>
> >> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
> >> on the Mac has long been a barrier to Java cross-platform applications
> >> for medical imaging, for example, and continue to be so.
> >>
> >> David
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> >> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
> >
>
>

jthaddeus
Offline
Joined: 2005-12-15
Points: 0

"Was super glad to discover that the medialib native library came"

Really? Installed with what? One fellow here has looked on this OS 10.6.6
and can't find it. Nor is it on the old Motorola-based 10.5.8 I use.

On Wed, Feb 9, 2011 at 3:25 PM, Antoine Girbal wrote:

> when I first implemented my photo editor based on jai, I noticed there
> was no mac jai native library and basically assumed my app would run in
> pure java mode on mac, i.e. unusable.
> Was super glad to discover that the medialib native library came
> preinstalled on mac, and my app runs super smoothly.
> Took me just 2 days to give it a mac feel (keyboard shortcuts etc).
> Now thanks to java + swing + jai, I get the same app on all platforms
> with no duplicated effort, and runs as fast as native.
>
> I tested it with standard jpeg, so you're saying some other formats on
> mac dont have native codecs?
> One thing I noticed, the subsample operation fails on mac (bug reported
> 1y ago).
>
> On another note, it'd be great to also get sources for windows, since
> the current available libs were compiled in 32bit only..
> AG
>
> On Wed, 2011-02-09 at 12:07 -0800, Bob Deen wrote:
> > Oh please. It's just as dead as C or C++ is. In other words, not.
> >
> > The Apple/Oracle deal is a very good thing as it ensures we'll continue
> > to have a JDK available for Mac. And it'll probably be better and more
> > up-to-date too, given that it's being produced by those who actually
> > have a stake in the Java platform (Oracle). Because as we all know,
> > Apple couldn't care less about it (an attitude I never have understood,
> > but whatever).
> >
> > As for the native codecs, what needs to happen is for people to bang on
> > Oracle to release the source for the IIO Tools and JAI native packages
> > in a manner similar to what they have for the Java code. There's no
> > evidence that Oracle is particularly inclined to invest much in JAI/IIO
> > Tools at this point. Which is fine, but in that case, they also have
> > nothing to lose by releasing the source so the community can support it.
> > They're *almost* there with the Java code, it's just the native code
> > that is missing.
> >
> > Anyone at Oracle or Sun listening? PLEASE release the native code
> > source!! The community is more than capable of doing relevant builds
> > (Mac, 64-bit Linux or Windows, whatever).
> >
> > Thanks...
> >
> > -Bob
> >
> >
> > On 2/9/11 8:33 AM, Ken Warner wrote:
> > > Java is dead -- stop beating on it. Let it rest in peace.
> > >
> > > David Clunie wrote:
> > >> ... if anything ?
> > >>
> > >> http://www.apple.com/pr/library/2010/11/12openjdk.html
> > >>
> > >> given that the issues have been described in the past to have been
> > >> "non-technical".
> > >>
> > >> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
> > >> on the Mac has long been a barrier to Java cross-platform applications
> > >> for medical imaging, for example, and continue to be so.
> > >>
> > >> David
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> > >> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> > > For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
> >
>
>
>

marconeol
Offline
Joined: 2005-04-30
Points: 0

Hi all.

As far as I know, (a quite old version of) the Java Advanced Imaging (JAI) package comes pre-installed on Mac OS X, and includes a native medialib.

On the other side, the JAI Image I/O Tools (JIIO) are NOT pre-installed on Mac OS X, and one can only use the pure-Java portion of JIIO on Mac, since no Mac-native version of the JIIO native codecs are available.

As David pointed out, this is a serious limitation for medical imaging apps, since several codecs (notably, lossless JPEG and JPEG-LS) are only available in the NATIVE portion of JIIO.

Hope this clarifies previous requests and comments a bit.

Regards,

Marco

From: Thad Humphries [mailto:thad.humphries@gmail.com]
Sent: giovedì 10 febbraio 2011 17:38
To: interest@jai-imageio.dev.java.net
Subject: Re: [JAI-IMAGEIO] JAI IIO native codecs and JAI in general for Mac - What does the Oracle/Apple announcement mean for them ?

"Was super glad to discover that the medialib native library came"

Really? Installed with what? One fellow here has looked on this OS 10.6.6 and can't find it. Nor is it on the old Motorola-based 10.5.8 I use.

On Wed, Feb 9, 2011 at 3:25 PM, Antoine Girbal wrote:

when I first implemented my photo editor based on jai, I noticed there
was no mac jai native library and basically assumed my app would run in
pure java mode on mac, i.e. unusable.
Was super glad to discover that the medialib native library came
preinstalled on mac, and my app runs super smoothly.
Took me just 2 days to give it a mac feel (keyboard shortcuts etc).
Now thanks to java + swing + jai, I get the same app on all platforms
with no duplicated effort, and runs as fast as native.

I tested it with standard jpeg, so you're saying some other formats on
mac dont have native codecs?
One thing I noticed, the subsample operation fails on mac (bug reported
1y ago).

On another note, it'd be great to also get sources for windows, since
the current available libs were compiled in 32bit only..
AG

On Wed, 2011-02-09 at 12:07 -0800, Bob Deen wrote:
> Oh please. It's just as dead as C or C++ is. In other words, not.
>
> The Apple/Oracle deal is a very good thing as it ensures we'll continue
> to have a JDK available for Mac. And it'll probably be better and more
> up-to-date too, given that it's being produced by those who actually
> have a stake in the Java platform (Oracle). Because as we all know,
> Apple couldn't care less about it (an attitude I never have understood,
> but whatever).
>
> As for the native codecs, what needs to happen is for people to bang on
> Oracle to release the source for the IIO Tools and JAI native packages
> in a manner similar to what they have for the Java code. There's no
> evidence that Oracle is particularly inclined to invest much in JAI/IIO
> Tools at this point. Which is fine, but in that case, they also have
> nothing to lose by releasing the source so the community can support it.
> They're *almost* there with the Java code, it's just the native code
> that is missing.
>
> Anyone at Oracle or Sun listening? PLEASE release the native code
> source!! The community is more than capable of doing relevant builds
> (Mac, 64-bit Linux or Windows, whatever).
>
> Thanks...
>
> -Bob
>
>
> On 2/9/11 8:33 AM, Ken Warner wrote:
> > Java is dead -- stop beating on it. Let it rest in peace.
> >
> > David Clunie wrote:
> >> ... if anything ?
> >>
> >> http://www.apple.com/pr/library/2010/11/12openjdk.html
> >>
> >> given that the issues have been described in the past to have been
> >> "non-technical".
> >>
> >> The absence of JAI IIO native codecs (like JPEG-LS and JPEG 12 bits)
> >> on the Mac has long been a barrier to Java cross-platform applications
> >> for medical imaging, for example, and continue to be so.
> >>
> >> David
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> >> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
> >
>
>

agirbal
Offline
Joined: 2009-05-04
Points: 0

My wife got a macbook pro this past christmas, so with recent os, dont
know what precise version.
Java was preinstalled and came up with native medialib acceleration out
of box.

Class<?> mediaLibAccessorClass = Class.forName("com.sun.media.jai.mlib.MediaLibAccessor");
java.lang.reflect.Method method = mediaLibAccessorClass.getMethod("isMediaLibCompatible",
ParameterBlock.class);
Boolean result = (Boolean) method.invoke(null, new ParameterBlock());
mediaLibAccelerationAvailable = result.booleanValue();

All runs fast, the only problems I have faced are..
- mac: subsampleaverage is broken. Means I have to use scale, and result
is not smooth at all.
- mac & windows: either clib library is not available (mac), or cannot
properly extract thumbnails from EXIF. Had to use sanselan. Clib works
well on Linux.
- windows: no 64bit version of mlib/clib

AG

On Thu, 2011-02-10 at 11:37 -0500, Thad Humphries wrote:
> "Was super glad to discover that the medialib native library came"
>
> Really? Installed with what? One fellow here has looked on this OS
> 10.6.6 and can't find it. Nor is it on the old Motorola-based 10.5.8
> I use.
>
> On Wed, Feb 9, 2011 at 3:25 PM, Antoine Girbal
> wrote:
> when I first implemented my photo editor based on jai, I
> noticed there
> was no mac jai native library and basically assumed my app
> would run in
> pure java mode on mac, i.e. unusable.
> Was super glad to discover that the medialib native library
> came
> preinstalled on mac, and my app runs super smoothly.
> Took me just 2 days to give it a mac feel (keyboard shortcuts
> etc).
> Now thanks to java + swing + jai, I get the same app on all
> platforms
> with no duplicated effort, and runs as fast as native.
>
> I tested it with standard jpeg, so you're saying some other
> formats on
> mac dont have native codecs?
> One thing I noticed, the subsample operation fails on mac (bug
> reported
> 1y ago).
>
> On another note, it'd be great to also get sources for
> windows, since
> the current available libs were compiled in 32bit only..
> AG
>
>
> On Wed, 2011-02-09 at 12:07 -0800, Bob Deen wrote:
> > Oh please. It's just as dead as C or C++ is. In other
> words, not.
> >
> > The Apple/Oracle deal is a very good thing as it ensures
> we'll continue
> > to have a JDK available for Mac. And it'll probably be
> better and more
> > up-to-date too, given that it's being produced by those who
> actually
> > have a stake in the Java platform (Oracle). Because as we
> all know,
> > Apple couldn't care less about it (an attitude I never have
> understood,
> > but whatever).
> >
> > As for the native codecs, what needs to happen is for people
> to bang on
> > Oracle to release the source for the IIO Tools and JAI
> native packages
> > in a manner similar to what they have for the Java code.
> There's no
> > evidence that Oracle is particularly inclined to invest much
> in JAI/IIO
> > Tools at this point. Which is fine, but in that case, they
> also have
> > nothing to lose by releasing the source so the community can
> support it.
> > They're *almost* there with the Java code, it's just the
> native code
> > that is missing.
> >
> > Anyone at Oracle or Sun listening? PLEASE release the
> native code
> > source!! The community is more than capable of doing
> relevant builds
> > (Mac, 64-bit Linux or Windows, whatever).
> >
> > Thanks...
> >
> > -Bob
> >
> >
> > On 2/9/11 8:33 AM, Ken Warner wrote:
> > > Java is dead -- stop beating on it. Let it rest in peace.
> > >
> > > David Clunie wrote:
> > >> ... if anything ?
> > >>
> > >> http://www.apple.com/pr/library/2010/11/12openjdk.html
> > >>
> > >> given that the issues have been described in the past to
> have been
> > >> "non-technical".
> > >>
> > >> The absence of JAI IIO native codecs (like JPEG-LS and
> JPEG 12 bits)
> > >> on the Mac has long been a barrier to Java cross-platform
> applications
> > >> for medical imaging, for example, and continue to be so.
> > >>
> > >> David
> > >>
> > >>
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > >> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
> > >>
> > >>
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > > For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
>
>
>
>
>

bruehlicke
Offline
Joined: 2005-04-18
Points: 0

The Native C source is in the mlib-src tar bal from
http://dlc.sun.com/osol/devpro/downloads/current/ under CDDL licesne.
Please not that the 2.5.1 version is also on Kenai under:
http://kenai.com/projects/openmlib

What I have not been able todo is to find the source for the JNI
wrappwer jar (mlibwrapper_jai.jar) - any of you know if that ever
was made public domain ?

Thanx
B-)

On Thu, Feb 10, 2011 at 10:50 AM, Antoine Girbal wrote:
> My wife got a macbook pro this past christmas, so with recent os, dont
> know what precise version.
> Java was preinstalled and came up with native medialib acceleration out
> of box.
>
>                        Class<?> mediaLibAccessorClass = Class.forName("com.sun.media.jai.mlib.MediaLibAccessor");
>                        java.lang.reflect.Method method = mediaLibAccessorClass.getMethod("isMediaLibCompatible",
>                                ParameterBlock.class);
>                        Boolean result = (Boolean) method.invoke(null, new ParameterBlock());
>                        mediaLibAccelerationAvailable = result.booleanValue();
>
> All runs fast, the only problems I have faced are..
> - mac: subsampleaverage is broken. Means I have to use scale, and result
> is not smooth at all.
> - mac & windows: either clib library is not available (mac), or cannot
> properly extract thumbnails from EXIF. Had to use sanselan. Clib works
> well on Linux.
> - windows: no 64bit version of mlib/clib
>
> AG
>
> On Thu, 2011-02-10 at 11:37 -0500, Thad Humphries wrote:
>> "Was super glad to discover that the medialib native library came"
>>
>> Really? Installed with what?  One fellow here has looked on this OS
>> 10.6.6 and can't find it.  Nor is it on the old Motorola-based 10.5.8
>> I use.
>>
>> On Wed, Feb 9, 2011 at 3:25 PM, Antoine Girbal
>> wrote:
>>         when I first implemented my photo editor based on jai, I
>>         noticed there
>>         was no mac jai native library and basically assumed my app
>>         would run in
>>         pure java mode on mac, i.e. unusable.
>>         Was super glad to discover that the medialib native library
>>         came
>>         preinstalled on mac, and my app runs super smoothly.
>>         Took me just 2 days to give it a mac feel (keyboard shortcuts
>>         etc).
>>         Now thanks to java + swing + jai, I get the same app on all
>>         platforms
>>         with no duplicated effort, and runs as fast as native.
>>
>>         I tested it with standard jpeg, so you're saying some other
>>         formats on
>>         mac dont have native codecs?
>>         One thing I noticed, the subsample operation fails on mac (bug
>>         reported
>>         1y ago).
>>
>>         On another note, it'd be great to also get sources for
>>         windows, since
>>         the current available libs were compiled in 32bit only..
>>         AG
>>
>>
>>         On Wed, 2011-02-09 at 12:07 -0800, Bob Deen wrote:
>>         > Oh please.  It's just as dead as C or C++ is.  In other
>>         words, not.
>>         >
>>         > The Apple/Oracle deal is a very good thing as it ensures
>>         we'll continue
>>         > to have a JDK available for Mac.  And it'll probably be
>>         better and more
>>         > up-to-date too, given that it's being produced by those who
>>         actually
>>         > have a stake in the Java platform (Oracle).  Because as we
>>         all know,
>>         > Apple couldn't care less about it (an attitude I never have
>>         understood,
>>         > but whatever).
>>         >
>>         > As for the native codecs, what needs to happen is for people
>>         to bang on
>>         > Oracle to release the source for the IIO Tools and JAI
>>         native packages
>>         > in a manner similar to what they have for the Java code.
>>          There's no
>>         > evidence that Oracle is particularly inclined to invest much
>>         in JAI/IIO
>>         > Tools at this point.  Which is fine, but in that case, they
>>         also have
>>         > nothing to lose by releasing the source so the community can
>>         support it.
>>         >   They're *almost* there with the Java code, it's just the
>>         native code
>>         > that is missing.
>>         >
>>         > Anyone at Oracle or Sun listening?  PLEASE release the
>>         native code
>>         > source!!  The community is more than capable of doing
>>         relevant builds
>>         > (Mac, 64-bit Linux or Windows, whatever).
>>         >
>>         > Thanks...
>>         >
>>         > -Bob
>>         >
>>         >
>>         > On 2/9/11 8:33 AM, Ken Warner wrote:
>>         > > Java is dead -- stop beating on it. Let it rest in peace.
>>         > >
>>         > > David Clunie wrote:
>>         > >> ... if anything ?
>>         > >>
>>         > >> http://www.apple.com/pr/library/2010/11/12openjdk.html
>>         > >>
>>         > >> given that the issues have been described in the past to
>>         have been
>>         > >> "non-technical".
>>         > >>
>>         > >> The absence of JAI IIO native codecs (like JPEG-LS and
>>         JPEG 12 bits)
>>         > >> on the Mac has long been a barrier to Java cross-platform
>>         applications
>>         > >> for medical imaging, for example, and continue to be so.
>>         > >>
>>         > >> David
>>         > >>
>>         > >>
>>         ---------------------------------------------------------------------
>>         > >> To unsubscribe, e-mail:
>>         interest-unsubscribe@jai-imageio.dev.java.net
>>         > >> For additional commands, e-mail:
>>         interest-help@jai-imageio.dev.java.net
>>         > >>
>>         > >>
>>         > >
>>         > >
>>         ---------------------------------------------------------------------
>>         > > To unsubscribe, e-mail:
>>         interest-unsubscribe@jai-imageio.dev.java.net
>>         > > For additional commands, e-mail:
>>         interest-help@jai-imageio.dev.java.net
>>         > >
>>         >
>>         >
>>         >
>>         ---------------------------------------------------------------------
>>         > To unsubscribe, e-mail:
>>         interest-unsubscribe@jai-imageio.dev.java.net
>>         > For additional commands, e-mail:
>>         interest-help@jai-imageio.dev.java.net
>>         >
>>
>>
>>
>>         ---------------------------------------------------------------------
>>         To unsubscribe, e-mail:
>>         interest-unsubscribe@jai-imageio.dev.java.net
>>         For additional commands, e-mail:
>>         interest-help@jai-imageio.dev.java.net
>>
>>
>>
>>
>>