diff options
author | Matteo F. Vescovi <mfv.debian@gmail.com> | 2013-08-20 09:53:19 +0100 |
---|---|---|
committer | Matteo F. Vescovi <mfv.debian@gmail.com> | 2013-08-20 09:53:19 +0100 |
commit | 66e5d9e2915733247bca47d077414ec2594aedad (patch) | |
tree | f4070a31bf015e159dadd34378cda703d8f6edea /src/jniglue/org/OpenColorIO |
opencolorio (1.0.8~dfsg0-2) unstable; urgency=low
* debian/rules: get-orig-source stuff added
* debian/rules: useless dh addon removed
* debian/rules: License.txt duplicate removed
* debian/rules: SSE optimization disabled (Closes: #719174)
* debian/libopencolorio1.symbols: file removed (Closes: #719175)
# imported from the archive
Diffstat (limited to 'src/jniglue/org/OpenColorIO')
32 files changed, 1610 insertions, 0 deletions
diff --git a/src/jniglue/org/OpenColorIO/Allocation.java b/src/jniglue/org/OpenColorIO/Allocation.java new file mode 100644 index 0000000..3d80251 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Allocation.java @@ -0,0 +1,44 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Allocation extends LoadLibrary +{ + private final int m_enum; + protected Allocation(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final Allocation + ALLOCATION_UNKNOWN = new Allocation(0); + public static final Allocation + ALLOCATION_UNIFORM = new Allocation(1); + public static final Allocation + ALLOCATION_LG2 = new Allocation(2); +} diff --git a/src/jniglue/org/OpenColorIO/AllocationTransform.java b/src/jniglue/org/OpenColorIO/AllocationTransform.java new file mode 100644 index 0000000..b116d18 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/AllocationTransform.java @@ -0,0 +1,42 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class AllocationTransform extends Transform +{ + public AllocationTransform() { super(); } + protected AllocationTransform(long impl) { super(impl); } + public native AllocationTransform Create(); + public native Allocation getAllocation(); + public native void setAllocation(Allocation allocation); + public native int getNumVars(); + public native void getVars(float[] vars); + public native void setVars(int numvars, float[] vars); +} diff --git a/src/jniglue/org/OpenColorIO/Baker.java b/src/jniglue/org/OpenColorIO/Baker.java new file mode 100644 index 0000000..0464753 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Baker.java @@ -0,0 +1,62 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Baker extends LoadLibrary +{ + public Baker() { super(); } + protected Baker(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Baker Create(); + public native Baker createEditableCopy(); + public native void setConfig(Config config); + public native Config getConfig(); + public native void setFormat(String formatName); + public native String getFormat(); + public native void setType(String type); + public native String getType(); + public native void setMetadata(String metadata); + public native String getMetadata(); + public native void setInputSpace(String inputSpace); + public native String getInputSpace(); + public native void setShaperSpace(String shaperSpace); + public native String getShaperSpace(); + public native void setTargetSpace(String targetSpace); + public native String getTargetSpace(); + public native void setShaperSize(int shapersize); + public native int getShaperSize(); + public native void setCubeSize(int cubesize); + public native int getCubeSize(); + public native String bake(); + public native int getNumFormats(); + public native String getFormatNameByIndex(int index); + public native String getFormatExtensionByIndex(int index); +} diff --git a/src/jniglue/org/OpenColorIO/BitDepth.java b/src/jniglue/org/OpenColorIO/BitDepth.java new file mode 100644 index 0000000..afa0543 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/BitDepth.java @@ -0,0 +1,56 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class BitDepth extends LoadLibrary +{ + private final int m_enum; + protected BitDepth(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final BitDepth + BIT_DEPTH_UNKNOWN = new BitDepth(0); + public static final BitDepth + BIT_DEPTH_UINT8 = new BitDepth(1); + public static final BitDepth + BIT_DEPTH_UINT10 = new BitDepth(2); + public static final BitDepth + BIT_DEPTH_UINT12 = new BitDepth(3); + public static final BitDepth + BIT_DEPTH_UINT14 = new BitDepth(4); + public static final BitDepth + BIT_DEPTH_UINT16 = new BitDepth(5); + public static final BitDepth + BIT_DEPTH_UINT32 = new BitDepth(6); + public static final BitDepth + BIT_DEPTH_F16 = new BitDepth(7); + public static final BitDepth + BIT_DEPTH_F32 = new BitDepth(8); +} diff --git a/src/jniglue/org/OpenColorIO/CDLTransform.java b/src/jniglue/org/OpenColorIO/CDLTransform.java new file mode 100644 index 0000000..ce0fd00 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/CDLTransform.java @@ -0,0 +1,56 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class CDLTransform extends Transform +{ + public CDLTransform() { super(); } + protected CDLTransform(long impl) { super(impl); } + public native CDLTransform Create(); + public native CDLTransform CreateFromFile(String src, String cccid); + public native boolean equals(CDLTransform obj); + public native String getXML(); + public native void setXML(String xml); + public native void setSlope(float[] rgb); + public native void getSlope(float[] rgb); + public native void setOffset(float[] rgb); + public native void getOffset(float[] rgb); + public native void setPower(float[] rgb); + public native void getPower(float[] rgb); + public native void setSOP(float[] vec9); + public native void getSOP(float[] vec9); + public native void setSat(float sat); + public native float getSat(); + public native void getSatLumaCoefs(float[] rgb); + public native void setID(String id); + public native String getID(); + public native void setDescription(String desc); + public native String getDescription(); +} diff --git a/src/jniglue/org/OpenColorIO/ColorSpace.java b/src/jniglue/org/OpenColorIO/ColorSpace.java new file mode 100644 index 0000000..11e7198 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ColorSpace.java @@ -0,0 +1,59 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ColorSpace extends LoadLibrary +{ + public ColorSpace() { super(); } + protected ColorSpace(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native ColorSpace Create(); + public native ColorSpace createEditableCopy(); + public native String getName(); + public native void setName(String name); + public native String getFamily(); + public native void setFamily(String family); + public native String getEqualityGroup(); + public native void setEqualityGroup(String equalityGroup); + public native String getDescription(); + public native void setDescription(String description); + public native BitDepth getBitDepth(); + public native void setBitDepth(BitDepth bitDepth); + public native boolean isData(); + public native void setIsData(boolean isData); + public native Allocation getAllocation(); + public native void setAllocation(Allocation allocation); + public native int getAllocationNumVars(); + public native void getAllocationVars(float[] vars); + public native void setAllocationVars(int numvars, float[] vars); + public native Transform getTransform(ColorSpaceDirection dir); + public native void setTransform(Transform transform, ColorSpaceDirection dir); +} diff --git a/src/jniglue/org/OpenColorIO/ColorSpaceDirection.java b/src/jniglue/org/OpenColorIO/ColorSpaceDirection.java new file mode 100644 index 0000000..a822f6e --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ColorSpaceDirection.java @@ -0,0 +1,44 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ColorSpaceDirection extends LoadLibrary +{ + private final int m_enum; + protected ColorSpaceDirection(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final ColorSpaceDirection + COLORSPACE_DIR_UNKNOWN = new ColorSpaceDirection(0); + public static final ColorSpaceDirection + COLORSPACE_DIR_TO_REFERENCE = new ColorSpaceDirection(1); + public static final ColorSpaceDirection + COLORSPACE_DIR_FROM_REFERENCE = new ColorSpaceDirection(2); +} diff --git a/src/jniglue/org/OpenColorIO/ColorSpaceTransform.java b/src/jniglue/org/OpenColorIO/ColorSpaceTransform.java new file mode 100644 index 0000000..ffc856b --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ColorSpaceTransform.java @@ -0,0 +1,41 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ColorSpaceTransform extends Transform +{ + public ColorSpaceTransform() { super(); } + protected ColorSpaceTransform(long impl) { super(impl); } + public native ColorSpaceTransform Create(); + public native String getSrc(); + public native void setSrc(String src); + public native String getDst(); + public native void setDst(String dst); +} diff --git a/src/jniglue/org/OpenColorIO/Config.java b/src/jniglue/org/OpenColorIO/Config.java new file mode 100644 index 0000000..f35ca65 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Config.java @@ -0,0 +1,96 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Config extends LoadLibrary +{ + public Config() { super(); } + protected Config(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Config Create(); + public native Config CreateFromEnv(); + public native Config CreateFromFile(String filename); + public native Config CreateFromStream(String istream); + public native Config createEditableCopy(); + public native void sanityCheck(); + public native String getDescription(); + public native void setDescription(String description); + public native String serialize(); + public native String getCacheID(); + public native String getCacheID(Context context); + public native Context getCurrentContext(); + public native String getSearchPath(); + public native void setSearchPath(String path); + public native String getWorkingDir(); + public native void setWorkingDir(String dirname); + public native int getNumColorSpaces(); + public native String getColorSpaceNameByIndex(int index); + public native ColorSpace getColorSpace(String name); + public native int getIndexForColorSpace(String name); + public native void addColorSpace(ColorSpace cs); + public native void clearColorSpaces(); + public native String parseColorSpaceFromString(String str); + public native boolean isStrictParsingEnabled(); + public native void setStrictParsingEnabled(boolean enabled); + public native void setRole(String role, String colorSpaceName); + public native int getNumRoles(); + public native boolean hasRole(String role); + public native String getRoleName(int index); + public native String getDefaultDisplay(); + public native int getNumDisplays(); + public native String getDisplay(int index); + public native String getDefaultView(String display); + public native int getNumViews(String display); + public native String getView(String display, int index); + public native String getDisplayColorSpaceName(String display, String view); + public native String getDisplayLooks(String display, String view); + // TODO: seems that 4 string params causes a memory error in the JNI layer? + // public native void addDisplay(String display, String view, String colorSpaceName, int looks); + public native void clearDisplays(); + public native void setActiveDisplays(String displays); + public native String getActiveDisplays(); + public native void setActiveViews(String views); + public native String getActiveViews(); + public native void getDefaultLumaCoefs(float[] rgb); + public native void setDefaultLumaCoefs(float[] rgb); + public native Look getLook(String name); + public native int getNumLooks(); + public native String getLookNameByIndex(int index); + public native void addLook(Look look); + public native void clearLooks(); + public native Processor getProcessor(Context context, ColorSpace srcColorSpace, ColorSpace dstColorSpace); + public native Processor getProcessor(ColorSpace srcColorSpace, ColorSpace dstColorSpace); + public native Processor getProcessor(String srcName, String dstName); + public native Processor getProcessor(Context context, String srcName, String dstName); + public native Processor getProcessor(Transform transform); + public native Processor getProcessor(Transform transform, TransformDirection direction); + public native Processor getProcessor(Context context, Transform transform, TransformDirection direction); +} diff --git a/src/jniglue/org/OpenColorIO/Context.java b/src/jniglue/org/OpenColorIO/Context.java new file mode 100644 index 0000000..eaec345 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Context.java @@ -0,0 +1,52 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Context extends LoadLibrary +{ + public Context() { super(); } + protected Context(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Context Create(); + public native Context createEditableCopy(); + public native String getCacheID(); + public native void setSearchPath(String path); + public native String getSearchPath(); + public native void setWorkingDir(String dirname); + public native String getWorkingDir(); + public native void setStringVar(String name, String value); + public native String getStringVar(String name); + public native int getNumStringVars(); + public native String getStringVarNameByIndex(int index); + public native void loadEnvironment(); + public native String resolveStringVar(String val); + public native String resolveFileLocation(String filename) throws ExceptionMissingFile; +} diff --git a/src/jniglue/org/OpenColorIO/DisplayTransform.java b/src/jniglue/org/OpenColorIO/DisplayTransform.java new file mode 100644 index 0000000..0867029 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/DisplayTransform.java @@ -0,0 +1,55 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class DisplayTransform extends Transform +{ + public DisplayTransform() { super(); } + protected DisplayTransform(long impl) { super(impl); } + public native DisplayTransform Create(); + public native void setInputColorSpaceName(String name); + public native String getInputColorSpaceName(); + public native void setLinearCC(Transform cc); + public native Transform getLinearCC(); + public native void setColorTimingCC(Transform cc); + public native Transform getColorTimingCC(); + public native void setChannelView(Transform transform); + public native Transform getChannelView(); + public native void setDisplay(String display); + public native String getDisplay(); + public native void setView(String view); + public native String getView(); + public native void setDisplayCC(Transform cc); + public native Transform getDisplayCC(); + public native void setLooksOverride(String looks); + public native String getLooksOverride(); + public native void setLooksOverrideEnabled(boolean enabled); + public native boolean getLooksOverrideEnabled(); +} diff --git a/src/jniglue/org/OpenColorIO/ExceptionBase.java b/src/jniglue/org/OpenColorIO/ExceptionBase.java new file mode 100644 index 0000000..ba8639f --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ExceptionBase.java @@ -0,0 +1,37 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ExceptionBase extends java.lang.Exception +{ + public ExceptionBase(String msg) { + super(msg); + } +} diff --git a/src/jniglue/org/OpenColorIO/ExceptionMissingFile.java b/src/jniglue/org/OpenColorIO/ExceptionMissingFile.java new file mode 100644 index 0000000..a0c79ef --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ExceptionMissingFile.java @@ -0,0 +1,37 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ExceptionMissingFile extends ExceptionBase +{ + public ExceptionMissingFile(String msg) { + super(msg); + } +} diff --git a/src/jniglue/org/OpenColorIO/ExponentTransform.java b/src/jniglue/org/OpenColorIO/ExponentTransform.java new file mode 100644 index 0000000..4f763a9 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ExponentTransform.java @@ -0,0 +1,39 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ExponentTransform extends Transform +{ + public ExponentTransform() { super(); } + protected ExponentTransform(long impl) { super(impl); } + public native ExponentTransform Create(); + public native void setValue(float[] vec4); + public native void getValue(float[] vec4); +} diff --git a/src/jniglue/org/OpenColorIO/FileTransform.java b/src/jniglue/org/OpenColorIO/FileTransform.java new file mode 100644 index 0000000..bfe55cc --- /dev/null +++ b/src/jniglue/org/OpenColorIO/FileTransform.java @@ -0,0 +1,46 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class FileTransform extends Transform +{ + public FileTransform() { super(); } + protected FileTransform(long impl) { super(impl); } + public native FileTransform Create(); + public native String getSrc(); + public native void setSrc(String src); + public native String getCCCId(); + public native void setCCCId(String id); + public native Interpolation getInterpolation(); + public native void setInterpolation(Interpolation interp); + public native int getNumFormats(); + public native String getFormatNameByIndex(int index); + public native String getFormatExtensionByIndex(int index); +} diff --git a/src/jniglue/org/OpenColorIO/Globals.java b/src/jniglue/org/OpenColorIO/Globals.java new file mode 100644 index 0000000..5273bd7 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Globals.java @@ -0,0 +1,78 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Globals extends LoadLibrary +{ + public native void ClearAllCaches(); + public native String GetVersion(); + public native int GetVersionHex(); + public native LoggingLevel GetLoggingLevel(); + public native void SetLoggingLevel(LoggingLevel level); + public native Config GetCurrentConfig(); + public native void SetCurrentConfig(Config config); + + // Types + public native String BoolToString(boolean val); + public native boolean BoolFromString(String s); + public native String LoggingLevelToString(LoggingLevel level); + public native LoggingLevel LoggingLevelFromString(String s); + public native String TransformDirectionToString(TransformDirection dir); + public native TransformDirection TransformDirectionFromString(String s); + public native TransformDirection GetInverseTransformDirection(TransformDirection dir); + public native TransformDirection CombineTransformDirections(TransformDirection d1, TransformDirection d2); + public native String ColorSpaceDirectionToString(ColorSpaceDirection dir); + public native ColorSpaceDirection ColorSpaceDirectionFromString(String s); + public native String BitDepthToString(BitDepth bitDepth); + public native BitDepth BitDepthFromString(String s); + public native boolean BitDepthIsFloat(BitDepth bitDepth); + public native int BitDepthToInt(BitDepth bitDepth); + public native String AllocationToString(Allocation allocation); + public native Allocation AllocationFromString(String s); + public native String InterpolationToString(Interpolation interp); + public native Interpolation InterpolationFromString(String s); + public native String GpuLanguageToString(GpuLanguage language); + public native GpuLanguage GpuLanguageFromString(String s); + + // Roles + public String ROLE_DEFAULT; + public String ROLE_REFERENCE; + public String ROLE_DATA; + public String ROLE_COLOR_PICKING; + public String ROLE_SCENE_LINEAR; + public String ROLE_COMPOSITING_LOG; + public String ROLE_COLOR_TIMING; + public String ROLE_TEXTURE_PAINT; + public String ROLE_MATTE_PAINT; + + // + public Globals() { super(); create(); } + private native void create(); +} diff --git a/src/jniglue/org/OpenColorIO/GpuLanguage.java b/src/jniglue/org/OpenColorIO/GpuLanguage.java new file mode 100644 index 0000000..3368a88 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/GpuLanguage.java @@ -0,0 +1,46 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class GpuLanguage extends LoadLibrary +{ + private final int m_enum; + protected GpuLanguage(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final GpuLanguage + GPU_LANGUAGE_UNKNOWN = new GpuLanguage(0); + public static final GpuLanguage + GPU_LANGUAGE_CG = new GpuLanguage(1); + public static final GpuLanguage + GPU_LANGUAGE_GLSL_1_0 = new GpuLanguage(2); + public static final GpuLanguage + GPU_LANGUAGE_GLSL_1_3 = new GpuLanguage(3); +} diff --git a/src/jniglue/org/OpenColorIO/GpuShaderDesc.java b/src/jniglue/org/OpenColorIO/GpuShaderDesc.java new file mode 100644 index 0000000..bdaf855 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/GpuShaderDesc.java @@ -0,0 +1,46 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class GpuShaderDesc extends LoadLibrary +{ + public GpuShaderDesc() { super(); create(); } + protected GpuShaderDesc(long impl) { super(impl); } + private native void create(); + public native void dispose(); + protected void finalize() { dispose(); } + public native void setLanguage(GpuLanguage lang); + public native GpuLanguage getLanguage(); + public native void setFunctionName(String name); + public native String getFunctionName(); + public native void setLut3DEdgeLen(int len); + public native int getLut3DEdgeLen(); + public native String getCacheID(); +}; diff --git a/src/jniglue/org/OpenColorIO/GroupTransform.java b/src/jniglue/org/OpenColorIO/GroupTransform.java new file mode 100644 index 0000000..b0a24e6 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/GroupTransform.java @@ -0,0 +1,42 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class GroupTransform extends Transform +{ + public GroupTransform() { super(); } + protected GroupTransform(long impl) { super(impl); } + public native GroupTransform Create(); + public native Transform getTransform(int index); + public native int size(); + public native void push_back(Transform transform); + public native void clear(); + public native boolean empty(); +} diff --git a/src/jniglue/org/OpenColorIO/ImageDesc.java b/src/jniglue/org/OpenColorIO/ImageDesc.java new file mode 100644 index 0000000..f442ca1 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/ImageDesc.java @@ -0,0 +1,36 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class ImageDesc extends LoadLibrary +{ + public ImageDesc() { super(); } + protected ImageDesc(long impl) { super(impl); } +}; diff --git a/src/jniglue/org/OpenColorIO/Interpolation.java b/src/jniglue/org/OpenColorIO/Interpolation.java new file mode 100644 index 0000000..f807d99 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Interpolation.java @@ -0,0 +1,48 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Interpolation extends LoadLibrary +{ + private final int m_enum; + protected Interpolation(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final Interpolation + INTERP_UNKNOWN = new Interpolation(0); + public static final Interpolation + INTERP_NEAREST = new Interpolation(1); + public static final Interpolation + INTERP_LINEAR = new Interpolation(2); + public static final Interpolation + INTERP_TETRAHEDRAL = new Interpolation(3); + public static final Interpolation + INTERP_BEST = new Interpolation(255); +} diff --git a/src/jniglue/org/OpenColorIO/LogTransform.java b/src/jniglue/org/OpenColorIO/LogTransform.java new file mode 100644 index 0000000..0f5b435 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/LogTransform.java @@ -0,0 +1,39 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class LogTransform extends Transform +{ + public LogTransform() { super(); } + protected LogTransform(long impl) { super(impl); } + public native LogTransform Create(); + public native void setBase(float val); + public native float getBase(); +} diff --git a/src/jniglue/org/OpenColorIO/LoggingLevel.java b/src/jniglue/org/OpenColorIO/LoggingLevel.java new file mode 100644 index 0000000..a8106e4 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/LoggingLevel.java @@ -0,0 +1,48 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class LoggingLevel extends LoadLibrary +{ + private final int m_enum; + protected LoggingLevel(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final LoggingLevel + LOGGING_LEVEL_NONE = new LoggingLevel(0); + public static final LoggingLevel + LOGGING_LEVEL_WARNING = new LoggingLevel(1); + public static final LoggingLevel + LOGGING_LEVEL_INFO = new LoggingLevel(2); + public static final LoggingLevel + LOGGING_LEVEL_DEBUG = new LoggingLevel(3); + public static final LoggingLevel + LOGGING_LEVEL_UNKNOWN = new LoggingLevel(255); +} diff --git a/src/jniglue/org/OpenColorIO/Look.java b/src/jniglue/org/OpenColorIO/Look.java new file mode 100644 index 0000000..c2fb0ef --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Look.java @@ -0,0 +1,48 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Look extends LoadLibrary +{ + public Look() { super(); } + protected Look(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Look Create(); + public native String getName(); + public native void setName(String name); + public native String getProcessSpace(); + public native void setProcessSpace(String processSpace); + public native Transform getTransform(); + public native void setTransform(Transform transform); + public native Transform getInverseTransform(); + public native void setInverseTransform(Transform transform); +}; + diff --git a/src/jniglue/org/OpenColorIO/LookTransform.java b/src/jniglue/org/OpenColorIO/LookTransform.java new file mode 100644 index 0000000..a6ca6b3 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/LookTransform.java @@ -0,0 +1,43 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class LookTransform extends Transform +{ + public LookTransform() { super(); } + protected LookTransform(long impl) { super(impl); } + public native LookTransform Create(); + public native String getSrc(); + public native void setSrc(String src); + public native String getDst(); + public native void setDst(String dst); + public native void setLooks(String looks); + public native String getLooks(); +} diff --git a/src/jniglue/org/OpenColorIO/MatrixTransform.java b/src/jniglue/org/OpenColorIO/MatrixTransform.java new file mode 100644 index 0000000..d4560f1 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/MatrixTransform.java @@ -0,0 +1,54 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class MatrixTransform extends Transform +{ + public MatrixTransform() { super(); } + protected MatrixTransform(long impl) { super(impl); } + public native MatrixTransform Create(); + public native boolean equals(MatrixTransform obj); + public native void setValue(float[] m44, float[] offset4); + public native void getValue(float[] m44, float[] offset4); + public native void setMatrix(float[] m44); + public native void getMatrix(float[] m44); + public native void setOffset(float[] offset4); + public native void getOffset(float[] offset4); + public native void Fit(float[] m44, float[] offset4, + float[] oldmin4, float[] oldmax4, + float[] newmin4, float[] newmax4); + public native void Identity(float[] m44, float[] offset4); + public native void Sat(float[] m44, float[] offset4, + float sat, float[] lumaCoef3); + public native void Scale(float[] m44, float[] offset4, + float[] scale4); + public native void View(float[] m44, float[] offset4, + int[] channelHot4, float[] lumaCoef3); +} diff --git a/src/jniglue/org/OpenColorIO/PackedImageDesc.java b/src/jniglue/org/OpenColorIO/PackedImageDesc.java new file mode 100644 index 0000000..8cc6932 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/PackedImageDesc.java @@ -0,0 +1,59 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; +import java.nio.FloatBuffer; + +public class PackedImageDesc extends ImageDesc +{ + public PackedImageDesc(FloatBuffer data, long width, long height, long numChannels) + { + super(); + create(data, width, height, numChannels); + } + public PackedImageDesc(FloatBuffer data, long width, long height, long numChannels, + long chanStrideBytes, long xStrideBytes, long yStrideBytes) + { + super(); + create(data, width, height, numChannels, chanStrideBytes, xStrideBytes, yStrideBytes); + } + protected PackedImageDesc(long impl) { super(impl); } + protected native void create(FloatBuffer data, long width, long height, long numChannels); + protected native void create(FloatBuffer data, long width, long height, long numChannels, + long chanStrideBytes, long xStrideBytes, long yStrideBytes); + public native void dispose(); + protected void finalize() { dispose(); } + public native FloatBuffer getData(); + public native long getWidth(); + public native long getHeight(); + public native long getNumChannels(); + public native long getChanStrideBytes(); + public native long getXStrideBytes(); + public native long getYStrideBytes(); +}; diff --git a/src/jniglue/org/OpenColorIO/PlanarImageDesc.java b/src/jniglue/org/OpenColorIO/PlanarImageDesc.java new file mode 100644 index 0000000..86fc5de --- /dev/null +++ b/src/jniglue/org/OpenColorIO/PlanarImageDesc.java @@ -0,0 +1,63 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; +import java.nio.FloatBuffer; + +public class PlanarImageDesc extends ImageDesc +{ + public PlanarImageDesc(FloatBuffer rData, FloatBuffer gData, FloatBuffer bData, + FloatBuffer aData, long width, long height) + { + super(); + create(rData, gData, bData, aData, width, height); + } + public PlanarImageDesc(FloatBuffer rData, FloatBuffer gData, FloatBuffer bData, + FloatBuffer aData, long width, long height, + long yStrideBytes) + { + super(); + create(rData, gData, bData, aData, width, height, yStrideBytes); + } + protected PlanarImageDesc(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + protected native void create(FloatBuffer rData, FloatBuffer gData, FloatBuffer bData, + FloatBuffer aData, long width, long height); + protected native void create(FloatBuffer rData, FloatBuffer gData, FloatBuffer bData, + FloatBuffer aData, long width, long height, + long yStrideBytes); + public native FloatBuffer getRData(); + public native FloatBuffer getGData(); + public native FloatBuffer getBData(); + public native FloatBuffer getAData(); + public native long getWidth(); + public native long getHeight(); + public native long getYStrideBytes(); +}; diff --git a/src/jniglue/org/OpenColorIO/Processor.java b/src/jniglue/org/OpenColorIO/Processor.java new file mode 100644 index 0000000..a999992 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Processor.java @@ -0,0 +1,51 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; +import java.nio.FloatBuffer; + +public class Processor extends LoadLibrary +{ + public Processor() { super(); } + protected Processor(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Processor Create(); + public native boolean isNoOp(); + public native boolean hasChannelCrosstalk(); + public native void apply(ImageDesc img); + public native void applyRGB(float[] pixel); + public native void applyRGBA(float[] pixel); + public native String getCpuCacheID(); + public native String getGpuShaderText(GpuShaderDesc shaderDesc); + public native String getGpuShaderTextCacheID(GpuShaderDesc shaderDesc); + public native void getGpuLut3D(FloatBuffer lut3d, GpuShaderDesc shaderDesc); + public native String getGpuLut3DCacheID(GpuShaderDesc shaderDesc); +}; + diff --git a/src/jniglue/org/OpenColorIO/Transform.java b/src/jniglue/org/OpenColorIO/Transform.java new file mode 100644 index 0000000..52c6fb5 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/Transform.java @@ -0,0 +1,41 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class Transform extends LoadLibrary +{ + public Transform() { super(); } + protected Transform(long impl) { super(impl); } + public native void dispose(); + protected void finalize() { dispose(); } + public native Transform createEditableCopy(); + public native TransformDirection getDirection(); + public native void setDirection(TransformDirection dir); +} diff --git a/src/jniglue/org/OpenColorIO/TransformDirection.java b/src/jniglue/org/OpenColorIO/TransformDirection.java new file mode 100644 index 0000000..b034b5a --- /dev/null +++ b/src/jniglue/org/OpenColorIO/TransformDirection.java @@ -0,0 +1,44 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class TransformDirection extends LoadLibrary +{ + private final int m_enum; + protected TransformDirection(int type) { super(); m_enum = type; } + public native String toString(); + public native boolean equals(Object obj); + public static final TransformDirection + TRANSFORM_DIR_UNKNOWN = new TransformDirection(0); + public static final TransformDirection + TRANSFORM_DIR_FORWARD = new TransformDirection(1); + public static final TransformDirection + TRANSFORM_DIR_INVERSE = new TransformDirection(2); +} diff --git a/src/jniglue/org/OpenColorIO/TruelightTransform.java b/src/jniglue/org/OpenColorIO/TruelightTransform.java new file mode 100644 index 0000000..1d966e9 --- /dev/null +++ b/src/jniglue/org/OpenColorIO/TruelightTransform.java @@ -0,0 +1,58 @@ +/* +Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of Sony Pictures Imageworks nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +package org.OpenColorIO; +import org.OpenColorIO.*; + +public class TruelightTransform extends Transform +{ + public TruelightTransform() { super(); } + protected TruelightTransform(long impl) { super(impl); } + public native TruelightTransform Create(); + public native void setConfigRoot(String configroot); + public native String getConfigRoot(); + public native void setProfile(String profile); + public native String getProfile(); + public native void setCamera(String camera); + public native String getCamera(); + public native void setInputDisplay(String display); + public native String getInputDisplay(); + public native void setRecorder(String recorder); + public native String getRecorder(); + public native void setPrint(String print); + public native String getPrint(); + public native void setLamp(String lamp); + public native String getLamp(); + public native void setOutputCamera(String camera); + public native String getOutputCamera(); + public native void setDisplay(String display); + public native String getDisplay(); + public native void setCubeInput(String type); + public native String getCubeInput(); +} + |