Use YCbCr instead of YUV. Added some timing functions