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.
38 lines
604 B
38 lines
604 B
7 years ago
|
#ifndef VISIONIMG_H
|
||
|
#define VISIONIMG_H
|
||
|
|
||
|
#ifdef QCOM
|
||
|
#include <GLES3/gl3.h>
|
||
|
#include <EGL/egl.h>
|
||
|
#include <EGL/eglext.h>
|
||
|
#endif
|
||
|
|
||
|
#include "common/visionbuf.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#define VISIONIMG_FORMAT_RGB24 1
|
||
|
|
||
|
typedef struct VisionImg {
|
||
|
int fd;
|
||
|
int format;
|
||
|
int width, height, stride;
|
||
|
int bpp;
|
||
|
size_t size;
|
||
|
} VisionImg;
|
||
|
|
||
|
VisionImg visionimg_alloc_rgb24(int width, int height, VisionBuf *out_buf);
|
||
|
|
||
|
#ifdef QCOM
|
||
|
EGLClientBuffer visionimg_to_egl(const VisionImg *img);
|
||
|
GLuint visionimg_to_gl(const VisionImg *img);
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} // extern "C"
|
||
|
#endif
|
||
|
|
||
|
#endif
|