---
title: "Composition shift least greatest atom ('cslg')"
framework: quicktime-file-format
role: symbol
role_heading: Atom
path: quicktime-file-format/composition_shift_least_greatest_atom
---

# Composition shift least greatest atom ('cslg')

An atom that summarizes the calculated minimum and maximum offsets between decode and composition time, as well as the start and end times, for all samples.

## Overview

Overview The optional composition shift least greatest atom summarizes the calculated minimum and maximum offsets between decode and composition time, as well as the start and end times, for all samples. This allows a reader to determine the minimum required time for decode to obtain proper presentation order without needing to scan the sample table for the range of offsets. The type of the composition shift least greatest atom is ‘cslg’. The layout of a composition shift least greatest atom is as follows.  |   |   |   |   |   |   |   |   |   |

## Topics

### Data fields

- [Size](quicktime-file-format/composition_shift_least_greatest_atom/size.md)
- [Type](quicktime-file-format/composition_shift_least_greatest_atom/type.md)
- [Version](quicktime-file-format/composition_shift_least_greatest_atom/version.md)
- [Flags](quicktime-file-format/composition_shift_least_greatest_atom/flags.md)
- [compositionOffsetToDisplayOffsetShift](quicktime-file-format/composition_shift_least_greatest_atom/compositionoffsettodisplayoffsetshift.md)
- [leastDisplayOffset](quicktime-file-format/composition_shift_least_greatest_atom/leastdisplayoffset.md)
- [greatestDisplayOffset](quicktime-file-format/composition_shift_least_greatest_atom/greatestdisplayoffset.md)
- [displayStartTime](quicktime-file-format/composition_shift_least_greatest_atom/displaystarttime.md)
- [displayEndTime](quicktime-file-format/composition_shift_least_greatest_atom/displayendtime.md)

## See Also

### Describing samples

- [Sample table atom ('stbl')](quicktime-file-format/sample_table_atom.md)
- [Seeking with a QuickTime file](quicktime-file-format/seeking_with_a_quicktime_file.md)
- [Sample description atom ('stsd')](quicktime-file-format/sample_description_atom.md)
- [Time-to-sample atom ('stts')](quicktime-file-format/time-to-sample_atom.md)
- [Creating video tracks at 30 frames per second](quicktime-file-format/creating_video_tracks_at_30_frames_per_second.md)
- [Creating video tracks at 29.97 frames per second](quicktime-file-format/creating_video_tracks_at_2997_frames_per_second.md)
- [Creating sound tracks at 44.1 kHz](quicktime-file-format/creating_sound_tracks_at_441_khz.md)
- [Composition offset atom ('ctts')](quicktime-file-format/composition_offset_atom.md)
- [Using composition offset and composition shift least greatest atoms](quicktime-file-format/using_composition_offset_and_composition_shift_least_greatest_atoms.md)
- [Sync sample atom ('stss')](quicktime-file-format/sync_sample_atom.md)
- [Partial sync sample atom ('stps')](quicktime-file-format/partial_sync_sample_atom.md)
- [Sample-to-chunk atom ('stsc')](quicktime-file-format/sample-to-chunk_atom.md)
- [Referencing two data files with a single track](quicktime-file-format/referencing_two_data_files_with_a_single_track.md)
- [Sample size atom ('stsz')](quicktime-file-format/sample_size_atom.md)
- [Chunk offset atom ('stco')](quicktime-file-format/chunk_offset_atom.md)
