I saw a program today. Speaking of human IQ to become a good programmer, but the direction you do understand how deep, only understand to do deep, when you do not know the direction of what you will find, want to do deep really need to understand.
I think we all know, but the real hands-on practice of people, and focus on not many people, after reading I thought I was doing the project, so to express the feelings do this video4linux programming summary
Video4linux programming
Video4linux Introduction
Video4linux is a common programming interface for television capture cards and USB-port cameras that are now commonplace in the marketplace.
It also provides the decoding and vertical blanking data interface of radio communication and text TV broadcast.
This paper mainly aims at the USB camera device file/dev/video0, carries on the video image acquisition aspect based on the Video4linux USB camera Image Acquisition Realization
Programming.
2.2 Video4linux Programming Guide
1. The process of video programming
(1) Open the video device:
(2) Reading device information
(3) Change device current settings (can not do)
(4) video capture, two ways:
A. Memory mapping
B. Read directly from the device
(5) Processing of the collected video
(6) Turn off the video device.
The process is very simple, the operation is very simple, understand the basic functions of Linux operation, it is very simple, but you have personally tried it.
Tried, and time did not improve. Let's use the V4L2.