Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.video
0003 
0004 .. _VIDEO_GET_PTS:
0005 
0006 =============
0007 VIDEO_GET_PTS
0008 =============
0009 
0010 Name
0011 ----
0012 
0013 VIDEO_GET_PTS
0014 
0015 .. attention:: This ioctl is deprecated.
0016 
0017 Synopsis
0018 --------
0019 
0020 .. c:macro:: VIDEO_GET_PTS
0021 
0022 ``int ioctl(int fd, VIDEO_GET_PTS, __u64 *pts)``
0023 
0024 Arguments
0025 ---------
0026 
0027 .. flat-table::
0028     :header-rows:  0
0029     :stub-columns: 0
0030 
0031     -  .. row 1
0032 
0033        -  int fd
0034 
0035        -  File descriptor returned by a previous call to open().
0036 
0037     -  .. row 2
0038 
0039        -  int request
0040 
0041        -  Equals VIDEO_GET_PTS for this command.
0042 
0043     -  .. row 3
0044 
0045        -  __u64 \*pts
0046 
0047        -  Returns the 33-bit timestamp as defined in ITU T-REC-H.222.0 /
0048           ISO/IEC 13818-1.
0049 
0050           The PTS should belong to the currently played frame if possible,
0051           but may also be a value close to it like the PTS of the last
0052           decoded frame or the last PTS extracted by the PES parser.
0053 
0054 Description
0055 -----------
0056 
0057 This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
0058 this ioctl has been replaced by the ``V4L2_CID_MPEG_VIDEO_DEC_PTS``
0059 control.
0060 
0061 This ioctl call asks the Video Device to return the current PTS
0062 timestamp.
0063 
0064 Return Value
0065 ------------
0066 
0067 On success 0 is returned, on error -1 and the ``errno`` variable is set
0068 appropriately. The generic error codes are described at the
0069 :ref:`Generic Error Codes <gen-errors>` chapter.