| synopsis || arguments || prev || next |
void set_max_frames_per_chunk( kdu_uint32 max_frames)
Java: void Set_max_frames_per_chunk( long max_frames)
[Declared in "../apps/compressed_io/mj2.h"]
Sets an upper bound for the number of frames which can be stored in a single chunk within the Motion JPEG2000 file. The internal machinery may well select a smaller chunk size to satisfy constraints on the maximum duration of a chunk, and any other internal resource constraints.
The chunk size determines the granularity with which tracks are interleaved, which affects the efficiency or memory requirements associated with simultaneous track playback. By default, the maximum chunk size is set to 1 frame.
Note that interlaced frames each consist of two fields, in which case the maximum number of fields per chunk is twice the value of max_frames.