<?xml version="1.0" encoding="utf-8"?>+ −
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->+ −
<!-- This component and the accompanying materials are made available under the terms of the License + −
"Eclipse Public License v1.0" which accompanies this distribution, + −
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->+ −
<!-- Initial Contributors:+ −
Nokia Corporation - initial contribution.+ −
Contributors: + −
-->+ −
<!DOCTYPE concept+ −
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">+ −
<concept id="GUID-359E1198-B9F5-5EFD-B80B-C087E5A5DD1D" xml:lang="en"><title>Color+ −
Conversion</title><shortdesc>This topic describes the color conversion between RGB and YUV.+ −
The details depend on which YUV color space is used.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>+ −
<p>For analogue signals (standard definition), the <b>ITU BT-601</b> formula+ −
is used. </p>+ −
<codeblock id="GUID-898BEBCA-ADC9-518A-B4AD-0C8DBF2AE87D" xml:space="preserve">R' = Y' + 1.403V'+ −
G' = Y' - 0.344U' - 0.714V'+ −
B' = Y' + 1.770U'</codeblock>+ −
<p>For high-definition signals, the <b> ITU BT-709</b> formula is used. </p>+ −
<codeblock id="GUID-24AA061D-9587-5D41-9246-5DBA5708BE75" xml:space="preserve">R' = Y' + 1.5701V'+ −
G' = Y' - 0.1870U' - 0.4664V'+ −
B' = Y' - 1.8556U'</codeblock>+ −
<p>Where, </p>+ −
<ul>+ −
<li id="GUID-5B70C4D2-8E2C-53D8-9B7F-E19FEAC5CA5A">Y' is Y scaled to be in+ −
the range [0, 1]. </li>+ −
<li id="GUID-6F311DD9-F8DB-5672-8447-DF6FA756B8F5">U' and V' are the corresponding+ −
samples scaled to the range [-0.5, 0.5]. </li>+ −
<li id="GUID-3F2ED876-7B73-567F-A3C6-40A90AD40053">R', G' and B' then have+ −
to be clamped to the range [0, 1] and scaled up as appropriate. </li>+ −
</ul>+ −
</conbody><related-links>+ −
<link href="GUID-47701648-CEC1-564C-A6BF-CC42E78E701F.dita"><linktext>YUV Pixel+ −
Formats Overview</linktext></link>+ −
</related-links></concept>+ −