MetaIOAVFComment Class Reference

#include <metaioavfcomment.h>

Inheritance diagram for MetaIOAVFComment:

MetaIO

List of all members.


Detailed Description

Definition at line 8 of file metaioavfcomment.h.


Public Member Functions

 MetaIOAVFComment (void)
virtual ~MetaIOAVFComment (void)
bool write (Metadata *mdata, bool exclusive=false)
 Writes metadata back to a file.
Metadataread (QString filename)
 Reads Metadata from a file.

Private Member Functions

int getTrackLength (QString filename)
 Find the length of the track (in seconds).
int getTrackLength (AVFormatContext *p_context)
 Find the length of the track (in seconds).

Constructor & Destructor Documentation

MetaIOAVFComment::MetaIOAVFComment ( void   ) 

Definition at line 16 of file metaioavfcomment.cpp.

MetaIOAVFComment::~MetaIOAVFComment ( void   )  [virtual]

Definition at line 23 of file metaioavfcomment.cpp.


Member Function Documentation

bool MetaIOAVFComment::write ( Metadata mdata,
bool  exclusive = false 
) [virtual]

Writes metadata back to a file.

Parameters:
mdata A pointer to a Metadata object
exclusive Flag to indicate if only the data in mdata should be in the file. If false, any unrecognised tags already in the file will be maintained.
Returns:
Boolean to indicate success/failure.

Implements MetaIO.

Definition at line 38 of file metaioavfcomment.cpp.

Metadata * MetaIOAVFComment::read ( QString  filename  )  [virtual]

Reads Metadata from a file.

Parameters:
filename The filename to read metadata from.
Returns:
Metadata pointer or NULL on error

Implements MetaIO.

Definition at line 54 of file metaioavfcomment.cpp.

int MetaIOAVFComment::getTrackLength ( QString  filename  )  [private, virtual]

Find the length of the track (in seconds).

Parameters:
filename The filename for which we want to find the length.
Returns:
An integer (signed!) to represent the length in seconds.

Implements MetaIO.

Definition at line 108 of file metaioavfcomment.cpp.

Referenced by read().

int MetaIOAVFComment::getTrackLength ( AVFormatContext pContext  )  [private]

Find the length of the track (in seconds).

Parameters:
pContext The AV Format Context.
Returns:
An integer (signed!) to represent the length in seconds.

Definition at line 139 of file metaioavfcomment.cpp.


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

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5