Represents a continuous set of data samples.
void drop()
Dereferences the frame when it is not used any more.
std::mutex access
exclusive access
virtual Fragment * clone() const =0
unsigned int referenceCount
number of occurrences of this frame in sequences
int sampleCount
number of samples within this frame
Fragment * edit()
Enables editing of the current frame.
Fragment(const Fragment &)=delete
disabling copying constructor
Fragment * use()
References the frame when it is used one more time.
const int getSampleCount() const
void operator=(const FragmentPtr &)
int offset
offset in samples inside the fragment since its beginning
int length
number of samples to use from the fragment
FragmentPtr()
Initialize to null.