Download PDF file - LinuxTV.org

Transcript
V4L2_PIX_FMT_UYVY (’UYVY’).............................................................................. 43
V4L2_PIX_FMT_Y41P (’Y41P’)................................................................................... 44
V4L2_PIX_FMT_YVU420 (’YV12’), V4L2_PIX_FMT_YUV420 (’YU12’).............. 45
V4L2_PIX_FMT_YVU410 (’YVU9’), V4L2_PIX_FMT_YUV410 (’YUV9’)............ 46
V4L2_PIX_FMT_YUV422P (’422P’)............................................................................ 47
V4L2_PIX_FMT_YUV411P (’411P’)............................................................................ 48
V4L2_PIX_FMT_NV12 (’NV12’), V4L2_PIX_FMT_NV21 (’NV21’) ....................... 49
2.6. Compressed Formats.......................................................................................................... 50
2.7. Reserved Format Identifiers ............................................................................................... 50
3. Input/Output ................................................................................................................................. 51
3.1. Read/Write ......................................................................................................................... 51
3.2. Streaming I/O (Memory Mapping) .................................................................................... 51
3.3. Streaming I/O (User Pointers)............................................................................................ 54
3.4. Asynchronous I/O .............................................................................................................. 55
3.5. Buffers................................................................................................................................ 55
3.5.1. Timecodes.............................................................................................................. 59
3.6. Field Order ......................................................................................................................... 60
4. Interfaces ....................................................................................................................................... 66
4.1. Video Capture Interface ..................................................................................................... 66
4.1.1. Querying Capabilities............................................................................................ 66
4.1.2. Supplemental Functions ........................................................................................ 66
4.1.3. Image Format Negotiation..................................................................................... 66
4.1.4. Reading Images ..................................................................................................... 67
4.2. Video Overlay Interface ..................................................................................................... 67
4.2.1. Querying Capabilities............................................................................................ 67
4.2.2. Supplemental Functions ........................................................................................ 67
4.2.3. Setup ...................................................................................................................... 67
4.2.4. Overlay Window.................................................................................................... 68
4.2.5. Enabling Overlay................................................................................................... 70
4.3. Video Output Interface....................................................................................................... 70
4.3.1. Querying Capabilities............................................................................................ 71
4.3.2. Supplemental Functions ........................................................................................ 71
4.3.3. Image Format Negotiation..................................................................................... 71
4.3.4. Writing Images ...................................................................................................... 71
4.4. Video Output Overlay Interface ......................................................................................... 72
4.4.1. Querying Capabilities............................................................................................ 72
4.4.2. Framebuffer ........................................................................................................... 72
4.4.3. Overlay Window and Scaling ................................................................................ 73
4.4.4. Enabling Overlay................................................................................................... 74
4.5. Codec Interface .................................................................................................................. 74
4.6. Effect Devices Interface ..................................................................................................... 74
4.7. Raw VBI Data Interface..................................................................................................... 74
4.7.1. Querying Capabilities............................................................................................ 75
4.7.2. Supplemental Functions ........................................................................................ 75
4.7.3. Raw VBI Format Negotiation................................................................................ 75
4.7.4. Reading and writing VBI images .......................................................................... 81
4.8. Sliced VBI Data Interface .................................................................................................. 81
4.8.1. Querying Capabilities............................................................................................ 81
4.8.2. Supplemental Functions ........................................................................................ 82
4.8.3. Sliced VBI Format Negotiation............................................................................. 82
4.8.4. Reading and writing sliced VBI data..................................................................... 83
v