From: Sakari Ailus <sakari.ailus@iki.fi>
To: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Cc: linux-media@vger.kernel.org, t.stanislaws@samsung.com
Subject: Re: [RFC] V4L: Rename V4L2_SEL_TGT_*_ACTIVE to V4L2_SEL_TGT_*_ACTUAL
Date: Sat, 05 May 2012 16:15:47 +0300 [thread overview]
Message-ID: <4FA52803.3040206@iki.fi> (raw)
In-Reply-To: <1336221247-6543-1-git-send-email-sylvester.nawrocki@gmail.com>
Hi Sylwester,
Sylwester Nawrocki wrote:
> After introduction of the selection API on subdevs we have following sets
> of selection targets:
>
> /dev/v4l-subdev? | /dev/video?
> -------------------------------------------------------------------------
> V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL | V4L2_SEL_TGT_CROP_ACTIVE
> V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS | V4L2_SEL_TGT_CROP_BOUNDS
> | V4L2_SEL_TGT_CROP_DEFAULT
> | V4L2_SEL_TGT_CROP_PADDED
> V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL | V4L2_SEL_TGT_COMPOSE_ACTIVE
> V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS | V4L2_SEL_TGT_COMPOSE_BOUNDS
> | V4L2_SEL_TGT_COMPOSE_DEFAULT
> | V4L2_SEL_TGT_COMPOSE_PADDED
>
> Although not exactly the same, the meaning of V4L2_SEL_TGT_*_ACTIVE
> and V4L2_SUBDEV_SEL_TGT_*_ACTUAL selection targets is logically the
> same. Different names add to confusion where both APIs are used in
> a single driver or an application.
> Then, rename the V4l2_SEL_TGT_[CROP/COMPOSE]_ACTIVE to
> V4l2_SEL_TGT_[CROP/COMPOSE]_ACTUAL to avoid the API inconsistencies.
> The selections API is experimental, so no any compatibility layer
> is added. The ABI remains unchanged.
I'm definitely for keeping the two sets of target as uniform as possible.
I have one question, though: how about dropping the ACTIVE / ACTUAL
altogether? Then we'd have V4L2_SUBDEV_SEL_TGT_CROP and
V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS etc. I feel that the ACTIVE or ACTUAL
doesn't really say anything there, and don't think it's an issue that a
target name is a part of another one.
What's your opinion?
Kind regards,
--
Sakari Ailus
sakari.ailus@iki.fi
next prev parent reply other threads:[~2012-05-05 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-05 12:34 [RFC] V4L: Rename V4L2_SEL_TGT_*_ACTIVE to V4L2_SEL_TGT_*_ACTUAL Sylwester Nawrocki
2012-05-05 13:15 ` Sakari Ailus [this message]
2012-05-05 14:02 ` Sylwester Nawrocki
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=4FA52803.3040206@iki.fi \
--to=sakari.ailus@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=sylvester.nawrocki@gmail.com \
--cc=t.stanislaws@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox