1*4882a593Smuzhiyun.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2*4882a593Smuzhiyun.. c:namespace:: DTV.video 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun.. _VIDEO_GET_PTS: 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun============= 7*4882a593SmuzhiyunVIDEO_GET_PTS 8*4882a593Smuzhiyun============= 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunName 11*4882a593Smuzhiyun---- 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunVIDEO_GET_PTS 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun.. attention:: This ioctl is deprecated. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunSynopsis 18*4882a593Smuzhiyun-------- 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun.. c:macro:: VIDEO_GET_PTS 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun``int ioctl(int fd, VIDEO_GET_PTS, __u64 *pts)`` 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunArguments 25*4882a593Smuzhiyun--------- 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun.. flat-table:: 28*4882a593Smuzhiyun :header-rows: 0 29*4882a593Smuzhiyun :stub-columns: 0 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun - .. row 1 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun - int fd 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun - File descriptor returned by a previous call to open(). 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun - .. row 2 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun - int request 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun - Equals VIDEO_GET_PTS for this command. 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun - .. row 3 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun - __u64 \*pts 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun - Returns the 33-bit timestamp as defined in ITU T-REC-H.222.0 / 48*4882a593Smuzhiyun ISO/IEC 13818-1. 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun The PTS should belong to the currently played frame if possible, 51*4882a593Smuzhiyun but may also be a value close to it like the PTS of the last 52*4882a593Smuzhiyun decoded frame or the last PTS extracted by the PES parser. 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunDescription 55*4882a593Smuzhiyun----------- 56*4882a593Smuzhiyun 57*4882a593SmuzhiyunThis ioctl is obsolete. Do not use in new drivers. For V4L2 decoders 58*4882a593Smuzhiyunthis ioctl has been replaced by the ``V4L2_CID_MPEG_VIDEO_DEC_PTS`` 59*4882a593Smuzhiyuncontrol. 60*4882a593Smuzhiyun 61*4882a593SmuzhiyunThis ioctl call asks the Video Device to return the current PTS 62*4882a593Smuzhiyuntimestamp. 63*4882a593Smuzhiyun 64*4882a593SmuzhiyunReturn Value 65*4882a593Smuzhiyun------------ 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunOn success 0 is returned, on error -1 and the ``errno`` variable is set 68*4882a593Smuzhiyunappropriately. The generic error codes are described at the 69*4882a593Smuzhiyun:ref:`Generic Error Codes <gen-errors>` chapter. 70