89 if (!ppImages || !ppImages[0] || !ppImages[1] ||
103 svsStereoImage *svs_image =
svs_video->GetImage(10);
110 unsigned int *dstL = (
unsigned int *) ppImages[0]->
pixels;
111 unsigned int *dstR = (
unsigned int *) ppImages[1]->
pixels;
114 unsigned int *srcL = (
unsigned int *) svs_image->color;
115 unsigned int *srcR = (
unsigned int *) svs_image->color_right;
123 *dstL++ = (srcL[0] & 0x00FFFFFF) | (srcL[1] & 0x000000FF) << 24;
124 *dstL++ = (srcL[1] & 0x00FFFF00) >> 8 | (srcL[2] & 0x0000FFFF) << 16;
125 *dstL++ = (srcL[2] & 0x00FF0000) >> 16 | (srcL[3] & 0x00FFFFFF) << 8;
128 *dstR++ = (srcR[0] & 0x00FFFFFF) | (srcR[1] & 0x000000FF) << 24;
129 *dstR++ = (srcR[1] & 0x00FFFF00) >> 8 | (srcR[2] & 0x0000FFFF) << 16;
130 *dstR++ = (srcR[2] & 0x00FF0000) >> 16 | (srcR[3] & 0x00FFFFFF) << 8;
140 memcpy(ppImages[0]->
pixels, svs_image->right,
width *
height * m_nBytesPerPixel);
160 int maxSizeFactor = 0;
207 svsImageParams *ip = 0;
215 svs_video->SetSample(1, 4 / maxSizeFactor);
222 svs_video->SetSample(2/maxSizeFactor, 2);
229 svs_video->SetSample(4 / (maxSizeFactor * maxSizeFactor), maxSizeFactor);
236 svs_video->SetSample(1, 2 / maxSizeFactor);
243 svs_video->SetSample(2 / maxSizeFactor, 1);
278 if (val < -40 || val > 40)
287 if (val < -40 || val > 40)
296 if (val < 0 || val > 100)
305 if (val < 0 || val > 100)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
GLuint GLuint GLsizei GLenum type
void SetExposure(int val)
void SetColor(bool bColor)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
CSVSCapture(VideoMode, int nIndex=0)
GLenum GLsizei GLsizei height
void SetRectify(bool bRectify)
svsVideoImages * svs_video
bool CaptureImage(CByteImage **ppImages)