Tag Parser  8.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TagParser::AbstractTrack Class Referenceabstract

The AbstractTrack class parses and stores technical information about video, audio and other kinds of media tracks. More...

#include <abstracttrack.h>

Inheritance diagram for TagParser::AbstractTrack:
[legend]
Collaboration diagram for TagParser::AbstractTrack:
[legend]

Public Member Functions

virtual ~AbstractTrack ()
 Destroys the track. More...
 
virtual TrackType type () const
 Returns the type of the track if known; otherwise returns TrackType::Unspecified. More...
 
std::istream & inputStream ()
 Returns the associated input stream. More...
 
void setInputStream (std::istream &stream)
 Assigns another input stream. More...
 
std::ostream & outputStream ()
 Returns the associated output stream. More...
 
void setOutputStream (std::ostream &stream)
 Assigns another output stream. More...
 
IoUtilities::BinaryReader & reader ()
 Returns a binary reader for the associated stream. More...
 
IoUtilities::BinaryWriter & writer ()
 Returns a binary writer for the associated stream. More...
 
uint64 startOffset () const
 Returns the start offset of the track in the associated stream. More...
 
MediaFormat format () const
 Returns the format of the track if known; otherwise returns MediaFormat::Unknown. More...
 
double version () const
 Returns the version/level of the track if known; otherwise returns 0. More...
 
const char * formatName () const
 Returns the format of the track as C-style string if known; otherwise returns the format abbreviation or an empty string. More...
 
const char * formatAbbreviation () const
 Returns the a more or less common abbreviation for the format of the track as C-style string if known; otherwise returns an empty string. More...
 
const std::string & formatId () const
 Returns the format/codec ID. More...
 
MediaType mediaType () const
 Returns the media type if known; otherwise returns MediaType::Other. More...
 
const char * mediaTypeName () const
 Returns the string representation of the media type of the track. More...
 
uint64 size () const
 Returns the size in bytes if known; otherwise returns 0. More...
 
uint32 trackNumber () const
 Returns the track number if known; otherwise returns 0. More...
 
void setTrackNumber (uint32 trackNumber)
 Sets the track number. More...
 
uint64 id () const
 Returns the track ID if known; otherwise returns 0. More...
 
void setId (uint64 id)
 Sets the track ID. More...
 
const std::string name () const
 Returns the track name if known; otherwise returns an empty string. More...
 
void setName (const std::string &name)
 Sets the name. More...
 
const ChronoUtilities::TimeSpanduration () const
 Returns the duration if known; otherwise returns a TimeSpan of zero ticks. More...
 
double bitrate () const
 Returns the average bitrate in kbit/s if known; otherwise returns zero. More...
 
double maxBitrate () const
 Returns the maximum bitrate in kbit/s if known; otherwise returns zero. More...
 
const ChronoUtilities::DateTimecreationTime () const
 Returns the creation time if known; otherwise returns a DateTime of zero ticks. More...
 
const ChronoUtilities::DateTimemodificationTime () const
 Returns the time of the last modification if known; otherwise returns a DateTime of zero ticks. More...
 
const std::string & language () const
 Returns the language of the track if known; otherwise returns an empty string. More...
 
void setLanguage (const std::string &language)
 Sets the language of the track. More...
 
uint32 samplingFrequency () const
 Returns the number of samples per second if known; otherwise returns 0. More...
 
uint32 extensionSamplingFrequency () const
 Returns the number of samples per second if known; otherwise returns 0. More...
 
uint16 bitsPerSample () const
 Returns the number of bits per sample; otherwise returns 0. More...
 
uint16 channelCount () const
 Returns the number of channels if known; otherwise returns 0. More...
 
byte channelConfig () const
 Returns the channel configuration. More...
 
const char * channelConfigString () const
 Returns a string with the channel configuration if available; otherwise returns nullptr. More...
 
byte extensionChannelConfig () const
 Returns the extension channel configuration if available; otherwise returns nullptr. More...
 
const char * extensionChannelConfigString () const
 Returns a string with the extension channel configuration if available; otherwise returns nullptr. More...
 
