From MAILER-DAEMON Mon Jan 18 09:28:13 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aLAmz-0007FM-RC
	for mharc-bug-classpath@gnu.org; Mon, 18 Jan 2016 09:28:13 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36713)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aLAmy-0007F5-33
	for bug-classpath@gnu.org; Mon, 18 Jan 2016 09:28:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aLAmt-0006hs-7s
	for bug-classpath@gnu.org; Mon, 18 Jan 2016 09:28:12 -0500
Received: from server1.sourceware.org ([209.132.180.131]:46841
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aLAmt-0006ho-0Z
	for bug-classpath@gnu.org; Mon, 18 Jan 2016 09:28:07 -0500
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=pirMq6cAoB4UhzqV45NJGAZ+W4v13
	UedsWLMQRjbLmlQrnPnRzKE+3ee8zUhAf2Gg0n+NkC+MdSZrGf4a7JSQ5hCubvX1
	/wZzOVpt4fGqFbo0wqC+YJAekOD70wNAK8ThBYZ6Os8Eq80AHk8BH3ylz8HWOozH
	EtVuPjQz2kpRkI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=e7cWIcg2uuEHU5aIKwsf/e3OqWQ=; b=IEh
	R+gOM3dEONJ6j+EOfFdMldEr73vEaxpzwlpojShZNflnOYzvmVMhfz1sjsVoR4g/
	Iwij7hXJi8R0+sjto74/l8HFm+DqyVuFAQ2+O9V9X8RUGXAbnmWKeQ5BWpi1Ac68
	Sqmq1FSjdRfCHKJVsyz7hFDEnLcTSsvSYXEEaTpE=
Received: (qmail 100369 invoked by uid 48); 18 Jan 2016 14:28:06 -0000
From: "andreykuzmenko at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug awt/69346] New: LinearRGBConverter bug
Date: Mon, 18 Jan 2016 14:28:05 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: awt
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andreykuzmenko at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-69346-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: gcc-bugzilla@gcc.gnu.org
List-Id: Bug reports for the GNU Classpath project <bug-classpath.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-classpath>
List-Post: <mailto:bug-classpath@gnu.org>
List-Help: <mailto:bug-classpath-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Jan 2016 14:28:13 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D69346

            Bug ID: 69346
           Summary: LinearRGBConverter bug
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andreykuzmenko at gmail dot com
  Target Milestone: ---

Hi guys, I think there is a bug in LinearRGBConverter class. In this method:

public float[] toRGB(float[] in);

The following lines:

if (n <=3D 0.00304f)
  out[i] =3D in[0] * 12.92f;

Should be:

if (n <=3D 0.00304f)
  out[i] =3D n * 12.92f;

(What it does now is propagate Red to all channels at the very low intensit=
y,
which is not noticeable much, but nevertheless is a bug, I think.)

Cheers,
Andrey=


