Adding BGRA as a video type.

This CL is a prerequisite for the capture module update CL. 
Review URL: http://webrtc-codereview.appspot.com/329021

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1317 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/src/common_types.h b/src/common_types.h
index cd3ad02..74b7db7 100644
--- a/src/common_types.h
+++ b/src/common_types.h
@@ -433,6 +433,7 @@
     kVideoMJPEG    = 10,
     kVideoNV12     = 11,
     kVideoNV21     = 12,
+    kVideoBGRA     = 13,
     kVideoUnknown  = 99
 };
 
diff --git a/src/common_video/libyuv/libyuv.cc b/src/common_video/libyuv/libyuv.cc
index 7f94b2d..af80968 100644
--- a/src/common_video/libyuv/libyuv.cc
+++ b/src/common_video/libyuv/libyuv.cc
@@ -47,6 +47,8 @@
       return kNV21;
     case kVideoNV12:
       return kNV12;
+    case kVideoBGRA:
+      return kBGRA;
     default:
       assert(false);
   }
@@ -73,6 +75,7 @@
     case kRGB24:
       bits_per_pixel = 24;
       break;
+    case kBGRA:
     case kARGB:
       bits_per_pixel = 32;
       break;
@@ -105,6 +108,7 @@
     case kRGB24:
       src_bits_per_pixel = 24;
       break;
+    case kBGRA:
     case kARGB:
       src_bits_per_pixel = 32;
       break;
@@ -130,6 +134,7 @@
     case kRGB24:
       dst_bits_per_pixel = 24;
       break;
+    case kBGRA:
     case kARGB:
       dst_bits_per_pixel = 32;
       break;