Tawara
0.1.0
|
The position in the segment of the data for a single track. More...
#include <tawara/cues.h>
Public Member Functions | |
CueTrackPosition () | |
Constructor. More... | |
CueTrackPosition (uint64_t track, uint64_t cluster_pos) | |
Constructor. More... | |
uint64_t | track () const |
The track number this element contains positions for. More... | |
void | track (uint64_t track) |
Set the track number. More... | |
uint64_t | cluster_pos () const |
Get the cluster position. More... | |
void | cluster_pos (uint64_t cluster_pos) |
Set the cluster position. More... | |
uint64_t | block_num () const |
Get the number of the relevant block. More... | |
void | block_num (uint64_t block_num) |
Set the block number of the relevant block. More... | |
uint64_t | codec_state () const |
Get the index of the relevant codec state. More... | |
void | codec_state (uint64_t codec_state) |
Set the index of the codec state. More... | |
std::vector< uint64_t > & | reference_times () |
Get the vector of reference block timecodes. More... | |
![]() | |
MasterElement (uint32_t id, bool crc=false) | |
Create a new MasterElement. More... | |
virtual | ~MasterElement () |
Destructor. More... | |
![]() | |
Element (tawara::ids::ID id) | |
Create a new Element. More... | |
virtual | ~Element () |
Destructor. More... | |
uint32_t | id () const |
Get the element's ID. More... | |
std::streampos | offset () const |
Get the element's offset in the byte stream. More... | |
virtual std::streamsize | size () const |
Get the total size of the element. More... | |
virtual std::streamsize | write (std::ostream &output) |
Element writing. More... | |
virtual std::streamsize | read (std::istream &input) |
Element reading. More... | |
Protected Member Functions | |
virtual std::streamsize | body_size () const |
Get the size of the body of this element. More... | |
virtual std::streamsize | write_body (std::ostream &output) |
Element body writing. More... | |
virtual std::streamsize | read_body (std::istream &input, std::streamsize size) |
Element body loading. More... | |
std::streamsize | read_cue_reference (std::istream &input, std::streamsize size) |
Read an occurance of the CueReference element. More... | |
void | reset () |
Reset the values to their defaults. More... | |
![]() | |
std::streamsize | write_id (std::ostream &output) |
Element ID writing. More... | |
virtual std::streamsize | write_size (std::ostream &output) |
Element size writing. More... | |
Protected Attributes | |
UIntElement | track_ |
UIntElement | cluster_pos_ |
UIntElement | block_num_ |
UIntElement | codec_state_ |
std::vector< uint64_t > | ref_blocks_ |
![]() | |
tawara::ids::ID | id_ |
std::streampos | offset_ |
Friends | |
bool | operator== (CueTrackPosition const &lhs, CueTrackPosition const &rhs) |
Equality operator. More... | |
The position in the segment of the data for a single track.
The CueTackPositions element stores the position in the segment's data for the data for a single track. It is used by a CuePoint to hold the track positions for a timecode.
tawara::CueTrackPosition::CueTrackPosition | ( | ) |
Constructor.
tawara::CueTrackPosition::CueTrackPosition | ( | uint64_t | track, |
uint64_t | cluster_pos | ||
) |
Constructor.
[in] | track | Track number. |
[in] | cluster_pos | Cluster position. |
|
inline |
void tawara::CueTrackPosition::block_num | ( | uint64_t | block_num | ) |
Set the block number of the relevant block.
|
protectedvirtual |
Get the size of the body of this element.
Implements tawara::Element.
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
Element body loading.
Implements tawara::Element.
|
protected |
Read an occurance of the CueReference element.
|
inline |
|
protected |
Reset the values to their defaults.
|
inline |
void tawara::CueTrackPosition::track | ( | uint64_t | track | ) |
Set the track number.
|
protectedvirtual |
Element body writing.
Implements tawara::Element.
|
friend |
Equality operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |