diff options
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 299510a..77f7743 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -781,7 +781,35 @@ namespace Rotor { return nullptr; } private: - //todo - quality settings + }; + class Still_image: public Image_node { + public: + Still_image(){ + create_parameter("transformX","number","X transformation","Transform X",0.0f); + create_parameter("transformY","number","Y transformation","Transform X",0.0f); + create_parameter("originX","number","X transformation origin","Origin X",0.5f); + create_parameter("originY","number","Y transformation origin","Origin Y",0.5f); + create_parameter("rotation","number","Rotation about origin","Rotation",0.0f); + create_parameter("scale","number","Scale about origin","Scale",1.0f); + create_attribute("filter","Filtering mode","Filter mode","linear",{"nearest","linear","area","cubic","lanczos"}); + create_attribute("filename","name of image file to load","File name",""); + title="Still image"; + description="Load a still image and apply 2D transformation"; + }; + Still_image(map<string,string> &settings):Still_image() { + base_settings(settings); + if (attributes["filename"]->value!=""){ + string filewithpath=find_setting(settings,"media_path","")+attributes["filename"]->value; + image.read_file(filewithpath); + } + }; + ~Still_image(){ + }; + Still_image* clone(map<string,string> &_settings) { return new Still_image(_settings);}; + Image *output(const Frame_spec &frame){ + + } + private: }; class Alpha_merge: public Image_node { public: |
