JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/GPU/GPUtextureDmaBuf.H>
Simple class to hold an OpenGL texture with in-GPU pixel format conversion and DMABUF acceleration.
OpenGL textures are used to transfer image data from CPU to GPU and then allow the GPU to perform some processing on the data. Processing is typically done by using "shader" GPU programs that transform the texture's pixel data and render it, in some user-programmable way.
Definition at line 30 of file GPUtextureDmaBuf.H.
Public Member Functions | |
GPUtextureDmaBuf (EGLDisplay display, GLsizei width, GLsizei height, unsigned int fmt, int dmafd) | |
Constructor. | |
~GPUtextureDmaBuf () | |
Destructor, frees the texture in OpenGL. | |
Public Attributes | |
GLsizei const | Width |
GLsizei const | Height |
GLuint | Id |
EGLImageKHR | Image = nullptr |
EGLDisplay | Display |
jevois::GPUtextureDmaBuf::GPUtextureDmaBuf | ( | EGLDisplay | display, |
GLsizei | width, | ||
GLsizei | height, | ||
unsigned int | fmt, | ||
int | dmafd | ||
) |
Constructor.
format should be as in glTexImage2D(), typically only GL_RGBA or GL_LUMINANCE are supported on embedded hardware platforms.
Definition at line 27 of file GPUtextureDmaBuf.C.
References jevois::fccstr(), GL_CHECK, Id, Image, LDEBUG, LFATAL, and jevois::v4l2BytesPerPix().
jevois::GPUtextureDmaBuf::~GPUtextureDmaBuf | ( | ) |
Destructor, frees the texture in OpenGL.
Definition at line 90 of file GPUtextureDmaBuf.C.
EGLDisplay jevois::GPUtextureDmaBuf::Display |
Definition at line 45 of file GPUtextureDmaBuf.H.
GLsizei const jevois::GPUtextureDmaBuf::Height |
Definition at line 42 of file GPUtextureDmaBuf.H.
GLuint jevois::GPUtextureDmaBuf::Id |
Definition at line 43 of file GPUtextureDmaBuf.H.
Referenced by GPUtextureDmaBuf().
EGLImageKHR jevois::GPUtextureDmaBuf::Image = nullptr |
Definition at line 44 of file GPUtextureDmaBuf.H.
Referenced by GPUtextureDmaBuf().
GLsizei const jevois::GPUtextureDmaBuf::Width |
Definition at line 41 of file GPUtextureDmaBuf.H.