title: How do I create a CVPixelBuffer with 32RGBA format for iPhone?
body: <p>When trying to create a 32 bits RGBA CVPixelBuffer, I constantly get errors. </p>
  
  <p>Most notably error -6680 which means: "The buffer does not support the specified pixel format."</p>
  
  <p>This is the code fragment:   (Width and height are specified as 256*256)</p>
  
  <pre><code>NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
  //                         [NSNumber numberWithBool:YES], kCVPixelBufferCGBitmapContextCompatibilityKey,
  //                         [NSNumber numberWithBool:YES], kCVPixelBufferCGImageCompatibilityKey,
  //                         [NSNumber numberWithBool:YES], kCVPixelBufferOpenGLCompatibilityKey,
                           nil];
  CVPixelBufferRef pxbuffer = NULL;
  CVReturn status = CVPixelBufferCreate(kCFAllocatorDefault, WIDTH,
                                        HEIGHT, kCVPixelFormatType_32RGBA, (CFDictionaryRef) options, 
                                        &amp;pxbuffer);
  NSParameterAssert(status == kCVReturnSuccess &amp;&amp; pxbuffer != NULL);
  </code></pre>
  
  <p>Can anyone give a hint as to what I'm doing wrong?</p>