没有合适的资源?快使用搜索试试~ 我知道了~
首页Linux Media Subsystem Documentation
Linux Media Subsystem Documentation
5星 · 超过95%的资源 需积分: 10 9 下载量 103 浏览量
更新于2023-05-28
评论
收藏 4.82MB PDF 举报
2017年 最新的 V4L2 规范 ,做 linux 摄像头的一定要看...........................................................................................................
资源详情
资源评论
资源推荐
Linux Media Subsystem
Documentation
Release
The kernel development community
Nov 14, 2017
CONTENTS
1 Linux Media Infrastructure userspace API 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Part I - Video for Linux API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Part II - Digital TV API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
1.4 Part III - Remote Controller API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
1.5 Part IV - Media Controller API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
1.6 Part V - Consumer Electronics Control API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
1.7 Generic Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
1.8 GNU Free Documentation License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
2 Media subsystem kernel internal API 633
2.1 Video4Linux devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
2.2 Digital TV (DVB) devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
2.3 Remote Controller devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
2.4 Media Controller devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
2.5 CEC Kernel Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 843
2.6 MIPI CSI-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850
3 Linux Digital TV driver-specific documentation 851
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851
3.2 HOWTO: Get An Avermedia DVB-T working under Linux . . . . . . . . . . . . . . . . . . . . . . . 851
3.3 How to get the bt8xx cards working . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855
3.4 Hardware supported by the linuxtv.org DVB drivers . . . . . . . . . . . . . . . . . . . . . . . . . 857
3.5 Digital TV Conditional Access Interface (CI API) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 860
3.6 Idea behind the dvb-usb-framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
3.7 FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868
3.8 Firmware files for lmedm04 cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 870
3.9 Opera firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871
3.10 How to set up the Technisat/B2C2 Flexcop devices . . . . . . . . . . . . . . . . . . . . . . . . . . 872
3.11 TechnoTrend/Hauppauge DEC USB Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873
3.12 UDEV rules for DVB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 874
3.13 Contributors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
4 Video4Linux (V4L) driver-specific documentation 877
4.1 Guidelines for Video4Linux pixel format 4CCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
4.2 Infrared remote control support in video4linux drivers . . . . . . . . . . . . . . . . . . . . . . . . 877
4.3 Using with lircd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
4.4 Using without lircd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
4.5 Tuner drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
4.6 Cards List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
4.7 The bttv driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
4.8 The cafe_ccic driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938
4.9 The cpia2 driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938
4.10 The cx18 driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 941
4.11 The cx2341x driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942
i
4.12 The cx88 driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002
4.13 The VPBE V4L2 driver design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004
4.14 The Samsung S5P/EXYNOS4 FIMC driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005
4.15 i.MX Video Capture Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
4.16 The ivtv driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1015
4.17 Maxim Integrated MAX2175 RF to bits tuner driver . . . . . . . . . . . . . . . . . . . . . . . . . . 1018
4.18 Vaio Picturebook Motion Eye Camera Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1019
4.19 OMAP 3 Image Signal Processor (ISP) driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1021
4.20 OMAP4 ISS Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1025
4.21 Philips webcams (pwc driver) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1026
4.22 The pvrusb2 driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1029
4.23 PXA-Camera Host Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031
4.24 Qualcomm Camera Subsystem driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1034
4.25 The Radiotrack radio driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1036
4.26 Renesas R-Car Fine Display Processor (FDP1) Driver . . . . . . . . . . . . . . . . . . . . . . . . . 1040
4.27 The saa7134 driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1040
4.28 Cropping and Scaling algorithm, used in the sh_mobile_ceu_camera driver . . . . . . . . . . . 1042
4.29 The Silicon Labs Si470x FM Radio Receivers driver . . . . . . . . . . . . . . . . . . . . . . . . . . 1044
4.30 The Silicon Labs Si4713 FM Radio Transmitter Driver . . . . . . . . . . . . . . . . . . . . . . . . 1046
4.31 The SI476x Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049
4.32 The Soc-Camera Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1051
4.33 The Linux USB Video Class (UVC) driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1053
4.34 The Virtual Video Test Driver (vivid) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056
4.35 The Zoran driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074
4.36 Zoran 364xx based USB webcam module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1083
5 CEC driver-specific documentation 1085
5.1 Pulse-Eight CEC Adapter driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1085
6 Indices 1087
Index 1089
ii
CHAPTER
ONE
LINUX MEDIA INFRASTRUCTURE USERSPACE API
Copyright © 2009-2016 : LinuxTV Developers
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License, Version 1.1 or any later version published by the Free Software Foundation. A
copy of the license is included in the chapter entitled “GNU Free Documentation License”.
1.1 Introduction
This document covers the Linux Kernel to Userspace API’s used by video and radio streaming devices,
including video cameras, analog and digital TV receiver cards, AM/FM receiver cards, Software Defined
Radio (SDR), streaming capture and output devices, codec devices and remote controllers.
A typical media device hardware is shown at Typical Media Device .
The media infrastructure API was designed to control such devices. It is divided into five parts.
1. The first part covers radio, video capture and output, cameras, analog TV devices and codecs.
2. The second part covers the API used for digital TV and Internet reception via one of the several
digital tv standards. While it is called as DVB API, in fact it covers several different video standards
including DVB-T/T2, DVB-S/S2, DVB-C, ATSC, ISDB-T, ISDB-S, DTMB, etc. The complete list of sup-
ported standards can be found at fe_delivery_system.
3. The third part covers the Remote Controller API.
4. The fourth part covers the Media Controller API.
5. The fifth part covers the CEC (Consumer Electronics Control) API.
It should also be noted that a media device may also have audio components, like mixers, PCM capture,
PCM playback, etc, which are controlled via ALSA API. For additional information and for the latest de-
velopment code, see: https://linuxtv.org. For discussing improvements, reporting troubles, sending new
drivers, etc, please mail to: Linux Media Mailing List (LMML).
1.2 Part I - Video for Linux API
This part describes the Video for Linux API version 2 (V4L2 API) specification.
Revision 4.5
1.2.1 Common API Elements
Programming a V4L2 device consists of these steps:
• Opening the device
1
剩余1101页未读,继续阅读
eydwyz
- 粉丝: 503
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1