00001 #include "FCam/Base.h" 00002 00003 namespace FCam { 00004 int bytesPerPixel(ImageFormat f) { 00005 switch(f) { 00006 case RGB24: case YUV24: 00007 return 3; 00008 case RGB16: case UYVY: case RAW: 00009 return 2; 00010 default: 00011 return 0; 00012 } 00013 } 00014 00015 }