split rawvideo encoder and decoder in their own files