uint64 sampleCount () const
 Returns the number of samples/frames if known; otherwise returns 0. More...
 
int quality () const
 Returns the quality if known; otherwise returns 0. More...
 
const SizepixelSize () const
 Returns the size of the encoded video frames if known; otherwise returns a zero size. More...
 
const SizedisplaySize () const
 Returns the size of the video frames to display if known; otherwise returns a zero size. More...
 
const Sizeresolution () const
 Returns the resolution if known; otherwise returns a zero size. More...
 
const std::string & compressorName () const
 Returns the compressor name if known; otherwise returns an empty string. More...
 
void setCompressorName (const std::string &compressorName)
 Returns the compressor name if known; otherwise returns an empty string. More...
 
uint16 depth () const
 Returns the bit depth if known; otherwise returns 0. More...
 
uint32 fps () const
 Returns the number of frames per second if known; otherwise returns 0. More...
 
const char * chromaFormat () const
 Returns the chroma subsampling format if known; otherwise returns nullptr. More...
 
const AspectRatiopixelAspectRatio () const
 Returns the pixel aspect ratio (PAR). More...
 
bool isInterlaced () const
 Returns true if the video is denoted as interlaced; otherwise returns false. More...
 
uint32 timeScale () const
 Returns the time scale if known; otherwise returns 0. More...
 
bool isEnabled () const
 Returns true if the track is denoted as enabled; otherwise returns false. More...
 
void setEnabled (bool enabled)
 Sets whether the track is enabled. More...
 
bool isDefault () const
 Returns true if the track is denoted as default; otherwise returns false. More...
 
void setDefault (bool isDefault)
 Sets whether the track is a default track. More...
 
bool isForced () const
 Returns true if the track is denoted as forced; otherwise returns false. More...
 
void setForced (bool forced)
 Sets whether the track is forced. More...
 
bool hasLacing () const
 Returns true if the track has lacing; otherwise returns false. More...
 
bool isEncrypted () const
 Returns true if the track is denoted as encrypted; otherwise returns false. More...
 
uint32 colorSpace () const
 Returns the color space if known; otherwise returns 0. More...
 
const Margincropping () const
 Returns the cropping if known; otherwise returns zero margins. More...
 
std::string label () const
 Returns a label for the track. More...
 
std::string description () const
 Returns a short description about the track. More...
 
void parseHeader (Diagnostics &diag)
 Parses technical information about the track from the header. More...
 
bool isHeaderValid () const
 Returns an indication whether the track header is valid. More...
 

Protected Member Functions

 AbstractTrack (std::istream &inputStream, std::ostream &outputStream, uint64 startOffset)
 Constructs a new track. More...
 
 AbstractTrack (std::iostream &stream, uint64 startOffset)
 Constructs a new track. More...
 
virtual void internalParseHeader (Diagnostics &diag)=0
 This method is internally called to parse header information. More...
 

Protected Attributes

std::istream * m_istream
 
std::ostream * m_ostream
 
IoUtilities::BinaryReader m_reader
 
IoUtilities::BinaryWriter m_writer
 
uint64 m_startOffset
 
bool m_headerValid
 
MediaFormat m_format
 
std::string m_formatId
 
std::string m_formatName
 
MediaType m_mediaType
 
double m_version
 
uint64 m_size
 
uint32 m_trackNumber
 
uint64 m_id
 
std::string m_name
 
ChronoUtilities::TimeSpan m_duration
 
double m_bitrate
 
double m_maxBitrate
 
ChronoUtilities::DateTime m_creationTime
 
ChronoUtilities::DateTime m_modificationTime
 
std::string m_language
 
uint32 m_samplingFrequency
 
uint32 m_extensionSamplingFrequency
 
uint16 m_bitsPerSample
 
uint32 m_bytesPerSecond
 
uint16 m_channelCount
 
byte m_channelConfig
 
byte m_extensionChannelConfig
 
uint16 m_chunkSize
 
uint64 m_sampleCount
 
int m_quality
 
Size m_pixelSize
 
Size m_displaySize
 
Size m_resolution
 
std::string m_compressorName
 
uint16 m_depth
 
uint32 m_fps
 
const char * m_chromaFormat
 
