video-fwrite.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _video_fwrite:
  3. =================
  4. dvb video write()
  5. =================
  6. Name
  7. ----
  8. dvb video write()
  9. .. attention:: This ioctl is deprecated.
  10. Synopsis
  11. --------
  12. .. c:function:: size_t write(int fd, const void *buf, size_t count)
  13. Arguments
  14. ---------
  15. .. flat-table::
  16. :header-rows: 0
  17. :stub-columns: 0
  18. - .. row 1
  19. - int fd
  20. - File descriptor returned by a previous call to open().
  21. - .. row 2
  22. - void \*buf
  23. - Pointer to the buffer containing the PES data.
  24. - .. row 3
  25. - size_t count
  26. - Size of buf.
  27. Description
  28. -----------
  29. This system call can only be used if VIDEO_SOURCE_MEMORY is selected
  30. in the ioctl call VIDEO_SELECT_SOURCE. The data provided shall be in
  31. PES format, unless the capability allows other formats. If O_NONBLOCK
  32. is not specified the function will block until buffer space is
  33. available. The amount of data to be transferred is implied by count.
  34. Return Value
  35. ------------
  36. .. flat-table::
  37. :header-rows: 0
  38. :stub-columns: 0
  39. - .. row 1
  40. - ``EPERM``
  41. - Mode VIDEO_SOURCE_MEMORY not selected.
  42. - .. row 2
  43. - ``ENOMEM``
  44. - Attempted to write more data than the internal buffer can hold.
  45. - .. row 3
  46. - ``EBADF``
  47. - fd is not a valid open file descriptor.