video-get-size.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _VIDEO_GET_SIZE:
  3. ==============
  4. VIDEO_GET_SIZE
  5. ==============
  6. Name
  7. ----
  8. VIDEO_GET_SIZE
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, VIDEO_GET_SIZE, video_size_t *size)
  13. :name: VIDEO_GET_SIZE
  14. Arguments
  15. ---------
  16. .. flat-table::
  17. :header-rows: 0
  18. :stub-columns: 0
  19. - .. row 1
  20. - int fd
  21. - File descriptor returned by a previous call to open().
  22. - .. row 2
  23. - int request
  24. - Equals VIDEO_GET_SIZE for this command.
  25. - .. row 3
  26. - video_size_t \*size
  27. - Returns the size and aspect ratio.
  28. Description
  29. -----------
  30. This ioctl returns the size and aspect ratio.
  31. .. c:type:: video_size_t
  32. .. code-block::c
  33. typedef struct {
  34. int w;
  35. int h;
  36. video_format_t aspect_ratio;
  37. } video_size_t;
  38. Return Value
  39. ------------
  40. On success 0 is returned, on error -1 and the ``errno`` variable is set
  41. appropriately. The generic error codes are described at the
  42. :ref:`Generic Error Codes <gen-errors>` chapter.