title: On iOS how to quickly convert RGB24 to BGR24?
body: <p>I use <code>vImageConvert_RGB888toPlanar8</code> and <code>vImageConvert_Planar8toRGB888</code> from Accelerate.framework to convert RGB24 to BGR24, but when the data need to transform is very big, such as 3M or 4M, the time need to spend on this is about 10ms. So some one know some fast enough idea?.My code like this:</p>
  
  <pre><code>- (void)transformRGBToBGR:(const UInt8 *)pict{
  rgb.data = (void *)pict;
  
  vImage_Error error = vImageConvert_RGB888toPlanar8(&amp;rgb,&amp;red,&amp;green,&amp;blue,kvImageNoFlags);
  if (error != kvImageNoError) {
      NSLog(@"vImageConvert_RGB888toARGB8888 error");
  }
  
  error = vImageConvert_Planar8toRGB888(&amp;blue,&amp;green,&amp;red,&amp;bgr,kvImageNoFlags);
  if (error != kvImageNoError) {
      NSLog(@"vImagePermuteChannels_ARGB8888 error");
  }
  
  free((void *)pict);
  }
  </code></pre>