|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARPGPUINTERFACES
11 #define YARPGPUINTERFACES
49 virtual bool resize(
int width,
int height) = 0;
65 virtual int load(
char *name) = 0;
82 virtual void setargument(
int prg,
char *name,
float *vector,
int len) = 0;
89 virtual void execute(
int prg,
unsigned char *in,
unsigned char *out) = 0;
97 virtual void execute(
int prg,
unsigned char *in,
unsigned char *in2,
unsigned char *out) = 0;
A generic interface to GPU port devices.
virtual void execute(int prg, unsigned char *in, unsigned char *out)=0
Execute a loaded program on a given matrix (eg: an image).
virtual void setargument(int prg, char *name, float val)=0
Set a program's argument to 'val' (float).
virtual void changebpp(int bytespp)=0
It changes the number of bytes per pixel (data matrix element).
virtual void execute(int prg, yarp::sig::Image *in, yarp::sig::Image *in2, yarp::sig::Image *out)=0
Execute a loaded program on 2 given matrices (eg: images).
virtual void setargument(int prg, int val)=0
virtual void execute(int prg, yarp::sig::Image *in, yarp::sig::Image *out)=0
Execute a loaded program on a given matrix (eg: an image).
virtual void execute(int prg, unsigned char *in, unsigned char *in2, unsigned char *out)=0
Execute a loaded program on 2 given matrices (eg: images).
virtual void setargument(int prg, float val)=0
virtual int height()=0
It returns the current workspace's height.
virtual int width()=0
It returns the current workspace's width.
The main, catch-all namespace for YARP.
virtual void setargument(int prg, char *name, float *vector, int len)=0
Set a program's argument to 'vector' (1D vector for single values).
Base class for storing images.
virtual void changetype(int newtype)=0
It changes the size of each pixel (the type each pixel's element is).
virtual int load(char *name)=0
Load a program for the GPU.
virtual bool resize(int width, int height)=0
It changes the dimensions of the current working space (the texture used for communication with the G...