1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>StandardCoefficient</title>
8  </head>
9  <body>
10<h1><CODE>nn::y2r::CTR::StandardCoefficient</CODE> Enumerated Type</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14enum StandardCoefficient;
15</pre>
16    </div>
17<h2>Value</h2>
18    <div class="section">
19      <table class="arguments">
20        <thead>
21          <tr>
22<th>Value</th>
23<td>Description</td>
24          </tr>
25        </thead>
26        <tr>
27<th><CODE>COEFFICIENT_ITU_R_BT_601</CODE></th>
28<td>Conversion coefficients for <B>ITU-R BT.601</B>. The input values must be in the range <CODE>0&lt;=Y,U,V&lt;=255</CODE>.</td>
29        </tr>
30        <tr>
31<th><CODE>COEFFICIENT_ITU_R_BT_709</CODE></th>
32<td>Conversion coefficients for <B>ITU-R BT.709</B>. The input values must be in the range <CODE>0&lt;=Y,U,V&lt;=255</CODE>.</td>
33        </tr>
34        <tr>
35<th><CODE>COEFFICIENT_ITU_R_BT_601_SCALING</CODE></th>
36<td>Conversion coefficients for <B>ITU-R BT.601</B>. The input values must be in the ranges <CODE>16&lt;=Y&lt;=235</CODE> and <CODE>16&lt;=U,V&lt;=240</CODE>.</td>
37        </tr>
38        <tr>
39<th><CODE>COEFFICIENT_ITU_R_BT_709_SCALING</CODE></th>
40<td>Conversion coefficients for <B>ITU-R BT.709</B>. The input values must be in the ranges <CODE>16&lt;=Y&lt;=235</CODE> and <CODE>16&lt;=U,V&lt;=240</CODE>.</td>
41        </tr>
42        <tr>
43<th><CODE>COEFFICIENT_MAX</CODE></th>
44          <td>
45        </td>
46        </tr>
47      </table> </div>
48<h2>Description</h2>
49    <div class="section">
50<p>Enumerated type that indicates the standard conversion coefficient.</p><p>
51The conversion coefficients are as follows. Choose appropriate conversion coefficients based on the range of your input values.
52          </p><p><h3>
53<CODE>COEFFICIENT_ITU_R_BT_601</CODE>
54            </h3>
55Assumes that the luminance signal Y is defined by the equation <CODE>Y = 0.299R + 0.587G + 0.114B</CODE>, that the YUV values fall in the range <CODE>0≦Y,U,V≦255</CODE>, and that the U and V offsets are 128.
56<table><thead><tr><td /><th>Y</th><th>( U - 128 )</th><th>( V - 128 )</th></tr></thead><tr><th>R =</th><td>1.000</td><td>0.000</td><td>1.402</td></tr><tr><th>G =</th><td>1.000</td><td>-0.344</td><td>-0.714</td></tr><tr><th>B =</th><td>1.000</td><td>1.772</td><td>0.000</td></tr></table></p><p><h3>
57<CODE>COEFFICIENT_ITU_R_BT_709</CODE>
58            </h3>
59Assumes that the luminance signal Y is defined by the equation <CODE>Y = 0.2126R + 0.7152G + 0.0722B</CODE>, that the YUV values fall in the range <CODE>0≦Y,U,V≦255</CODE>, and that the U and V offsets are 128.
60<table><thead><tr><td /><th>Y</th><th>( U - 128 )</th><th>( V - 128 )</th></tr></thead><tr><th>R =</th><td>1.000</td><td>0.000</td><td>1.575</td></tr><tr><th>G =</th><td>1.000</td><td>-0.187</td><td>-0.468</td></tr><tr><th>B =</th><td>1.000</td><td>1.856</td><td>0.000</td></tr></table></p><p><h3>
61<CODE>COEFFICIENT_ITU_R_BT_601_SCALING</CODE>
62            </h3>
63Assumes that the luminance signal Y is defined by the equation <CODE>Y = 0.299R + 0.587G + 0.114B</CODE>, that the YUV values fall in the ranges <CODE>16≦Y≦235</CODE> and <CODE>16≦U,V≦240</CODE>, and that the U and V offsets are 128.
64<table><thead><tr><td /><th>( Y - 16 )</th><th>( U - 128 )</th><th>( V - 128 )</th></tr></thead><tr><th>R =</th><td>1.164</td><td>0.000</td><td>1.596</td></tr><tr><th>G =</th><td>1.164</td><td>-0.392</td><td>-0.813</td></tr><tr><th>B =</th><td>1.164</td><td>2.017</td><td>0.000</td></tr></table></p><p><h3>
65<CODE>COEFFICIENT_ITU_R_BT_709_SCALING</CODE>
66            </h3>
67Assumes that the luminance signal Y is defined by the equation <CODE>Y = 0.2126R + 0.7152G + 0.0722B</CODE>, that the YUV values fall in the ranges <CODE>16≦Y≦235</CODE> and <CODE>16≦U,V≦240</CODE>, and that the U and V offsets are 128.
68<table><thead><tr><td /><th>( Y - 16 )</th><th>( U - 128 )</th><th>( V - 128 )</th></tr></thead><tr><th>R =</th><td>1.164</td><td>0.000</td><td>1.793</td></tr><tr><th>G =</th><td>1.164</td><td>-0.213</td><td>-0.533</td></tr><tr><th>B =</th><td>1.164</td><td>2.112</td><td>0.000</td></tr></table></p></div>
69<h2>Revision History</h2>
70    <div class="section">
71      <dl class="history">
72        <dt>2010/07/11</dt>
73<dd>Listed the values of each conversion coefficient and the range of their input values.<br />
74        </dd>
75        <dt>2010/01/07</dt>
76<dd>Initial version.<br />
77        </dd>
78      </dl>
79    </div>
80  <hr><p>CONFIDENTIAL</p></body>
81</html>