Skip to content

Commit

Permalink
prefer YUYV format for lower CPU load
Browse files Browse the repository at this point in the history
  • Loading branch information
floe authored Jun 4, 2022
1 parent e5c1137 commit 22595fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V4L2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ V4L2::V4L2(const char* pipe, const char* dev, int cw, int ch):
cap.set(cv::CAP_PROP_FRAME_WIDTH,cw);
cap.set(cv::CAP_PROP_FRAME_HEIGHT,ch);
cap.set(cv::CAP_PROP_FPS,15); // FIXME: hardcoded FPS
cap.set(cv::CAP_PROP_FOURCC,cv::VideoWriter::fourcc('M','J','P','G'));
cap.set(cv::CAP_PROP_FOURCC,cv::VideoWriter::fourcc('Y','U','Y','V'));
}

void V4L2::retrieve_frames() {
Expand Down

0 comments on commit 22595fb

Please sign in to comment.