¡@

Home 

c++ Programming Glossary: gl_luminance

Problems converting YV12 to RGB through GLSL

http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl

ImgHeight glTexImage2D GL_TEXTURE_RECTANGLE_ARB 0 GL_LUMINANCE_ALPHA ImgWidth ImgHeight 0 GL_LUMINANCE_ALPHA GL_UNSIGNED_BYTE.. 0 GL_LUMINANCE_ALPHA ImgWidth ImgHeight 0 GL_LUMINANCE_ALPHA GL_UNSIGNED_BYTE ImageYUV assert glGetError GL_NO_ERROR.. GL_TEXTURE_RECTANGLE_ARB 0 0 0 ImgWidth ImgHeight GL_LUMINANCE_ALPHA GL_UNSIGNED_BYTE ImageYUV assert glGetError GL_NO_ERROR..

Image scaling (KeepAspectRatioByExpanding) through OpenGL

http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl

GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_RECTANGLE_ARB 0 GL_LUMINANCE _frame width _frame height _frame height 2 0 GL_LUMINANCE GL_UNSIGNED_BYTE.. GL_LUMINANCE _frame width _frame height _frame height 2 0 GL_LUMINANCE GL_UNSIGNED_BYTE _frame bits assert glGetError GL_NO_ERROR glTexEnvi.. GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_RECTANGLE_ARB 0 GL_LUMINANCE _frame width _frame height _frame height 2 0 GL_LUMINANCE GL_UNSIGNED_BYTE..

Converting data from glReadPixels() to OpenCV::Mat

http://stackoverflow.com/questions/9097756/converting-data-from-glreadpixels-to-opencvmat

instead of GL_RGB A . For one component images use either GL_LUMINANCE which sums the individual color components or GL_RED GL_GREEN..