<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div style="text-align: justify; ">Hi, </div>
<div style="text-align: justify; ">I am proposing a way to add the camera control to the camera source element to turn on/off some feature in my camera.</div>
<div style="text-align: justify; ">These features need to be exposed to user application for control in my camera. Currently, there is no such controls setting in the v4l2src.</div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; ">My propose is to add these control settings to photography interface and let the camera source element to implement the interface.</div>
<div style="text-align: justify; ">My current implementation is combining all these features to one guint type, and add &#8220;guint advanced_mode;&#8221; to the GstPhotoSettings.</div>
<div style="text-align: justify; ">I also defined one enum type to represent the features bit in advanced_mode.</div>
<div style="text-align: justify; ">191 typedef enum</div>
<div style="text-align: justify; ">192 {</div>
<div style="text-align: justify; ">193&nbsp;&nbsp; GST_PHOTOGRAPHY_GDC = (1 &lt;&lt; 0), /* Geometry distortion correction*/</div>
<div style="text-align: justify; ">194&nbsp;&nbsp; GST_PHOTOGRAPHY_REDEYE = (1 &lt;&lt; 1), /* Redeye reduction */</div>
<div style="text-align: justify; ">195&nbsp;&nbsp; GST_PHOTOGRAPHY_CAC = (1 &lt;&lt; 2),/* Chromatic Aberration Correction*/</div>
<div style="text-align: justify; ">196&nbsp;&nbsp; GST_PHOTOGRAPHY_SHARPEN = (1 &lt;&lt; 3),/* Edge enhancement */</div>
<div style="text-align: justify; ">197&nbsp;&nbsp; GST_PHOTOGRAPHY_DEMOSAIC = (1 &lt;&lt; 4), /* False Color Correction */</div>
<div style="text-align: justify; ">198&nbsp;&nbsp; GST_PHOTOGRAPHY_DPC = (1 &lt;&lt; 5), /*Defect Pixel Correction*/</div>
<div style="text-align: justify; ">199&nbsp;&nbsp; GST_PHOTOGRAPHY_SHADING = (1 &lt;&lt; 6), /*Shading Correction */</div>
<div style="text-align: justify; ">200&nbsp;&nbsp; GST_PHOTOGRAPHY_BLACK_LEVEL = (1 &lt;&lt; 7),/* Black level compensation */</div>
<div style="text-align: justify; ">201&nbsp;&nbsp; GST_PHOTOGRAPHY_IMAGE_STABLE = (1 &lt;&lt; 8),/* Digital Image Stabilization */</div>
<div style="text-align: justify; ">202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GST_PHOTOGRAPHY_VIDEO_STABLE = (1 &lt;&lt; 9)/* VIDEO Stabilization */</div>
<div style="text-align: justify; ">203 } GstAdvancedMode;</div>
<div style="text-align: justify; ">More features can be added to the GstAdvancedMode to represent other features of the camera.</div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; ">So the user can use the following sequence to turn on the red eye reduction feature in the camera.</div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; ">guint adv;</div>
<div style="text-align: justify; ">get_advanced_mode(photo, &amp;adv);</div>
<div style="text-align: justify; ">adv = adv | GST_PHOTOGRAPHY_REDEYE;</div>
<div style="text-align: justify; ">set_advanced_mode (photo, adv);</div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; ">Any better idea to add the control to the camera source? Your comments are welcome.</div>
<div style="text-align: justify; ">If this propose is feasible, I will submit my patch later.</div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; ">Best Regards!</div>
<div style="text-align: justify; "><font face="Jokerman, fantasy" color="#404040"><i>Hu Gang</i></font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">&nbsp;</font></div>
</font>
</body>
</html>