<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I will submit one bug on bugzilla and upload patch for it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Song Bing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Thiago Santos<br>
<b>Sent:</b> Tuesday, January 06, 2015 7:28 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: camerabin: can application get and set camera native supported caps<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 01/06/2015 02:35 AM, Kevin Song wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi,<br>
<br>
As camera support several resolutions, application want get and set camera native supported resolution to get better performance. As wappercamerabinsrc add videoconvert and videoscale in the bin. The viewfinder-supported-caps caps got from camerabin will be
 below.<br>
<br>
Do need add get camera native caps in camerabin and wrappercamerabin? Do need add capsfilter to set native camera resolution?<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><br>
What do you get from the image-capture-supported-caps and for the video one? Do they have the natively supported formats first in the caps just like the viewfinder one below? Is it enough for your use case to have them in the order of preference (native first,
 converted last) or would you want to have only native?<br>
<br>
It should be possible to add a property to wrappercamerabinsrc to get the native supported caps. Patches welcome.<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
0:00:01.979042667  2630  0x165ad00 DEBUG        recorder-engine /nfsroot/songbing/yocto/build-x11/tmp/work/imx6allref-poky-linux-gnueabi/gst1<br>
.0-fsl-plugin/git-r0/git/tools/grecorder/recorder_engine.c:1279:get_camera_capabilities: viewfinder-supported-caps: video/x-raw, format=(stri<br>
ng){ I420, NV12, YUY2, UYVY }, width=(int)640, height=(int)480, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string){ I420, NV12,<br>
 YUY2, UYVY }, width=(int)320, height=(int)240, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, w<br>
idth=(int)720, height=(int)480, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)720, h<br>
eight=(int)576, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)1280, height=(int)720,<br>
 framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)1920, height=(int)1080, framerate=(fr<br>
action)15/1; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)2592, height=(int)1944, framerate=(fraction)15/1; video/x-raw<br>
, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)176, height=(int)144, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, format=(string<br>
){ I420, NV12, YUY2, UYVY }, width=(int)1024, height=(int)768, framerate=(fraction){ 30/1, 15/1 }; video/x-raw, width=(int)640, height=(int)4<br>
80, framerate=(fraction){ 30/1, 15/1 }, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, B<br>
GR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, width=(int)320, height=(int)240, framerate=(fraction){ 30/1, 15/1 }<br>
, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY<br>
16_LE, RGB16, RGB15 }; video/x-raw, width=(int)720, height=(int)480, framerate=(fraction){ 30/1, 15/1 }, format=(string){ I420, YV12, YUY2, U<br>
YVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, wi<br>
dth=(int)720, height=(int)576, framerate=(fraction){ 30/1, 15/1 }, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGB<br>
A, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, width=(int)1280, height=(int)720, framer<br>
ate=(fraction){ 30/1, 15/1 }, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU,
<br>
NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, format=(string){<br>
 I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB1<br>
5 }; video/x-raw, width=(int)2592, height=(int)1944, framerate=(fraction)15/1, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRG<br>
B, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, width=(int)176, height=(int)<br>
144, framerate=(fraction){ 30/1, 15/1 }, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB,
<br>
BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RGB15 }; video/x-raw, width=(int)1024, height=(int)768, framerate=(fraction){ 30/1, 15/1<br>
 }, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GR<br>
AY16_LE, RGB16, RGB15 }; video/x-raw, format=(string){ I420, NV12, YUY2, UYVY }, width=(int)[ 1, 32767 ], height=(int)[ 1, 32767 ], framerate<br>
=(fraction){ 30/1, 15/1 }; video/x-raw, width=(int)[ 1, 32767 ], height=(int)[ 1, 32767 ], framerate=(fraction){ 30/1, 15/1 }, format=(string<br>
){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, YVYU, NV12, GRAY8, GRAY16_BE, GRAY16_LE, RGB16, RG<br>
B15 }<br>
<br>
<br>
Regards,<br>
Song Bing.<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gstreamer-devel mailing list<o:p></o:p></pre>
<pre><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><o:p></o:p></pre>
<pre><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Thiago Sousa Santos<o:p></o:p></pre>
<pre>Senior Multimedia Engineer, Open Source Group<o:p></o:p></pre>
<pre>Samsung Research America - Silicon Valley<o:p></o:p></pre>
</div>
</body>
</html>