/**
* video_register_device - register video4linux devices
* @vdev: video device structure we want to register
* @type: type of device to register
* @nr: which device node number (0 == /dev/video0, 1 == /dev/video1, ...
* -1 == first free)
* @warn_if_nr_in_use: warn if the desired device node number
* was already in use and another number was chosen instead.
*
* The registration code assigns minor numbers and device node numbers
* based on the requested type and registers the new device node with
* the kernel.
* An error is returned if no free minor or device node number could be
* found, or if the registration of the device node failed.
*
* Zero is returned on success.
*
* Valid types are
*
* %VFL_TYPE_GRABBER - A frame grabber
*
* %VFL_TYPE_VTX - A teletext device
*
* %VFL_TYPE_VBI - Vertical blank data (undecoded)
*
* %VFL_TYPE_RADIO - A radio card
*/
capture 和 output 的 type 都是 VFL_TYPE_GRABBER.
capture device 的 register function , nr 是 -1 .
output device 的 register function, nr 是
ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上
2011年7月18日 星期一
capture , output 都是 /dev/video? 只是 index 不一樣。
capture 是 video0, output 是 video16.
在 v4l2-dev.c 的 video_register_device 有 /dev 下名字的分類:
標籤
- 3g (19)
- 工作的備worklog (93)
- 自言自語 (36)
- 草稿 (1)
- 亂亂寫 (8)
- 翻譯 (3)
- administration (76)
- alsa (7)
- android (299)
- apple (5)
- application (42)
- archlinux (1)
- audio (3)
- avr (6)
- backup_restore (2)
- bluetooth (5)
- bookmark (38)
- bootloader (21)
- browser (5)
- cellphone (28)
- command (8)
- Configuration (27)
- debug (7)
- django (1)
- driver (15)
- earphone (1)
- editor (1)
- EFL (1)
- ffmpeg (18)
- Filesystem (4)
- GCC (8)
- Gentoo (1)
- google (1)
- Graphic (3)
- hardware (40)
- hero (7)
- hibernation (9)
- iMX51 (38)
- Info (3)
- Install (30)
- java (4)
- Kernel (102)
- language (2)
- life (2)
- make (11)
- MantainLog (38)
- MCU_P (9)
- memo (8)
- microcontroller (3)
- MINGW (7)
- network (19)
- OpenCL (1)
- OS (11)
- package (3)
- pad (1)
- ProblemAndSolve (15)
- programming (8)
- Python (7)
- raspberry_pi (23)
- SDL (2)
- sensation (13)
- setup (3)
- software_package (36)
- SQL (1)
- suspend (2)
- ToDo (5)
- tool (3)
- ubuntu (1)
- VersionControl (45)
- Virtualization (15)
- VLC (5)
- wheezy (1)
- wifi (3)
- Windows (16)
- xiaomi (1)
- xperia (1)
網誌存檔
-
▼
2011
(244)
-
▼
7月
(16)
- linux device open, major/minor number
- repo level 的 diff , patch -- worklog
- platform_device, platform_driver
- capture , output 都是 /dev/video? 只是 index 不一樣。 capt...
- frameworks/base/core/java/android/view/SurfaceHold...
- Android Sample code : CameraPreview
- Application Name : 沒什麼用。package name : 最後 build 出來...
- Android suspend -- worklog - usb wakeup
- Android -- power button operation -- pluse 改 level
- Android : call back function for native code
- Android, code trace -- power button up/down
- Android : log - suspend/wakeup
- Android Power Button Dialog -- code trace
- Android Power Button Dialog -- code trace
- am - 從 command 啟動 Android apk
- Android.mk -- multiple cpp to exe file
-
▼
7月
(16)
沒有留言:
張貼留言