diff --git a/selfdrive/camerad/cameras/camera_webcam.cc b/selfdrive/camerad/cameras/camera_webcam.cc index 1efda839339623..6f59881d0475ce 100644 --- a/selfdrive/camerad/cameras/camera_webcam.cc +++ b/selfdrive/camerad/cameras/camera_webcam.cc @@ -40,12 +40,14 @@ void camera_release_buffer(void *cookie, int buf_idx) { void open_gl_stream_def(CameraState * s, char* camera_id, int width, int height, char ** strm_def) { printf("OPENGLSTREAM"); - std::string strm_template="v4l2src device=/dev/v4l/by-id/%s ! video/x-raw,width=%d,height=%d,framerate=%d/1,format=YUY2 !" + std::string strm_template="v4l2src device=/dev/v4l/by-id/%s !" + " video/x-raw,width=%d,height=%d,framerate=%d/1,format=YUY2 !" " nvvidconv ! video/x-raw(memory:NVMM),format=I420 !" " nvvidconv ! video/x-raw,format=BGRx !" " videoconvert ! video/x-raw,format=BGR !" - " videoscale ! video/x-raw,width=%d,height=%d !" - " appsink "; + " videoflip method=rotate-180 !" + " videoscale ! video/x-raw,width=%d,height=%d !" + " appsink "; * strm_def = (char*)calloc(600,1); sprintf(*strm_def,strm_template.c_str(),camera_id, width, height, s->fps, s->ci.frame_width, s->ci.frame_height); printf(" GL Stream :[%s]\n",*strm_def);