~ubuntu-branches/ubuntu/trusty/libavg/trusty-proposed

« back to all changes in this revision

Viewing changes to src/wrapper/fx_wrap.cpp

  • Committer: Package Import Robot
  • Author(s): OXullo Intersecans
  • Date: 2011-12-06 22:44:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111206224456-qc7250z3ya1vi8s9
Tags: 1.7.0-0ubuntu1
* New upstream release (LP: #899183)
* Remove patches 0002-libav-0.7.patch, 0003-fglrx-segfault-on-startup.patch
  now merged to upstream
* Remove unnecessary .la files
* Update debian/watch file
* Fix debian/copyright dep-5 compliancy
* Update standards to version 3.9.2
* Add man pages for avg_checktouch, avg_checkvsync, avg_showsvg
* Minor debian/rules enhancement
* Add librsvg2-dev, libgdk-pixbuf2.0-dev to Build-Depends
* Proper transition to dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
3
//  Copyright (C) 2003-2011 Ulrich von Zadow
4
4
//
5
5
//  This library is free software; you can redistribute it and/or
6
6
//  modify it under the terms of the GNU Lesser General Public
22
22
#include "WrapHelper.h"
23
23
#include "raw_constructor.hpp"
24
24
 
 
25
#include "../player/BlurFXNode.h"
 
26
#include "../player/ChromaKeyFXNode.h"
25
27
#include "../player/FXNode.h"
 
28
#include "../player/HueSatFXNode.h"
 
29
#include "../player/InvertFXNode.h"
26
30
#include "../player/NullFXNode.h"
27
 
#include "../player/BlurFXNode.h"
28
31
#include "../player/ShadowFXNode.h"
29
 
#include "../player/ChromaKeyFXNode.h"
30
32
 
31
33
#include <boost/shared_ptr.hpp>
32
34
 
39
41
    class_<FXNode, boost::shared_ptr<FXNode>, boost::noncopyable>("FXNode", no_init)
40
42
        ;
41
43
 
42
 
    class_<NullFXNode, bases<FXNode>, boost::shared_ptr<NullFXNode>, boost::noncopyable>(
43
 
            "NullFXNode")
44
 
        ;
45
 
 
46
 
    class_<BlurFXNode, bases<FXNode>, boost::shared_ptr<BlurFXNode>, 
 
44
    class_<BlurFXNode, bases<FXNode>, boost::shared_ptr<BlurFXNode>,
47
45
            boost::noncopyable>("BlurFXNode")
48
46
        .def("setParam", &BlurFXNode::setParam)
49
 
        ;
50
 
    
51
 
    class_<ShadowFXNode, bases<FXNode>, boost::shared_ptr<ShadowFXNode>, 
52
 
            boost::noncopyable>("ShadowFXNode")
53
 
        .def("setParams", &ShadowFXNode::setParams)
 
47
        .add_property("radius", &BlurFXNode::getRadius,
 
48
                &BlurFXNode::setRadius)
54
49
        ;
55
50
 
56
 
    class_<ChromaKeyFXNode, bases<FXNode>, boost::shared_ptr<ChromaKeyFXNode>, 
 
51
    class_<ChromaKeyFXNode, bases<FXNode>, boost::shared_ptr<ChromaKeyFXNode>,
57
52
            boost::noncopyable>("ChromaKeyFXNode")
58
53
        .add_property("color",
59
54
                make_function(&ChromaKeyFXNode::getColor,
72
67
        .add_property("spillthreshold", &ChromaKeyFXNode::getSpillThreshold,
73
68
                &ChromaKeyFXNode::setSpillThreshold)
74
69
        ;
 
70
 
 
71
    class_<HueSatFXNode, bases<FXNode>, boost::shared_ptr<HueSatFXNode>,
 
72
            boost::noncopyable > ("HueSatFXNode", init< optional<float, float, float,
 
73
            bool> >())
 
74
        .add_property("hue", &HueSatFXNode::getHue,
 
75
                &HueSatFXNode::setHue)
 
76
        .add_property("saturation", &HueSatFXNode::getSaturation,
 
77
                &HueSatFXNode::setSaturation)
 
78
        .add_property("lightness", &HueSatFXNode::getLightnessOffset,
 
79
                &HueSatFXNode::setLightnessOffset)
 
80
        .add_property("colorize", &HueSatFXNode::isColorizing,
 
81
                &HueSatFXNode::setColorizing)
 
82
        .def("__repr__", &HueSatFXNode::toString)
 
83
        ;
 
84
 
 
85
    class_<InvertFXNode, bases<FXNode>, boost::shared_ptr<InvertFXNode>, boost::noncopyable>(
 
86
            "InvertFXNode")
 
87
        ;
 
88
 
 
89
    class_<NullFXNode, bases<FXNode>, boost::shared_ptr<NullFXNode>, boost::noncopyable>(
 
90
            "NullFXNode")
 
91
        ;
 
92
 
 
93
    class_<ShadowFXNode, bases<FXNode>, boost::shared_ptr<ShadowFXNode>,
 
94
            boost::noncopyable>("ShadowFXNode")
 
95
        .def("setParams", &ShadowFXNode::setParams)
 
96
        .add_property("offset", &ShadowFXNode::getOffset, &ShadowFXNode::setOffset)
 
97
        .add_property("radius", &ShadowFXNode::getRadius, &ShadowFXNode::setRadius)
 
98
        .add_property("opacity", &ShadowFXNode::getOpacity, &ShadowFXNode::setOpacity)
 
99
        .add_property("color", &ShadowFXNode::getColor, &ShadowFXNode::setColor)
 
100
        ;
75
101
}