video-set-display-format.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _VIDEO_SET_DISPLAY_FORMAT:
  3. ========================
  4. VIDEO_SET_DISPLAY_FORMAT
  5. ========================
  6. Name
  7. ----
  8. VIDEO_SET_DISPLAY_FORMAT
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(fd, VIDEO_SET_DISPLAY_FORMAT)
  13. :name: VIDEO_SET_DISPLAY_FORMAT
  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_SET_DISPLAY_FORMAT for this command.
  25. - .. row 3
  26. - video_display_format_t format
  27. - Selects the video format to be used.
  28. Description
  29. -----------
  30. This ioctl call asks the Video Device to select the video format to be
  31. applied by the MPEG chip on the video.
  32. Return Value
  33. ------------
  34. On success 0 is returned, on error -1 and the ``errno`` variable is set
  35. appropriately. The generic error codes are described at the
  36. :ref:`Generic Error Codes <gen-errors>` chapter.