USB Device Class Definition for Video Devices - FAQ
Total Page:16
File Type:pdf, Size:1020Kb
Universal Serial Bus Device Class Definition for Video Devices: Frequently Asked Questions (FAQ) Revision 1.1 June 1, 2005 USB Device Class Definition for Video Devices - FAQ Contributors Abdul R. Ismail Intel Corp. Akihiro Tanabe Canon Inc. Allison Hicks Texas Instruments Anand Ganesh Microsoft Corp. Andy Hodgson STMicroelectronics Anshuman Saxena Texas Instruments Bertrand Lee Microsoft Corp. Charng Lee Sunplus Technology Co., Ltd David Goll Microsoft Corp. Eric Luttmann Cypress Semiconductor Corp. Fernando Urbina Apple Computer Inc. Geert Knapen Philips Electronics Geraud Mudry Logitech Inc. Hiro Kobayashi Microsoft Corp. Jean-Michel Chardon Logitech Inc. Jeff Zhu Microsoft Corp. Ken-ichiro Ayaki Fujifilm Mitsuo Niida Canon Inc. Nobuo Kuchiki Sanyo Electric Co., Ltd Olivier Lechenne Logitech Inc. Paul Thacker STMicroelectronics Remy Zimmermann Logitech Inc. Shinichi Hatae Canon Inc. Steve Miller STMicroelectronics Tachio Ono Canon Inc. Takashi Sato Philips Semiconductor Yoichi Hirata Matsushita Electric Industrial Co., Ltd Revision 1.1 June 1, 2005 ii USB Device Class Definition for Video Devices - FAQ Copyright © 2001, 2002, 2003, 2004, 2005 USB Implementers Forum All rights reserved. INTELLECTUAL PROPERTY DISCLAIMER THIS DOCUMENT IS PROVIDED “AS IS” WITH NO WARRANTIES WHATSOEVER INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE. A LICENSE IS HEREBY GRANTED TO REPRODUCE AND DISTRIBUTE THIS DOCUMENT FOR INTERNAL USE ONLY. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY OTHER INTELLECTUAL PROPERTY RIGHTS IS GRANTED OR INTENDED HEREBY. AUTHORS OF THIS DOCUMENT DISCLAIM ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF PROPRIETARY RIGHTS, RELATING TO IMPLEMENTATION OF INFORMATION IN THIS DOCUMENT. AUTHORS OF THIS DOCUMENT ALSO DO NOT WARRANT OR REPRESENT THAT SUCH IMPLEMENTATION(S) WILL NOT INFRINGE SUCH RIGHTS. All product names are trademarks, registered trademarks, or service marks of their respective owners. Revision 1.1 June 1, 2005 iii USB Device Class Definition for Video Devices - FAQ Revision History Revision Date Description 1.0 Initial released version 1.0a Added: 2.21 Interlaced Video 1.0b Added: 2.22 Maximum Values of the PTS and STC fields within the Payload Header 2.23 Protocol STALL behavior 2.24 Current and Future Payload Header Format and Extensibility 1.0c June 5, 2004 Added: 2.25 Motion JPEG Characteristics 1.1 June 1st, 2005 Added MPEG2 APT information. Added Terminal association information (RR0052). Added Forward and Backward Compatibility Guidelines (RR0055). Added support for Stream Based Payload (MPEG4- SL, VC1, H264) relying on MPEG2 systems specification (RR0061). Added 1.30 Host Behavior of the Still Image Capture Method 2. (RR0068). Applied RR0064. Change VDC to UVC in Terms and Abbreviation. Update section 2.1 with updated document set. Revision 1.1 June 1, 2005 iv USB Device Class Definition for Video Devices - FAQ Table of Contents 1 Introduction ............................................................................................................................. 1 1.1 Purpose............................................................................................................................. 1 1.2 Scope ................................................................................................................................ 1 1.3 Related Documents .......................................................................................................... 1 1.4 Terms and Abbreviations ................................................................................................. 1 2 Frequently Asked Questions (FAQ)........................................................................................ 1 2.1 Set of USB Video Class Documents................................................................................ 1 2.2 Host USB Bandwidth Management Support ................................................................... 4 2.2.1 Microsoft Windows.................................................................................................. 4 2.2.2 Apple Mac OS X ...................................................................................................... 4 2.3 Device Alternate Interface Set ......................................................................................... 5 2.4 USB Video Class and HID Interfaces.............................................................................. 6 2.5 USB Video Class Scope................................................................................................... 7 2.6 Bulk versus Isochronous Transfers .................................................................................. 8 2.6.1 Characteristics of bulk and isochronous transfers.................................................... 8 2.6.2 Bulk pipe transfers.................................................................................................... 9 2.6.3 DATA PID Ordering of Bulk Transfers................................................................. 10 2.7 Audio and Video Stream Synchronization..................................................................... 10 2.8 Support for Streaming Encrypted Video Content over the USB ................................... 12 2.9 Layout of a GUID Data Structure .................................................................................. 13 2.10 Host Processing of Incoming and Outgoing Data ...................................................... 13 2.10.1 Diagram Terminology ............................................................................................ 13 2.10.2 Incoming Data State Diagram for Frame-based Video Formats............................ 15 2.10.3 Incoming Data State Diagram for Stream-based Video Formats........................... 16 2.10.4 Outgoing Data State Diagram for Frame-based and Stream-based Video Formats17 2.11 Relationship between Frame Interval and Frame Rate............................................... 18 2.12 Clock Recovery Mechanism....................................................................................... 18 2.13 MaxPayloadTransferSize selection ............................................................................ 22 2.14 Payload Format Forward Compatibility..................................................................... 22 2.15 Device/Host Processing Partitioning.......................................................................... 22 2.16 Power Mode Control .................................................................................................. 23 2.17 Probe and Commit operations .................................................................................... 24 2.18 Input and Output Terminals association..................................................................... 27 2.19 Multiple Color Matching Descriptors......................................................................... 27 2.20 Request Error Code Control ....................................................................................... 28 2.21 Isochronous pipes and data availability...................................................................... 28 2.22 Interlaced Video ......................................................................................................... 28 2.23 Maximum Values of the PTS and STC fields within the Payload Header................. 29 2.24 Protocol STALL behavior .......................................................................................... 30 2.24.1 SET_XXX request with Setup Stage error............................................................. 31 2.24.2 SET_XXX request with Data Stage error .............................................................. 32 2.24.3 GET_XXX request with Setup Stage error ............................................................ 33 2.25 Current and Future Payload Header Format and Extensibility................................... 33 2.26 Motion JPEG Characteristics...................................................................................... 34 Revision 1.1 June 1, 2005 v USB Device Class Definition for Video Devices - FAQ 2.27 MPEG2-TS APT ........................................................................................................ 34 2.28 Host and Device interoperability................................................................................ 35 2.29 Stream based payload support .................................................................................... 37 2.29.1 MPEG-4 SL............................................................................................................ 37 2.29.2 VC1 ........................................................................................................................ 37 2.29.3 H.264 ...................................................................................................................... 37 2.30 Host Behavior for Still Image Capture Method 2....................................................... 37 Revision 1.1 June 1, 2005 vi USB Device Class Definition for Video Devices - FAQ List of Tables Table 2-1 Set of USB Video Class Documents 1 Table 2-2 Device Alternate Interface Set 5 Table 2-3 Layout of a GUID Data Structure 13 Table 2-4 Host-Side Clock Recovery Algorithm 20 Table 2-5 Video Device Power Source 24 Table 2-6 Matrix of Color Standards and Scenarios 27 Table 2-7 Interoperability guidelines 35 Revision