1 .. -*- coding: utf-8; mode: rst -*-
18 .. cpp:function:: int ioctl(int fd, int request = VIDEO_COMMAND, struct video_command *cmd)
33 - File descriptor returned by a previous call to open().
39 - Equals VIDEO_COMMAND for this command.
43 - struct video_command \*cmd
45 - Commands the decoder.
51 This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
52 this ioctl has been replaced by the
53 :ref:`VIDIOC_DECODER_CMD` ioctl.
55 This ioctl commands the decoder. The ``video_command`` struct is a
56 subset of the ``v4l2_decoder_cmd`` struct, so refer to the
57 :ref:`VIDIOC_DECODER_CMD` documentation for
64 On success 0 is returned, on error -1 and the ``errno`` variable is set
65 appropriately. The generic error codes are described at the
66 :ref:`Generic Error Codes <gen-errors>` chapter.