AspectRatio m_pixelAspectRatio
 
bool m_interlaced
 
uint32 m_timeScale
 
bool m_enabled
 
bool m_default
 
bool m_forced
 
bool m_lacing
 
bool m_encrypted
 
bool m_usedInPresentation
 
bool m_usedWhenPreviewing
 
uint32 m_colorSpace
 
Margin m_cropping
 

Friends

class MpegAudioFrameStream
 
class WaveAudioStream
 
class Mp4Track
 

Detailed Description

The AbstractTrack class parses and stores technical information about video, audio and other kinds of media tracks.

The tag class only provides the interface and common functionality. It is meant to be subclassed.

Definition at line 40 of file abstracttrack.h.

Constructor & Destructor Documentation

◆ ~AbstractTrack()

TagParser::AbstractTrack::~AbstractTrack ( )
virtual

Destroys the track.

Definition at line 87 of file abstracttrack.cpp.

◆ AbstractTrack() [1/2]

TagParser::AbstractTrack::AbstractTrack ( std::istream &  inputStream,
std::ostream &  outputStream,
uint64  startOffset 
)
protected

Constructs a new track.

Parameters
inputStreamSpecifies the stream the track will read from to perform particular operations such as reading header information.
outputStreamSpecifies the stream the track will write to to perform particular operations such as updating or making header information.
startOffsetThe start offset of the track in the specified stream.

Definition at line 32 of file abstracttrack.cpp.

◆ AbstractTrack() [2/2]

TagParser::AbstractTrack::AbstractTrack ( std::iostream &  stream,
uint64  startOffset 
)
protected

Constructs a new track.

Parameters
streamSpecifies the stream the track will read from or write to to perform particular operations such as reading header information.
startOffsetThe start offset of the track in the specified stream.

Definition at line 79 of file abstracttrack.cpp.

Member Function Documentation

◆ bitrate()

double TagParser::AbstractTrack::bitrate ( ) const
inline

Returns the average bitrate in kbit/s if known; otherwise returns zero.

Definition at line 380 of file abstracttrack.h.

◆ bitsPerSample()

uint16 TagParser::AbstractTrack::bitsPerSample ( ) const
inline

Returns the number of bits per sample; otherwise returns 0.

Definition at line 448 of file abstracttrack.h.

◆ channelConfig()

byte TagParser::AbstractTrack::channelConfig ( ) const
inline

Returns the channel configuration.

This is the MPEG-4 channel config for MPEG-4 audio.

See also
Mpeg4ChannelConfigs::channelConfigString()

Definition at line 469 of file abstracttrack.h.

◆ channelConfigString()

const char * TagParser::AbstractTrack::channelConfigString ( ) const

Returns a string with the channel configuration if available; otherwise returns nullptr.

Definition at line 94 of file abstracttrack.cpp.

◆ channelCount()

uint16 TagParser::AbstractTrack::channelCount ( ) const
inline

Returns the number of channels if known; otherwise returns 0.

This value only makes sense for audio tracks.

Definition at line 458 of file abstracttrack.h.

◆ chromaFormat()

const char * TagParser::AbstractTrack::chromaFormat ( ) const
inline

Returns the chroma subsampling format if known; otherwise returns nullptr.

This value only makes sense for video tracks.

Definition at line 562 of file abstracttrack.h.

◆ colorSpace()

uint32 TagParser::AbstractTrack::colorSpace ( ) const
inline

Returns the color space if known; otherwise returns 0.

Definition at line 665 of file abstracttrack.h.

◆ compressorName()

const std::string & TagParser::AbstractTrack::compressorName ( ) const
inline

Returns the compressor name if known; otherwise returns an empty string.

Definition at line 525 of file abstracttrack.h.

◆ creationTime()

const ChronoUtilities::DateTime & TagParser::AbstractTrack::creationTime ( ) const
inline

Returns the creation time if known; otherwise returns a DateTime of zero ticks.

Definition at line 396 of file abstracttrack.h.

◆ cropping()

const Margin & TagParser::AbstractTrack::cropping ( ) const
inline

Returns the cropping if known; otherwise returns zero margins.

