¡@

Home 

2014/10/15 ¤U¤È 10:09:49

iphone Programming Glossary: gl_rgba

OpenGL ES 2d rendering into image

http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image

rawImagePixels GLubyte malloc totalBytesForImage glReadPixels 0 0 int currentFBOSize.width int currentFBOSize.height GL_RGBA GL_UNSIGNED_BYTE rawImagePixels Do something with the image free rawImagePixels The second and much faster way of doing.. kCFAllocatorDefault rawDataTextureCache renderTarget NULL texture attributes GL_TEXTURE_2D GL_RGBA opengl format int imageSize.width int imageSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture..

fastest way to draw a screen buffer on the iphone

http://stackoverflow.com/questions/2395650/fastest-way-to-draw-a-screen-buffer-on-the-iphone

a 512x512 texture because it needs to be a power of two just the call of glTexSubImage2D GL_TEXTURE_2D 0 0 0 512 512 GL_RGBA GL_UNSIGNED_BYTE baseWindowGUI GetBuffer seemed pretty much responsible for ALL the slow down. commenting it out and leaving..

Can example “GLImageProcessing” work with multi filters

http://stackoverflow.com/questions/4375479/can-example-glimageprocessing-work-with-multi-filters

GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width height 0 GL_RGBA GL_UNSIGNED_BYTE NULL glGenFramebuffersOES 1 ResultFBO glBindFramebufferOES GL_FRAMEBUFFER_OES ResultFBO.. glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width height 0 GL_RGBA GL_UNSIGNED_BYTE NULL glGenFramebuffersOES 1 ResultFBO glBindFramebufferOES GL_FRAMEBUFFER_OES ResultFBO glFramebufferTexture2DOES..

GLImageProcessing Multiple Filters?

http://stackoverflow.com/questions/6425861/glimageprocessing-multiple-filters

GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA wide high 0 GL_RGBA GL_UNSIGNED_BYTE NULL glGenFramebuffersOES 1 ResultFBO glBindFramebufferOES GL_FRAMEBUFFER_OES ResultFBO.. glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA wide high 0 GL_RGBA GL_UNSIGNED_BYTE NULL glGenFramebuffersOES 1 ResultFBO glBindFramebufferOES GL_FRAMEBUFFER_OES ResultFBO glFramebufferTexture2DOES.. GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA wide high 0 GL_RGBA GL_UNSIGNED_BYTE NULL glBindTexture GL_TEXTURE_2D stageTexture 1 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame glBindBuffer GL_ARRAY_BUFFER.. the buffer is being set correctly but with a format that this line doesn't understand glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame My hunch was that changing the.. pixelBuffer if captureSession sessionPreset isEqualToString @ AVCaptureSessionPresetPhoto glTexImage2D GL_TEXTURE_2D 0 GL_RGBA frameWidth frameHeight 0 GL_BGRA GL_UNSIGNED_BYTE NULL for int h 0 h frameHeight h GLubyte row pixelBufferAddr h frameWidth..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

kCFAllocatorDefault coreVideoTextureCache renderTarget NULL texture attributes GL_TEXTURE_2D GL_RGBA opengl format int videoSize.width int videoSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture..

Capturing EAGLview content WITH alpha channel on iPhone

http://stackoverflow.com/questions/962390/capturing-eaglview-content-with-alpha-channel-on-iphone

code with you I found somewhere else CGImageRef glToUIImage unsigned char buffer 320 480 4 glReadPixels 0 0 320 480 GL_RGBA GL_UNSIGNED_BYTE buffer CGDataProviderRef ref CGDataProviderCreateWithData NULL buffer 320 480 4 NULL CGImageRef iref CGImageCreate..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

GL_LINEAR Specify a 2D texture image providing the a pointer to the image data in memory glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width height 0 GL_RGBA GL_UNSIGNED_BYTE brushData Release the image data it's no longer needed free brushData Set the.. texture image providing the a pointer to the image data in memory glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width height 0 GL_RGBA GL_UNSIGNED_BYTE brushData Release the image data it's no longer needed free brushData Set the view's scale factor self.contentScaleFactor.. pixelBufferData GLubyte CVPixelBufferGetBaseAddress pixel_buffer glReadPixels 0 0 videoSize.width videoSize.height GL_RGBA GL_UNSIGNED_BYTE pixelBufferData May need to add a check here because if two consecutive times with the same value are added..