Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1139312yba; Fri, 3 May 2019 17:11:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFmWFNrIO8QzxVcsisJHfu0NdjM/f1iyQ5V10qADxDb4L5r6UVMYefmoZYRiJ5frMqWWPI X-Received: by 2002:aa7:8dc7:: with SMTP id j7mr14881568pfr.82.1556928694394; Fri, 03 May 2019 17:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556928694; cv=none; d=google.com; s=arc-20160816; b=O5f54Qb0fyErDrsgAUgbGPXSKFdT5D+JF/2eCc/CvpGLBZsqQ8WDEVfLzbmVBE0yNr NjbhGXARkjOmaWIhXm1xHRN5swFJC4qn8GTjtUjfxLr+yazM0oiGD6i1Q3mcfxDOuK5i Zd/tnLYA6t7BnRaDdDRjrr5Mma0HCAgLC531InhzBk3nl32JpEF2liZV02hOyhMsvs9X Fw7mAq5HdHKhSg8f1LbeOo8qxOQpFo20OQfirGsfzFX0O0LSN75nBst+qypN70xaQkl0 0I0UkI5AFla8bPyRazq9o1gt2F/iR4P7V9JFaALSuPc5zEVXNpsx7b3LH28gyKInhI5C MAOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=YwU0rEAoU3W17Opegh7mF+iV9cwzVugNkEFNcWTlMS4=; b=aBxewISYenJeRAyhVdzcIJ3oG/W7AwOqqK47liFI6MHnGvEJAh0/g4gjzk2QqMuGfz 2S3OU7RibuDeHYV+0Um0umEz1kno6aBCu6VFXJkSoIReZ6IEZ1QXwzWnwNcYzDAoLgtF W9Cr+oiv/QvUmYVQW2TbBxrgQBWzLxJJbxr1ovuRA9lcEpXtsRJAOowocg54tUTeOnvE ktrHVvKql7u0HBBanPOD5AI7StuOiIUY9yRC5zYvPNlzUwNIqSAd0PUS/xSnltOUsAzq SUk0cgva3SFTmE5wUNkHXJjAkzYVAEbN9dKhwSRLfH5xlwu7fKJ5RTpisaf1D4dPrGAc +oQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N4ls73du; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h24si4311493pgg.226.2019.05.03.17.11.19; Fri, 03 May 2019 17:11:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N4ls73du; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfECXpU (ORCPT + 99 others); Fri, 3 May 2019 19:45:20 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44254 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbfECXpU (ORCPT ); Fri, 3 May 2019 19:45:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id z16so3439083pgv.11; Fri, 03 May 2019 16:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YwU0rEAoU3W17Opegh7mF+iV9cwzVugNkEFNcWTlMS4=; b=N4ls73dujYNHFvMXFxBqEq7JfnVVj/+Nwi1F7ujWUhejmumxykj3wuGRHLGFReW99q Z+wBbYIH3LGgGCTyGTzuz5CErGUB5Is4W1dPTGSsC5XD5Mm5istGcnCvCLHBO+LQag/J BrMCZhqgwpAQvi7br01ycABkrY/lU6ZG8QuZ3GSDtYQeVEXg8DjrdYzG6kKR+ehc0PFE 7I8r643XSCYVZOxqzYJ7lKHdghnk86ExnwP2CGFs6qQryj7HT60ir9/lHGABH3i3Jxte +jAxUHjnoh0SVLYLgXjHj3ILLXuip7qmogHqaX7ILhizUaKyWRTWw1VZ6KJfRxKU8Pfo Tozg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YwU0rEAoU3W17Opegh7mF+iV9cwzVugNkEFNcWTlMS4=; b=kYZBDV6oy80hfqlsDFvqxViftxoNI58RlVA1X6qKhpI6xEXO7PhZHV4v/f0qQN2RtJ AROJ0bhFdN0qMRCIC7qEriFkalAk/rAbaObKwB0UVn5bbluorJaepyQmCMNdaREWvy1a K+PyXZ/RJ73qhUIPpvQrrBlADf/JR808czj81uoMTdXauRMpPwaaQAtXe9GprMOngIWC i0Cw1tlhXt4x9/fck3FD+TSGiF/pGnsLb989yrrekgKmwhpUG5cHZu6yJKDJFYKZJFKQ KB7k4q7DNW77sN5aIJyUebYgyMcImCi6VQ9aD5MBtlBd7eX/VWD4IDmpB7bPCo6KjgNB w9Ow== X-Gm-Message-State: APjAAAUfPCvIP6La7LhkR1fSC6Bshh+AcseCeRNnLuv/wacoK4im96fv D1vT4YdVJvDCzxRNLMmEx6UH4fRa X-Received: by 2002:a63:5f42:: with SMTP id t63mr14176377pgb.275.1556927118425; Fri, 03 May 2019 16:45:18 -0700 (PDT) Received: from majic.sklembedded.com (c-73-202-231-77.hsd1.ca.comcast.net. [73.202.231.77]) by smtp.googlemail.com with ESMTPSA id z9sm3861582pga.92.2019.05.03.16.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 16:45:17 -0700 (PDT) From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Hans Verkuil , Steve Longerbeam , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] [media] docs-rst: Clarify older field vs. first transmitted field Date: Fri, 3 May 2019 16:45:07 -0700 Message-Id: <20190503234508.23183-1-slongerbeam@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a paragraph to make it more clear that video equipment will transmit fields in the same order the fields were captured, and replace some of the "is transmitted first" language with "is the older field", since the latter is the important info for motion compensation applications. Signed-off-by: Steve Longerbeam --- Documentation/media/uapi/v4l/field-order.rst | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Documentation/media/uapi/v4l/field-order.rst b/Documentation/media/uapi/v4l/field-order.rst index 3fb473e3b8e2..19d13ecde1d7 100644 --- a/Documentation/media/uapi/v4l/field-order.rst +++ b/Documentation/media/uapi/v4l/field-order.rst @@ -51,6 +51,11 @@ determined by the video standard. Hence the distinction between temporal and spatial order of fields. The diagrams below should make this clearer. +In V4L it is assumed that all video cameras transmit fields on the media +bus in the same order they were captured, so if the top field was +captured first (is the older field), the top field is also transmitted +first on the bus. + All video capture and output devices must report the current field order. Some drivers may permit the selection of a different order, to this end applications initialize the ``field`` field of struct @@ -103,10 +108,10 @@ enum v4l2_field * - ``V4L2_FIELD_INTERLACED`` - 4 - Images contain both fields, interleaved line by line. The temporal - order of the fields (whether the top or bottom field is first - transmitted) depends on the current video standard. M/NTSC - transmits the bottom field first, all other standards the top - field first. + order of the fields (whether the top or bottom field is older) + depends on the current video standard. In M/NTSC the bottom + field is the older field. In all other standards the top field + is the older field. * - ``V4L2_FIELD_SEQ_TB`` - 5 - Images contain both fields, the top field lines are stored first @@ -137,11 +142,11 @@ enum v4l2_field * - ``V4L2_FIELD_INTERLACED_TB`` - 8 - Images contain both fields, interleaved line by line, top field - first. The top field is transmitted first. + first. The top field is the older field. * - ``V4L2_FIELD_INTERLACED_BT`` - 9 - Images contain both fields, interleaved line by line, top field - first. The bottom field is transmitted first. + first. The bottom field is the older field. -- 2.17.1