video-try-command.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _VIDEO_TRY_COMMAND:
  3. =================
  4. VIDEO_TRY_COMMAND
  5. =================
  6. Name
  7. ----
  8. VIDEO_TRY_COMMAND
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, VIDEO_TRY_COMMAND, struct video_command *cmd)
  13. :name: VIDEO_TRY_COMMAND
  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_TRY_COMMAND for this command.
  25. - .. row 3
  26. - struct video_command \*cmd
  27. - Try a decoder command.
  28. Description
  29. -----------
  30. This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
  31. this ioctl has been replaced by the
  32. :ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` ioctl.
  33. This ioctl tries a decoder command. The ``video_command`` struct is a
  34. subset of the ``v4l2_decoder_cmd`` struct, so refer to the
  35. :ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` documentation
  36. for more information.
  37. Return Value
  38. ------------
  39. On success 0 is returned, on error -1 and the ``errno`` variable is set
  40. appropriately. The generic error codes are described at the
  41. :ref:`Generic Error Codes <gen-errors>` chapter.