summaryrefslogtreecommitdiff
path: root/rotord/rotor.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-04-16 10:18:08 +0100
committerComment <tim@gray.(none)>2013-04-16 10:18:08 +0100
commit10eaf02eec5bdd03bf3360befb5e557aac0fd3fd (patch)
treeae1ed26c6aaf5091cf1a7b2f3f9c3dda745344b3 /rotord/rotor.h
parent369836645c4d27f805b353439b8a109beaeeb736 (diff)
debugging video output
Diffstat (limited to 'rotord/rotor.h')
-rwxr-xr-xrotord/rotor.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index 4a6c8d3..e5b4085 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -115,6 +115,7 @@ namespace Rotor {
//forward declaration
class Node;
class Signal_node;
+ class Image_node;
//http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/
struct Packet {
@@ -187,12 +188,12 @@ namespace Rotor {
};
class Image_input: public Input{
public:
- bool connect(Image_node* source);
+ bool connect(Image_node *source);
Image_input(const string &_desc): Input(_desc){};
};
class Signal_input: public Input{
public:
- bool connect(Signal_node* source);
+ bool connect(Signal_node *source);
Signal_input(const string &_desc): Input(_desc){};
};
@@ -263,11 +264,12 @@ namespace Rotor {
};
class Image_node: public Node{
public:
- vector<Image_input> image_inputs; //image node also has image inputs and outputs
+ vector<Image_input*> image_inputs; //image node also has image inputs and outputs
+ void create_image_input(const string &description) {image_inputs.push_back(new Image_input(description));};
Image *get_output(const Frame_spec &frame){ //sample implementation
//do something with the inputs
//and then
- return ((Image_node*)image_inputs[0].connection)->get_output(frame);
+ return ((Image_node*)(image_inputs[0]->connection))->get_output(frame);
}
Image *get_preview(const Frame_spec &frame);
Image *image; //this can be privately allocated or just passed on as the node see fit