History

media: buffer.rst: clean up timecode documentation

V4L2_BUF_FLAG_TIMECODE is not video capture specific, so drop that part. The 'Timecodes' section was a bit messy, so that's cleaned up.

Hans Verkuil committed 8 years ago

Commit 0e9109f1 parent 96bddd51 file · +5 −6Browse files

Unified · Split

Documentation/media/uapi/v4l/buffer.rst+5−6
@@ -230,8 +230,7 @@ struct v4l2_buffer · 229 unmodified lines
230 * - struct :c:type:`v4l2_timecode`230 * - struct :c:type:`v4l2_timecode`
231 - ``timecode``231 - ``timecode``
232 -232 -
233 - When ``type`` is ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` and the233 - When the ``V4L2_BUF_FLAG_TIMECODE`` flag is set in ``flags``, this
234 ``V4L2_BUF_FLAG_TIMECODE`` flag is set in ``flags``, this
235 structure contains a frame timecode. In234 structure contains a frame timecode. In
236 :c:type:`V4L2_FIELD_ALTERNATE <v4l2_field>` mode the top and235 :c:type:`V4L2_FIELD_ALTERNATE <v4l2_field>` mode the top and
237 bottom field contain the same timecode. Timecodes are intended to236 bottom field contain the same timecode. Timecodes are intended to
@@ -714,10 +713,10 @@ enum v4l2_memory · 476 unmodified lines
714Timecodes713Timecodes
715=========714=========
716 715
717The struct :c:type:`v4l2_timecode` structure is designed to hold a716The :c:type:`v4l2_buffer_timecode` structure is designed to hold a
718:ref:`smpte12m` or similar timecode. (struct717:ref:`smpte12m` or similar timecode.
719struct :c:type:`timeval` timestamps are stored in struct718(struct :c:type:`timeval` timestamps are stored in the struct
720:c:type:`v4l2_buffer` field ``timestamp``.)719:c:type:`v4l2_buffer` ``timestamp`` field.)
721 720
722 721
723.. c:type:: v4l2_timecode722.. c:type:: v4l2_timecode