1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.video
15 .. attention:: This ioctl is deprecated.
20 .. c:macro:: VIDEO_GET_SIZE
22 ``int ioctl(int fd, VIDEO_GET_SIZE, video_size_t *size)``
35 - File descriptor returned by a previous call to open().
41 - Equals VIDEO_GET_SIZE for this command.
47 - Returns the size and aspect ratio.
52 This ioctl returns the size and aspect ratio.
54 .. c:type:: video_size_t
61 video_format_t aspect_ratio;
67 On success 0 is returned, on error -1 and the ``errno`` variable is set
68 appropriately. The generic error codes are described at the
69 :ref:`Generic Error Codes <gen-errors>` chapter.