Definition at line 673 of file abstracttrack.h.

◆ depth()

uint16 TagParser::AbstractTrack::depth ( ) const
inline

Returns the bit depth if known; otherwise returns 0.

Definition at line 542 of file abstracttrack.h.

◆ description()

string TagParser::AbstractTrack::description ( ) const

Returns a short description about the track.

The description contains the abbreviated format and further information depending on the media type (eg. display size in case of video, language in case of audio/text). It is intended to be joined with descriptions of other tracks to get a short technical description about the file.

Examples (exact format might change in the future!):

  • H.264-720p
  • HE-AAC-6ch-eng

Definition at line 159 of file abstracttrack.cpp.

◆ displaySize()

const Size & TagParser::AbstractTrack::displaySize ( ) const
inline

Returns the size of the video frames to display if known; otherwise returns a zero size.

This value only makes sense for video tracks.

Definition at line 507 of file abstracttrack.h.

◆ duration()

const ChronoUtilities::TimeSpan & TagParser::AbstractTrack::duration ( ) const
inline

Returns the duration if known; otherwise returns a TimeSpan of zero ticks.

Definition at line 372 of file abstracttrack.h.

◆ extensionChannelConfig()

byte TagParser::AbstractTrack::extensionChannelConfig ( ) const

Returns the extension channel configuration if available; otherwise returns nullptr.

Definition at line 110 of file abstracttrack.cpp.

◆ extensionChannelConfigString()

const char * TagParser::AbstractTrack::extensionChannelConfigString ( ) const

Returns a string with the extension channel configuration if available; otherwise returns nullptr.

Definition at line 118 of file abstracttrack.cpp.

◆ extensionSamplingFrequency()

uint32 TagParser::AbstractTrack::extensionSamplingFrequency ( ) const
inline

Returns the number of samples per second if known; otherwise returns 0.

Remarks
This sample rate value takes extensions like SBR into account.

Definition at line 440 of file abstracttrack.h.

◆ format()

MediaFormat TagParser::AbstractTrack::format ( ) const
inline

Returns the format of the track if known; otherwise returns MediaFormat::Unknown.

Definition at line 250 of file abstracttrack.h.

◆ formatAbbreviation()

const char * TagParser::AbstractTrack::formatAbbreviation ( ) const
inline

Returns the a more or less common abbreviation for the format of the track as C-style string if known; otherwise returns an empty string.

Definition at line 279 of file abstracttrack.h.

◆ formatId()

const std::string & TagParser::AbstractTrack::formatId ( ) const
inline

Returns the format/codec ID.

This is usually the raw format identifier extracted from the container) if known; otherwise returns an empty string.

Definition at line 289 of file abstracttrack.h.

◆ formatName()

const char * TagParser::AbstractTrack::formatName ( ) const
inline

Returns the format of the track as C-style string if known; otherwise returns the format abbreviation or an empty string.

Remarks
  • The caller must not free the returned string.
  • The string might get invalidated when the track is (re)parsed.

Definition at line 270 of file abstracttrack.h.

◆ fps()

uint32 TagParser::AbstractTrack::fps ( ) const
inline

Returns the number of frames per second if known; otherwise returns 0.

This value only makes sense for video tracks.

Definition at line 552 of file abstracttrack.h.

◆ hasLacing()

bool TagParser::AbstractTrack::hasLacing ( ) const
inline

Returns true if the track has lacing; otherwise returns false.

Definition at line 649 of file abstracttrack.h.

◆ id()

uint64 TagParser::AbstractTrack::id ( ) const
inline

Returns the track ID if known; otherwise returns 0.

Definition at line 338 of file abstracttrack.h.

◆ inputStream()

std::istream & TagParser::AbstractTrack::inputStream ( )
inline

Returns the associated input stream.

Definition at line 174 of file abstracttrack.h.

◆ internalParseHeader()

TagParser::AbstractTrack::internalParseHeader ( Diagnostics diag)
protectedpure virtual

This method is internally called to parse header information.

It needs to be implemented when subclassing this class.

Exceptions
Throwsstd::ios_base::failure when an IO error occurs.
ThrowsTagParser::Failure or a derived exception when a parsing error occurs.

