├── CSJ2K
├── csj2k.snk
├── j2k
│ ├── JJ2KInfo.cs
│ ├── IntegerSpec.cs
│ ├── ModuleSpec.cs
│ ├── StringSpec.cs
│ ├── image
│ │ ├── Coord.cs
│ │ ├── Tiler.cs
│ │ ├── DataBlk.cs
│ │ ├── ImgData.cs
│ │ ├── DataBlkInt.cs
│ │ ├── BlkImgDataSrc.cs
│ │ ├── DataBlkFloat.cs
│ │ ├── ImgDataJoiner.cs
│ │ ├── CompTransfSpec.cs
│ │ ├── ImgDataAdapter.cs
│ │ ├── ImgDataConverter.cs
│ │ ├── input
│ │ │ ├── ImgReader.cs
│ │ │ ├── ImgReaderPGM.cs
│ │ │ ├── ImgReaderPGX.cs
│ │ │ └── ImgReaderPPM.cs
│ │ ├── output
│ │ │ ├── ImgWriter.cs
│ │ │ ├── ImgWriterPGM.cs
│ │ │ ├── ImgWriterPGX.cs
│ │ │ └── ImgWriterPPM.cs
│ │ ├── invcomptransf
│ │ │ └── InvCompTransf.cs
│ │ └── forwcomptransf
│ │ │ ├── ForwCompTransf.cs
│ │ │ └── ForwCompTransfSpec.cs
│ ├── io
│ │ ├── EndianType.cs
│ │ ├── RandomAccessIO.cs
│ │ ├── BinaryDataInput.cs
│ │ ├── BinaryDataOutput.cs
│ │ ├── BufferedRandomAccessFile.cs
│ │ └── BEBufferedRandomAccessFile.cs
│ ├── util
│ │ ├── ArrayUtil.cs
│ │ ├── MathUtil.cs
│ │ ├── IMsgLogger.cs
│ │ ├── MsgPrinter.cs
│ │ ├── ParameterList.cs
│ │ ├── ProgressWatch.cs
│ │ ├── FacilityManager.cs
│ │ ├── ISRandomAccessIO.cs
│ │ ├── StreamMsgLogger.cs
│ │ ├── CodestreamManipulator.cs
│ │ └── StringFormatException.cs
│ ├── entropy
│ │ ├── CodedCBlk.cs
│ │ ├── Progression.cs
│ │ ├── CBlkSizeSpec.cs
│ │ ├── PrecinctSizeSpec.cs
│ │ ├── ProgressionSpec.cs
│ │ ├── encoder
│ │ │ ├── MQCoder.cs
│ │ │ ├── EBCOTLayer.cs
│ │ │ ├── LayersInfo.cs
│ │ │ ├── EntropyCoder.cs
│ │ │ ├── BitToByteOutput.cs
│ │ │ ├── ByteOutputBuffer.cs
│ │ │ ├── StdEntropyCoder.cs
│ │ │ ├── CBlkRateDistStats.cs
│ │ │ ├── EBCOTRateAllocator.cs
│ │ │ ├── CodedCBlkDataSrcEnc.cs
│ │ │ └── PostCompRateAllocator.cs
│ │ ├── decoder
│ │ │ ├── DecLyrdCBlk.cs
│ │ │ ├── MQDecoder.cs
│ │ │ ├── ByteInputBuffer.cs
│ │ │ ├── ByteToBitInput.cs
│ │ │ ├── EntropyDecoder.cs
│ │ │ ├── StdEntropyDecoder.cs
│ │ │ └── CodedCBlkDataSrcDec.cs
│ │ └── StdEntropyCoderOptions.cs
│ ├── roi
│ │ ├── MaxShiftSpec.cs
│ │ ├── ROIDeScaler.cs
│ │ └── encoder
│ │ │ ├── ROI.cs
│ │ │ ├── ROIScaler.cs
│ │ │ ├── SubbandROIMask.cs
│ │ │ ├── ROIMaskGenerator.cs
│ │ │ ├── ArbROIMaskGenerator.cs
│ │ │ ├── RectROIMaskGenerator.cs
│ │ │ └── SubbandRectROIMask.cs
│ ├── wavelet
│ │ ├── Subband.cs
│ │ ├── FilterTypes.cs
│ │ ├── WTDecompSpec.cs
│ │ ├── WTFilterSpec.cs
│ │ ├── WaveletFilter.cs
│ │ ├── WaveletTransform.cs
│ │ ├── analysis
│ │ │ ├── ForwWT.cs
│ │ │ ├── AnWTFilter.cs
│ │ │ ├── CBlkWTData.cs
│ │ │ ├── ForwWTFull.cs
│ │ │ ├── ForwardWT.cs
│ │ │ ├── SubbandAn.cs
│ │ │ ├── AnWTFilterFloat.cs
│ │ │ ├── AnWTFilterInt.cs
│ │ │ ├── AnWTFilterSpec.cs
│ │ │ ├── CBlkWTDataFloat.cs
│ │ │ ├── CBlkWTDataInt.cs
│ │ │ ├── CBlkWTDataSrc.cs
│ │ │ ├── ForwWTDataProps.cs
│ │ │ ├── AnWTFilterIntLift5x3.cs
│ │ │ └── AnWTFilterFloatLift9x7.cs
│ │ └── synthesis
│ │ │ ├── InvWT.cs
│ │ │ ├── InvWTData.cs
│ │ │ ├── InvWTFull.cs
│ │ │ ├── InverseWT.cs
│ │ │ ├── SubbandSyn.cs
│ │ │ ├── SynWTFilter.cs
│ │ │ ├── InvWTAdapter.cs
│ │ │ ├── SynWTFilterInt.cs
│ │ │ ├── CBlkWTDataSrcDec.cs
│ │ │ ├── MultiResImgData.cs
│ │ │ ├── SynWTFilterFloat.cs
│ │ │ ├── SynWTFilterSpec.cs
│ │ │ ├── SynWTFilterIntLift5x3.cs
│ │ │ ├── MultiResImgDataAdapter.cs
│ │ │ └── SynWTFilterFloatLift9x7.cs
│ ├── codestream
│ │ ├── Markers.cs
│ │ ├── PrecInfo.cs
│ │ ├── CoordInfo.cs
│ │ ├── HeaderInfo.cs
│ │ ├── CBlkCoordInfo.cs
│ │ ├── PrecCoordInfo.cs
│ │ ├── ProgressionType.cs
│ │ ├── reader
│ │ │ ├── CBlkInfo.cs
│ │ │ ├── PktInfo.cs
│ │ │ ├── PktDecoder.cs
│ │ │ ├── HeaderDecoder.cs
│ │ │ ├── TagTreeDecoder.cs
│ │ │ ├── PktHeaderBitReader.cs
│ │ │ ├── BitstreamReaderAgent.cs
│ │ │ └── FileBitstreamReaderAgent.cs
│ │ ├── writer
│ │ │ ├── PktEncoder.cs
│ │ │ ├── HeaderEncoder.cs
│ │ │ ├── TagTreeEncoder.cs
│ │ │ ├── BitOutputBuffer.cs
│ │ │ ├── CodestreamWriter.cs
│ │ │ └── FileCodestreamWriter.cs
│ │ └── CorruptedCodestreamException.cs
│ ├── JJ2KExceptionHandler.cs
│ ├── NoNextElementException.cs
│ ├── decoder
│ │ └── DecoderSpecs.cs
│ ├── encoder
│ │ └── EncoderSpecs.cs
│ ├── fileformat
│ │ ├── FileFormatBoxes.cs
│ │ ├── reader
│ │ │ └── FileFormatReader.cs
│ │ └── writer
│ │ │ └── FileFormatWriter.cs
│ └── quantization
│ │ ├── GuardBitsSpec.cs
│ │ ├── QuantTypeSpec.cs
│ │ ├── QuantizationType.cs
│ │ ├── QuantStepSizeSpec.cs
│ │ ├── quantizer
│ │ ├── Quantizer.cs
│ │ ├── StdQuantizer.cs
│ │ └── CBlkQuantDataSrcEnc.cs
│ │ └── dequantizer
│ │ ├── Dequantizer.cs
│ │ ├── StdDequantizer.cs
│ │ ├── DequantizerParams.cs
│ │ ├── CBlkQuantDataSrcDec.cs
│ │ └── StdDequantizerParams.cs
├── Properties
│ ├── SharedAssemblyInfo.cs
│ └── AssemblyInfo.cs
├── Util
│ ├── IFileInfoCreator.cs
│ ├── IImage.cs
│ ├── IFileStreamCreator.cs
│ ├── IFileInfo.cs
│ ├── IImageCreator.cs
│ ├── IDefaultable.cs
│ ├── UnityImage.cs
│ ├── StoreFileInfoCreator.cs
│ ├── DotnetFileInfoCreator.cs
│ ├── StoreFileStreamCreator.cs
│ ├── DotnetMsgLogger.cs
│ ├── SilverlightFileStreamCreator .cs
│ ├── UnityImageSource.cs
│ ├── AndroidBitmapImage.cs
│ ├── FileInfoFactory.cs
│ ├── DotnetFileStreamCreator.cs
│ ├── BitmapImage.cs
│ ├── BitmapImageCreator.cs
│ ├── UnityImageCreator.cs
│ ├── FileStreamFactory.cs
│ ├── ImageFactory.cs
│ ├── StoreMsgLogger.cs
│ ├── IOSImageCreator.cs
│ ├── SilverlightMsgLogger.cs
│ ├── AndroidBitmapImageCreator.cs
│ ├── WriteableBitmapImageCreator.cs
│ ├── DotnetFileInfo.cs
│ ├── ImageBase.cs
│ ├── WriteableBitmapImage.cs
│ ├── StoreFileInfo.cs
│ └── IOSImage.cs
├── Icc
│ ├── Tags
│ │ ├── ICCSignatureType.cs
│ │ ├── ICCDataType.cs
│ │ ├── ICCViewType.cs
│ │ ├── ICCMeasurementType.cs
│ │ ├── ICCTextType.cs
│ │ ├── ICCXYZTypeReverse.cs
│ │ └── ICCTextDescriptionType.cs
│ ├── ICCProfileException.cs
│ ├── Lut
│ │ ├── MonochromeTransformException.cs
│ │ ├── MatrixBasedTransformException.cs
│ │ ├── LookUpTable8Gamma.cs
│ │ ├── LookUpTable16Gamma.cs
│ │ ├── LookUpTable32Gamma.cs
│ │ ├── LookUpTable.cs
│ │ ├── LookUpTableFPGamma.cs
│ │ ├── LookUpTableFP.cs
│ │ ├── LookUpTable16Interp.cs
│ │ ├── LookUpTable8Interp.cs
│ │ ├── LookUpTable32Interp.cs
│ │ └── LookUpTable8.cs
│ ├── ICCProfileNotFoundException.cs
│ ├── ICCProfileInvalidException.cs
│ ├── ICCMonochromeInputProfile.cs
│ ├── ICCMatrixBasedInputProfile.cs
│ ├── MonochromeInputRestrictedProfile.cs
│ └── Types
│ │ ├── ICCProfileVersion.cs
│ │ └── XYZNumber.cs
├── CSJ2K.Shared.shproj
└── Color
│ └── ColorSpaceException.cs
├── .nuget
├── NuGet.exe
├── NuGet.Config
├── CSJ2K.0.9.0.nuspec
└── CSJ2K.0.9.0.1.nuspec
├── COPYRIGHT-JJ2000-5.1
├── codectest
├── file1.jp2
├── file10.jp2
├── file2.jp2
├── file3.jp2
├── file4.jp2
├── file5.jp2
├── file6.jp2
├── file7.jp2
├── file8.jp2
├── file9.jp2
├── logo.png
├── a1_mono.ppm
├── a2_colr.ppm
├── c1p0_05_0.pgx
├── app.config
├── ImageDialog.cs
├── Properties
│ └── AssemblyInfo.cs
├── HighPerfTimer.cs
└── ImageDialog.Designer.cs
├── CSJ2K.81.Test
├── Assets
│ ├── Logo.png
│ ├── SmallLogo.png
│ ├── StoreLogo.png
│ └── SplashScreen.png
├── Store.CSJ2K.Test_TemporaryKey.pfx
├── MainPage.xaml
├── App.xaml
├── Package.appxmanifest
├── Properties
│ └── AssemblyInfo.cs
└── MainPage.xaml.cs
├── CSJ2K.WP8.Test
├── Assets
│ ├── AlignmentGrid.png
│ ├── ApplicationIcon.png
│ └── Tiles
│ │ ├── IconicTileSmall.png
│ │ ├── FlipCycleTileLarge.png
│ │ ├── FlipCycleTileSmall.png
│ │ ├── FlipCycleTileMedium.png
│ │ └── IconicTileMediumLarge.png
├── Properties
│ ├── AppManifest.xml
│ ├── AssemblyInfo.cs
│ └── WMAppManifest.xml
├── LocalizedStrings.cs
├── App.xaml
└── MainPage.xaml.cs
├── CSJ2K.Android.Test
├── Resources
│ ├── drawable
│ │ └── Icon.png
│ ├── values
│ │ └── Strings.xml
│ ├── layout
│ │ └── Main.axml
│ └── Resource.Designer.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
└── MainActivity.cs
├── .gitignore
├── CSJ2K.WPF.Test
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ └── Resources.Designer.cs
├── App.xaml.cs
├── App.xaml
├── MainWindow.xaml
└── MainWindow.xaml.cs
├── CSJ2K.Android
├── Resources
│ ├── Values
│ │ └── Strings.xml
│ └── Resource.Designer.cs
└── Properties
│ └── AssemblyInfo.cs
├── CSJ2K.iOS.Test
├── Entitlements.plist
├── ViewController.designer.cs
├── Main.cs
├── Info.plist
├── ViewController.cs
├── Main.storyboard
├── Properties
│ └── AssemblyInfo.cs
└── AppDelegate.cs
├── CSJ2K.Silverlight.Test
├── Properties
│ ├── AppManifest.xml
│ └── AssemblyInfo.cs
├── App.xaml
├── MainPage.xaml
├── MainPage.xaml.cs
└── App.xaml.cs
├── packages
└── repositories.config
├── CSJ2K.iOS
├── IOSSetup.cs
├── Properties
│ └── AssemblyInfo.cs
└── CSJ2K.iOS.csproj
├── CSJ2K.NET35
└── Properties
│ └── AssemblyInfo.cs
├── CSJ2K.Portable
├── Properties
│ └── AssemblyInfo.cs
└── CSJ2K.Portable.csproj
├── CSJ2K.81
└── Properties
│ └── AssemblyInfo.cs
├── CSJ2K.Desktop
└── Properties
│ └── AssemblyInfo.cs
├── CSJ2K.Silverlight
└── Properties
│ └── AssemblyInfo.cs
└── CSJ2K.WP8
└── Properties
└── AssemblyInfo.cs
/CSJ2K/csj2k.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/csj2k.snk
--------------------------------------------------------------------------------
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/COPYRIGHT-JJ2000-5.1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/COPYRIGHT-JJ2000-5.1
--------------------------------------------------------------------------------
/codectest/file1.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file1.jp2
--------------------------------------------------------------------------------
/codectest/file10.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file10.jp2
--------------------------------------------------------------------------------
/codectest/file2.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file2.jp2
--------------------------------------------------------------------------------
/codectest/file3.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file3.jp2
--------------------------------------------------------------------------------
/codectest/file4.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file4.jp2
--------------------------------------------------------------------------------
/codectest/file5.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file5.jp2
--------------------------------------------------------------------------------
/codectest/file6.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file6.jp2
--------------------------------------------------------------------------------
/codectest/file7.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file7.jp2
--------------------------------------------------------------------------------
/codectest/file8.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file8.jp2
--------------------------------------------------------------------------------
/codectest/file9.jp2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/file9.jp2
--------------------------------------------------------------------------------
/codectest/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/logo.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/JJ2KInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/JJ2KInfo.cs
--------------------------------------------------------------------------------
/codectest/a1_mono.ppm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/a1_mono.ppm
--------------------------------------------------------------------------------
/codectest/a2_colr.ppm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/a2_colr.ppm
--------------------------------------------------------------------------------
/CSJ2K/j2k/IntegerSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/IntegerSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/ModuleSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/ModuleSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/StringSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/StringSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/Coord.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/Coord.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/Tiler.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/Tiler.cs
--------------------------------------------------------------------------------
/codectest/c1p0_05_0.pgx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/codectest/c1p0_05_0.pgx
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/DataBlk.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/DataBlk.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/ImgData.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/ImgData.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/EndianType.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/EndianType.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/ArrayUtil.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/ArrayUtil.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/MathUtil.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/MathUtil.cs
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Assets/Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.81.Test/Assets/Logo.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/CodedCBlk.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/CodedCBlk.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/DataBlkInt.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/DataBlkInt.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/RandomAccessIO.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/RandomAccessIO.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/MaxShiftSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/MaxShiftSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/ROIDeScaler.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/ROIDeScaler.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/ROI.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/ROI.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/IMsgLogger.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/IMsgLogger.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/MsgPrinter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/MsgPrinter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/Subband.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/Subband.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/Markers.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/Markers.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/PrecInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/PrecInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/Progression.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/Progression.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/BlkImgDataSrc.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/BlkImgDataSrc.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/DataBlkFloat.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/DataBlkFloat.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/ImgDataJoiner.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/ImgDataJoiner.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/BinaryDataInput.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/BinaryDataInput.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/BinaryDataOutput.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/BinaryDataOutput.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/ParameterList.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/ParameterList.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/ProgressWatch.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/ProgressWatch.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/FilterTypes.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/FilterTypes.cs
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Assets/SmallLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.81.Test/Assets/SmallLogo.png
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Assets/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.81.Test/Assets/StoreLogo.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/JJ2KExceptionHandler.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/JJ2KExceptionHandler.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/NoNextElementException.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/NoNextElementException.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/CoordInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/CoordInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/HeaderInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/HeaderInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/decoder/DecoderSpecs.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/decoder/DecoderSpecs.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/encoder/EncoderSpecs.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/encoder/EncoderSpecs.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/CBlkSizeSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/CBlkSizeSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/CompTransfSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/CompTransfSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/ImgDataAdapter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/ImgDataAdapter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/ImgDataConverter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/ImgDataConverter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/input/ImgReader.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/input/ImgReader.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/output/ImgWriter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/output/ImgWriter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/ROIScaler.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/ROIScaler.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/FacilityManager.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/FacilityManager.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/ISRandomAccessIO.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/ISRandomAccessIO.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/StreamMsgLogger.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/StreamMsgLogger.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/WTDecompSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/WTDecompSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/WTFilterSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/WTFilterSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/WaveletFilter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/WaveletFilter.cs
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Assets/SplashScreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.81.Test/Assets/SplashScreen.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/CBlkCoordInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/CBlkCoordInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/PrecCoordInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/PrecCoordInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/ProgressionSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/ProgressionSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/MQCoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/MQCoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/input/ImgReaderPGM.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/input/ImgReaderPGM.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/input/ImgReaderPGX.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/input/ImgReaderPGX.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/input/ImgReaderPPM.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/input/ImgReaderPPM.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/WaveletTransform.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/WaveletTransform.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/ForwWT.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/ForwWT.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/InvWT.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/InvWT.cs
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/AlignmentGrid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/AlignmentGrid.png
--------------------------------------------------------------------------------
/CSJ2K/Properties/SharedAssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/Properties/SharedAssemblyInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/ProgressionType.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/ProgressionType.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/CBlkInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/CBlkInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/PktInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/PktInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/DecLyrdCBlk.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/DecLyrdCBlk.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/MQDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/MQDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/EBCOTLayer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/EBCOTLayer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/LayersInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/LayersInfo.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/fileformat/FileFormatBoxes.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/fileformat/FileFormatBoxes.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/output/ImgWriterPGM.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/output/ImgWriterPGM.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/output/ImgWriterPGX.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/output/ImgWriterPGX.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/output/ImgWriterPPM.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/output/ImgWriterPPM.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/BufferedRandomAccessFile.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/BufferedRandomAccessFile.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/GuardBitsSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/GuardBitsSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/QuantTypeSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/QuantTypeSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/SubbandROIMask.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/SubbandROIMask.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/CodestreamManipulator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/CodestreamManipulator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/util/StringFormatException.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/util/StringFormatException.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/CBlkWTData.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/CBlkWTData.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/ForwWTFull.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/ForwWTFull.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/SubbandAn.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/SubbandAn.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/InvWTData.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/InvWTData.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/InvWTFull.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/InvWTFull.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/InverseWT.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/InverseWT.cs
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/ApplicationIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/ApplicationIcon.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/PktDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/PktDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/PktEncoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/PktEncoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/EntropyCoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/EntropyCoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/io/BEBufferedRandomAccessFile.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/io/BEBufferedRandomAccessFile.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/QuantizationType.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/QuantizationType.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/ROIMaskGenerator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/ROIMaskGenerator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SubbandSyn.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SubbandSyn.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/HeaderDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/HeaderDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/TagTreeDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/TagTreeDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/HeaderEncoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/HeaderEncoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/TagTreeEncoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/TagTreeEncoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/StdEntropyCoderOptions.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/StdEntropyCoderOptions.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/ByteInputBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/ByteInputBuffer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/ByteToBitInput.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/ByteToBitInput.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/EntropyDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/EntropyDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/BitToByteOutput.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/BitToByteOutput.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/ByteOutputBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/ByteOutputBuffer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/StdEntropyCoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/StdEntropyCoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/quantizer/Quantizer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/quantizer/Quantizer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/ArbROIMaskGenerator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/ArbROIMaskGenerator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/RectROIMaskGenerator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/RectROIMaskGenerator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/roi/encoder/SubbandRectROIMask.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/roi/encoder/SubbandRectROIMask.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilterFloat.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilterFloat.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilterInt.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilterInt.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilterSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilterSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/CBlkWTDataFloat.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/CBlkWTDataFloat.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/CBlkWTDataInt.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/CBlkWTDataInt.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/CBlkWTDataSrc.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/CBlkWTDataSrc.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/ForwWTDataProps.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/ForwWTDataProps.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/InvWTAdapter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/InvWTAdapter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilterInt.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilterInt.cs
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Store.CSJ2K.Test_TemporaryKey.pfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.81.Test/Store.CSJ2K.Test_TemporaryKey.pfx
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Resources/drawable/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.Android.Test/Resources/drawable/Icon.png
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/Tiles/IconicTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/Tiles/IconicTileSmall.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/BitOutputBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/BitOutputBuffer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/CodestreamWriter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/CodestreamWriter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/StdEntropyDecoder.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/StdEntropyDecoder.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/CBlkRateDistStats.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/CBlkRateDistStats.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/EBCOTRateAllocator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/EBCOTRateAllocator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/fileformat/writer/FileFormatWriter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/fileformat/writer/FileFormatWriter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/invcomptransf/InvCompTransf.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/invcomptransf/InvCompTransf.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/CBlkWTDataSrcDec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/CBlkWTDataSrcDec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/MultiResImgData.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/MultiResImgData.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilterFloat.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilterFloat.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilterSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilterSpec.cs
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileLarge.png
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileSmall.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/PktHeaderBitReader.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/PktHeaderBitReader.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/decoder/CodedCBlkDataSrcDec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/decoder/CodedCBlkDataSrcDec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/CodedCBlkDataSrcEnc.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/CodedCBlkDataSrcEnc.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/forwcomptransf/ForwCompTransf.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/forwcomptransf/ForwCompTransf.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/dequantizer/Dequantizer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/dequantizer/Dequantizer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/quantizer/StdQuantizer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/quantizer/StdQuantizer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilterIntLift5x3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilterIntLift5x3.cs
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.user
2 | *.suo
3 | *.userprefs
4 | *.lock.json
5 | [Bb]in/
6 | [Oo]bj/
7 | [Pp]ackages/
8 | .vs/
9 | /UpgradeLog.htm
10 | [Bb]ackup/
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/Tiles/FlipCycleTileMedium.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/CorruptedCodestreamException.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/CorruptedCodestreamException.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/BitstreamReaderAgent.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/BitstreamReaderAgent.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/writer/FileCodestreamWriter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/writer/FileCodestreamWriter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/image/forwcomptransf/ForwCompTransfSpec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/image/forwcomptransf/ForwCompTransfSpec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/dequantizer/StdDequantizer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/dequantizer/StdDequantizer.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/analysis/AnWTFilterFloatLift9x7.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/analysis/AnWTFilterFloatLift9x7.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilterIntLift5x3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilterIntLift5x3.cs
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Assets/Tiles/IconicTileMediumLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K.WP8.Test/Assets/Tiles/IconicTileMediumLarge.png
--------------------------------------------------------------------------------
/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/dequantizer/DequantizerParams.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/dequantizer/DequantizerParams.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/quantizer/CBlkQuantDataSrcEnc.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/quantizer/CBlkQuantDataSrcEnc.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/MultiResImgDataAdapter.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/MultiResImgDataAdapter.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/wavelet/synthesis/SynWTFilterFloatLift9x7.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/wavelet/synthesis/SynWTFilterFloatLift9x7.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/dequantizer/CBlkQuantDataSrcDec.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/dequantizer/CBlkQuantDataSrcDec.cs
--------------------------------------------------------------------------------
/CSJ2K/j2k/quantization/dequantizer/StdDequantizerParams.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cureos/csj2k/HEAD/CSJ2K/j2k/quantization/dequantizer/StdDequantizerParams.cs
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/codectest/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IFileInfoCreator.cs:
--------------------------------------------------------------------------------
1 | namespace CSJ2K.Util
2 | {
3 | public interface IFileInfoCreator
4 | {
5 | #region METHODS
6 |
7 | IFileInfo Create(string fileName);
8 |
9 | #endregion
10 | }
11 | }
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K.Android/Resources/Values/Strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, Click Me!
4 | $projectname$
5 |
6 |
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Resources/values/Strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, Click Me!
4 | CSJ2K.Android.Test
5 |
6 |
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Properties/AppManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/Properties/AppManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | public interface IImage
7 | {
8 | #region METHODS
9 |
10 | T As();
11 |
12 | #endregion
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/App.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace WPF.CSJ2K.Test
5 | {
6 | ///
7 | /// Interaction logic for App.xaml
8 | ///
9 | public partial class App
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IFileStreamCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System.IO;
7 |
8 | public interface IFileStreamCreator
9 | {
10 | Stream Create(string path, string mode);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IFileInfo.cs:
--------------------------------------------------------------------------------
1 | namespace CSJ2K.Util
2 | {
3 | public interface IFileInfo
4 | {
5 | #region PROPERTIES
6 |
7 | string Name { get; }
8 |
9 | string FullName { get; }
10 |
11 | bool Exists { get; }
12 |
13 | #endregion
14 |
15 | #region METHODS
16 |
17 | bool Delete();
18 |
19 | #endregion
20 | }
21 | }
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/LocalizedStrings.cs:
--------------------------------------------------------------------------------
1 | using WP.CSJ2K.Test.Resources;
2 |
3 | namespace WP.CSJ2K.Test
4 | {
5 | ///
6 | /// Provides access to string resources.
7 | ///
8 | public class LocalizedStrings
9 | {
10 | private static AppResources _localizedResources = new AppResources();
11 |
12 | public AppResources LocalizedResources { get { return _localizedResources; } }
13 | }
14 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/IImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CSJ2K.j2k.image;
7 |
8 | public interface IImageCreator : IDefaultable
9 | {
10 | IImage Create(int width, int height, byte[] bytes);
11 |
12 | BlkImgDataSrc ToPortableImageSource(object imageObject);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/codectest/ImageDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace codectest
10 | {
11 | public partial class ImageDialog : Form
12 | {
13 | public ImageDialog()
14 | {
15 | InitializeComponent();
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/ViewController.designer.cs:
--------------------------------------------------------------------------------
1 | //
2 | // This file has been generated automatically to store outlets and
3 | // actions made in the Xcode designer. If it is removed, they will be lost.
4 | // Manual changes to this file may not be handled correctly.
5 | //
6 | using Foundation;
7 |
8 | namespace CSJ2K.iOS.Test
9 | {
10 | [Register("ViewController")]
11 | partial class ViewController
12 | {
13 | void ReleaseDesignerOutlets()
14 | {
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/CSJ2K.iOS/IOSSetup.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K
5 | {
6 | using CSJ2K.Util;
7 |
8 | public static class IOSSetup
9 | {
10 | public static void RegisterCretors()
11 | {
12 | DotnetFileInfoCreator.Register();
13 | DotnetFileStreamCreator.Register();
14 | DotnetMsgLogger.Register();
15 | IOSImageCreator.Register();
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Resources/layout/Main.axml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IDefaultable.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012-2016 fo-dicom contributors.
2 | // Licensed under the Microsoft Public License (MS-PL).
3 |
4 | namespace CSJ2K.Util
5 | {
6 | ///
7 | /// Interface for default classification of manager types.
8 | ///
9 | public interface IDefaultable
10 | {
11 | ///
12 | /// Gets whether or not this type is classified as a default manager.
13 | ///
14 | bool IsDefault { get; }
15 | }
16 | }
--------------------------------------------------------------------------------
/CSJ2K.Android/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("")]
12 |
13 | [assembly: ComVisible(false)]
14 |
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/Main.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using UIKit;
5 |
6 | namespace CSJ2K.iOS.Test
7 | {
8 | public class Application
9 | {
10 | // This is the main entry point of the application.
11 | static void Main(string[] args)
12 | {
13 | // if you want to use a different Application Delegate class from "AppDelegate"
14 | // you can specify it here.
15 | UIApplication.Main(args, null, "AppDelegate");
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/CSJ2K/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 |
11 | #if DOTNET
12 | [assembly: AssemblyTitle("CSJ2K")]
13 | [assembly: ComVisible(false)]
14 | #else
15 | [assembly: AssemblyTitle("CSJ2K.Core")]
16 | #endif
17 |
18 | [assembly: AssemblyDescription("JPEG2000 codec class library")]
19 |
--------------------------------------------------------------------------------
/CSJ2K.NET35/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 |
11 | #if DOTNET
12 | [assembly: AssemblyTitle("CSJ2K")]
13 | [assembly: ComVisible(false)]
14 | #else
15 | [assembly: AssemblyTitle("CSJ2K.Core")]
16 | #endif
17 |
18 | [assembly: AssemblyDescription("JPEG2000 codec class library")]
19 |
--------------------------------------------------------------------------------
/CSJ2K.Portable/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 |
11 | #if DOTNET
12 | [assembly: AssemblyTitle("CSJ2K")]
13 | [assembly: ComVisible(false)]
14 | #else
15 | [assembly: AssemblyTitle("CSJ2K.Core")]
16 | #endif
17 |
18 | [assembly: AssemblyDescription("JPEG2000 codec class library")]
19 |
--------------------------------------------------------------------------------
/CSJ2K/Util/UnityImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2017 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System;
5 |
6 | using UnityEngine;
7 |
8 | namespace CSJ2K.Util
9 | {
10 | internal class UnityImage : ImageBase
11 | {
12 | #region CONSTRUCTORS
13 |
14 | internal UnityImage(int width, int height, byte[] bytes)
15 | : base(width, height, bytes)
16 | {
17 | }
18 |
19 | #endregion
20 |
21 | #region METHODS
22 |
23 | protected override object GetImageObject()
24 | {
25 | throw new NotImplementedException();
26 | }
27 |
28 | #endregion
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/CSJ2K/Util/StoreFileInfoCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | public class StoreFileInfoCreator : IFileInfoCreator
7 | {
8 | #region FIELDS
9 |
10 | private static readonly IFileInfoCreator Instance = new StoreFileInfoCreator();
11 |
12 | #endregion
13 |
14 | #region METHODS
15 |
16 | public static void Register()
17 | {
18 | FileInfoFactory.Register(Instance);
19 | }
20 |
21 | public IFileInfo Create(string name)
22 | {
23 | return new StoreFileInfo(name);
24 | }
25 |
26 | #endregion
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/CSJ2K/Util/DotnetFileInfoCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | public class DotnetFileInfoCreator : IFileInfoCreator
7 | {
8 | #region FIELDS
9 |
10 | private static readonly IFileInfoCreator Instance = new DotnetFileInfoCreator();
11 |
12 | #endregion
13 |
14 | #region METHODS
15 |
16 | public static void Register()
17 | {
18 | FileInfoFactory.Register(Instance);
19 | }
20 |
21 | public IFileInfo Create(string fileName)
22 | {
23 | return new DotnetFileInfo(fileName);
24 | }
25 |
26 | #endregion
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/CSJ2K.81.Test/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CSJ2K.81.Test/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/CSJ2K/Util/StoreFileStreamCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System.IO;
7 |
8 | public class StoreFileStreamCreator : IFileStreamCreator
9 | {
10 | #region FIELDS
11 |
12 | private static readonly IFileStreamCreator Instance = new StoreFileStreamCreator();
13 |
14 | #endregion
15 |
16 | #region METHODS
17 |
18 | public static void Register()
19 | {
20 | FileStreamFactory.Register(Instance);
21 | }
22 |
23 | public Stream Create(string path, string mode)
24 | {
25 | return new StoreFileStream(path, mode);
26 | }
27 |
28 | #endregion
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/CSJ2K.81/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("CSJ2K Support Library for Windows Universal (8.1)")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CSJ2K/Util/DotnetMsgLogger.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 |
8 | using CSJ2K.j2k.util;
9 |
10 | public class DotnetMsgLogger : StreamMsgLogger
11 | {
12 | #region FIELDS
13 |
14 | private static readonly IMsgLogger Instance = new DotnetMsgLogger();
15 |
16 | #endregion
17 |
18 | #region CONSTRUCTORS
19 |
20 | public DotnetMsgLogger()
21 | : base(Console.OpenStandardOutput(), Console.OpenStandardError(), 78)
22 | {
23 | }
24 |
25 | #endregion
26 |
27 | #region METHODS
28 |
29 | public static void Register()
30 | {
31 | FacilityManager.DefaultMsgLogger = Instance;
32 | }
33 |
34 | #endregion
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/CSJ2K/Util/SilverlightFileStreamCreator .cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.IO;
8 |
9 | public class SilverlightFileStreamCreator : IFileStreamCreator
10 | {
11 | #region FIELDS
12 |
13 | private static readonly IFileStreamCreator Instance = new SilverlightFileStreamCreator();
14 |
15 | #endregion
16 |
17 | #region METHODS
18 |
19 | public static void Register()
20 | {
21 | FileStreamFactory.Register(Instance);
22 | }
23 |
24 | public Stream Create(string path, string mode)
25 | {
26 | throw new NotImplementedException("File stream I/O not implemented for Silverlight.");
27 | }
28 |
29 | #endregion
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/CSJ2K/Util/UnityImageSource.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2017 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System;
5 |
6 | using CSJ2K.j2k.image;
7 |
8 | using UnityEngine;
9 |
10 | namespace CSJ2K.Util
11 | {
12 | internal class UnityImageSource : PortableImageSource
13 | {
14 | #region CONSTRUCTORS
15 |
16 | private UnityImageSource(Texture2D texture)
17 | : base(texture.width, texture.height, 1, 1, null, null)
18 | {
19 | throw new NotImplementedException();
20 | }
21 |
22 | #endregion
23 |
24 | #region METHODS
25 |
26 | internal static BlkImgDataSrc Create(object imageObject)
27 | {
28 | var texture = imageObject as Texture2D;
29 | return texture == null ? null : new UnityImageSource(texture);
30 | }
31 |
32 | #endregion
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/CSJ2K/Util/AndroidBitmapImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 |
8 | using Android.Graphics;
9 |
10 | internal class AndroidBitmapImage : ImageBase
11 | {
12 | #region CONSTRUCTORS
13 |
14 | internal AndroidBitmapImage(int width, int height, byte[] bytes)
15 | : base(width, height, bytes)
16 | {
17 | }
18 |
19 | #endregion
20 |
21 | #region METHODS
22 |
23 | protected override object GetImageObject()
24 | {
25 | var pixels = new int[this.Width * this.Height];
26 | Buffer.BlockCopy(this.Bytes, 0, pixels, 0, this.Bytes.Length);
27 |
28 | return Bitmap.CreateBitmap(pixels, this.Width, this.Height, Bitmap.Config.Argb8888);
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/CSJ2K.iOS/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("CSJ2K Support Library for Xamarin iOS")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("e242ff7a-8560-40bb-9786-198f0d701c2a")]
20 |
--------------------------------------------------------------------------------
/CSJ2K.Desktop/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("CSJ2K Support Library for .NET Desktop")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("58f2ec8c-1c85-4122-96dd-c51c9a3ea611")]
20 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("CSJ2K Support Library for Silverlight")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("8f724ff1-1a1d-4521-b379-bf2348022def")]
20 |
--------------------------------------------------------------------------------
/CSJ2K.WP8/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Reflection;
5 | using System.Runtime.InteropServices;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("CSJ2K.Platform")]
11 | [assembly: AssemblyDescription("CSJ2K Support Library for Windows Phone 8 Silverlight")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("abe6b54d-a4ab-4204-a1af-9b679b6aba6b")]
20 |
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using System.Windows.Media;
7 |
8 | using CSJ2K;
9 |
10 | namespace SL.CSJ2K.Test
11 | {
12 | public partial class MainPage
13 | {
14 | public MainPage()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
20 | {
21 | var dlg = new OpenFileDialog { Filter = "JPEG 2000 files (*.jp2)|*.jp2", Multiselect = false };
22 | if (!dlg.ShowDialog().GetValueOrDefault()) return;
23 |
24 | using (var stream = dlg.File.OpenRead())
25 | {
26 | var image = J2kImage.FromStream(stream).As();
27 | DecodedImage.Source = image;
28 | ImageName.Text = dlg.File.Name;
29 | }
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCSignatureType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CSJ2K.Icc;
3 |
4 | namespace CSJ2K.Icc.Tags
5 | {
6 | public class ICCSignatureType : ICCTag
7 | {
8 | new public int type;
9 | public int reserved;
10 | new public int signature;
11 |
12 | /// Construct this tag from its constituant parts
13 | /// tag id
14 | /// array of bytes
15 | /// to data in the data array
16 | /// of data in the data array
17 | protected internal ICCSignatureType(int signature, byte[] data, int offset, int length)
18 | : base(signature, data, offset, offset + 2 * ICCProfile.int_size)
19 | {
20 | type = ICCProfile.getInt(data, offset);
21 | reserved = ICCProfile.getInt(data, offset + ICCProfile.int_size);
22 | signature = ICCProfile.getInt(data, offset + ICCProfile.int_size);
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/CSJ2K/CSJ2K.Shared.shproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 46621573-93e5-4e5d-8eee-969c0cd862b5
5 | 14.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/CSJ2K/Util/FileInfoFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 |
8 | public static class FileInfoFactory
9 | {
10 | #region FIELDS
11 |
12 | private static IFileInfoCreator _creator;
13 |
14 | #endregion
15 |
16 | #region CONSTRUCTORS
17 |
18 | static FileInfoFactory()
19 | {
20 | _creator = J2kSetup.GetSinglePlatformInstance();
21 | }
22 |
23 | #endregion
24 |
25 | #region METHODS
26 |
27 | public static void Register(IFileInfoCreator creator)
28 | {
29 | _creator = creator;
30 | }
31 |
32 | internal static IFileInfo New(string fileName)
33 | {
34 | if (_creator == null) throw new InvalidOperationException("No file info creator is registered.");
35 | if (fileName == null) throw new ArgumentNullException("fileName");
36 |
37 | return _creator.Create(fileName);
38 | }
39 |
40 | #endregion
41 | }
42 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/DotnetFileStreamCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.IO;
8 |
9 | public class DotnetFileStreamCreator : IFileStreamCreator
10 | {
11 | #region FIELDS
12 |
13 | private static readonly IFileStreamCreator Instance = new DotnetFileStreamCreator();
14 |
15 | #endregion
16 |
17 | #region METHODS
18 |
19 | public static void Register()
20 | {
21 | FileStreamFactory.Register(Instance);
22 | }
23 |
24 | public Stream Create(string path, string mode)
25 | {
26 | if (mode.Equals("rw", StringComparison.OrdinalIgnoreCase)) return new FileStream(path, FileMode.OpenOrCreate, FileAccess.ReadWrite);
27 | if (mode.Equals("r", StringComparison.OrdinalIgnoreCase)) return new FileStream(path, FileMode.Open, FileAccess.Read);
28 | throw new ArgumentException(String.Format("File mode: {0} not supported.", mode), "mode");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCDataType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CSJ2K.Icc;
3 |
4 | namespace CSJ2K.Icc.Tags
5 | {
6 | public class ICCDataType : ICCTag
7 | {
8 | new public int type;
9 | public int reserved;
10 | public int dataFlag;
11 | //byte[] Data;
12 |
13 | /// Construct this tag from its constituant parts
14 | /// tag id
15 | /// array of bytes
16 | /// to data in the data array
17 | /// of data in the data array
18 | protected internal ICCDataType(int signature, byte[] data, int offset, int length)
19 | : base(signature, data, offset, offset + 2 * ICCProfile.int_size)
20 | {
21 | type = ICCProfile.getInt(data, offset);
22 | reserved = ICCProfile.getInt(data, offset + ICCProfile.int_size);
23 | dataFlag = ICCProfile.getInt(data, offset + ICCProfile.int_size);
24 | //Data = ICCProfile.getString(data, offset + ICCProfile.int_size, length, true);
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Store.CSJ2K.Test
6 | anders
7 | Assets\StoreLogo.png
8 |
9 |
10 | 6.2.1
11 | 6.2.1
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/ICCProfileException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCProfileException.java,v 1.2 2002/08/08 14:08:13 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Icc
11 | {
12 |
13 | /// This exception is thrown when the content of a profile
14 | /// is incorrect.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 | public class ICCProfileException:System.Exception
24 | {
25 |
26 | /// Contruct with message
27 | /// returned by getMessage()
28 | ///
29 | public ICCProfileException(System.String msg):base(msg)
30 | {
31 | }
32 |
33 |
34 | /// Empty constructor
35 | public ICCProfileException()
36 | {
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/BitmapImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System.Drawing;
7 | using System.Drawing.Imaging;
8 |
9 | internal class BitmapImage : ImageBase
10 | {
11 | #region CONSTRUCTORS
12 |
13 | internal BitmapImage(int width, int height, byte[] bytes)
14 | : base(width, height, bytes)
15 | {
16 | }
17 |
18 | #endregion
19 |
20 | #region METHODS
21 |
22 | protected override object GetImageObject()
23 | {
24 | var bitmap = new Bitmap(Width, Height, PixelFormat.Format32bppArgb);
25 |
26 | var dstdata = bitmap.LockBits(
27 | new Rectangle(0, 0, Width, Height),
28 | ImageLockMode.ReadWrite,
29 | bitmap.PixelFormat);
30 |
31 | var ptr = dstdata.Scan0;
32 | System.Runtime.InteropServices.Marshal.Copy(Bytes, 0, ptr, Bytes.Length);
33 | bitmap.UnlockBits(dstdata);
34 |
35 | return bitmap;
36 | }
37 |
38 | #endregion
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/CSJ2K/Util/BitmapImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CSJ2K.j2k.image;
7 |
8 | public class BitmapImageCreator : IImageCreator
9 | {
10 | #region FIELDS
11 |
12 | private static readonly IImageCreator Instance = new BitmapImageCreator();
13 |
14 | #endregion
15 |
16 | #region PROPERTIES
17 |
18 | public bool IsDefault
19 | {
20 | get
21 | {
22 | return false;
23 | }
24 | }
25 |
26 | #endregion
27 |
28 | #region METHODS
29 |
30 | public static void Register()
31 | {
32 | ImageFactory.Register(Instance);
33 | }
34 |
35 | public IImage Create(int width, int height, byte[] bytes)
36 | {
37 | return new BitmapImage(width, height, bytes);
38 | }
39 |
40 | public BlkImgDataSrc ToPortableImageSource(object imageObject)
41 | {
42 | return BitmapImageSource.Create(imageObject);
43 | }
44 |
45 | #endregion
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/CSJ2K.81.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Store.CSJ2K.Test")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Store.CSJ2K.Test")]
13 | [assembly: AssemblyCopyright("Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDisplayName
6 | CSJ2K.iOS.Test
7 | CFBundleIdentifier
8 | com.companyname.CSJ2K.iOS.Test
9 | CFBundleShortVersionString
10 | 1.0
11 | CFBundleVersion
12 | 1.0
13 | LSRequiresIPhoneOS
14 |
15 | MinimumOSVersion
16 |
17 | UIDeviceFamily
18 |
19 | 1
20 |
21 | UILaunchStoryboardName
22 | LaunchScreen
23 | UIMainStoryboardFile
24 | Main
25 | UIRequiredDeviceCapabilities
26 |
27 | armv7
28 |
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 |
36 |
--------------------------------------------------------------------------------
/CSJ2K/Util/UnityImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2017 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using CSJ2K.j2k.image;
5 |
6 | namespace CSJ2K.Util
7 | {
8 | public class UnityImageCreator : IImageCreator
9 | {
10 | #region FIELDS
11 |
12 | private static readonly IImageCreator Instance = new UnityImageCreator();
13 |
14 | #endregion
15 |
16 | #region PROPERTIES
17 |
18 | ///
19 | /// Gets whether or not this type is classified as a default manager.
20 | ///
21 | public bool IsDefault => true;
22 |
23 | #endregion
24 |
25 | #region METHODS
26 |
27 | public static void Register()
28 | {
29 | ImageFactory.Register(Instance);
30 | }
31 |
32 | public IImage Create(int width, int height, byte[] bytes)
33 | {
34 | return new UnityImage(width, height, bytes);
35 | }
36 |
37 | public BlkImgDataSrc ToPortableImageSource(object imageObject)
38 | {
39 | return UnityImageSource.Create(imageObject);
40 | }
41 |
42 | #endregion
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.18033
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WPF.CSJ2K.Test.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("CSJ2K.Android.Test")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("CSJ2K.Android.Test")]
14 | [assembly: AssemblyCopyright("Copyright © 2016")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: ComVisible(false)]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/CSJ2K/Util/FileStreamFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.IO;
8 |
9 | public class FileStreamFactory
10 | {
11 | #region FIELDS
12 |
13 | private static IFileStreamCreator _creator;
14 |
15 | #endregion
16 |
17 | #region CONSTRUCTORS
18 |
19 | static FileStreamFactory()
20 | {
21 | _creator = J2kSetup.GetSinglePlatformInstance();
22 | }
23 |
24 | #endregion
25 |
26 | #region METHODS
27 |
28 | public static void Register(IFileStreamCreator creator)
29 | {
30 | _creator = creator;
31 | }
32 |
33 | internal static Stream New(string path, string mode)
34 | {
35 | if (_creator == null) throw new InvalidOperationException("No file stream creator is registered.");
36 | if (path == null) throw new ArgumentNullException("path");
37 | if (mode == null) throw new ArgumentNullException("mode");
38 |
39 | return _creator.Create(path, mode);
40 | }
41 |
42 | #endregion
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/ViewController.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.iOS.Test
5 | {
6 | using System;
7 |
8 | using CoreGraphics;
9 |
10 | using UIKit;
11 |
12 | public partial class ViewController : UIViewController
13 | {
14 | public ViewController(IntPtr handle) : base(handle)
15 | {
16 | }
17 |
18 | public override void ViewDidLoad()
19 | {
20 | base.ViewDidLoad();
21 |
22 | // Perform any additional setup after loading the view, typically from a nib.
23 | using (var stream = typeof(ViewController).Assembly.GetManifestResourceStream("CSJ2K.iOS.Test.Files.file2.jp2"))
24 | {
25 | var uiImage = J2kImage.FromStream(stream).As();
26 | var imageView = new UIImageView(new CGRect(0, 0, 360, 480)) { Image = uiImage };
27 | this.View.Add(imageView);
28 | }
29 | }
30 |
31 | public override void DidReceiveMemoryWarning()
32 | {
33 | base.DidReceiveMemoryWarning();
34 | // Release any cached data, images, etc that aren't in use.
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/CSJ2K/Color/ColorSpaceException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ColorSpaceException.java,v 1.1 2002/07/25 14:52:00 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Color
11 | {
12 |
13 | /// This exception is thrown when the content of an
14 | /// image contains an incorrect colorspace box
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 |
24 | public class ColorSpaceException:System.Exception
25 | {
26 |
27 | /// Contruct with message
28 | /// returned by getMessage()
29 | ///
30 | public ColorSpaceException(System.String msg):base(msg)
31 | {
32 | }
33 |
34 |
35 | /// Empty constructor
36 | public ColorSpaceException()
37 | {
38 | }
39 |
40 | /* end class ColorSpaceException */
41 | }
42 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/MonochromeTransformException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: MonochromeTransformException.java,v 1.1 2002/07/25 14:56:49 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Icc.Lut
11 | {
12 |
13 | /// Exception thrown by MonochromeTransformTosRGB.
14 | ///
15 | ///
16 | ///
17 | ///
18 | /// 1.0
19 | ///
20 | /// Bruce A. Kern
21 | ///
22 |
23 | public class MonochromeTransformException:System.Exception
24 | {
25 |
26 | /// Contruct with message
27 | /// returned by getMessage()
28 | ///
29 | internal MonochromeTransformException(System.String msg):base(msg)
30 | {
31 | }
32 |
33 | /// Empty constructor
34 | internal MonochromeTransformException()
35 | {
36 | }
37 |
38 | /* end class MonochromeTransformException */
39 | }
40 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/MatrixBasedTransformException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: MatrixBasedTransformException.java,v 1.1 2002/07/25 14:56:49 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Icc.Lut
11 | {
12 |
13 | /// Thrown by MatrixBasedTransformTosRGB
14 | ///
15 | ///
16 | ///
17 | ///
18 | /// 1.0
19 | ///
20 | /// Bruce A. Kern
21 | ///
22 |
23 | public class MatrixBasedTransformException:System.Exception
24 | {
25 |
26 | /// Contruct with message
27 | /// returned by getMessage()
28 | ///
29 | internal MatrixBasedTransformException(System.String msg):base(msg)
30 | {
31 | }
32 |
33 |
34 | /// Empty constructor
35 | internal MatrixBasedTransformException()
36 | {
37 | }
38 |
39 | /* end class MatrixBasedTransformException */
40 | }
41 | }
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/MainActivity.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.IO;
5 |
6 | using Android.App;
7 | using Android.Graphics;
8 | using Android.Widget;
9 | using Android.OS;
10 |
11 | namespace CSJ2K.Android.Test
12 | {
13 | [Activity(Label = "CSJ2K.Android.Test", MainLauncher = true, Icon = "@drawable/icon")]
14 | public class MainActivity : Activity
15 | {
16 | protected override void OnCreate(Bundle bundle)
17 | {
18 | base.OnCreate(bundle);
19 |
20 | Bitmap bitmap;
21 | using (var stream = new MemoryStream())
22 | {
23 | this.Assets.Open("file2.jp2").CopyTo(stream);
24 | stream.Seek(0, SeekOrigin.Begin);
25 | bitmap = J2kImage.FromStream(stream).As();
26 | }
27 |
28 | // Set our view from the "main" layout resource
29 | SetContentView(Resource.Layout.Main);
30 |
31 | // Get our button from the layout resource,
32 | // and attach an event to it
33 | var imageView = FindViewById(Resource.Id.imageView1);
34 |
35 | imageView.SetImageBitmap(bitmap);
36 | }
37 | }
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using CSJ2K;
5 | using Microsoft.Win32;
6 | using System.Windows;
7 | using System.Windows.Media;
8 |
9 | namespace WPF.CSJ2K.Test
10 | {
11 | ///
12 | /// Interaction logic for MainWindow.xaml
13 | ///
14 | public partial class MainWindow
15 | {
16 | public MainWindow()
17 | {
18 | InitializeComponent();
19 | }
20 |
21 | private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
22 | {
23 | var dlg = new OpenFileDialog
24 | {
25 | Filter = "JPEG 2000 files (*.jp2)|*.jp2",
26 | Multiselect = false,
27 | Title = "Select JPEG 2000 file"
28 | };
29 | if (!dlg.ShowDialog(this).GetValueOrDefault()) return;
30 |
31 | using (var stream = dlg.OpenFile())
32 | {
33 | var image = J2kImage.FromStream(stream).As();
34 | DecodedImage.Source = image;
35 | ImageName.Text = dlg.FileName;
36 | }
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/CSJ2K/Util/ImageFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CSJ2K.j2k.image;
7 |
8 | public static class ImageFactory
9 | {
10 | #region FIELDS
11 |
12 | private static IImageCreator _creator;
13 |
14 | #endregion
15 |
16 | #region CONSTRUCTORS
17 |
18 | static ImageFactory()
19 | {
20 | _creator = J2kSetup.GetDefaultPlatformInstance();
21 | }
22 |
23 | #endregion
24 |
25 | #region METHODS
26 |
27 | public static void Register(IImageCreator creator)
28 | {
29 | _creator = creator;
30 | }
31 |
32 | internal static IImage New(int width, int height, byte[] bytes)
33 | {
34 | return _creator.Create(width, height, bytes);
35 | }
36 |
37 | internal static BlkImgDataSrc ToPortableImageSource(object imageObject)
38 | {
39 | try
40 | {
41 | return _creator.ToPortableImageSource(imageObject);
42 | }
43 | catch
44 | {
45 | return null;
46 | }
47 | }
48 |
49 | #endregion
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/CSJ2K/Util/StoreMsgLogger.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.IO;
8 |
9 | using CSJ2K.j2k.util;
10 |
11 | using Windows.Storage;
12 |
13 | public class StoreMsgLogger : StreamMsgLogger
14 | {
15 | #region FIELDS
16 |
17 | private static readonly IMsgLogger Instance = new StoreMsgLogger();
18 |
19 | #endregion
20 |
21 | #region CONSTRUCTORS
22 |
23 | public StoreMsgLogger()
24 | : base(GetLogFile("csj2k.out"), GetLogFile("csj2k.err"), 132)
25 | {
26 | }
27 |
28 | #endregion
29 |
30 | #region METHODS
31 |
32 | public static void Register()
33 | {
34 | FacilityManager.DefaultMsgLogger = Instance;
35 | }
36 |
37 | private static Stream GetLogFile(string fileName)
38 | {
39 | var file =
40 | ApplicationData.Current.LocalFolder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting)
41 | .AsTask()
42 | .Result;
43 | return file.OpenStreamForWriteAsync().Result;
44 | }
45 |
46 | #endregion
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/CSJ2K/Util/IOSImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CSJ2K.j2k.image;
7 |
8 | public class IOSImageCreator : IImageCreator
9 | {
10 | #region FIELDS
11 |
12 | private static readonly IImageCreator Instance = new IOSImageCreator();
13 |
14 | #endregion
15 |
16 | #region PROPERTIES
17 |
18 | ///
19 | /// Gets whether or not this type is classified as a default manager.
20 | ///
21 | public bool IsDefault
22 | {
23 | get
24 | {
25 | return true;
26 | }
27 | }
28 |
29 | #endregion
30 |
31 | #region METHODS
32 |
33 | public static void Register()
34 | {
35 | ImageFactory.Register(Instance);
36 | }
37 |
38 | public IImage Create(int width, int height, byte[] bytes)
39 | {
40 | return new IOSImage(width, height, bytes);
41 | }
42 |
43 | public BlkImgDataSrc ToPortableImageSource(object imageObject)
44 | {
45 | throw new System.NotImplementedException();
46 | }
47 |
48 | #endregion
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/CSJ2K/Util/SilverlightMsgLogger.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System.IO;
7 | using System.IO.IsolatedStorage;
8 |
9 | using CSJ2K.j2k.util;
10 |
11 | public class SilverlightMsgLogger : StreamMsgLogger
12 | {
13 | #region FIELDS
14 |
15 | private static readonly IMsgLogger Instance = new SilverlightMsgLogger();
16 |
17 | #endregion
18 |
19 | #region CONSTRUCTORS
20 |
21 | public SilverlightMsgLogger()
22 | : base(GetIsolatedFileStream("csj2k.out"), GetIsolatedFileStream("csj2k.out"), 78)
23 | {
24 | }
25 |
26 | #endregion
27 |
28 | #region METHODS
29 |
30 | public static void Register()
31 | {
32 | FacilityManager.DefaultMsgLogger = Instance;
33 | }
34 |
35 | private static Stream GetIsolatedFileStream(string fileName)
36 | {
37 | using (var isolatedFile = IsolatedStorageFile.GetUserStoreForApplication())
38 | {
39 | return new IsolatedStorageFileStream(fileName, FileMode.Create, FileAccess.ReadWrite, isolatedFile);
40 | }
41 | }
42 |
43 | #endregion
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/ICCProfileNotFoundException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCProfileNotFoundException.java,v 1.1 2002/07/25 14:56:55 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Icc
11 | {
12 |
13 | /// This exception is thrown when an image contains no icc profile.
14 | /// is incorrect.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 |
24 | public class ICCProfileNotFoundException:ICCProfileException
25 | {
26 |
27 | /// Contruct with message
28 | /// returned by getMessage()
29 | ///
30 | internal ICCProfileNotFoundException(System.String msg):base(msg)
31 | {
32 | }
33 |
34 |
35 | /// Empty constructor
36 | internal ICCProfileNotFoundException():base("no icc profile in image")
37 | {
38 | }
39 |
40 | /* end class ICCProfileNotFoundException */
41 | }
42 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/ICCProfileInvalidException.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCProfileInvalidException.java,v 1.1 2002/07/25 14:56:55 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | namespace CSJ2K.Icc
11 | {
12 |
13 | /// This exception is thrown when the content of an an icc profile
14 | /// is in someway incorrect.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 |
24 | public class ICCProfileInvalidException:ICCProfileException
25 | {
26 |
27 | /// Contruct with message
28 | /// returned by getMessage()
29 | ///
30 | internal ICCProfileInvalidException(System.String msg):base(msg)
31 | {
32 | }
33 |
34 |
35 | /// Empty constructor
36 | internal ICCProfileInvalidException():base("icc profile is invalid")
37 | {
38 | }
39 |
40 | /* end class ICCProfileInvalidException */
41 | }
42 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCViewType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CSJ2K.Icc;
3 | using CSJ2K.Icc.Types;
4 |
5 | namespace CSJ2K.Icc.Tags
6 | {
7 | public class ICCViewType : ICCTag
8 | {
9 | new public int type;
10 | public int reserved;
11 | public XYZNumber CIEilluminant;
12 | public XYZNumber CIEsurround;
13 | public int illuminant;
14 |
15 | /// Construct this tag from its constituant parts
16 | /// tag id
17 | /// array of bytes
18 | /// to data in the data array
19 | /// of data in the data array
20 | protected internal ICCViewType(int signature, byte[] data, int offset, int length)
21 | : base(signature, data, offset, offset + 2 * ICCProfile.int_size)
22 | {
23 | type = ICCProfile.getInt(data, offset);
24 | reserved = ICCProfile.getInt(data, offset + ICCProfile.int_size);
25 | CIEilluminant = ICCProfile.getXYZNumber(data, offset + ICCProfile.int_size);
26 | CIEsurround = ICCProfile.getXYZNumber(data, offset + (ICCProfile.int_size*3));
27 | illuminant = ICCProfile.getInt(data, offset + (ICCProfile.int_size * 3));
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/AndroidBitmapImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CSJ2K.j2k.image;
7 |
8 | public class AndroidBitmapImageCreator : IImageCreator
9 | {
10 | #region FIELDS
11 |
12 | private static readonly IImageCreator Instance = new AndroidBitmapImageCreator();
13 |
14 | #endregion
15 |
16 | #region PROPERTIES
17 |
18 | ///
19 | /// Gets whether or not this type is classified as a default manager.
20 | ///
21 | public bool IsDefault
22 | {
23 | get
24 | {
25 | return true;
26 | }
27 | }
28 |
29 | #endregion
30 |
31 | #region METHODS
32 |
33 | public static void Register()
34 | {
35 | ImageFactory.Register(Instance);
36 | }
37 |
38 | public IImage Create(int width, int height, byte[] bytes)
39 | {
40 | return new AndroidBitmapImage(width, height, bytes);
41 | }
42 |
43 | public BlkImgDataSrc ToPortableImageSource(object imageObject)
44 | {
45 | throw new System.NotImplementedException();
46 | }
47 |
48 | #endregion
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/codectest/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("codectest")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("codectest")]
13 | [assembly: AssemblyCopyright("Copyright © 2007")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2637284e-8f49-4db5-8882-d50a46dfcda1")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/CSJ2K/Util/WriteableBitmapImageCreator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 |
8 | using CSJ2K.j2k.image;
9 |
10 | public class WriteableBitmapImageCreator : IImageCreator
11 | {
12 | #region FIELDS
13 |
14 | private static readonly IImageCreator Instance = new WriteableBitmapImageCreator();
15 |
16 | #endregion
17 |
18 | #region PROPERTIES
19 |
20 | ///
21 | /// Gets whether or not this type is classified as a default manager.
22 | ///
23 | public bool IsDefault
24 | {
25 | get
26 | {
27 | return true;
28 | }
29 | }
30 |
31 | #endregion
32 |
33 | #region METHODS
34 |
35 | public static void Register()
36 | {
37 | ImageFactory.Register(Instance);
38 | }
39 |
40 | public IImage Create(int width, int height, byte[] bytes)
41 | {
42 | return new WriteableBitmapImage(width, height, bytes);
43 | }
44 |
45 | public BlkImgDataSrc ToPortableImageSource(object imageObject)
46 | {
47 | throw new NotImplementedException();
48 | //return WriteableBitmapImageSource.Create(imageObject);
49 | }
50 |
51 | #endregion
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SL.CSJ2K.Test")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("SL.CSJ2K.Test")]
13 | [assembly: AssemblyCopyright("Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2e9db835-9117-42e6-bf88-727de2ccb375")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCMeasurementType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CSJ2K.Icc;
3 | using CSJ2K.Icc.Types;
4 |
5 | namespace CSJ2K.Icc.Tags
6 | {
7 | public class ICCMeasurementType : ICCTag
8 | {
9 | new public int type;
10 | public int reserved;
11 | public int observer;
12 | public XYZNumber backing;
13 | public int geometry;
14 | public int flare;
15 | public int illuminant;
16 |
17 | /// Construct this tag from its constituant parts
18 | /// tag id
19 | /// array of bytes
20 | /// to data in the data array
21 | /// of data in the data array
22 | protected internal ICCMeasurementType(int signature, byte[] data, int offset, int length)
23 | : base(signature, data, offset, offset + 2 * ICCProfile.int_size)
24 | {
25 | type = ICCProfile.getInt(data, offset);
26 | reserved = ICCProfile.getInt(data, offset + ICCProfile.int_size);
27 | observer = ICCProfile.getInt(data, offset + ICCProfile.int_size);
28 | backing = ICCProfile.getXYZNumber(data, offset + ICCProfile.int_size);
29 | geometry = ICCProfile.getInt(data, offset + (ICCProfile.int_size*3));
30 | flare = ICCProfile.getInt(data, offset + ICCProfile.int_size);
31 | illuminant = ICCProfile.getInt(data, offset + ICCProfile.int_size);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/DotnetFileInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.IO;
8 |
9 | internal class DotnetFileInfo : IFileInfo
10 | {
11 | #region FIELDS
12 |
13 | private readonly FileInfo _fileInfo;
14 |
15 | #endregion
16 |
17 | #region CONSTRUCTORS
18 |
19 | internal DotnetFileInfo(string fileName)
20 | {
21 | _fileInfo = new FileInfo(fileName);
22 | }
23 |
24 | #endregion
25 |
26 | #region PROPERTIES
27 |
28 | public string Name
29 | {
30 | get
31 | {
32 | return _fileInfo.Name;
33 | }
34 | }
35 |
36 | public string FullName
37 | {
38 | get
39 | {
40 | return _fileInfo.FullName;
41 | }
42 | }
43 |
44 | public bool Exists
45 | {
46 | get
47 | {
48 | return _fileInfo.Exists;
49 | }
50 | }
51 |
52 | #endregion
53 |
54 | #region METHODS
55 |
56 | public bool Delete()
57 | {
58 | try
59 | {
60 | _fileInfo.Delete();
61 | return true;
62 | }
63 | catch (Exception)
64 | {
65 | return false;
66 | }
67 | }
68 |
69 | #endregion
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/CSJ2K/Util/ImageBase.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using System;
7 | using System.Reflection;
8 |
9 |
10 | public abstract class ImageBase : IImage
11 | {
12 | #region FIELDS
13 |
14 | protected const int SizeOfArgb = 4;
15 |
16 | #endregion
17 |
18 | #region CONSTRUCTORS
19 |
20 | protected ImageBase(int width, int height, byte[] bytes)
21 | {
22 | Width = width;
23 | Height = height;
24 | Bytes = bytes;
25 | }
26 |
27 | #endregion
28 |
29 | #region PROPERTIES
30 |
31 | protected int Width { get; }
32 |
33 | protected int Height { get; }
34 |
35 | protected byte[] Bytes { get; }
36 |
37 | #endregion
38 |
39 | #region METHODS
40 |
41 | public virtual T As()
42 | {
43 | #if NETFX_CORE || NETSTANDARD
44 | if (!typeof(TBase).GetTypeInfo().IsAssignableFrom(typeof(T).GetTypeInfo()))
45 | #else
46 | if (!typeof(TBase).IsAssignableFrom(typeof(T)))
47 | #endif
48 | {
49 | throw new InvalidCastException(
50 | $"Cannot cast to '{typeof(T).Name}'; type must be assignable from '{typeof(TBase).Name}'");
51 | }
52 |
53 | return (T)GetImageObject();
54 | }
55 |
56 | protected abstract object GetImageObject();
57 |
58 | #endregion
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CSJ2K.iOS.Test")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CSJ2K.iOS.Test")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("7a2661ab-a8c8-4ddc-9650-8803df1696e2")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using System.Resources;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("WP.CSJ2K.Test")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("WP.CSJ2K.Test")]
14 | [assembly: AssemblyCopyright("Copyright © 2013")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 |
18 | // Setting ComVisible to false makes the types in this assembly not visible
19 | // to COM components. If you need to access a type in this assembly from
20 | // COM, set the ComVisible attribute to true on that type.
21 | [assembly: ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 | [assembly: Guid("043ae956-c11f-49b5-b755-8fcd5070df12")]
25 |
26 | // Version information for an assembly consists of the following four values:
27 | //
28 | // Major Version
29 | // Minor Version
30 | // Build Number
31 | // Revision
32 | //
33 | // You can specify all the values or you can default the Revision and Build Numbers
34 | // by using the '*' as shown below:
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 | [assembly: NeutralResourcesLanguageAttribute("en-US")]
38 |
--------------------------------------------------------------------------------
/CSJ2K.Android/Resources/Resource.Designer.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable 1591
2 | //------------------------------------------------------------------------------
3 | //
4 | // This code was generated by a tool.
5 | // Runtime Version:4.0.30319.42000
6 | //
7 | // Changes to this file may cause incorrect behavior and will be lost if
8 | // the code is regenerated.
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | [assembly: global::Android.Runtime.ResourceDesignerAttribute("CSJ2K.Resource", IsApplication=false)]
13 |
14 | namespace CSJ2K
15 | {
16 |
17 |
18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
19 | public partial class Resource
20 | {
21 |
22 | static Resource()
23 | {
24 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
25 | }
26 |
27 | public partial class Attribute
28 | {
29 |
30 | static Attribute()
31 | {
32 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
33 | }
34 |
35 | private Attribute()
36 | {
37 | }
38 | }
39 |
40 | public partial class String
41 | {
42 |
43 | // aapt resource value: 0x7f020001
44 | public static int ApplicationName = 2130837505;
45 |
46 | // aapt resource value: 0x7f020000
47 | public static int Hello = 2130837504;
48 |
49 | static String()
50 | {
51 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
52 | }
53 |
54 | private String()
55 | {
56 | }
57 | }
58 | }
59 | }
60 | #pragma warning restore 1591
61 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable8Gamma.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable8Gamma.java,v 1.1 2002/07/25 14:56:48 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// A Gamma based 16 bit lut.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 | public class LookUpTable8Gamma:LookUpTable8
24 | {
25 |
26 | /* Construct the lut
27 | * @param curve data
28 | * @param dwNumInput size of lut
29 | * @param dwMaxOutput max value of lut
30 | */
31 | public LookUpTable8Gamma(ICCCurveType curve, int dwNumInput, byte dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
32 | {
33 | double dfE = ICCCurveType.CurveGammaToDouble(curve.entry(0)); // Gamma exponent for inverse transformation
34 | for (int i = 0; i < dwNumInput; i++)
35 | {
36 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
37 | lut[i] = (byte) System.Math.Floor(System.Math.Pow((double) i / (dwNumInput - 1), dfE) * dwMaxOutput + 0.5);
38 | }
39 | }
40 |
41 | /* end class LookUpTable8Gamma */
42 | }
43 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable16Gamma.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable16Gamma.java,v 1.1 2002/07/25 14:56:46 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// A Gamma based 16 bit lut.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 | public class LookUpTable16Gamma:LookUpTable16
24 | {
25 |
26 | /* Construct the lut
27 | * @param curve data
28 | * @param dwNumInput size of lut
29 | * @param dwMaxOutput max value of lut
30 | */
31 | public LookUpTable16Gamma(ICCCurveType curve, int dwNumInput, int dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
32 | {
33 | double dfE = ICCCurveType.CurveGammaToDouble(curve.entry(0)); // Gamma exponent for inverse transformation
34 | for (int i = 0; i < dwNumInput; i++)
35 | {
36 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
37 | lut[i] = (short) System.Math.Floor(System.Math.Pow((double) i / (dwNumInput - 1), dfE) * dwMaxOutput + 0.5);
38 | }
39 | }
40 |
41 | /* end class LookUpTable16Gamma */
42 | }
43 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable32Gamma.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable32Gamma.java,v 1.1 2002/07/25 14:56:47 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// A Gamma based 32 bit lut.
15 | ///
16 | ///
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 |
24 | public class LookUpTable32Gamma:LookUpTable32
25 | {
26 |
27 |
28 | /* Construct the lut
29 | * @param curve data
30 | * @param dwNumInput size of lut
31 | * @param dwMaxOutput max value of lut
32 | */
33 | public LookUpTable32Gamma(ICCCurveType curve, int dwNumInput, int dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
34 | {
35 | double dfE = ICCCurveType.CurveGammaToDouble(curve.entry(0)); // Gamma exponent for inverse transformation
36 | for (int i = 0; i < dwNumInput; i++)
37 | {
38 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
39 | lut[i] = (int) System.Math.Floor(System.Math.Pow((double) i / (dwNumInput - 1), dfE) * dwMaxOutput + 0.5);
40 | }
41 | }
42 |
43 | /* end class LookUpTable32Gamma */
44 | }
45 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable.java,v 1.1 2002/07/25 14:56:49 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 |
15 | /// Toplevel class for a lut. All lookup tables must
16 | /// extend this class.
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 | public abstract class LookUpTable
24 | {
25 |
26 | /// End of line string.
27 | //UPGRADE_NOTE: Final was removed from the declaration of 'eol '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
28 | protected internal static readonly System.String eol = System.Environment.NewLine;
29 | /// The curve data
30 | protected internal ICCCurveType curve = null;
31 | /// Number of values in created lut
32 | protected internal int dwNumInput = 0;
33 |
34 |
35 | /// For subclass usage.
36 | /// The curve data
37 | ///
38 | /// Number of values in created lut
39 | ///
40 | protected internal LookUpTable(ICCCurveType curve, int dwNumInput)
41 | {
42 | this.curve = curve;
43 | this.dwNumInput = dwNumInput;
44 | }
45 |
46 | /* end class LookUpTable */
47 | }
48 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/WriteableBitmapImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | #if NETFX_CORE
7 | using System.Runtime.InteropServices.WindowsRuntime;
8 | using Windows.UI.Xaml.Media;
9 | using Windows.UI.Xaml.Media.Imaging;
10 | #elif SILVERLIGHT
11 | using System;
12 | using System.Windows.Media;
13 | using System.Windows.Media.Imaging;
14 | #else
15 | using System.Runtime.InteropServices;
16 | using System.Windows;
17 | using System.Windows.Media;
18 | using System.Windows.Media.Imaging;
19 | #endif
20 |
21 | internal class WriteableBitmapImage : ImageBase
22 | {
23 | #region CONSTRUCTORS
24 |
25 | internal WriteableBitmapImage(int width, int height, byte[] bytes)
26 | : base(width, height, bytes)
27 | {
28 | }
29 |
30 | #endregion
31 |
32 | #region METHODS
33 |
34 | protected override object GetImageObject()
35 | {
36 | #if NETFX_CORE
37 | var wbm = new WriteableBitmap(this.Width, this.Height);
38 | this.Bytes.CopyTo(0, wbm.PixelBuffer, 0, this.Bytes.Length);
39 | #elif SILVERLIGHT
40 | var wbm = new WriteableBitmap(this.Width, this.Height);
41 | Buffer.BlockCopy(this.Bytes, 0, wbm.Pixels, 0, this.Bytes.Length);
42 | #else
43 | var wbm = new WriteableBitmap(this.Width, this.Height, 96.0, 96.0, PixelFormats.Pbgra32, null);
44 | wbm.Lock();
45 | Marshal.Copy(this.Bytes, 0, wbm.BackBuffer, this.Bytes.Length);
46 | wbm.AddDirtyRect(new Int32Rect(0, 0, this.Width, this.Height));
47 | wbm.Unlock();
48 | #endif
49 | return wbm;
50 | }
51 |
52 | #endregion
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/CSJ2K/Util/StoreFileInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Threading.Tasks;
4 | using Windows.Storage;
5 |
6 | namespace CSJ2K.Util
7 | {
8 | internal class StoreFileInfo : IFileInfo
9 | {
10 | #region CONSTRUCTORS
11 |
12 | internal StoreFileInfo(string fileName)
13 | {
14 | FullName = fileName;
15 | }
16 |
17 | #endregion
18 |
19 | #region PROPERTIES
20 |
21 | public string Name { get { return Path.GetFileName(FullName); } }
22 |
23 | public string FullName { get; private set; }
24 |
25 | public bool Exists
26 | {
27 | get
28 | {
29 | return Task.Run(async () =>
30 | {
31 | try
32 | {
33 | var file = await StorageFile.GetFileFromPathAsync(FullName);
34 | return file != null;
35 | }
36 | catch
37 | {
38 | return false;
39 | }
40 | }).Result;
41 | }
42 | }
43 |
44 | #endregion
45 |
46 | #region METHODS
47 |
48 | public bool Delete()
49 | {
50 | return Task.Run(async () =>
51 | {
52 | try
53 | {
54 | var file = await StorageFile.GetFileFromPathAsync(FullName);
55 | await file.DeleteAsync();
56 | return true;
57 | }
58 | catch
59 | {
60 | return false;
61 | }
62 | }).Result;
63 | }
64 |
65 | #endregion
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System.Windows;
5 | using System.Windows.Media;
6 |
7 | using CSJ2K;
8 |
9 | namespace WP.CSJ2K.Test
10 | {
11 | public partial class MainPage
12 | {
13 | // Constructor
14 | public MainPage()
15 | {
16 | InitializeComponent();
17 |
18 | // Sample code to localize the ApplicationBar
19 | //BuildLocalizedApplicationBar();
20 | }
21 |
22 | // Sample code for building a localized ApplicationBar
23 | //private void BuildLocalizedApplicationBar()
24 | //{
25 | // // Set the page's ApplicationBar to a new instance of ApplicationBar.
26 | // ApplicationBar = new ApplicationBar();
27 |
28 | // // Create a new button and set the text value to the localized string from AppResources.
29 | // ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative));
30 | // appBarButton.Text = AppResources.AppBarButtonText;
31 | // ApplicationBar.Buttons.Add(appBarButton);
32 |
33 | // // Create a new menu item with the localized string from AppResources.
34 | // ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText);
35 | // ApplicationBar.MenuItems.Add(appBarMenuItem);
36 | //}
37 |
38 | private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
39 | {
40 | using (var stream = typeof(MainPage).Assembly.GetManifestResourceStream("WP.CSJ2K.Test.Resources.file1.jp2"))
41 | {
42 | DecodedImage.Source = J2kImage.FromStream(stream).As();
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/.nuget/CSJ2K.0.9.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CSJ2K
5 | 0.9.0
6 | CSJ2K JPEG 2000 codec library
7 | Anders Gustafsson,Jason S. Clary,JJ2000 Partners
8 | Cureos AB
9 | http://www.opensource.org/licenses/bsd-license.php
10 | https://github.com/cureos/csj2k
11 | false
12 | Portable Class Library for decoding and encoding JPEG2000 images from Windows Store, Windows Phone, Silverlight and .NET (WPF and Windows Forms) applications.
13 | Portable JPEG 2000 codec library
14 | (c) 1999-2000 JJ2000 Partners, original C# port (c) 2007-2012 Jason S. Clary, adaptation to Portable Class Library, Windows Store, Windows Phone, WPF and Silverlight extensions (c) 2013 Anders Gustafsson, Cureos AB
15 | en-US
16 | JPEG2000 codec Silverlight WindowsPhone WP8 WPF .NET WinRT Metro Windows Store
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/ICCMonochromeInputProfile.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCMonochromeInputProfile.java,v 1.1 2002/07/25 14:56:54 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ColorSpace = CSJ2K.Color.ColorSpace;
11 | using ColorSpaceException = CSJ2K.Color.ColorSpaceException;
12 | using RandomAccessIO = CSJ2K.j2k.io.RandomAccessIO;
13 | namespace CSJ2K.Icc
14 | {
15 |
16 | /// The monochrome ICCProfile.
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 | public class ICCMonochromeInputProfile:ICCProfile
24 | {
25 |
26 | /// Return the ICCProfile embedded in the input image
27 | /// jp2 image with embedded profile
28 | ///
29 | /// ICCMonochromeInputProfile
30 | ///
31 | ///
32 | ///
33 | ///
34 | ///
35 | public static ICCMonochromeInputProfile createInstance(ColorSpace csm)
36 | {
37 | return new ICCMonochromeInputProfile(csm);
38 | }
39 |
40 | /// Construct a ICCMonochromeInputProfile corresponding to the profile file
41 | /// disk based ICCMonochromeInputProfile
42 | ///
43 | /// theICCMonochromeInputProfile
44 | ///
45 | ///
46 | ///
47 | ///
48 | ///
49 | protected internal ICCMonochromeInputProfile(ColorSpace csm):base(csm)
50 | {
51 | }
52 |
53 | /* end class ICCMonochromeInputProfile */
54 | }
55 | }
--------------------------------------------------------------------------------
/CSJ2K.WP8.Test/Properties/WMAppManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Assets\ApplicationIcon.png
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Assets\Tiles\FlipCycleTileSmall.png
21 | 0
22 | Assets\Tiles\FlipCycleTileMedium.png
23 | WP.CSJ2K.Test
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/ICCMatrixBasedInputProfile.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCMatrixBasedInputProfile.java,v 1.1 2002/07/25 14:56:54 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ColorSpace = CSJ2K.Color.ColorSpace;
11 | using ColorSpaceException = CSJ2K.Color.ColorSpaceException;
12 | using RandomAccessIO = CSJ2K.j2k.io.RandomAccessIO;
13 | namespace CSJ2K.Icc
14 | {
15 |
16 | /// This class enables an application to construct an 3 component ICCProfile
17 | ///
18 | ///
19 | /// 1.0
20 | ///
21 | /// Bruce A. Kern
22 | ///
23 |
24 | public class ICCMatrixBasedInputProfile:ICCProfile
25 | {
26 |
27 | /// Factory method to create ICCMatrixBasedInputProfile based on a
28 | /// suppled profile file.
29 | ///
30 | /// contains a disk based ICCProfile.
31 | ///
32 | /// the ICCMatrixBasedInputProfile
33 | ///
34 | ///
35 | ///
36 | ///
37 | ///
38 | public static ICCMatrixBasedInputProfile createInstance(ColorSpace csm)
39 | {
40 | return new ICCMatrixBasedInputProfile(csm);
41 | }
42 |
43 | /// Construct an ICCMatrixBasedInputProfile based on a
44 | /// suppled profile file.
45 | ///
46 | /// contains a disk based ICCProfile.
47 | ///
48 | ///
49 | ///
50 | ///
51 | ///
52 | protected internal ICCMatrixBasedInputProfile(ColorSpace csm):base(csm)
53 | {
54 | }
55 |
56 | /* end class ICCMatrixBasedInputProfile */
57 | }
58 | }
--------------------------------------------------------------------------------
/CSJ2K/Util/IOSImage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace CSJ2K.Util
5 | {
6 | using CoreGraphics;
7 |
8 | using CoreImage;
9 |
10 | using UIKit;
11 |
12 | internal class IOSImage : ImageBase
13 | {
14 | #region CONSTRUCTORS
15 |
16 | internal IOSImage(int width, int height, byte[] bytes)
17 | : base(width, height, bytes)
18 | {
19 | }
20 |
21 | #endregion
22 |
23 | #region METHODS
24 |
25 | public override T As()
26 | {
27 | if (typeof(T) == typeof(UIImage))
28 | {
29 | return (T)(object)new UIImage((CGImage)this.GetImageObject());
30 | }
31 |
32 | if (typeof(T) == typeof(CIImage))
33 | {
34 | return (T)(object)new CIImage((CGImage)this.GetImageObject());
35 | }
36 |
37 | return (T)this.GetImageObject();
38 | }
39 |
40 | protected override object GetImageObject()
41 | {
42 | var length = this.Bytes.Length;
43 | var bytes = new byte[length];
44 |
45 | // Switch byte representation from BGRA to RGBA
46 | for (var k = 0; k < length; k += 4)
47 | {
48 | bytes[k] = this.Bytes[k + 2];
49 | bytes[k + 1] = this.Bytes[k + 1];
50 | bytes[k + 2] = this.Bytes[k];
51 | bytes[k + 3] = this.Bytes[k + 3];
52 | }
53 |
54 | using (
55 | var context = new CGBitmapContext(
56 | bytes,
57 | this.Width,
58 | this.Height,
59 | 8,
60 | SizeOfArgb * this.Width,
61 | CGColorSpace.CreateDeviceRGB(),
62 | CGImageAlphaInfo.PremultipliedLast))
63 | {
64 | return context.ToImage();
65 | }
66 | }
67 |
68 | #endregion
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/MonochromeInputRestrictedProfile.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: MonochromeInputRestrictedProfile.java,v 1.1 2002/07/25 14:56:56 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc
12 | {
13 |
14 | /// This class is a 1 component RestrictedICCProfile
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A Kern
20 | ///
21 | public class MonochromeInputRestrictedProfile:RestrictedICCProfile
22 | {
23 | /// Get the type of RestrictedICCProfile for this object
24 | /// kMonochromeInput
25 | ///
26 | override public int Type
27 | {
28 | get
29 | {
30 | return kMonochromeInput;
31 | }
32 |
33 | }
34 |
35 | /// Factory method which returns a 1 component RestrictedICCProfile
36 | /// Gray TRC curve
37 | ///
38 | /// the RestrictedICCProfile
39 | ///
40 | public static new RestrictedICCProfile createInstance(ICCCurveType c)
41 | {
42 | return new MonochromeInputRestrictedProfile(c);
43 | }
44 |
45 | /// Construct a 1 component RestrictedICCProfile
46 | /// Gray TRC curve
47 | ///
48 | private MonochromeInputRestrictedProfile(ICCCurveType c):base(c)
49 | {
50 | }
51 |
52 | /// String representation of a MonochromeInputRestrictedProfile
53 | ///
54 | public override System.String ToString()
55 | {
56 | System.Text.StringBuilder rep = new System.Text.StringBuilder("Monochrome Input Restricted ICC profile" + eol);
57 |
58 | rep.Append("trc[GRAY]:" + eol).Append(trc[GRAY]).Append(eol);
59 |
60 | return rep.ToString();
61 | }
62 |
63 | /* end class MonochromeInputRestrictedProfile */
64 | }
65 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTableFPGamma.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTableFPGamma.java,v 1.1 2002/07/25 14:56:48 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// Class Description
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A. Kern
20 | ///
21 |
22 | public class LookUpTableFPGamma:LookUpTableFP
23 | {
24 |
25 | internal double dfE = - 1;
26 | //UPGRADE_NOTE: Final was removed from the declaration of 'eol '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
27 | new private static readonly System.String eol = System.Environment.NewLine;
28 |
29 | public LookUpTableFPGamma(ICCCurveType curve, int dwNumInput):base(curve, dwNumInput)
30 | {
31 |
32 | // Gamma exponent for inverse transformation
33 | dfE = ICCCurveType.CurveGammaToDouble(curve.entry(0));
34 | for (int i = 0; i < dwNumInput; i++)
35 | {
36 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
37 | lut[i] = (float) System.Math.Pow((double) i / (dwNumInput - 1), dfE);
38 | }
39 | }
40 |
41 | /// Create an abbreviated string representation of a 16 bit lut.
42 | /// the lut as a String
43 | ///
44 | public override System.String ToString()
45 | {
46 | System.Text.StringBuilder rep = new System.Text.StringBuilder("[LookUpTableGamma ");
47 | //int row, col;
48 | rep.Append("dfe= " + dfE);
49 | rep.Append(", nentries= " + lut.Length);
50 | return rep.Append("]").ToString();
51 | }
52 |
53 |
54 | /* end class LookUpTableFPGamma */
55 | }
56 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTableFP.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTableFP.java,v 1.1 2002/07/25 14:56:49 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// Toplevel class for a float [] lut.
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A. Kern
20 | ///
21 | public abstract class LookUpTableFP:LookUpTable
22 | {
23 |
24 | /// The lut values.
25 | //UPGRADE_NOTE: Final was removed from the declaration of 'lut '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
26 | public float[] lut;
27 |
28 | /// Factory method for getting a lut from a given curve.
29 | /// the data
30 | ///
31 | /// the size of the lut
32 | ///
33 | /// the lookup table
34 | ///
35 |
36 | public static LookUpTableFP createInstance(ICCCurveType curve, int dwNumInput)
37 | {
38 |
39 | if (curve.nEntries == 1)
40 | return new LookUpTableFPGamma(curve, dwNumInput);
41 | else
42 | return new LookUpTableFPInterp(curve, dwNumInput);
43 | }
44 |
45 | /// Construct an empty lut
46 | /// the size of the lut t lut.
47 | ///
48 | /// max output value of the lut
49 | ///
50 | protected internal LookUpTableFP(ICCCurveType curve, int dwNumInput):base(curve, dwNumInput)
51 | {
52 | lut = new float[dwNumInput];
53 | }
54 |
55 | /// lut accessor
56 | /// of the element
57 | ///
58 | /// the lut [index]
59 | ///
60 | public float elementAt(int index)
61 | {
62 | return lut[index];
63 | }
64 |
65 | /* end class LookUpTableFP */
66 | }
67 | }
--------------------------------------------------------------------------------
/codectest/HighPerfTimer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using System.ComponentModel;
4 | using System.Threading;
5 |
6 | namespace codectest
7 | {
8 | public class HiPerfTimer
9 | {
10 | [DllImport("Kernel32.dll")]
11 | private static extern bool QueryPerformanceCounter(out long lpPerformanceCount);
12 | [DllImport("Kernel32.dll")]
13 | private static extern bool QueryPerformanceFrequency(out long lpFrequency);
14 | private long startTime;
15 | private long stopTime;
16 | private long freq;
17 | ///
18 | /// ctor
19 | ///
20 | public HiPerfTimer()
21 | {
22 | startTime = 0;
23 | stopTime = 0;
24 | freq = 0;
25 | if (QueryPerformanceFrequency(out freq) == false)
26 | {
27 | throw new Win32Exception(); // timer not supported
28 | }
29 | }
30 | ///
31 | /// Start the timer
32 | ///
33 | /// long - tick count
34 | public long Start()
35 | {
36 | QueryPerformanceCounter(out startTime);
37 | return startTime;
38 | }
39 | ///
40 | /// Stop timer
41 | ///
42 | /// long - tick count
43 | public long Stop()
44 | {
45 | QueryPerformanceCounter(out stopTime);
46 | return stopTime;
47 | }
48 | ///
49 | /// Return the duration of the timer (in seconds)
50 | ///
51 | /// double - duration
52 | public double Duration
53 | {
54 | get
55 | {
56 | return (double)(stopTime - startTime) / (double)freq;
57 | }
58 | }
59 | ///
60 | /// Frequency of timer (no counts in one second on this machine)
61 | ///
62 | ///long - Frequency
63 | public long Frequency
64 | {
65 | get
66 | {
67 | QueryPerformanceFrequency(out freq);
68 | return freq;
69 | }
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/.nuget/CSJ2K.0.9.0.1.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CSJ2K
5 | 0.9.0.1
6 | CSJ2K JPEG 2000 codec library
7 | Anders Gustafsson,Jason S. Clary,JJ2000 Partners
8 | Cureos AB
9 | http://www.opensource.org/licenses/bsd-license.php
10 | https://github.com/cureos/csj2k
11 | false
12 | Portable Class Library for decoding and encoding JPEG2000 images from Windows Store, Windows Phone, Silverlight and .NET (WPF and Windows Forms) applications.
13 | Portable JPEG 2000 codec library
14 | 0.9.0.1:
15 | PCL library incorrectly located in 0.9.0; corrected.
16 | (c) 1999-2000 JJ2000 Partners, original C# port (c) 2007-2012 Jason S. Clary, adaptation to Portable Class Library, Windows Store, Windows Phone, WPF and Silverlight extensions (c) 2013 Anders Gustafsson, Cureos AB
17 | en-US
18 | JPEG2000 codec Silverlight WindowsPhone WP8 WPF .NET WinRT Metro Windows Store
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/CSJ2K.Silverlight.Test/App.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | namespace SL.CSJ2K.Test
5 | {
6 | using System;
7 | using System.Windows;
8 |
9 | public partial class App
10 | {
11 |
12 | public App()
13 | {
14 | Startup += Application_Startup;
15 | Exit += Application_Exit;
16 | UnhandledException += Application_UnhandledException;
17 |
18 | InitializeComponent();
19 | }
20 |
21 | private void Application_Startup(object sender, StartupEventArgs e)
22 | {
23 | RootVisual = new MainPage();
24 | }
25 |
26 | private void Application_Exit(object sender, EventArgs e)
27 | {
28 | }
29 |
30 | private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
31 | {
32 | // If the app is running outside of the debugger then report the exception using
33 | // the browser's exception mechanism. On IE this will display it a yellow alert
34 | // icon in the status bar and Firefox will display a script error.
35 | if (!System.Diagnostics.Debugger.IsAttached)
36 | {
37 |
38 | // NOTE: This will allow the application to continue running after an exception has been thrown
39 | // but not handled.
40 | // For production applications this error handling should be replaced with something that will
41 | // report the error to the website and stop the application.
42 | e.Handled = true;
43 | Deployment.Current.Dispatcher.BeginInvoke(() => ReportErrorToDOM(e));
44 | }
45 | }
46 |
47 | private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
48 | {
49 | try
50 | {
51 | string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
52 | errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
53 |
54 | System.Windows.Browser.HtmlPage.Window.Eval(
55 | "throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
56 | }
57 | catch (Exception)
58 | {
59 | }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("WPF.CSJ2K")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("WPF.CSJ2K")]
15 | [assembly: AssemblyCopyright("Copyright © 2013")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/codectest/ImageDialog.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace codectest
2 | {
3 | partial class ImageDialog
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.pictureBox1 = new System.Windows.Forms.PictureBox();
32 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
33 | this.SuspendLayout();
34 | //
35 | // pictureBox1
36 | //
37 | this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
38 | this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
39 | this.pictureBox1.Location = new System.Drawing.Point(0, 0);
40 | this.pictureBox1.Name = "pictureBox1";
41 | this.pictureBox1.Size = new System.Drawing.Size(292, 273);
42 | this.pictureBox1.TabIndex = 0;
43 | this.pictureBox1.TabStop = false;
44 | //
45 | // ImageDialog
46 | //
47 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
48 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
49 | this.ClientSize = new System.Drawing.Size(292, 273);
50 | this.Controls.Add(this.pictureBox1);
51 | this.Name = "ImageDialog";
52 | this.Text = "ImageDialog";
53 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
54 | this.ResumeLayout(false);
55 |
56 | }
57 |
58 | #endregion
59 |
60 | public System.Windows.Forms.PictureBox pictureBox1;
61 |
62 | }
63 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCTextType.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCTextType.java,v 1.1 2002/07/25 14:56:37 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCProfile = CSJ2K.Icc.ICCProfile;
11 | namespace CSJ2K.Icc.Tags
12 | {
13 |
14 | /// A text based ICC tag
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A. Kern
20 | ///
21 | public class ICCTextType:ICCTag
22 | {
23 |
24 | /// Tag fields
25 | //UPGRADE_NOTE: Final was removed from the declaration of 'type '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
26 | new public int type;
27 | /// Tag fields
28 | //UPGRADE_NOTE: Final was removed from the declaration of 'reserved '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
29 | public int reserved;
30 | /// Tag fields
31 | //UPGRADE_NOTE: Final was removed from the declaration of 'ascii '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
32 | public byte[] ascii;
33 |
34 | /// Construct this tag from its constituant parts
35 | /// tag id
36 | ///
37 | /// array of bytes
38 | ///
39 | /// to data in the data array
40 | ///
41 | /// of data in the data array
42 | ///
43 | protected internal ICCTextType(int signature, byte[] data, int offset, int length):base(signature, data, offset, length)
44 | {
45 | type = ICCProfile.getInt(data, offset);
46 | offset += ICCProfile.int_size;
47 | reserved = ICCProfile.getInt(data, offset);
48 | offset += ICCProfile.int_size;
49 | int size = 0;
50 | while (data[offset + size] != 0)
51 | ++size;
52 | ascii = new byte[size];
53 | Array.Copy(data, offset, ascii, 0, size);
54 | }
55 |
56 | /// Return the string rep of this tag.
57 | public override System.String ToString()
58 | {
59 | return "[" + base.ToString() + " \"" + System.Text.Encoding.UTF8.GetString(ascii, 0, ascii.Length) + "\"]";
60 | }
61 |
62 | /* end class ICCTextType */
63 | }
64 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCXYZTypeReverse.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCXYZTypeReverse.java,v 1.1 2002/07/25 14:56:38 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCProfile = CSJ2K.Icc.ICCProfile;
11 | using XYZNumber = CSJ2K.Icc.Types.XYZNumber;
12 | namespace CSJ2K.Icc.Tags
13 | {
14 |
15 | /// A tag containing a triplet.
16 | ///
17 | ///
18 | ///
19 | ///
20 | ///
21 | ///
22 | /// 1.0
23 | ///
24 | /// Bruce A. Kern
25 | ///
26 | public class ICCXYZTypeReverse:ICCXYZType
27 | {
28 |
29 | /// x component
30 | //UPGRADE_NOTE: Final was removed from the declaration of 'x '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
31 | new public long x;
32 | /// y component
33 | //UPGRADE_NOTE: Final was removed from the declaration of 'y '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
34 | new public long y;
35 | /// z component
36 | //UPGRADE_NOTE: Final was removed from the declaration of 'z '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
37 | new public long z;
38 |
39 | /// Construct this tag from its constituant parts
40 | /// tag id
41 | ///
42 | /// array of bytes
43 | ///
44 | /// to data in the data array
45 | ///
46 | /// of data in the data array
47 | ///
48 | protected internal ICCXYZTypeReverse(int signature, byte[] data, int offset, int length):base(signature, data, offset, length)
49 | {
50 | z = ICCProfile.getInt(data, offset + 2 * ICCProfile.int_size);
51 | y = ICCProfile.getInt(data, offset + 3 * ICCProfile.int_size);
52 | x = ICCProfile.getInt(data, offset + 4 * ICCProfile.int_size);
53 | }
54 |
55 |
56 | /// Return the string rep of this tag.
57 | public override System.String ToString()
58 | {
59 | return "[" + base.ToString() + "(" + x + ", " + y + ", " + z + ")]";
60 | }
61 |
62 | /* end class ICCXYZTypeReverse */
63 | }
64 | }
--------------------------------------------------------------------------------
/CSJ2K.iOS.Test/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using Foundation;
5 | using UIKit;
6 |
7 | namespace CSJ2K.iOS.Test
8 | {
9 | // The UIApplicationDelegate for the application. This class is responsible for launching the
10 | // User Interface of the application, as well as listening (and optionally responding) to
11 | // application events from iOS.
12 | [Register("AppDelegate")]
13 | public class AppDelegate : UIApplicationDelegate
14 | {
15 | // class-level declarations
16 |
17 | public override UIWindow Window
18 | {
19 | get;
20 | set;
21 | }
22 |
23 | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
24 | {
25 | // Override point for customization after application launch.
26 | // If not required for your application you can safely delete this method
27 |
28 | return true;
29 | }
30 |
31 | public override void OnResignActivation(UIApplication application)
32 | {
33 | // Invoked when the application is about to move from active to inactive state.
34 | // This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message)
35 | // or when the user quits the application and it begins the transition to the background state.
36 | // Games should use this method to pause the game.
37 | }
38 |
39 | public override void DidEnterBackground(UIApplication application)
40 | {
41 | // Use this method to release shared resources, save user data, invalidate timers and store the application state.
42 | // If your application supports background exection this method is called instead of WillTerminate when the user quits.
43 | }
44 |
45 | public override void WillEnterForeground(UIApplication application)
46 | {
47 | // Called as part of the transiton from background to active state.
48 | // Here you can undo many of the changes made on entering the background.
49 | }
50 |
51 | public override void OnActivated(UIApplication application)
52 | {
53 | // Restart any tasks that were paused (or not yet started) while the application was inactive.
54 | // If the application was previously in the background, optionally refresh the user interface.
55 | }
56 |
57 | public override void WillTerminate(UIApplication application)
58 | {
59 | // Called when the application is about to terminate. Save data, if needed. See also DidEnterBackground.
60 | }
61 | }
62 | }
--------------------------------------------------------------------------------
/CSJ2K.Portable/CSJ2K.Portable.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {A790CC27-4086-4D2A-BF7B-C02337DF4D21}
9 | Library
10 | Properties
11 | CSJ2K
12 | CSJ2K
13 | v4.0
14 | Profile328
15 | 512
16 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 | true
37 | ..\CSJ2K\csj2k.snk
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
54 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Types/ICCProfileVersion.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCProfileVersion.java,v 1.1 2002/07/25 14:56:31 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCProfile = CSJ2K.Icc.ICCProfile;
11 | namespace CSJ2K.Icc.Types
12 | {
13 |
14 | /// This class describes the ICCProfile Version as contained in
15 | /// the header of the ICC Profile.
16 | ///
17 | ///
18 | ///
19 | ///
20 | ///
21 | ///
22 | /// 1.0
23 | ///
24 | /// Bruce A. Kern
25 | ///
26 | public class ICCProfileVersion
27 | {
28 | /// Field size
29 | //UPGRADE_NOTE: Final was removed from the declaration of 'size '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
30 | //UPGRADE_NOTE: The initialization of 'size' was moved to static method 'icc.types.ICCProfileVersion'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
31 | public static readonly int size;
32 |
33 | /// Major revision number in binary coded decimal
34 | public byte uMajor;
35 | /// Minor revision in high nibble, bug fix revision
36 | /// in low nibble, both in binary coded decimal
37 | ///
38 | public byte uMinor;
39 |
40 | private byte reserved1;
41 | private byte reserved2;
42 |
43 | /// Construct from constituent parts.
44 | public ICCProfileVersion(byte major, byte minor, byte res1, byte res2)
45 | {
46 | uMajor = major; uMinor = minor; reserved1 = res1; reserved2 = res2;
47 | }
48 |
49 | /// Construct from file content.
50 | //UPGRADE_TODO: Class 'java.io.RandomAccessFile' was converted to 'System.IO.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioRandomAccessFile'"
51 | public virtual void write(System.IO.Stream raf)
52 | {
53 | raf.WriteByte(uMajor); raf.WriteByte(uMinor); raf.WriteByte(reserved1); raf.WriteByte(reserved2);
54 | }
55 |
56 | /// String representation of class instance.
57 | public override System.String ToString()
58 | {
59 | return "Version " + uMajor + "." + uMinor;
60 | }
61 |
62 | /* end class ICCProfileVersion */
63 | static ICCProfileVersion()
64 | {
65 | size = 4 * ICCProfile.byte_size;
66 | }
67 | }
68 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Tags/ICCTextDescriptionType.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: ICCTextDescriptionType.java,v 1.1 2002/07/25 14:56:37 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCProfile = CSJ2K.Icc.ICCProfile;
11 | namespace CSJ2K.Icc.Tags
12 | {
13 |
14 | /// A text based ICC tag
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A. Kern
20 | ///
21 | public class ICCTextDescriptionType:ICCTag
22 | {
23 |
24 | /// Tag fields
25 | //UPGRADE_NOTE: Final was removed from the declaration of 'type '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
26 | new public int type;
27 | /// Tag fields
28 | //UPGRADE_NOTE: Final was removed from the declaration of 'reserved '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
29 | public int reserved;
30 | /// Tag fields
31 | //UPGRADE_NOTE: Final was removed from the declaration of 'size '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
32 | public int size;
33 | /// Tag fields
34 | //UPGRADE_NOTE: Final was removed from the declaration of 'ascii '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
35 | public byte[] ascii;
36 |
37 | /// Construct this tag from its constituant parts
38 | /// tag id
39 | ///
40 | /// array of bytes
41 | ///
42 | /// to data in the data array
43 | ///
44 | /// of data in the data array
45 | ///
46 | protected internal ICCTextDescriptionType(int signature, byte[] data, int offset, int length):base(signature, data, offset, length)
47 | {
48 |
49 | type = ICCProfile.getInt(data, offset);
50 | offset += ICCProfile.int_size;
51 |
52 | reserved = ICCProfile.getInt(data, offset);
53 | offset += ICCProfile.int_size;
54 |
55 | size = ICCProfile.getInt(data, offset);
56 | offset += ICCProfile.int_size;
57 |
58 | ascii = new byte[size - 1];
59 | Array.Copy(data, offset, ascii, 0, size - 1);
60 | }
61 |
62 | /// Return the string rep of this tag.
63 | public override System.String ToString()
64 | {
65 | return "[" + base.ToString() + " \"" + System.Text.Encoding.UTF8.GetString(ascii, 0, ascii.Length) + "\"]";
66 | }
67 |
68 | /* end class ICCTextDescriptionType */
69 | }
70 | }
--------------------------------------------------------------------------------
/CSJ2K.Android.Test/Resources/Resource.Designer.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable 1591
2 | //------------------------------------------------------------------------------
3 | //
4 | // This code was generated by a tool.
5 | // Runtime Version:4.0.30319.42000
6 | //
7 | // Changes to this file may cause incorrect behavior and will be lost if
8 | // the code is regenerated.
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | [assembly: global::Android.Runtime.ResourceDesignerAttribute("CSJ2K.Android.Test.Resource", IsApplication=true)]
13 |
14 | namespace CSJ2K.Android.Test
15 | {
16 |
17 |
18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
19 | public partial class Resource
20 | {
21 |
22 | static Resource()
23 | {
24 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
25 | }
26 |
27 | public static void UpdateIdValues()
28 | {
29 | global::CSJ2K.Resource.String.ApplicationName = global::CSJ2K.Android.Test.Resource.String.ApplicationName;
30 | global::CSJ2K.Resource.String.Hello = global::CSJ2K.Android.Test.Resource.String.Hello;
31 | }
32 |
33 | public partial class Attribute
34 | {
35 |
36 | static Attribute()
37 | {
38 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
39 | }
40 |
41 | private Attribute()
42 | {
43 | }
44 | }
45 |
46 | public partial class Drawable
47 | {
48 |
49 | // aapt resource value: 0x7f020000
50 | public const int Icon = 2130837504;
51 |
52 | static Drawable()
53 | {
54 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
55 | }
56 |
57 | private Drawable()
58 | {
59 | }
60 | }
61 |
62 | public partial class Id
63 | {
64 |
65 | // aapt resource value: 0x7f050000
66 | public const int imageView1 = 2131034112;
67 |
68 | static Id()
69 | {
70 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
71 | }
72 |
73 | private Id()
74 | {
75 | }
76 | }
77 |
78 | public partial class Layout
79 | {
80 |
81 | // aapt resource value: 0x7f030000
82 | public const int Main = 2130903040;
83 |
84 | static Layout()
85 | {
86 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
87 | }
88 |
89 | private Layout()
90 | {
91 | }
92 | }
93 |
94 | public partial class String
95 | {
96 |
97 | // aapt resource value: 0x7f040001
98 | public const int ApplicationName = 2130968577;
99 |
100 | // aapt resource value: 0x7f040000
101 | public const int Hello = 2130968576;
102 |
103 | static String()
104 | {
105 | global::Android.Runtime.ResourceIdManager.UpdateIdValues();
106 | }
107 |
108 | private String()
109 | {
110 | }
111 | }
112 | }
113 | }
114 | #pragma warning restore 1591
115 |
--------------------------------------------------------------------------------
/CSJ2K.WPF.Test/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.18033
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WPF.CSJ2K.Test.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPF.CSJ2K.Test.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable16Interp.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable16Interp.java,v 1.1 2002/07/25 14:56:46 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// An interpolated 16 bit lut
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A.Kern
20 | ///
21 | public class LookUpTable16Interp:LookUpTable16
22 | {
23 |
24 | /// Construct the lut from the curve data
25 | /// curve the data
26 | /// dwNumInput the lut size
27 | /// dwMaxOutput the lut max value
28 | public LookUpTable16Interp(ICCCurveType curve, int dwNumInput, int dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
29 | {
30 |
31 | int dwLowIndex, dwHighIndex; // Indices of interpolation points
32 | double dfLowIndex, dfHighIndex; // FP indices of interpolation points
33 | double dfTargetIndex; // Target index into interpolation table
34 | double dfRatio; // Ratio of LUT input points to curve values
35 | double dfLow, dfHigh; // Interpolation values
36 | double dfOut; // Output LUT value
37 |
38 | dfRatio = (double) (curve.count - 1) / (double) (dwNumInput - 1);
39 |
40 | for (int i = 0; i < dwNumInput; i++)
41 | {
42 | dfTargetIndex = (double) i * dfRatio;
43 | dfLowIndex = System.Math.Floor(dfTargetIndex);
44 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
45 | dwLowIndex = (int) dfLowIndex;
46 | dfHighIndex = System.Math.Ceiling(dfTargetIndex);
47 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
48 | dwHighIndex = (int) dfHighIndex;
49 |
50 | if (dwLowIndex == dwHighIndex)
51 | dfOut = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
52 | else
53 | {
54 | dfLow = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
55 | dfHigh = ICCCurveType.CurveToDouble(curve.entry(dwHighIndex));
56 | dfOut = dfLow + (dfHigh - dfLow) * (dfTargetIndex - dfLowIndex);
57 | }
58 |
59 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
60 | lut[i] = (short) System.Math.Floor(dfOut * dwMaxOutput + 0.5);
61 | }
62 | }
63 |
64 | /* end class LookUpTable16Interp */
65 | }
66 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable8Interp.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable8Interp.java,v 1.1 2002/07/25 14:56:48 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 |
15 | /// An interpolated 8 bit lut
16 | ///
17 | ///
18 | /// 1.0
19 | ///
20 | /// Bruce A.Kern
21 | ///
22 | public class LookUpTable8Interp:LookUpTable8
23 | {
24 |
25 | /// Construct the lut from the curve data
26 | /// curve the data
27 | /// dwNumInput the lut size
28 | /// dwMaxOutput the lut max value
29 | public LookUpTable8Interp(ICCCurveType curve, int dwNumInput, byte dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
30 | {
31 |
32 | int dwLowIndex, dwHighIndex; // Indices of interpolation points
33 | double dfLowIndex, dfHighIndex; // FP indices of interpolation points
34 | double dfTargetIndex; // Target index into interpolation table
35 | double dfRatio; // Ratio of LUT input points to curve values
36 | double dfLow, dfHigh; // Interpolation values
37 | double dfOut; // Output LUT value
38 |
39 | dfRatio = (double) (curve.count - 1) / (double) (dwNumInput - 1);
40 |
41 | for (int i = 0; i < dwNumInput; i++)
42 | {
43 | dfTargetIndex = (double) i * dfRatio;
44 | dfLowIndex = System.Math.Floor(dfTargetIndex);
45 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
46 | dwLowIndex = (int) dfLowIndex;
47 | dfHighIndex = System.Math.Ceiling(dfTargetIndex);
48 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
49 | dwHighIndex = (int) dfHighIndex;
50 |
51 | if (dwLowIndex == dwHighIndex)
52 | dfOut = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
53 | else
54 | {
55 | dfLow = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
56 | dfHigh = ICCCurveType.CurveToDouble(curve.entry(dwHighIndex));
57 | dfOut = dfLow + (dfHigh - dfLow) * (dfTargetIndex - dfLowIndex);
58 | }
59 |
60 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
61 | lut[i] = (byte) System.Math.Floor(dfOut * dwMaxOutput + 0.5);
62 | }
63 | }
64 |
65 | /* end class LookUpTable8Interp */
66 | }
67 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable32Interp.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable32Interp.java,v 1.1 2002/07/25 14:56:47 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// An interpolated 32 bit lut
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A.Kern
20 | ///
21 |
22 | public class LookUpTable32Interp:LookUpTable32
23 | {
24 |
25 | /// Construct the lut from the curve data
26 | /// curve the data
27 | /// dwNumInput the lut size
28 | /// dwMaxOutput the lut max value
29 | public LookUpTable32Interp(ICCCurveType curve, int dwNumInput, int dwMaxOutput):base(curve, dwNumInput, dwMaxOutput)
30 | {
31 |
32 | int dwLowIndex, dwHighIndex; // Indices of interpolation points
33 | double dfLowIndex, dfHighIndex; // FP indices of interpolation points
34 | double dfTargetIndex; // Target index into interpolation table
35 | double dfRatio; // Ratio of LUT input points to curve values
36 | double dfLow, dfHigh; // Interpolation values
37 | double dfOut; // Output LUT value
38 |
39 | dfRatio = (double) (curve.count - 1) / (double) (dwNumInput - 1);
40 |
41 | for (int i = 0; i < dwNumInput; i++)
42 | {
43 | dfTargetIndex = (double) i * dfRatio;
44 | dfLowIndex = System.Math.Floor(dfTargetIndex);
45 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
46 | dwLowIndex = (int) dfLowIndex;
47 | dfHighIndex = System.Math.Ceiling(dfTargetIndex);
48 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
49 | dwHighIndex = (int) dfHighIndex;
50 |
51 | if (dwLowIndex == dwHighIndex)
52 | dfOut = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
53 | else
54 | {
55 | dfLow = ICCCurveType.CurveToDouble(curve.entry(dwLowIndex));
56 | dfHigh = ICCCurveType.CurveToDouble(curve.entry(dwHighIndex));
57 | dfOut = dfLow + (dfHigh - dfLow) * (dfTargetIndex - dfLowIndex);
58 | }
59 |
60 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
61 | lut[i] = (int) System.Math.Floor(dfOut * dwMaxOutput + 0.5);
62 | }
63 | }
64 |
65 | /* end class LookUpTable32Interp */
66 | }
67 | }
--------------------------------------------------------------------------------
/CSJ2K/Icc/Lut/LookUpTable8.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: LookUpTable8.java,v 1.1 2002/07/25 14:56:48 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType;
11 | namespace CSJ2K.Icc.Lut
12 | {
13 |
14 | /// Toplevel class for a byte [] lut.
15 | ///
16 | ///
17 | /// 1.0
18 | ///
19 | /// Bruce A. Kern
20 | ///
21 | public abstract class LookUpTable8:LookUpTable
22 | {
23 |
24 | /// Maximum output value of the LUT
25 | //UPGRADE_NOTE: Final was removed from the declaration of 'dwMaxOutput '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
26 | protected internal byte dwMaxOutput;
27 | /// The lut values.
28 | // Maximum output value of the LUT
29 | //UPGRADE_NOTE: Final was removed from the declaration of 'lut '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
30 | protected internal byte[] lut;
31 |
32 |
33 | /// Create an abbreviated string representation of a 16 bit lut.
34 | /// the lut as a String
35 | ///
36 | public override System.String ToString()
37 | {
38 | System.Text.StringBuilder rep = new System.Text.StringBuilder("[LookUpTable8 ");
39 | //int row, col;
40 | rep.Append("max= " + dwMaxOutput);
41 | rep.Append(", nentries= " + dwMaxOutput);
42 | return rep.Append("]").ToString();
43 | }
44 |
45 |
46 |
47 | public virtual System.String toStringWholeLut()
48 | {
49 | System.Text.StringBuilder rep = new System.Text.StringBuilder("LookUpTable8" + eol);
50 | rep.Append("maxOutput = " + dwMaxOutput + eol);
51 | for (int i = 0; i < dwNumInput; ++i)
52 | rep.Append("lut[" + i + "] = " + lut[i] + eol);
53 | return rep.Append("]").ToString();
54 | }
55 |
56 | protected internal LookUpTable8(int dwNumInput, byte dwMaxOutput):base(null, dwNumInput)
57 | {
58 | lut = new byte[dwNumInput];
59 | this.dwMaxOutput = dwMaxOutput;
60 | }
61 |
62 |
63 | /// Create the string representation of a 16 bit lut.
64 | /// the lut as a String
65 | ///
66 | protected internal LookUpTable8(ICCCurveType curve, int dwNumInput, byte dwMaxOutput):base(curve, dwNumInput)
67 | {
68 | this.dwMaxOutput = dwMaxOutput;
69 | lut = new byte[dwNumInput];
70 | }
71 |
72 | /// lut accessor
73 | /// of the element
74 | ///
75 | /// the lut [index]
76 | ///
77 | public byte elementAt(int index)
78 | {
79 | return lut[index];
80 | }
81 |
82 | /* end class LookUpTable8 */
83 | }
84 | }
--------------------------------------------------------------------------------
/CSJ2K.iOS/CSJ2K.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 8.0.30703
7 | 2.0
8 | {E242FF7A-8560-40BB-9786-198F0D701C2A}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | Library
11 | CSJ2K
12 | Resources
13 | CSJ2K
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug
20 | DEBUG;
21 | prompt
22 | 4
23 | false
24 |
25 |
26 | full
27 | true
28 | bin\Release
29 | prompt
30 | 4
31 | false
32 |
33 |
34 | true
35 | ..\CSJ2K\csj2k.snk
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | Util\DotnetFileInfo.cs
49 |
50 |
51 | Util\DotnetFileInfoCreator.cs
52 |
53 |
54 | Util\DotnetFileStreamCreator.cs
55 |
56 |
57 | Util\DotnetMsgLogger.cs
58 |
59 |
60 | Util\IOSImage.cs
61 |
62 |
63 | Util\IOSImageCreator.cs
64 |
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/CSJ2K.81.Test/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2007-2016 CSJ2K contributors.
2 | // Licensed under the BSD 3-Clause License.
3 |
4 | using System;
5 | using System.IO;
6 | using System.Linq;
7 | using System.Threading.Tasks;
8 |
9 | using Windows.Storage;
10 | using Windows.Storage.Pickers;
11 | using Windows.UI.Xaml;
12 | using Windows.UI.Xaml.Media;
13 | using Windows.UI.Xaml.Navigation;
14 |
15 | using CSJ2K;
16 |
17 | namespace Store.CSJ2K.Test
18 | {
19 | ///
20 | /// An empty page that can be used on its own or navigated to within a Frame.
21 | ///
22 | public sealed partial class MainPage
23 | {
24 | private FileOpenPicker picker;
25 |
26 | public MainPage()
27 | {
28 | InitializeComponent();
29 | }
30 |
31 | ///
32 | /// Invoked when this page is about to be displayed in a Frame.
33 | ///
34 | /// Event data that describes how this page was reached. The Parameter
35 | /// property is typically used to configure the page.
36 | protected override void OnNavigatedTo(NavigationEventArgs e)
37 | {
38 | }
39 |
40 | private async void ButtonBase_OnClick(object sender, RoutedEventArgs e)
41 | {
42 | var j2KExts = new[] { ".jp2", ".j2k", ".j2c" };
43 |
44 | try
45 | {
46 | var files = await picker.PickMultipleFilesAsync();
47 | if (files == null) return;
48 |
49 | var streams =
50 | await
51 | Task.WhenAll(
52 | files.Select(async file => (await file.OpenAsync(FileAccessMode.Read)).AsStreamForRead()));
53 |
54 | ImageSource image;
55 | if (streams.Length == 1
56 | && j2KExts.Any(ext => files[0].FileType.Equals(ext, StringComparison.OrdinalIgnoreCase)))
57 | {
58 | image = J2kImage.FromStream(streams[0]).As();
59 | }
60 | else
61 | {
62 | // If not already encoded, encode before decoding
63 | var bytes = J2kImage.ToBytes(J2kImage.CreateEncodableSource(streams));
64 | image = J2kImage.FromBytes(bytes).As();
65 | }
66 | DecodedImage.Source = image;
67 | ImageName.Text = files[0].Path;
68 | }
69 | catch (Exception exc)
70 | {
71 | DecodedImage.Source = null;
72 | ImageName.Text = "Could not display file, reason: " + exc.Message;
73 | }
74 | }
75 |
76 | private void MainPage_OnLoaded(object sender, RoutedEventArgs e)
77 | {
78 | picker = new FileOpenPicker { SuggestedStartLocation = PickerLocationId.DocumentsLibrary };
79 | picker.FileTypeFilter.Add(".jp2");
80 | picker.FileTypeFilter.Add(".j2k");
81 | picker.FileTypeFilter.Add(".j2c");
82 | picker.FileTypeFilter.Add(".ppm");
83 | picker.FileTypeFilter.Add(".pgm");
84 | picker.FileTypeFilter.Add(".pgx");
85 | }
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/CSJ2K/Icc/Types/XYZNumber.cs:
--------------------------------------------------------------------------------
1 | /// **************************************************************************
2 | ///
3 | /// $Id: XYZNumber.java,v 1.1 2002/07/25 14:56:31 grosbois Exp $
4 | ///
5 | /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
6 | /// $Date $
7 | /// ***************************************************************************
8 | ///
9 | using System;
10 | using ICCProfile = CSJ2K.Icc.ICCProfile;
11 | namespace CSJ2K.Icc.Types
12 | {
13 |
14 | /// A convientient representation for the contents of the
15 | /// ICCXYZTypeTag class.
16 | ///
17 | ///
18 | ///
19 | ///
20 | /// 1.0
21 | ///
22 | /// Bruce A. Kern
23 | ///
24 | public class XYZNumber
25 | {
26 | //UPGRADE_NOTE: Final was removed from the declaration of 'size '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
27 | //UPGRADE_NOTE: The initialization of 'size' was moved to static method 'icc.types.XYZNumber'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
28 | public static readonly int size;
29 |
30 | /// x value
31 | public int dwX;
32 | /// y value
33 | // X tristimulus value
34 | public int dwY;
35 | /// z value
36 | // Y tristimulus value
37 | public int dwZ; // Z tristimulus value
38 |
39 | /// Construct from constituent parts.
40 | public XYZNumber(int x, int y, int z)
41 | {
42 | dwX = x; dwY = y; dwZ = z;
43 | }
44 |
45 | /// Normalization utility
46 | public static int DoubleToXYZ(double x)
47 | {
48 | //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
49 | return (int) System.Math.Floor(x * 65536.0 + 0.5);
50 | }
51 |
52 | /// Normalization utility
53 | public static double XYZToDouble(int x)
54 | {
55 | return (double) x / 65536.0;
56 | }
57 |
58 | /// Write to a file
59 | //UPGRADE_TODO: Class 'java.io.RandomAccessFile' was converted to 'System.IO.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioRandomAccessFile'"
60 | public virtual void write(System.IO.Stream raf)
61 | {
62 | System.IO.BinaryWriter temp_BinaryWriter;
63 | temp_BinaryWriter = new System.IO.BinaryWriter(raf);
64 | temp_BinaryWriter.Write((System.Int32) dwX);
65 | System.IO.BinaryWriter temp_BinaryWriter2;
66 | temp_BinaryWriter2 = new System.IO.BinaryWriter(raf);
67 | temp_BinaryWriter2.Write((System.Int32) dwY);
68 | System.IO.BinaryWriter temp_BinaryWriter3;
69 | temp_BinaryWriter3 = new System.IO.BinaryWriter(raf);
70 | temp_BinaryWriter3.Write((System.Int32) dwZ);
71 | }
72 |
73 | /// String representation of class instance.
74 | public override System.String ToString()
75 | {
76 | return "[" + dwX + ", " + dwY + ", " + dwZ + "]";
77 | }
78 |
79 |
80 | /* end class XYZNumber */
81 | static XYZNumber()
82 | {
83 | size = 3 * ICCProfile.int_size;
84 | }
85 | }
86 | }
--------------------------------------------------------------------------------