MLTTrack.h 2.44 KB
Newer Older
luyikei's avatar
luyikei committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*****************************************************************************
 * MLTTrack.h:  Wrapper of Mlt::Track
 *****************************************************************************
 * Copyright (C) 2008-2016 VideoLAN
 *
 * Authors: Yikei Lu <luyikei.qmltu@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef MLTTRACK_H
#define MLTTRACK_H


luyikei's avatar
luyikei committed
27
#include "MLTInput.h"
luyikei's avatar
luyikei committed
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "Backend/ITrack.h"

namespace Mlt
{
class Playlist;
}

namespace Backend
{
class IProfile;
namespace MLT
{

luyikei's avatar
luyikei committed
41
class MLTTrack : public ITrack, public MLTInput
luyikei's avatar
luyikei committed
42
43
44
45
46
47
{
    public:
        MLTTrack();
        MLTTrack( IProfile& profile );
        virtual ~MLTTrack();

48
49
50
51
52
53
        virtual Mlt::Playlist*  playlist();
        virtual Mlt::Playlist*  playlist() const;

        virtual Mlt::Producer*  producer() override;
        virtual Mlt::Producer*  producer() const override;

luyikei's avatar
luyikei committed
54
        virtual bool        insertAt( IInput& input, int64_t startFrame ) override;
55
        virtual void        remove( int index ) override;
luyikei's avatar
luyikei committed
56
        virtual bool        append( IInput& input ) override;
luyikei's avatar
luyikei committed
57
        virtual bool        move( int src, int dist ) override;
luyikei's avatar
luyikei committed
58
59
        virtual IInput*  clip( int index ) const override;
        virtual IInput*  clipAt( int64_t position ) const override;
luyikei's avatar
luyikei committed
60
61
62
        virtual bool        resizeClip( int clip, int64_t begin, int64_t end ) override;
        virtual int         clipIndexAt( int64_t position ) override;
        virtual int         count() const override;
63
        virtual void        clear() override;
luyikei's avatar
luyikei committed
64

65
66
        virtual void        setMute( bool muted ) override;
        virtual void        setVideoEnabled( bool enabled ) override;
67

luyikei's avatar
luyikei committed
68
69
70
71
72
73
74
75
    private:
        Mlt::Playlist*                  m_playlist;
};

}
}

#endif // MLTTRACK_H