| synopsis || arguments || prev || next |

jp2_locator::set_file_pos

Java: Jp2_locator::Set_file_pos

void set_file_pos( kdu_long pos)

Java: void Set_file_pos( long pos)

[Declared in "../apps/compressed_io/jp2.h"]

Go to class description.


Synopsis

You may use this function to configure the locator to point to a particular location within the original file. This location must correspond to the first byte of some box header. You may then open the box by invoking jp2_input_box::open, using the locator. In some cases, the data source is not a file, but a dynamic cache (if kd_data_src was opened using a kdu_cache object). In this case, the jp2_input_box::open call will attempt to resolve the data-bin associated with the indicated file position, augmenting the information in the present object to reflect the data-bin identifier and the location of the box within its data-bin. If insufficient information is currently available in the cache to perform such resolution, the attempt to open the JP2 box may fail, but may later succeed once the cache contents have been augmented.


Arguments

pos [kdu_long]


| top || synopsis || arguments || prev || next |