#include"node.h" #include #include #include #include #include #include"img.h" #include #include static int camera_perform(CHiPubNode *pubn) { pubn->sources[0].type = CUTIHI_VAL_NONE; return 1; } CUTIVIS CHiPubNode *CHi_Camera() { CHiPubNode *pubn = calloc(1, sizeof(*pubn)); pubn->type = CUTIHI_T('CWeb','Cam '); pubn->Start = pubn->Stop = NULL; pubn->Perform = camera_perform; pubn->sinks = calloc(sizeof(*pubn->sinks), pubn->sinkCount = 0); pubn->sources = calloc(sizeof(*pubn->sources), pubn->sourceCount = 1); pubn->ng = NULL; return pubn; }