Implemented in TagParser::Mp4Track, TagParser::MatroskaTrack, TagParser::WaveAudioStream, TagParser::FlacStream, TagParser::OggStream, TagParser::MpegAudioFrameStream, TagParser::IvfStream, and TagParser::AdtsStream.

◆ isDefault()

bool TagParser::AbstractTrack::isDefault ( ) const
inline

Returns true if the track is denoted as default; otherwise returns false.

Definition at line 615 of file abstracttrack.h.

◆ isEnabled()

bool TagParser::AbstractTrack::isEnabled ( ) const
inline

Returns true if the track is denoted as enabled; otherwise returns false.

Definition at line 598 of file abstracttrack.h.

◆ isEncrypted()

bool TagParser::AbstractTrack::isEncrypted ( ) const
inline

Returns true if the track is denoted as encrypted; otherwise returns false.

Definition at line 657 of file abstracttrack.h.

◆ isForced()

bool TagParser::AbstractTrack::isForced ( ) const
inline

Returns true if the track is denoted as forced; otherwise returns false.

Definition at line 632 of file abstracttrack.h.

◆ isHeaderValid()

bool TagParser::AbstractTrack::isHeaderValid ( ) const
inline

Returns an indication whether the track header is valid.

Definition at line 681 of file abstracttrack.h.

◆ isInterlaced()

bool TagParser::AbstractTrack::isInterlaced ( ) const
inline

Returns true if the video is denoted as interlaced; otherwise returns false.

This value only makes sense for video tracks.

Definition at line 580 of file abstracttrack.h.

◆ label()

string TagParser::AbstractTrack::label ( ) const

Returns a label for the track.

The label contains the ID, type, name and language of the track. It is intended to be used in a menu for selecting a track from the file.

Definition at line 134 of file abstracttrack.cpp.

◆ language()

const std::string & TagParser::AbstractTrack::language ( ) const
inline

Returns the language of the track if known; otherwise returns an empty string.

The format of the language denotation depends on the particular implementation.

Definition at line 414 of file abstracttrack.h.

◆ maxBitrate()

double TagParser::AbstractTrack::maxBitrate ( ) const
inline

Returns the maximum bitrate in kbit/s if known; otherwise returns zero.

Definition at line 388 of file abstracttrack.h.

◆ mediaType()

MediaType TagParser::AbstractTrack::mediaType ( ) const
inline

Returns the media type if known; otherwise returns MediaType::Other.

Definition at line 297 of file abstracttrack.h.

◆ mediaTypeName()

const char * TagParser::AbstractTrack::mediaTypeName ( ) const
inline

Returns the string representation of the media type of the track.

Definition at line 305 of file abstracttrack.h.

◆ modificationTime()

const ChronoUtilities::DateTime & TagParser::AbstractTrack::modificationTime ( ) const
inline

Returns the time of the last modification if known; otherwise returns a DateTime of zero ticks.

Definition at line 404 of file abstracttrack.h.

◆ name()

const std::string TagParser::AbstractTrack::name ( ) const
inline

Returns the track name if known; otherwise returns an empty string.

Definition at line 355 of file abstracttrack.h.

◆ outputStream()

std::ostream & TagParser::AbstractTrack::outputStream ( )
inline

Returns the associated output stream.

Definition at line 193 of file abstracttrack.h.

◆ parseHeader()

void TagParser::AbstractTrack::parseHeader ( Diagnostics diag)

Parses technical information about the track from the header.

The information will be read from the associated stream. The stream and the start offset of the track have been specified when constructing the Track.

The parsed information can be accessed using the corresponding methods.

Exceptions
Throwsstd::ios_base::failure when an IO error occurs.
ThrowsTagParser::Failure or a derived exception when a parsing error occurs.

Definition at line 211 of file abstracttrack.cpp.

◆ pixelAspectRatio()

const AspectRatio & TagParser::AbstractTrack::pixelAspectRatio ( ) const
inline

Returns the pixel aspect ratio (PAR).

Definition at line 570 of file abstracttrack.h.

◆ pixelSize()

