0
|
1 |
/* This file is part of the KDE project.
|
|
2 |
|
|
3 |
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
|
|
5 |
This library is free software: you can redistribute it and/or modify
|
|
6 |
it under the terms of the GNU Lesser General Public License as published by
|
|
7 |
the Free Software Foundation, either version 2.1 or 3 of the License.
|
|
8 |
|
|
9 |
This library is distributed in the hope that it will be useful,
|
|
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
GNU Lesser General Public License for more details.
|
|
13 |
|
|
14 |
You should have received a copy of the GNU Lesser General Public License
|
|
15 |
along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef Phonon_QT7_VIDEOEFFECT_H
|
|
19 |
#define Phonon_QT7_VIDEOEFFECT_H
|
|
20 |
|
|
21 |
#include <QtCore/QList>
|
|
22 |
#include <QtCore/QString>
|
|
23 |
#include <phonon/effectinterface.h>
|
|
24 |
#include "medianode.h"
|
|
25 |
#include "videoframe.h"
|
|
26 |
|
|
27 |
QT_BEGIN_NAMESPACE
|
|
28 |
|
|
29 |
namespace Phonon
|
|
30 |
{
|
|
31 |
class EffectParameter;
|
|
32 |
|
|
33 |
namespace QT7
|
|
34 |
{
|
|
35 |
class MediaNodeEvent;
|
|
36 |
|
|
37 |
class VideoEffect : public MediaNode, public Phonon::EffectInterface
|
|
38 |
{
|
|
39 |
Q_OBJECT
|
|
40 |
Q_INTERFACES(Phonon::EffectInterface)
|
|
41 |
|
|
42 |
public:
|
|
43 |
VideoEffect(int effectId, QObject *parent);
|
|
44 |
virtual ~VideoEffect();
|
|
45 |
|
|
46 |
QList<EffectParameter> parameters() const;
|
|
47 |
QVariant parameterValue(const EffectParameter &) const;
|
|
48 |
void setParameterValue(const EffectParameter &, const QVariant &newValue);
|
|
49 |
|
|
50 |
void updateVideo(VideoFrame &frame);
|
|
51 |
|
|
52 |
protected:
|
|
53 |
void mediaNodeEvent(const MediaNodeEvent *event);
|
|
54 |
|
|
55 |
private:
|
|
56 |
int effectId;
|
|
57 |
void *ciFilter;
|
|
58 |
QString filterName;
|
|
59 |
};
|
|
60 |
}} // namespace Phonon::QT7
|
|
61 |
|
|
62 |
QT_END_NAMESPACE
|
|
63 |
#endif // Phonon_QT7_VIDEOEFFECT_H
|