Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _VIDEO_SET_ID: | |
4 | ||
586027ce | 5 | ============ |
47d23e36 MCC |
6 | VIDEO_SET_ID |
7 | ============ | |
8 | ||
586027ce MCC |
9 | NAME |
10 | ---- | |
47d23e36 | 11 | |
586027ce | 12 | VIDEO_SET_ID |
47d23e36 | 13 | |
586027ce | 14 | SYNOPSIS |
47d23e36 MCC |
15 | -------- |
16 | ||
17 | .. c:function:: int ioctl(int fd, int request = VIDEO_SET_ID, int id) | |
18 | ||
47d23e36 | 19 | |
586027ce MCC |
20 | ARGUMENTS |
21 | --------- | |
47d23e36 MCC |
22 | |
23 | .. flat-table:: | |
24 | :header-rows: 0 | |
25 | :stub-columns: 0 | |
26 | ||
27 | ||
28 | - .. row 1 | |
29 | ||
30 | - int fd | |
31 | ||
32 | - File descriptor returned by a previous call to open(). | |
33 | ||
34 | - .. row 2 | |
35 | ||
36 | - int request | |
37 | ||
38 | - Equals VIDEO_SET_ID for this command. | |
39 | ||
40 | - .. row 3 | |
41 | ||
42 | - int id | |
43 | ||
44 | - video sub-stream id | |
45 | ||
46 | ||
586027ce MCC |
47 | DESCRIPTION |
48 | ----------- | |
49 | ||
50 | This ioctl selects which sub-stream is to be decoded if a program or | |
51 | system stream is sent to the video device. | |
52 | ||
53 | ||
54 | RETURN VALUE | |
47d23e36 MCC |
55 | ------------ |
56 | ||
57 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
58 | appropriately. The generic error codes are described at the | |
59 | :ref:`Generic Error Codes <gen-errors>` chapter. | |
60 | ||
61 | ||
62 | ||
63 | .. flat-table:: | |
64 | :header-rows: 0 | |
65 | :stub-columns: 0 | |
66 | ||
67 | ||
68 | - .. row 1 | |
69 | ||
70 | - ``EINVAL`` | |
71 | ||
72 | - Invalid sub-stream id. |