const Size & TagParser::AbstractTrack::pixelSize ( ) const
inline

Returns the size of the encoded video frames if known; otherwise returns a zero size.

This value only makes sense for video tracks.

Definition at line 497 of file abstracttrack.h.

◆ quality()

int TagParser::AbstractTrack::quality ( ) const
inline

Returns the quality if known; otherwise returns 0.

The scale depends on the format.

Definition at line 487 of file abstracttrack.h.

◆ reader()

IoUtilities::BinaryReader & TagParser::AbstractTrack::reader ( )
inline

Returns a binary reader for the associated stream.

Remarks
The returned reader is internally used when reading binary data from the associated stream. Do not change its byte order.

Definition at line 215 of file abstracttrack.h.

◆ resolution()

const Size & TagParser::AbstractTrack::resolution ( ) const
inline

Returns the resolution if known; otherwise returns a zero size.

This value only makes sense for video tracks.

Definition at line 517 of file abstracttrack.h.

◆ sampleCount()

uint64 TagParser::AbstractTrack::sampleCount ( ) const
inline

Returns the number of samples/frames if known; otherwise returns 0.

Definition at line 477 of file abstracttrack.h.

◆ samplingFrequency()

uint32 TagParser::AbstractTrack::samplingFrequency ( ) const
inline

Returns the number of samples per second if known; otherwise returns 0.

Definition at line 431 of file abstracttrack.h.

◆ setCompressorName()

void TagParser::AbstractTrack::setCompressorName ( const std::string &  compressorName)
inline

Returns the compressor name if known; otherwise returns an empty string.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 534 of file abstracttrack.h.

◆ setDefault()

void TagParser::AbstractTrack::setDefault ( bool  isDefault)
inline

Sets whether the track is a default track.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 624 of file abstracttrack.h.

◆ setEnabled()

void TagParser::AbstractTrack::setEnabled ( bool  enabled)
inline

Sets whether the track is enabled.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 607 of file abstracttrack.h.

◆ setForced()

void TagParser::AbstractTrack::setForced ( bool  forced)
inline

Sets whether the track is forced.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 641 of file abstracttrack.h.

◆ setId()

void TagParser::AbstractTrack::setId ( uint64  id)
inline

Sets the track ID.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 347 of file abstracttrack.h.

◆ setInputStream()

void TagParser::AbstractTrack::setInputStream ( std::istream &  stream)
inline

Assigns another input stream.

The track will read from the stream to perform particular operations such as reading header information.

Definition at line 185 of file abstracttrack.h.

◆ setLanguage()

void TagParser::AbstractTrack::setLanguage ( const std::string &  language)
inline

Sets the language of the track.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 423 of file abstracttrack.h.

◆ setName()

void TagParser::AbstractTrack::setName ( const std::string &  name)
inline

Sets the name.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 364 of file abstracttrack.h.

◆ setOutputStream()

void TagParser::AbstractTrack::setOutputStream ( std::ostream &  stream)
inline

Assigns another output stream.

The track will write to the stream to perform particular operations such as updating or making header information.

Definition at line 204 of file abstracttrack.h.

◆ setTrackNumber()

void TagParser::AbstractTrack::setTrackNumber ( uint32  trackNumber)
inline

Sets the track number.

Remarks
Whether the new value is applied when saving changes depends on the implementation.

Definition at line 330 of file abstracttrack.h.

◆ size()

uint64 TagParser::AbstractTrack::size ( ) const
inline

Returns the size in bytes if known; otherwise returns 0.

Definition at line 313 of file abstracttrack.h.

◆ startOffset()

uint64 TagParser::AbstractTrack::startOffset ( ) const
inline

Returns the start offset of the track in the associated stream.

Definition at line 242 of file abstracttrack.h.

◆ timeScale()

uint32 TagParser::AbstractTrack::timeScale ( ) const
inline

Returns the time scale if known; otherwise returns 0.

The time scale depends on the format.

Definition at line 590 of file abstracttrack.h.

◆ trackNumber()

uint32 TagParser::AbstractTrack::trackNumber ( ) const
inline

Returns the track number if known; otherwise returns 0.

Definition at line 321 of file abstracttrack.h.

