Added cv2_cv_protected to keep frame contiguous.