Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _VIDEO_SET_FORMAT: |
| 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 | VIDEO_SET_FORMAT |
| 7 | ================ |
| 8 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame^] | 9 | NAME |
| 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 | VIDEO_SET_FORMAT |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame^] | 14 | SYNOPSIS |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 15 | -------- |
| 16 | |
| 17 | .. c:function:: int ioctl(fd, int request = VIDEO_SET_FORMAT, video_format_t format) |
| 18 | |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 19 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame^] | 20 | ARGUMENTS |
| 21 | --------- |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 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_FORMAT for this command. |
| 39 | |
| 40 | - .. row 3 |
| 41 | |
| 42 | - video_format_t format |
| 43 | |
| 44 | - video format of TV as defined in section ??. |
| 45 | |
| 46 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame^] | 47 | DESCRIPTION |
| 48 | ----------- |
| 49 | |
| 50 | This ioctl sets the screen format (aspect ratio) of the connected output |
| 51 | device (TV) so that the output of the decoder can be adjusted |
| 52 | accordingly. |
| 53 | |
| 54 | |
| 55 | RETURN VALUE |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 56 | ------------ |
| 57 | |
| 58 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 59 | appropriately. The generic error codes are described at the |
| 60 | :ref:`Generic Error Codes <gen-errors>` chapter. |
| 61 | |
| 62 | |
| 63 | |
| 64 | .. flat-table:: |
| 65 | :header-rows: 0 |
| 66 | :stub-columns: 0 |
| 67 | |
| 68 | |
| 69 | - .. row 1 |
| 70 | |
| 71 | - ``EINVAL`` |
| 72 | |
| 73 | - format is not a valid video format. |