From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Prabhakar Lad <prabhakar.lad@ti.com>,
LMML <linux-media@vger.kernel.org>,
dlos <davinci-linux-open-source@linux.davincidsp.com>,
linux-kernel@vger.kernel.org,
Manjunath Hadli <manjunath.hadli@ti.com>,
linux-doc@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
Hans de Goede <hdegoede@redhat.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Rob Landley <rob@landley.net>
Subject: Re: [PATCH v4] media: v4l2-ctrls: add control for dpcm predictor
Date: Thu, 13 Sep 2012 02:59:22 +0200 [thread overview]
Message-ID: <1966621.qrSMP274pk@avalon> (raw)
In-Reply-To: <504A4114.5010106@iki.fi>
Hi Sakari,
On Friday 07 September 2012 21:46:44 Sakari Ailus wrote:
>
> Could you replace the above with this text (with appropriate indentation
> etc.) while keeping the reference to Wikipedia?
>
> ------8<------
> Differential pulse-code modulation (DPCM) compression can be used to
> compress the samples into fewer bits than they would otherwise require.
> This is done by calculating the difference between consecutive samples
> and outputting the difference which in average is much smaller than the
> values of the samples themselves since there is generally lots of
> correlation between adjacent pixels. In decompression the original
> samples are reconstructed. The process isn't lossless as the encoded
> sample size in bits is less than the original.
>
> Formats using DPCM compression include <xref
> linkend="pixfmt-srggb10dpcm8" />.
>
> This control is used to select the predictor used to encode the samples.
If I remember correctly this control will be used on the receiver side on
DaVinci, to decode pixels not encode them. How is the predictor used in that
case ? Must it match the predictor used on the encoding side ? If so I expect
documentation to be available somewhere.
The OMAP3 ISP supports both DPCM encoding and decoding, and documents the
predictors as
"- The simple predictor
This predictor uses only the previous same color component value as a
prediction value. Therefore, only two-pixel memory is required.
- The advanced predictor
This predictor uses four previous pixel values, when the prediction value is
evaluated. This means that also the other color component values are used,
when the prediction value has been defined."
It also states the the simple predictor is preferred for 10-8-10 conversion,
and the advanced predictor for 10-7-10 and 10-6-10 conversion.
> The main difference between the simple and the advanced predictors is
> image quality, with advanced predictor supposed to produce better
> quality images as a result. Simple predictor can be used e.g. for
> testing purposes.
> ------8<------
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-09-13 10:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 5:37 [PATCH v4] media: v4l2-ctrls: add control for dpcm predictor Prabhakar Lad
2012-09-04 19:12 ` Sakari Ailus
2012-09-05 5:10 ` Prabhakar Lad
2012-09-07 18:46 ` Sakari Ailus
2012-09-07 19:04 ` Prabhakar Lad
2012-09-13 0:59 ` Laurent Pinchart [this message]
2012-09-18 12:49 ` Prabhakar Lad
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=1966621.qrSMP274pk@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=hans.verkuil@cisco.com \
--cc=hdegoede@redhat.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=manjunath.hadli@ti.com \
--cc=mchehab@infradead.org \
--cc=prabhakar.lad@ti.com \
--cc=rob@landley.net \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
/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;
as well as URLs for NNTP newsgroup(s).