JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
jevois::GPUtextureDmaBuf Class Reference

#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. More...
 ~GPUtextureDmaBuf ()
 Destructor, frees the texture in OpenGL. More...

Public Attributes

const GLsizei Width
const GLsizei Height
GLuint Id
EGLImageKHR Image = nullptr
EGLDisplay Display

Constructor & Destructor Documentation

◆ GPUtextureDmaBuf()

jevois::GPUtextureDmaBuf::GPUtextureDmaBuf ( EGLDisplay  display,
GLsizei  width,
GLsizei  height,
unsigned int  fmt,
int  dmafd 


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().

◆ ~GPUtextureDmaBuf()

jevois::GPUtextureDmaBuf::~GPUtextureDmaBuf ( )

Destructor, frees the texture in OpenGL.

Definition at line 90 of file GPUtextureDmaBuf.C.

Member Data Documentation

◆ Display

EGLDisplay jevois::GPUtextureDmaBuf::Display

Definition at line 45 of file GPUtextureDmaBuf.H.

◆ Height

const GLsizei jevois::GPUtextureDmaBuf::Height

Definition at line 42 of file GPUtextureDmaBuf.H.

◆ Id

GLuint jevois::GPUtextureDmaBuf::Id

Definition at line 43 of file GPUtextureDmaBuf.H.

Referenced by GPUtextureDmaBuf().

◆ Image

EGLImageKHR jevois::GPUtextureDmaBuf::Image = nullptr

Definition at line 44 of file GPUtextureDmaBuf.H.

Referenced by GPUtextureDmaBuf().

◆ Width

const GLsizei jevois::GPUtextureDmaBuf::Width

Definition at line 41 of file GPUtextureDmaBuf.H.

The documentation for this class was generated from the following files: