2020-08-26 07:03:09 +00:00
|
|
|
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
|
2020-09-24 14:56:00 +00:00
|
|
|
.. c:namespace:: DTV.video
|
2018-08-30 14:15:26 +00:00
|
|
|
|
2016-07-05 13:37:31 +00:00
|
|
|
.. _VIDEO_TRY_COMMAND:
|
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
=================
|
2016-07-05 13:37:31 +00:00
|
|
|
VIDEO_TRY_COMMAND
|
|
|
|
=================
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Name
|
2016-07-05 10:58:48 +00:00
|
|
|
----
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
VIDEO_TRY_COMMAND
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
.. attention:: This ioctl is deprecated.
|
2016-07-05 18:14:35 +00:00
|
|
|
|
|
|
|
Synopsis
|
2016-07-05 13:37:31 +00:00
|
|
|
--------
|
|
|
|
|
2020-09-24 14:56:00 +00:00
|
|
|
.. c:macro:: VIDEO_TRY_COMMAND
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2020-09-24 14:56:00 +00:00
|
|
|
``int ioctl(int fd, VIDEO_TRY_COMMAND, struct video_command *cmd)``
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Arguments
|
2016-07-05 10:58:48 +00:00
|
|
|
---------
|
2016-07-05 13:37:31 +00:00
|
|
|
|
|
|
|
.. flat-table::
|
|
|
|
:header-rows: 0
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- int fd
|
|
|
|
|
|
|
|
- File descriptor returned by a previous call to open().
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
|
|
|
- int request
|
|
|
|
|
|
|
|
- Equals VIDEO_TRY_COMMAND for this command.
|
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
|
|
|
- struct video_command \*cmd
|
|
|
|
|
|
|
|
- Try a decoder command.
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Description
|
2016-07-05 10:58:48 +00:00
|
|
|
-----------
|
|
|
|
|
|
|
|
This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
|
|
|
|
this ioctl has been replaced by the
|
|
|
|
:ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` ioctl.
|
|
|
|
|
|
|
|
This ioctl tries a decoder command. The ``video_command`` struct is a
|
|
|
|
subset of the ``v4l2_decoder_cmd`` struct, so refer to the
|
|
|
|
:ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` documentation
|
|
|
|
for more information.
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Return Value
|
2016-07-05 13:37:31 +00:00
|
|
|
------------
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|