◆ type()

TrackType TagParser::AbstractTrack::type ( ) const
inlinevirtual

◆ version()

double TagParser::AbstractTrack::version ( ) const
inline

Returns the version/level of the track if known; otherwise returns 0.

Definition at line 258 of file abstracttrack.h.

◆ writer()

IoUtilities::BinaryWriter & TagParser::AbstractTrack::writer ( )
inline

Returns a binary writer for the associated stream.

Remarks
The returned writer is internally used when writing binary data to the associated stream. Do not change its byte order.

Definition at line 226 of file abstracttrack.h.

Friends And Related Function Documentation

◆ Mp4Track

friend class Mp4Track
friend

Definition at line 43 of file abstracttrack.h.

◆ MpegAudioFrameStream

friend class MpegAudioFrameStream
friend

Definition at line 41 of file abstracttrack.h.

◆ WaveAudioStream

friend class WaveAudioStream
friend

Definition at line 42 of file abstracttrack.h.

Member Data Documentation

◆ m_bitrate

double TagParser::AbstractTrack::m_bitrate
protected

Definition at line 135 of file abstracttrack.h.

◆ m_bitsPerSample

uint16 TagParser::AbstractTrack::m_bitsPerSample
protected

Definition at line 142 of file abstracttrack.h.

◆ m_bytesPerSecond

uint32 TagParser::AbstractTrack::m_bytesPerSecond
protected

Definition at line 143 of file abstracttrack.h.

◆ m_channelConfig

byte TagParser::AbstractTrack::m_channelConfig
protected

Definition at line 145 of file abstracttrack.h.

◆ m_channelCount

uint16 TagParser::AbstractTrack::m_channelCount
protected

Definition at line 144 of file abstracttrack.h.

◆ m_chromaFormat

const char* TagParser::AbstractTrack::m_chromaFormat
protected

Definition at line 156 of file abstracttrack.h.

◆ m_chunkSize

uint16 TagParser::AbstractTrack::m_chunkSize
protected

Definition at line 147 of file abstracttrack.h.

◆ m_colorSpace

uint32 TagParser::AbstractTrack::m_colorSpace
protected

Definition at line 167 of file abstracttrack.h.

◆ m_compressorName

std::string TagParser::AbstractTrack::m_compressorName
protected

Definition at line 153 of file abstracttrack.h.

◆ m_creationTime

ChronoUtilities::DateTime TagParser::AbstractTrack::m_creationTime
protected

Definition at line 137 of file abstracttrack.h.

◆ m_cropping

Margin TagParser::AbstractTrack::m_cropping
protected

Definition at line 168 of file abstracttrack.h.

◆ m_default

bool TagParser::AbstractTrack::m_default
protected

Definition at line 161 of file abstracttrack.h.

◆ m_depth

uint16 TagParser::AbstractTrack::m_depth
protected

Definition at line 154 of file abstracttrack.h.

◆ m_displaySize

Size TagParser::AbstractTrack::m_displaySize
protected

Definition at line 151 of file abstracttrack.h.

◆ m_duration

ChronoUtilities::TimeSpan TagParser::AbstractTrack::m_duration
protected

Definition at line 134 of file abstracttrack.h.

◆ m_enabled

bool TagParser::AbstractTrack::m_enabled
protected

Definition at line 160 of file abstracttrack.h.

◆ m_encrypted

bool TagParser::AbstractTrack::m_encrypted
protected

Definition at line 164 of file abstracttrack.h.

◆ m_extensionChannelConfig

byte TagParser::AbstractTrack::m_extensionChannelConfig
protected

Definition at line 146 of file abstracttrack.h.

◆ m_extensionSamplingFrequency

uint32 TagParser::AbstractTrack::m_extensionSamplingFrequency
protected

Definition at line 141 of file abstracttrack.h.

◆ m_forced

bool TagParser::AbstractTrack::m_forced
protected

Definition at line 162 of file abstracttrack.h.

◆ m_format

MediaFormat TagParser::AbstractTrack::m_format
protected

Definition at line 125 of file abstracttrack.h.

◆ m_formatId

