You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SimpleSkyCam/videoframe.h

53 lines
821 B

#ifndef _VIDEOFRAME_H_
#define _VIDEOFRAME_H_
#include "gui.h"
#include "config.h"
class FloatImage {
public:
int w;
int h;
uint32_t size;
float *data;
FloatImage();
~FloatImage();
FloatImage operator=(FloatImage rightside);
void SetSize(int nw, int nh);
void SetW(int nw) { SetSize(nw, h); };
void SetH(int nh) { SetSize(w, nh); };
void CopyFrom(FloatImage *source);
};
class VideoFrame {
private:
public:
int w;
int h;
uint32_t size;
unsigned char *data;
VideoFrame();
~VideoFrame();
VideoFrame operator=(VideoFrame rightside);
void SetSize(int nw, int nh);
void SetW(int nw) { SetSize(nw, h); };
void SetH(int nh) { SetSize(w, nh); };
void CopyFrom(VideoFrame *source);
void CopyFrom(FloatImage *source);
void CopyTo(FloatImage *dest);
void ToPixbuf(GdkPixbuf* dest);
};
#endif