video-get-frame-count.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _VIDEO_GET_FRAME_COUNT:
  3. =====================
  4. VIDEO_GET_FRAME_COUNT
  5. =====================
  6. Name
  7. ----
  8. VIDEO_GET_FRAME_COUNT
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, VIDEO_GET_FRAME_COUNT, __u64 *pts)
  13. :name: VIDEO_GET_FRAME_COUNT
  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_GET_FRAME_COUNT for this command.
  25. - .. row 3
  26. - __u64 \*pts
  27. - Returns the number of frames displayed since the decoder was
  28. started.
  29. Description
  30. -----------
  31. This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
  32. this ioctl has been replaced by the ``V4L2_CID_MPEG_VIDEO_DEC_FRAME``
  33. control.
  34. This ioctl call asks the Video Device to return the number of displayed
  35. frames since the decoder was started.
  36. Return Value
  37. ------------
  38. On success 0 is returned, on error -1 and the ``errno`` variable is set
  39. appropriately. The generic error codes are described at the
  40. :ref:`Generic Error Codes <gen-errors>` chapter.