public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: "ext Y, Kishore" <kishore.y@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Mande, Nikhil" <nikhil@ti.com>
Subject: RE: [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support
Date: Mon, 18 Jan 2010 14:24:29 +0200	[thread overview]
Message-ID: <1263817469.2352.7.camel@tubuntu.research.nokia.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E94026B2DBBB2@dbde02.ent.ti.com>

On Mon, 2010-01-18 at 12:26 +0100, ext Y, Kishore wrote:
> > -----Original Message-----
> > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com]
> > Sent: Friday, January 15, 2010 4:00 PM
> > To: Y, Kishore
> > Cc: linux-omap@vger.kernel.org
> > Subject: Re: [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support
> > 
> > Hi,
> > 
> > On Mon, 2009-12-21 at 16:06 +0100, ext Y, Kishore wrote:
> > > From 2f873819a4b9eb0bd658db1e59408d8f0aeb14b6 Mon Sep 17 00:00:00 2001
> > > From: Sudeep Basavaraj <sudeep.basavaraj@ti.com>
> > > Date: Mon, 14 Dec 2009 18:54:51 +0530
> > > Subject: [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support
> > >
> > > Enables dss to process color formats with pre-mulitplied alpha values.
> > > With this we can have alpha values defined for each pixel
> > > and hence can have different blending values for each pixel.
> > 
> > What does pre-multiplied alpha mean? The TRM didn't really open it up...
> > Don't we already have per pixel alpha when using ARGB/RGBA?
> 
> When we set pixel format to ARGB/RGBA dss alpha blender would multiply the value present in 'A' with 'RGB'.
> By setting this bit display hardware assumes that the R,G,B are already multiplied with the alpha value and there is no need to multiply again.
> 
> Ex:-
> 			A	R	G	B
> argb data		128	255	128	100
> pre-multiplied	128	128	64	50
> 
> So this bit, when set, would not multiply the pixel with alpha value.

Ok, after staring long enough to the TRM's alpha-picture, I got it =).

But having this bit always on on 3630 would mean that the software
designed for 3430 would not work properly on 3630, wouldn't it?

> > This patch seems to always set the bit on, never set it off. Is that the
> > purpose?
> 
> As per TRM, this bit is valid only for ARGB formats and experts suggested that we can safely assume pre-multiplied data always in real world

I asked a few experts here, and they weren't so sure, and neither am I.

I don't see any problems making this feature configurable, but there may
be problems if it's hardcoded. So, it should be configurable. I think
the default should be the same as on 3430, so that they will work
similarly.

 Tomi



  reply	other threads:[~2010-01-18 12:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 15:06 [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support Y, Kishore
2010-01-15 10:29 ` Tomi Valkeinen
2010-01-18 11:26   ` Y, Kishore
2010-01-18 12:24     ` Tomi Valkeinen [this message]
2010-01-19 13:17       ` Y, Kishore
2010-01-20  6:35         ` Vladimir Pantelic
  -- strict thread matches above, loose matches on Subject: below --
2010-10-27 10:16 [PATCH] OMAP3630: DSS2: Enable " Samreen
2010-11-02 14:56 ` Tomi Valkeinen
2010-11-03  7:57   ` Taneja, Archit
2010-11-03  9:21     ` Tomi Valkeinen
2010-11-03 11:57       ` Taneja, Archit
2010-11-04  5:25         ` Nilofer, Samreen
2010-11-04  9:25         ` Tomi Valkeinen

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=1263817469.2352.7.camel@tubuntu.research.nokia.com \
    --to=tomi.valkeinen@nokia.com \
    --cc=kishore.y@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=nikhil@ti.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