¡@

Home 

2014/10/15 ¤U¤È 10:12:37

iphone Programming Glossary: pixelformat

OpenGL ES Render to Texture

http://stackoverflow.com/questions/1024603/opengl-es-render-to-texture

frame buffer and attach the renderbuffer. This you only need to do it once texture Texture2D alloc initWithData 0 pixelFormat kTexture2DPixelFormat_RGB888 pixelsWide 32 pixelsHigh 32 contentSize CGSizeMake width height create framebuffer glGenFramebuffersOES..

cocos2d 2.0-rc2: end the director and restart

http://stackoverflow.com/questions/11037134/cocos2d-2-0-rc2-end-the-director-and-restart

with a RGB565 color buffer and a depth buffer of 0 bits self.glView CCGLView viewWithFrame CGRectMake 0 0 480 320 pixelFormat kEAGLColorFormatRGB565 kEAGLColorFormatRGBA8 depthFormat 0 GL_DEPTH_COMPONENT24_OES preserveBackbuffer NO sharegroup.. . Here is my code so you can see void setupCocos2D CCGLView glView CCGLView viewWithFrame CGRectMake 0 0 320 480 pixelFormat kEAGLColorFormatRGB565 kEAGLColorFormatRGBA8 depthFormat 0 GL_DEPTH_COMPONENT24_OES preserveBackbuffer NO sharegroup..

IOSurfaces - Artefacts in video and unable to grab video surfaces

http://stackoverflow.com/questions/14135215/iosurfaces-artefacts-in-video-and-unable-to-grab-video-surfaces

m_width width m_height height CFMutableDictionaryRef dict int pitch width 4 size width height 4 int bPE 4 char pixelFormat 4 'A' 'R' 'G' 'B' dict CFDictionaryCreateMutable kCFAllocatorDefault 0 kCFTypeDictionaryKeyCallBacks kCFTypeDictionaryValueCallBacks.. height CFDictionarySetValue dict kIOSurfacePixelFormat CFNumberCreate kCFAllocatorDefault kCFNumberSInt32Type pixelFormat CFDictionarySetValue dict kIOSurfaceAllocSize CFNumberCreate kCFAllocatorDefault kCFNumberSInt32Type size IOSurfaceRef destSurf..

Convert UIImage to CMSampleBufferRef

http://stackoverflow.com/questions/16475737/convert-uiimage-to-cmsamplebufferref

inputSettingsDict NSMutableDictionary dictionary inputSettingsDict setObject NSNumber numberWithInt pixelFormat forKey NSString kCVPixelBufferPixelFormatTypeKey inputSettingsDict setObject NSNumber numberWithUnsignedInteger NSUInteger..

removing jagged edges of my ropes using antialiasing of OpenGLES

http://stackoverflow.com/questions/17500418/removing-jagged-edges-of-my-ropes-using-antialiasing-of-opengles

enable multi sampling and set the number of samples to 2 or 4. CCGLView glView CCGLView viewWithFrame window bounds pixelFormat kEAGLColorFormatRGBA8 use whichever is your default depthFormat GL_DEPTH_COMPONENT24_OES use whichever is your default preserveBackbuffer..

cocos2d: playing a video in the background of a menu

http://stackoverflow.com/questions/4454758/cocos2d-playing-a-video-in-the-background-of-a-menu

0.0f 0.0f 0.0f When creating your EAGLView in applicationDidFinishLaunching change the following things Change the pixelFormat from the old value to be this kEAGLColorFormatRGB565 kEAGLColorFormatRGBA8 Make sure to add the EAGLView as a sub view and..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

is 48 as you can see from the debugger gdb po pixelBuffer CVPixelBuffer 0x2934d0 width 852 height 640 bytesPerRow 3456 pixelFormat BGRA # 3456 852 4 48 OpenGL can compensate for this but OpenGL ES cannot more info here openGL SubTexturing So here is how..