JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Tweet
Loading...
Searching...
No Matches
GPUtextureDmaBuf.H
Go to the documentation of this file.
1
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
//
3
// JeVois Smart Embedded Machine Vision Toolkit - Copyright (C) 2016 by Laurent Itti, the University of Southern
4
// California (USC), and iLab at USC. See http://iLab.usc.edu and http://jevois.org for information about this project.
5
//
6
// This file is part of the JeVois Smart Embedded Machine Vision Toolkit. This program is free software; you can
7
// redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software
8
// Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
10
// License for more details. You should have received a copy of the GNU General Public License along with this program;
11
// if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12
//
13
// Contact information: Laurent Itti - 3641 Watt Way, HNB-07A - Los Angeles, CA 90089-2520 - USA.
14
// Tel: +1 213 740 3527 - itti@pollux.usc.edu - http://iLab.usc.edu - http://jevois.org
15
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16
/*! \file */
17
18
#pragma once
19
20
#ifdef JEVOIS_PLATFORM_PRO
21
22
#include <
jevois/GPU/OpenGL.H
>
23
24
namespace
jevois
25
{
26
//! Simple class to hold an OpenGL texture with in-GPU pixel format conversion and DMABUF acceleration
27
/*! OpenGL textures are used to transfer image data from CPU to GPU and then allow the GPU to perform some processing
28
on the data. Processing is typically done by using "shader" GPU programs that transform the texture's pixel data
29
and render it, in some user-programmable way. */
30
class
GPUtextureDmaBuf
31
{
32
public
:
33
//! Constructor
34
/*! format should be as in glTexImage2D(), typically only GL_RGBA or GL_LUMINANCE are supported on embedded
35
hardware platforms. */
36
GPUtextureDmaBuf
(EGLDisplay display, GLsizei width, GLsizei height,
unsigned
int
fmt,
int
dmafd);
37
38
//! Destructor, frees the texture in OpenGL
39
~GPUtextureDmaBuf
();
40
41
GLsizei
const
Width
;
42
GLsizei
const
Height
;
43
GLuint
Id
;
44
EGLImageKHR
Image
=
nullptr
;
45
EGLDisplay
Display
;
46
};
47
}
// namespace jevois
48
49
#endif
// JEVOIS_PLATFORM_PRO
OpenGL.H
jevois::GPUtextureDmaBuf
Simple class to hold an OpenGL texture with in-GPU pixel format conversion and DMABUF acceleration.
Definition
GPUtextureDmaBuf.H:31
jevois::GPUtextureDmaBuf::Id
GLuint Id
Definition
GPUtextureDmaBuf.H:43
jevois::GPUtextureDmaBuf::Display
EGLDisplay Display
Definition
GPUtextureDmaBuf.H:45
jevois::GPUtextureDmaBuf::Width
GLsizei const Width
Definition
GPUtextureDmaBuf.H:41
jevois::GPUtextureDmaBuf::Image
EGLImageKHR Image
Definition
GPUtextureDmaBuf.H:44
jevois::GPUtextureDmaBuf::~GPUtextureDmaBuf
~GPUtextureDmaBuf()
Destructor, frees the texture in OpenGL.
Definition
GPUtextureDmaBuf.C:90
jevois::GPUtextureDmaBuf::Height
GLsizei const Height
Definition
GPUtextureDmaBuf.H:42
jevois
Main namespace for all JeVois classes and functions.
Definition
Concepts.dox:2
include
jevois
GPU
GPUtextureDmaBuf.H
Please help us improve this page: Edit it on
GitHub
or
email us your edits and suggestions.
Generated by
1.9.8