diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-07-10 16:38:13 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-07-10 16:38:13 +0100 |
| commit | edd05e4ad726c5aec6807a30dc9ff7de8f97b28b (patch) | |
| tree | afa0086a501f278b53f961b5991cad86be0072d5 /rotord/rotor.h | |
| parent | 0606ec24cbc1301b50f9f4bb2eae030d0658315f (diff) | |
cv::Mat use for images
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index 8e6e9b7..3d260e4 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -1,3 +1,4 @@ + /* nodes can have many inputs but only 1 output @@ -68,7 +69,7 @@ extern "C" { #include "xmlIO.h" #include "utils.h" //fequal #include "libavwrapper.h" -#include "image.h" +#include "cvimage.h" namespace Rotor { #define IDLE 0 @@ -565,8 +566,8 @@ namespace Rotor { image->RGBdata[(i*frame.w+j)*3]=(uint8_t)((int)((i+(frame.time*25.0f)*hs))%255); image->RGBdata[((i*frame.w+j)*3)+1]=(uint8_t)((int)((j+(frame.time*100.0f)*hs))%255); image->RGBdata[((i*frame.w+j)*3)+2]=(uint8_t)(0); - image->Adata[i*frame.w+j]=(uint8_t)255; - image->Zdata[i*frame.w+j]=(uint16_t)512; //1.0 in fixed point 8.8 bits + //image->Adata[i*frame.w+j]=(uint8_t)255; + //image->Zdata[i*frame.w+j]=(uint16_t)512; //1.0 in fixed point 8.8 bits } } return image; |
