in process of turning v4l2 stuff into a library.