Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _DMX_GET_PES_PIDS: |
| 4 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 5 | ================ |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 6 | DMX_GET_PES_PIDS |
| 7 | ================ |
| 8 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 9 | Name |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 10 | ---- |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 11 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 12 | DMX_GET_PES_PIDS |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 14 | |
| 15 | Synopsis |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 16 | -------- |
| 17 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame] | 18 | .. c:function:: int ioctl(fd, DMX_GET_PES_PIDS, __u16 pids[5]) |
| 19 | :name: DMX_GET_PES_PIDS |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 20 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 21 | Arguments |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 22 | --------- |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 23 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame] | 24 | ``fd`` |
| 25 | File descriptor returned by :c:func:`open() <dvb-dmx-open>`. |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 26 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame] | 27 | ``pids`` |
Mauro Carvalho Chehab | 76df39f | 2017-09-01 13:44:28 -0400 | [diff] [blame^] | 28 | Array used to store 5 Program IDs. |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 29 | |
| 30 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 31 | Description |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 32 | ----------- |
| 33 | |
Mauro Carvalho Chehab | 76df39f | 2017-09-01 13:44:28 -0400 | [diff] [blame^] | 34 | This ioctl allows to query a DVB device to return the first PID used |
| 35 | by audio, video, textext, subtitle and PCR programs on a given service. |
| 36 | They're stored as: |
| 37 | |
| 38 | ======================= ======== ======================================= |
| 39 | PID element position content |
| 40 | ======================= ======== ======================================= |
| 41 | pids[DMX_PES_AUDIO] 0 first audio PID |
| 42 | pids[DMX_PES_VIDEO] 1 first video PID |
| 43 | pids[DMX_PES_TELETEXT] 2 first teletext PID |
| 44 | pids[DMX_PES_SUBTITLE] 3 first subtitle PID |
| 45 | pids[DMX_PES_PCR] 4 first Program Clock Reference PID |
| 46 | ======================= ======== ======================================= |
| 47 | |
| 48 | |
| 49 | .. note:: |
| 50 | |
| 51 | A value equal to 0xffff means that the PID was not filled by the |
| 52 | Kernel. |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 53 | |
| 54 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 55 | Return Value |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 56 | ------------ |
| 57 | |
Mauro Carvalho Chehab | 9a721b9 | 2017-09-01 12:15:43 -0400 | [diff] [blame] | 58 | On success 0 is returned. |
| 59 | |
| 60 | On error -1 is returned, and the ``errno`` variable is set |
| 61 | appropriately. |
| 62 | |
| 63 | The generic error codes are described at the |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 64 | :ref:`Generic Error Codes <gen-errors>` chapter. |