Visual Basic (Declaration) | |
---|---|
Public Sub FragmentJpxFile( _ ByVal inputFileName As String, _ ByVal outputFileName As String, _ ByVal urls As List(Of UuidUrl), _ ByVal fragments As List(Of Fragment) _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void FragmentJpxFile( string inputFileName, string outputFileName, List<UuidUrl> urls, List<Fragment> fragments ) |
C++/CLI | |
---|---|
public: void FragmentJpxFile( String^ inputFileName, String^ outputFileName, List<UuidUrl>^ urls, List<Fragment>^ fragments ) |
Parameters
- inputFileName
- String containing the name of the JPX file from which frames are to be extracted.
- outputFileName
- String containing the name of the fragmented JPX file.
- urls
- List of UuidUrl specifying the URLs where the fragments are contained.
- fragments
- List of Fragment specifying the
following for each fragment:
the codestream index to be fragmented the index for the URL which contains the fragment the offset of the first byte of the fragment within the specified URL
Visual Basic | Copy Code |
---|---|
Private Sub FragmentJpxFileExample() |
C# | Copy Code |
---|---|
private void FragmentJpxFileExample() |
It is the user to save the fragmented codestreams in their URL locations.
Fragmentation in JPX works by specifying a table of pointers to the individual fragments. Each pointer specifies three things:
The file which contains the fragment. Because multiple fragments across multiple codestreams may be stored in the same file, the format encapsulates all filename/URL data into a table (the Data Reference box). Each fragment specification then references an entry in the data reference table. The offset of the first byte of the fragment within the specified file. This offset is with respect to the first byte of the file (byte 0) and points directly to the first byte of codestream data for the fragment-- it does NOT point to the start of the box containing that fragment. The length of the fragment, in bytes.
Fragmentation is an important feature of the JPX file format since it allows applications to implement such features as:
The capability to edit an image, resaving the changed tiles to the end of the file. The capability to distribute the image across several disks for faster access. The capability to distribute the image across the internet, allowing only certain customers access to the high quality or high resolution portions of the codestream. The capability to reuse the headers from within a codestream across multiple codestreams (to minimize file overhead when storing similar codestreams witin the same JPX file).
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
Jpeg2000Engine ClassJpeg2000Engine Members
AppendFrames(RasterCodecs,String,Generic List,Int32,Int32) Method
AppendGmlData
ExtractFrames
ExtractFramesMemory
ExtractFramesNativeMemory
ReadBox
ReadFrames
ReadGmlData
Compression Using LEAD and JPEG Formats
File Formats - JPEG And LEAD Compressed
Bitmaps In Memory And In Files
JPEG2000 File Comments
JPEG And LEAD File Comments
Programming with JPEG 2000 Features
JPEG 2000 Boxes