All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Longerbeam <slongerbeam@gmail.com>
To: "Nicolas Dufresne" <nicolas@ndufresne.ca>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Krzysztof Hałasa" <khalasa@piap.pl>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Hans Verkuil" <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
	Steve Longerbeam <steve_longerbeam@mentor.com>
Subject: Re: [PATCH 3/6] media: videodev2.h: Add macro V4L2_FIELD_IS_SEQUENTIAL
Date: Fri, 25 May 2018 17:19:55 -0700	[thread overview]
Message-ID: <f5264a36-f137-d0ae-68b1-f597e3913ba7@gmail.com> (raw)
In-Reply-To: <a8fb7943417e74fc19f594ae880fea5f306c7be3.camel@ndufresne.ca>



On 05/25/2018 05:10 PM, Nicolas Dufresne wrote:
> (in text this time, sorry)
>
> Le vendredi 25 mai 2018 à 16:53 -0700, Steve Longerbeam a écrit :
>> Add a macro that returns true if the given field type is
>> 'sequential',
>> that is, the data is transmitted, or exists in memory, as all top
>> field
>> lines followed by all bottom field lines, or vice-versa.
>>
>> Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
>> ---
>>   include/uapi/linux/videodev2.h | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/include/uapi/linux/videodev2.h
>> b/include/uapi/linux/videodev2.h
>> index 600877b..408ee96 100644
>> --- a/include/uapi/linux/videodev2.h
>> +++ b/include/uapi/linux/videodev2.h
>> @@ -126,6 +126,10 @@ enum v4l2_field {
>>   	 (field) == V4L2_FIELD_INTERLACED_BT ||\
>>   	 (field) == V4L2_FIELD_SEQ_TB ||\
>>   	 (field) == V4L2_FIELD_SEQ_BT)
>> +#define V4L2_FIELD_IS_SEQUENTIAL(field) \
>> +	((field) == V4L2_FIELD_SEQ_TB ||\
>> +	 (field) == V4L2_FIELD_SEQ_BT ||\
>> +	 (field) == V4L2_FIELD_ALTERNATE)
> No, alternate has no place here, in alternate mode each buffers have
> only one field.

Then I misunderstand what is meant by "alternate". The name implies
to me that a source sends top or bottom field alternately, or top/bottom
fields exist in memory buffers alternately, but with no information about
which field came first. In other words, "alternate" is either seq-tb or 
seq-bt,
without any info about field order.

If it is just one field in a memory buffer, why isn't it called
V4L2_FIELD_TOP_OR_BOTTOM, e.g. we don't know which?

Steve

  reply	other threads:[~2018-05-26  0:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25 23:53 [PATCH 0/6] imx-media: Fixes for bt.656 interlaced capture Steve Longerbeam
2018-05-25 23:53 ` [PATCH 1/6] media: imx-csi: Fix interlaced bt.656 Steve Longerbeam
2018-05-25 23:53 ` [PATCH 2/6] gpu: ipu-csi: Check for field type alternate Steve Longerbeam
2018-05-25 23:53 ` [PATCH 3/6] media: videodev2.h: Add macro V4L2_FIELD_IS_SEQUENTIAL Steve Longerbeam
2018-05-26  0:10   ` Nicolas Dufresne
2018-05-26  0:19     ` Steve Longerbeam [this message]
2018-05-26  1:14       ` Nicolas Dufresne
2018-05-26  1:21         ` Nicolas Dufresne
2018-05-26 17:00           ` Steve Longerbeam
2018-05-25 23:53 ` [PATCH 4/6] media: imx-csi: Enable interlaced scan for field type alternate Steve Longerbeam
2018-05-28  7:00   ` Philipp Zabel
2018-05-28  7:59     ` Ian Arkver
2018-05-28 16:38       ` Steve Longerbeam
2018-05-30 17:48         ` Philipp Zabel
2018-05-25 23:53 ` [PATCH 5/6] media: imx-csi: Allow skipping odd chroma rows for YVU420 Steve Longerbeam
2018-05-25 23:53 ` [PATCH 6/6] media: staging/imx: interweave and odd-chroma-row skip are incompatible Steve Longerbeam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5264a36-f137-d0ae-68b1-f597e3913ba7@gmail.com \
    --to=slongerbeam@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hverkuil@xs4all.nl \
    --cc=khalasa@piap.pl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=nicolas@ndufresne.ca \
    --cc=p.zabel@pengutronix.de \
    --cc=steve_longerbeam@mentor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.