std::string TagParser::AbstractTrack::m_formatId
protected

Definition at line 126 of file abstracttrack.h.

◆ m_formatName

std::string TagParser::AbstractTrack::m_formatName
protected

Definition at line 127 of file abstracttrack.h.

◆ m_fps

uint32 TagParser::AbstractTrack::m_fps
protected

Definition at line 155 of file abstracttrack.h.

◆ m_headerValid

bool TagParser::AbstractTrack::m_headerValid
protected

Definition at line 124 of file abstracttrack.h.

◆ m_id

uint64 TagParser::AbstractTrack::m_id
protected

Definition at line 132 of file abstracttrack.h.

◆ m_interlaced

bool TagParser::AbstractTrack::m_interlaced
protected

Definition at line 158 of file abstracttrack.h.

◆ m_istream

std::istream* TagParser::AbstractTrack::m_istream
protected

Definition at line 119 of file abstracttrack.h.

◆ m_lacing

bool TagParser::AbstractTrack::m_lacing
protected

Definition at line 163 of file abstracttrack.h.

◆ m_language

std::string TagParser::AbstractTrack::m_language
protected

Definition at line 139 of file abstracttrack.h.

◆ m_maxBitrate

double TagParser::AbstractTrack::m_maxBitrate
protected

Definition at line 136 of file abstracttrack.h.

◆ m_mediaType

MediaType TagParser::AbstractTrack::m_mediaType
protected

Definition at line 128 of file abstracttrack.h.

◆ m_modificationTime

ChronoUtilities::DateTime TagParser::AbstractTrack::m_modificationTime
protected

Definition at line 138 of file abstracttrack.h.

◆ m_name

std::string TagParser::AbstractTrack::m_name
protected

Definition at line 133 of file abstracttrack.h.

◆ m_ostream

std::ostream* TagParser::AbstractTrack::m_ostream
protected

Definition at line 120 of file abstracttrack.h.

◆ m_pixelAspectRatio

AspectRatio TagParser::AbstractTrack::m_pixelAspectRatio
protected

Definition at line 157 of file abstracttrack.h.

◆ m_pixelSize

Size TagParser::AbstractTrack::m_pixelSize
protected

Definition at line 150 of file abstracttrack.h.

◆ m_quality

int TagParser::AbstractTrack::m_quality
protected

Definition at line 149 of file abstracttrack.h.

◆ m_reader

IoUtilities::BinaryReader TagParser::AbstractTrack::m_reader
protected

Definition at line 121 of file abstracttrack.h.

◆ m_resolution

Size TagParser::AbstractTrack::m_resolution
protected

Definition at line 152 of file abstracttrack.h.

◆ m_sampleCount

uint64 TagParser::AbstractTrack::m_sampleCount
protected

Definition at line 148 of file abstracttrack.h.

◆ m_samplingFrequency

uint32 TagParser::AbstractTrack::m_samplingFrequency
protected

Definition at line 140 of file abstracttrack.h.

◆ m_size

uint64 TagParser::AbstractTrack::m_size
protected

Definition at line 130 of file abstracttrack.h.

◆ m_startOffset

uint64 TagParser::AbstractTrack::m_startOffset
protected

Definition at line 123 of file abstracttrack.h.

◆ m_timeScale

uint32 TagParser::AbstractTrack::m_timeScale
protected

Definition at line 159 of file abstracttrack.h.

◆ m_trackNumber

uint32 TagParser::AbstractTrack::m_trackNumber
protected

Definition at line 131 of file abstracttrack.h.

◆ m_usedInPresentation

bool TagParser::AbstractTrack::m_usedInPresentation
protected

Definition at line 165 of file abstracttrack.h.

◆ m_usedWhenPreviewing

bool TagParser::AbstractTrack::m_usedWhenPreviewing
protected

Definition at line 166 of file abstracttrack.h.

◆ m_version

double TagParser::AbstractTrack::m_version
protected

Definition at line 129 of file abstracttrack.h.

◆ m_writer

IoUtilities::BinaryWriter TagParser::AbstractTrack::m_writer
protected

Definition at line 122 of file abstracttrack.h.


The documentation for this class was generated from the following files: