基于AVStream架构的电视采集驱动设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
Windows MCE操作系统媒体中心的发布,为数字家庭的应用提供了平台。同时,它的应用还离不开软硬件的支持,设备驱动程序作为连接应用程序、硬件设备和操作系统的桥梁,把它们紧密联系在一起。多媒体数据流的处理是媒体中心应用的关键,微软为操作系统处理音视频数据流提供了内核流的支持,但传统的端口类驱动和流类驱动在内核流模型下只能分别对音频或者视频流进行处理,且对上层的DirectShow软件接口支持并不理想,属性设置较为繁琐。新一代的AVStream音视频流类驱动继承了WDM驱动架构的诸多优点,不仅为音视频提供了统一的内核流支持,驱动程序还可以通过COM组件为用户层软件增添设备的属性控制而无需修改任何驱动代码,与此同时,它还提供了对未来数字广播电视设备的支持。因此,新一代的AVStream音视频流类驱动具有很大的发展潜力。
     本论文以AVStream驱动程序的设计和开发为线索,首先介绍了流式驱动程序开发的技术背景,包括WDM驱动模型,Windows操作系统的内核流原理以及AVStream音视频流类驱动对象的层次关系和数据结构;然后,简要介绍了电视采集卡使用的音视频解码芯片和MPEG-Ⅱ编码芯片。本论文完成了对PCI接口的电视采集卡AVStream微驱动程序的设计和实现,其中包括Firmware与驱动程序之间的通信机制及加载流程,微驱动和硬件设备的初始化,驱动程序的DMA控制,中断服务程序,以及AVStream驱动的设备、过滤器和Pin对象的创建与描述,并说明了各内核过滤器的属性控制函数的设计。最后,本论文编写了电视采集卡驱动程序的INF文件;并对本设计的驱动程序进行了全面的测试。除在GraphEdit可视化环境中创建视频捕捉图表,验证驱动程序各过滤器的功能和属性设置能力外,还使用HCT工具对驱动程序的兼容性进行了测试。
     测试结果表明,设计较为满意的实现了电视采集卡驱动程序的各功能,能够通过用户层应用程序访问驱动程序中暴露出的属性控制;对Windows操作系统和其他硬件设备有比较好的兼容性,仅在VBI信号的处理和控制方面还需要进一步完善。目前,设计的驱动程序已被某些公司采用并到好评。
The release of Windows MCE operation system offers a platform for the develop ment of digital home. Meanwhile, its application needs the support of software and also hardware. Device driver program, as a bridge, connects the application software, hardware devices and operation system. The key point of the utilization of media center is the processing of multimedia data stream. Microsoft provides kernel streaming for the audio and video data stream in the operation system. While, the traditional port class driver and the stream class driver only process the audio and video stream respectively in the kernel streaming model, and it is not good at supporting the DirectShow software interface since the properties setting is very complicated. The new generation of AVStream class driver model has inherited much advantage from the WDM architecture; it not only provides unified kernel streaming for the audio and video stream, but also adds the device property control through COM component for use-mode application software without changing any driver binaries. Meanwhile, it supports the future digital broadcast TV device. Therefore, it is not doubt to say that the new generation of AVStream driver is a very promising technology.
     This thesis, based on the research and design of AVStream driver, firstly introduces the background of the development of stream based driver, including WDM, Windows operation system kernel streaming principles and the hierarchical relationship with data structures among AVStream driver model. Then, the broadcasting audio and video decoding chip and MPEG-Ⅱencoding chip for TV capture card are illustrated. The design and realization for AVStream minidriver program deployed in PCI interface TV capture card is completed, which includes the communication methods and loading steps between firmware and driver program, the initialization of minidriver and hardware devices, DMA control of driver and the interrupt service programs, the creation and description of AVStream devices, filters and Pin objects. The explanation of all property control functions for each filter is also contained in the thesis. Afterwards, demonstrates the programming of INF files for TV capture card driver and the installation procedure of the driver. Finally, a comprehensive test for designed driver program is applied. The video capture graphs generated in GraphEdit verify the functions of each filter and driver's designed property settings. The driver program's compatibility is also proved by HCT tool in this thesis.
     As test results showing, the functions of designed driver program are accomplished, the user-mode applications can easily access the controlling properties which are exposed by the driver; the compatibility with Windows operation system and other hardware devices are satisfied, only the performances of VBI signal processing and control are not good enough and need to be improved in the future works. Currently, designed driver is adopted by some company with a great impression.
引文
[1]杨光.视频采集设备ABC.中国微机世界,2002年10月,总十九期:111-112
    [2]宗靖国,向健勇,王新怀.基于SAA7130HL的视频采集卡设计.电子科技,2005年10月,总一百九十三期:52
    [3]Microsoft Corporation. WDM Video Capture Overview. Microsoft Corporation, 1998
    [4]江明,王群生.WDM/DirectShow视频捕捉架构解析.电视技术,2002年10月,第十期:6-9
    [5]Geraint Davies Consulting Ltd.. Building WDM Streaming Drivers. Geraint Davies Consulting Ltd., 2000
    [6]Microsoft Corporation. Windows 2003 DDK Help. Microsoft Corporation, 2002
    [7]Microsoft Corporation. MSDN. Microsoft Corporation, 2003
    [8]肖龙安,胡剑凌.基于Minidriver的MPEG-4视频流实时播放.电视技术,2005年10月,总二百八十期:70
    [9]Walter Oney. Programming the Microsoft Windows Driver Model. Microsoft Press, 2003
    [10]Microsoft Corporation. Windows 98 DDK Help. Microsoft Corporation, 1999
    [11]A. Baker. The Windows NT Device Driver Book: A Guide for Programmers. Prentice Hall, 1997
    [12]李红川,欧阳益民,栾志超,张启衡.视频采集卡驱动程序设计.光电工程,2003年3月,第三期:66
    [13]周振喜,陈晓峰.Windows 2000/XP下WDM设备驱动程序的开发.计算机与现代化,2004年2月,总一百零二期:104-107
    [14]Art Baker, Jerry Lozano. The Windows 2000 Device Driver Book: A Guide for Programmers (2nd Edition). Prentice Hall, 2001
    [15]尤晋元,史美林等.Windows操作系统原理.机械工业出版,2001年
    [16]孙守阁,徐勇.Windows驱动程序技术内幕.清华大学出版社,2000年
    [17]Cant Chris. Writing Windows WDM Device Drivers. Miller Freeman Inc., 1999
    [18]周敬利,周杰,余胜生.基于Windows内核流的视频采集卡驱动程序的设计与实现.计算机工程与科学,2005年10月,第十期:37-39
    [19]苏金国.WDM驱动程序设计.中国计算机,2000年6月,总八十二期
    [20]Conexant Systems Inc. PCI TV Tuner Reference Design. Conexant Systems Inc., 2003
    [21]Conexant Systems Inc. Single-Chip Broadcast Audio/Video Decoder. Conexant Systems Inc., 2003
    [22]Conexant Systems Inc. CX2584x Video Decoder and Broadcast Audio Decoder Datasheet. Conexant Systems Inc., 2005
    [23] Conexant Systems Inc. MPEG-II Encoder. Conexant Systems Inc., 2003
    [24] Conexant Systems Inc. CX23416 Datasheet. Conexant Systems Inc., 2003
    [25] Microsoft Corporation. DirectX 9.0 SDK Help. Microsoft Corporation, 2002
    
    [26] Microsoft Corporation. Windows Server 2003 Platform SDK Help. Microsoft Corporation, 2003
    
    [27] Microsoft Corporation. Hardware Compatibility Test 12.1 Kit Help. Microsoft Corporation, 2005

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700