public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Shuzhen Wang" <shuzhenw@codeaurora.org>
To: <linux-media@vger.kernel.org>
Subject: Zooming with V4L2
Date: Fri, 19 Nov 2010 15:22:23 -0800	[thread overview]
Message-ID: <001601cb8840$9ee567b0$dcb03710$@org> (raw)

Hello, 

I am working on a SOC V4L2 video driver, and need to implement zoom
functionality. 

>From application, there are 2 ways to do zooming. The 1st way is to use
cropping and scaling as described in section 1.11.1. The application calls
VIDIOC_S_CROP to achieve zoom. The 2nd way is to use V4L2_CID_ZOOM_ABSOLUTE
and V4L2_CID_ZOOM_RELATIVE as described by Laurent in
http://video4linux-list.1448896.n2.nabble.com/RFC-Zoom-controls-in-V4L2-td14
51987.html.

Our camera hardware supports digital zoom. However, it acts LIKE optical
zoom because it doesn't do upscaling, so no video quality is sacrificed. As
a driver writter, is it okay to support only V4L2_CID_ZOOM_ABSOLUTE and
V4L2_CID_ZOOM_RELATIVE? 

I guess it also depends on how zooming is done for most of the V4L2 user
application out there. 

Your comments are appreciated.
-Shuzhen



             reply	other threads:[~2010-11-19 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-19 23:22 Shuzhen Wang [this message]
     [not found] <000001cb883f$ec4e4220$c4eac660$@org>
2010-11-20 17:37 ` Zooming with V4L2 Laurent Pinchart
2010-11-20 23:50   ` Shuzhen Wang

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='001601cb8840$9ee567b0$dcb03710$@org' \
    --to=shuzhenw@codeaurora.org \
    --cc=linux-media@vger.kernel.org \
    /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