⇤ ← Revision 1 as of 2008-11-23 03:22:41
Size: 155
Comment:
|
Size: 1096
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
The MPEG Transport Stream (Function 2) exposes an interface for transferring MPEG-2 packets generated by an encoder or digital frontend to host memory. | The MPEG Transport Stream (Function 2) exposes an interface for transferring MPEG-2 packets generated by an encoder or digital frontend to host memory. The ioctl(2) interface is defined in /usr/local/include/cx88/cx88_mpeg_ioctl.h. Typically, an application will first issue the CX88_MPEG_CONFIG ioctl to provide the DMA buffer configuration to the driver. The application can choose to either provide a buffer of its own, or to mmap(2) a buffer allocated by the kernel driver. For the latter case, the allocated buffers will be persisted until the buffer configuration is changed by another CX88_MPEG_CONFIG ioctl, either by the same application instance or a different one. Applications may choose to omit the CX88_MPEG_CONFIG ioctl if they can be sure the driver is already configured. If the driver is not already configured, attempts to initiate capture on the device will return an error. Captures are controlled via the CX88_MPEG_CAPTURE and CX88_MPEG_STOP ioctls, while the CX88_MPEG_WAIT ioctl can be used to wait for data to become available after a capture has been started. |
The MPEG Transport Stream (Function 2) exposes an interface for transferring MPEG-2 packets generated by an encoder or digital frontend to host memory. The ioctl(2) interface is defined in /usr/local/include/cx88/cx88_mpeg_ioctl.h. Typically, an application will first issue the CX88_MPEG_CONFIG ioctl to provide the DMA buffer configuration to the driver. The application can choose to either provide a buffer of its own, or to mmap(2) a buffer allocated by the kernel driver. For the latter case, the allocated buffers will be persisted until the buffer configuration is changed by another CX88_MPEG_CONFIG ioctl, either by the same application instance or a different one.
Applications may choose to omit the CX88_MPEG_CONFIG ioctl if they can be sure the driver is already configured. If the driver is not already configured, attempts to initiate capture on the device will return an error. Captures are controlled via the CX88_MPEG_CAPTURE and CX88_MPEG_STOP ioctls, while the CX88_MPEG_WAIT ioctl can be used to wait for data to become available after a capture has been started.