This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Bind offscreen texture | |
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); | |
GL_CHECK(glBindTexture(GL_TEXTURE_2D, fboTextureId[i])); | |
GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, inTextureWidth, inTextureHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL)); | |
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); | |
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); | |
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, fboId[i])); | |
GL_CHECK(glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, fboTextureId[i], 0)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
function loadImage(ctx) | |
{ | |
alert("Image is loaded, context is = "); | |
alert(ctx); | |
} | |
</script> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//egl init | |
int common_eglinit(int testID, int surfaceType, NATIVE_PIXMAP_STRUCT** pNativePixmapPtr) | |
{ | |
EGLint iMajorVersion, iMinorVersion; | |
EGLint ai32ContextAttribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE }; | |
eglDisplay = eglGetDisplay((int)0); | |
if (!eglInitialize(eglDisplay, &iMajorVersion, &iMinorVersion)) | |
return 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Creation of FBO | |
glGenFramebuffers(NUM_FBO, fboId); | |
//fbo texture | |
glGenTextures(NUM_FBO, fboTextureId); | |
//Regular first texture | |
glGenTextures(1, ®ularTextureId); | |
//Bind offscreen texture | |
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); | |
GL_CHECK(glBindTexture(GL_TEXTURE_2D, fboTextureId[i])); | |
GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, inTextureWidth, inTextureHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`configure' configures TI Graphics SDK 4.09.00.01 to adapt to many kinds of systems. | |
Usage: ./configure [OPTION]... [VAR=VALUE]... | |
To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
VAR=VALUE. See below for descriptions of some of the useful variables. | |
Defaults for the options are specified in brackets. | |
Configuration: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JsDialogHandler : IJsDialogHandler | |
{ | |
string result = "default"; | |
public bool OnJSDialog(IWebBrowser browserControl, IBrowser browser, string originUrl, | |
CefJsDialogType dialogType, string messageText, string defaultPromptText, | |
IJsDialogCallback callback, ref bool suppressMessage) | |
{ | |
suppressMessage = true; | |
if (dialogType == CefJsDialogType.Prompt) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if CUDNN_MAJOR >= 6 | |
cudnnSetConvolution2dDescriptor(l->convDesc, l->pad, l->pad, l->stride, l->stride, 1, 1, CUDNN_CROSS_CORRELATION, CUDNN_DATA_FLOAT); | |
#else | |
cudnnSetConvolution2dDescriptor(l->convDesc, l->pad, l->pad, l->stride, l->stride, 1, 1, CUDNN_CROSS_CORRELATION); | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ** NOTE: You would need to perform a "cudaSetDevice(gpuId)" with this same gpuId before any CUDA operations are performed on this gpuId | |
bool ArapahoV2::Setup( | |
ArapahoV2Params & p, | |
int & expectedWidth, | |
int & expectedHeight | |
int gpuId | |
) | |
{ | |
/// All old stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ArapahoV2::Detect( | |
const cv::Mat & inputMat, | |
float thresh, | |
float hier_thresh, | |
int & objectCount) | |
{ | |
int count = 0; | |
objectCount = 0; | |
threshold = thresh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### CMake wrapper script for building darknet-cpp as ExternalProject | |
### | |
### Platforms supported: Only Linux, perhaps Mac. Windows not supported. | |
### Refer to the darknet/Makefile for the GPU/OPENCV flag options | |
### Options have to be set in the darknet/Makefile before invoking this script. | |
### All requirements (CUDA, CUDNN) need to be installed before invoking this script. | |
### | |
### Read https://github.com/prabindh/darknet for further details on build | |
### |
OlderNewer