/** Returns any property of this clip. */
const QString getProperty(const QString prop) const;
void setProperty(const QString &key, const QString &value);
+ void clearProperty(const QString &key);
/** Returns the internal unique id of the clip. */
const QString &getId() const;
//KThumb *thumbCreator;
bool audioThumbCreated() const;
+ /*void getClipMainThumb();*/
/** returns the duration of this clip */
const GenTime & duration() const;
}
void setProducer(Mlt::Producer *producer);
- Mlt::Producer *producer();
+ Mlt::Producer *producer(int track = -1);
/*virtual DocClipAVFile *toDocClipAVFile() {
return 0;
/** format is frame -> channel ->bytes */
QMap<int, QMap<int, QByteArray> > audioFrameChache;
- /** Clip is ready to get thumbs */
- void slotRequestAudioThumbs();
/** Free cache data */
void slotClearAudioCache();
+ void askForAudioThumbs();
private: // Private attributes
/** The name of this clip */
/** The number of times this clip is used in the project - the number of references to this clip
* that exist. */
uint m_refcount;
- Mlt::Producer *m_clipProducer;
+ QList <Mlt::Producer *> m_baseTrackProducers;
CLIPTYPE m_clipType;
/** A list of snap markers; these markers are added to a clips snap-to points, and are displayed as necessary. */
/** Create connections for audio thumbnails */
void slotCreateAudioTimer();
void slotRefreshProducer();
+ void setProducerProperty(const char *name, const char *data);
+ void setProducerProperty(const char *name, int data);
public slots:
void updateAudioThumbnail(QMap<int, QMap<int, QByteArray> > data);
- void slotGetAudioThumbs();
+ bool slotGetAudioThumbs();
QList < CommentedTime > commentedSnapMarkers() const;
void setSnapMarkers(QList < CommentedTime > markers);
GenTime findNextSnapMarker(const GenTime & currTime);