From: "istvan_v@mailbox.hu" <istvan_v@mailbox.hu>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] cx88: implement sharpness control
Date: Fri, 09 Apr 2010 20:53:48 +0200 [thread overview]
Message-ID: <4BBF77BC.3030309@mailbox.hu> (raw)
In-Reply-To: <4BBEAE08.5010908@redhat.com>
On 04/09/2010 06:33 AM, Mauro Carvalho Chehab wrote:
> You're not adjusting the sharpness. Instead, you're changing the vertical tap filter,
> and just for the even frames, plus the notch filter.
> Tricky, and you're probably affecting the sharpness, but on an indirect and non-linear
> way, as you're adjusting different measures.
No, I actually change the luma peak filter, which can add a peak of up
to about 6 dB centered at the chroma subcarrier frequency. So, it does
increase sharpness, and horizontally, not vertically. I did test the
patch before submitting it. Also, there is code in the patch that sets
the parameter for the odd field as well. So, in fact, this control
affects three registers: two for the peak filter, and a third one for
the notch filter.
> If this is really needed, it would be better to break it into two controls
> (one for the notch filter and another for the vertical tap filter).
Yes, that could possibly have been a good idea to have a separate
control for the notch filter. It was just easier to implement this way,
and I think there is no existing control that would be well suited for
the notch filter. Since both parameters do affect sharpness in some way,
I implemented it as a single control, rather than creating a separate
new one.
> Also, the "side effect" is not good: if you're using those bits, your code should assure
> that no other part of the driver will touch on the used bits, and that the device will
> be initialized with the default standard.
That is correct, and I did note that it would be addressed later if the
general idea of implementing the control is accepted. Fortunately, the
registers are changed elsewhere at only about two places.
By the way, did you have a look at the other two cx88 patches
(containing minor fixes only) I sent at the same time ?
prev parent reply other threads:[~2010-04-09 18:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-27 12:37 [PATCH] cx88: implement sharpness control istvan_v
2010-04-09 4:33 ` Mauro Carvalho Chehab
2010-04-09 18:53 ` istvan_v [this message]
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=4BBF77BC.3030309@mailbox.hu \
--to=istvan_v@mailbox.hu \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.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