Caffe2 - C++ API
A deep learning, cross platform ML framework
IOSGLContext.h
1 
2 #pragma once
3 
4 #include "../core/GLContext.h"
5 #include "../core/GLTexture.h"
6 
7 #import <CoreVideo/CoreVideo.h>
8 
9 class IOSGLContext : public GLContext {
10  void* oglContext;
11  void* oldContext;
12  CVOpenGLESTextureCacheRef textureCache;
13 
14  public:
15  IOSGLContext();
16  ~IOSGLContext();
17 
18  const GLTexture* createNewTexture(CVPixelBufferRef pixelBuffer, const GLTexture::Type& type);
19  void set_context();
20  void reset_context();
21  void flush_context();
22 };