adding OpenCV with TAPI (UMats)

This commit is contained in:
Andrey Pavlenko
2015-07-27 04:04:56 +03:00
parent 274aba1a89
commit 0e4bb2b49f
4 changed files with 60 additions and 5 deletions

View File

@@ -238,17 +238,18 @@ void drawFrameProcCPU()
drawTex(FBOtex, GL_TEXTURE_2D, 0);
}
void procOCL(int tex, int w, int h);
void procOCL_I2I(int texIn, int texOut, int w, int h);
void procOCL_OCV(int tex, int w, int h);
void drawFrameProcOCL()
{
drawTex(texOES, GL_TEXTURE_EXTERNAL_OES, FBO);
// modify pixels in FBO texture using OpenCL and CL-GL interop
procOCL_I2I(FBOtex, FBOtex2, texWidth, texHeight);
//procOCL_I2I(FBOtex, FBOtex2, texWidth, texHeight);
procOCL_OCV(FBOtex, texWidth, texHeight);
// render to screen
drawTex(FBOtex2, GL_TEXTURE_2D, 0);
drawTex(/*FBOtex2*/FBOtex, GL_TEXTURE_2D, 0);
}