title: Fast Converting RGBA to ARGB
body: <p>I am trying to convert a rgba buffer into argb, is there any way to improve the next algorithm, or any other faster way to perform such operation?
  Taking into account that the alpha value is not important once in the argb buffer, and should always end up as 0xFF.</p>
  
  <pre><code>int y, x, pixel;
  
  for (y = 0; y &lt; height; y++)
  {
      for (x = 0; x &lt; width; x++)
      {
       pixel = rgbaBuffer[y * width + x];
       argbBuffer[(height - y - 1) * width + x] = (pixel &amp; 0xff00ff00) | ((pixel &lt;&lt; 16) &amp; 0x00ff0000) | ((pixel &gt;&gt; 16) &amp; 0xff);
      }
  }
  </code></pre>