Logo Search packages:      
Sourcecode: kdenlive version File versions

DocClipAVFile Class Reference

#include <docclipavfile.h>

Inheritance diagram for DocClipAVFile:

List of all members.


Detailed Description

Encapsulates a video, audio, picture, title, or any other kind of file that Kdenlive can support. Each type of file should be encapsulated in it's own class, which should inherit this one.
Author:
Jason Wood

Definition at line 35 of file docclipavfile.h.


Public Types

enum  CLIPTYPE {
  NONE = 0, AUDIO = 1, VIDEO = 2, AV = 3,
  COLOR, IMAGE = 5, TEXT = 6, SLIDESHOW = 7,
  VIRTUAL = 8
}

Public Slots

void addSnapMarker (const GenTime &time, QString comment)
QValueVector< CommentedTime > commentedSnapMarkers () const
QString deleteSnapMarker (const GenTime &time)
void editSnapMarker (const GenTime &time, QString comment)
GenTime findNextSnapMarker (const GenTime &currTime)
GenTime findPreviousSnapMarker (const GenTime &currTime)
QString formattedMetaData ()
void getAudioThumbs ()
uint getProjectThumbFrame () const
GenTime hasSnapMarkers (const GenTime &time)
QString markerComment (GenTime t)
void prepareThumbs () const
void setProjectThumbFrame (const uint &ix)
void setSnapMarkers (QValueVector< CommentedTime > markers)
QValueVector< GenTimesnapMarkers () const
void stopAudioThumbs ()
void updateAudioThumbnail (QMap< int, QMap< int, QByteArray > > data)

Public Member Functions

void addReference ()
double aspectRatio () const
virtual uint audioBits () const
virtual uint audioChannels () const
QString audioCodec () const
virtual QString audioFormat ()
virtual uint audioFrequency () const
virtual QString avDecompressor ()
virtual QString avSystem ()
void calculateFileProperties (const QMap< QString, QString > &attributes, const QMap< QString, QString > &metadata)
virtual uint clipHeight () const
int clipTtl () const
const DocClipBase::CLIPTYPE & clipType () const
virtual uint clipWidth () const
const QString & color () const
const QString & description () const
 DocClipAVFile (const KURL &url)
 DocClipAVFile (QDomDocument node)
 DocClipAVFile (const QString &color, const GenTime &duration, uint id)
 DocClipAVFile (const KURL &url, const QString &extension, const int &ttl, const GenTime &duration, bool alphaTransparency, bool crossfade, const QString &lumaFile, double lumasoftness, uint lumaduration, uint id)
 DocClipAVFile (const KURL &url, const GenTime &duration, bool alphaTransparency, uint id)
 DocClipAVFile (const QString &name, const KURL &url, uint id)
const GenTimeduration () const
virtual bool durationKnown () const
QString fileName ()
virtual uint fileSize () const
const KURL & fileURL () const
virtual double framesPerSecond () const
virtual QDomDocument generateSceneList (bool addProducers=true, bool rendering=false) const
uint getId () const
bool hasCrossfade () const
virtual bool hasFileSize () const
virtual bool isDocClipAVFile () const
virtual bool isDocClipTextFile () const
virtual bool isDocClipVirtual () const
virtual bool isProjectClip () const
bool isTransparent ()
const uint & lumaDuration () const
const QString & lumaFile () const
const double & lumaSoftness () const
virtual bool matchesXML (const QDomElement &element) const
const QString & name () const
uint numReferences () const
virtual void populateSceneTimes (QValueVector< GenTime > &toPopulate) const
virtual bool referencesClip (DocClipBase *clip) const
void removeReference ()
virtual void removeTmpFile () const
virtual QDomDocument sceneToXML (const GenTime &startTime, const GenTime &endTime) const
void setAlpha (bool transp)
void setClipTtl (const int &ttl)
void setColor (const QString color)
void setCrossfade (bool cross)
void setDescription (const QString &descripton)
void setDuration (const GenTime &duration)
void setFileURL (const KURL &url)
void setId (const uint &newId)
void setLumaDuration (const uint &duration)
void setLumaFile (const QString &luma)
void setLumaSoftness (const double &softness)
void setName (const QString name)
void setThumbnail (const QPixmap &pixmap)
const QPixmap & thumbnail () const
virtual DocClipAVFiletoDocClipAVFile ()
virtual DocClipTextFiletoDocClipTextFile ()
virtual DocClipVirtualtoDocClipVirtual ()
QDomDocument toXML () const
QString videoCodec () const

Static Public Member Functions

static DocClipBase * createClip (KdenliveDoc *doc, const QDomElement &element)
static DocClipAVFilecreateClip (const QDomElement element)

Public Attributes

QMap< int, QMap< int,
QByteArray > > 
audioFrameChache
bool audioThumbCreated
KThumb * thumbCreator

Private Attributes

bool m_alphaTransparency
QString m_audioCodec
QTimer * m_audioTimer
uint m_bitspersample
uint m_channels
DocClipBase::CLIPTYPE m_clipType
QString m_color
QString m_decompressor
GenTime m_duration
bool m_durationKnown
uint m_filesize
QString m_format
double m_framesPerSecond
uint m_frequency
bool m_hasCrossfade
uint m_height
QString m_luma
uint m_lumaduration
double m_lumasoftness
QMap< QString, QString > m_metadata
QString m_system
int m_ttl
KURL m_url
QString m_videoCodec
uint m_width

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

Generated by  Doxygen 1.6.0   Back to index