<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/29/2015 08:05 AM, Hamdi Rakkez
wrote:<br>
</div>
<blockquote
cite="mid:CAFXmeVuozn86Lit4sVQw-N09iop8K4htPFZG==O8wuj7K=t-=Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)">Thank You a
lot.</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)"><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)">After I
sent the E-mail I have read the porting guide and I have
realised that the caps are not attached anymore to buffers.</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)"><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)">But when I
don't have PADS, how can I get the caps.</div>
</div>
</blockquote>
<br>
Where did you get the buffer from? The entity creating it surely
should know about its caps.<br>
<br>
Can you provide more context on your application and problem?<br>
<br>
<blockquote
cite="mid:CAFXmeVuozn86Lit4sVQw-N09iop8K4htPFZG==O8wuj7K=t-=Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)"><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)">Exemple : </div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)"><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large;color:rgb(7,55,99)">
<div class="gmail_default">void get_sampling_points
(GstBuffer* buf, auto_sample_points* points, tBY8Pattern
pattern)</div>
<div class="gmail_default">{</div>
<div class="gmail_default"> guint8 *data =
(guint8*)GST_BUFFER_MAP (buf);</div>
<div class="gmail_default"> GstCaps *caps = GST_BUFFER_CAPS
(buf);</div>
<div class="gmail_default"> GstStructure *structure =
gst_caps_get_structure (caps, 0);</div>
<div class="gmail_default"> gint width, height;</div>
<div class="gmail_default"> g_return_if_fail
(gst_structure_get_int (structure, "width", &width));</div>
<div class="gmail_default"> g_return_if_fail
(gst_structure_get_int (structure, "height", &height));</div>
<div class="gmail_default"> ..</div>
<div class="gmail_default"> ..</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Thanks</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, May 29, 2015 at 11:57 AM,
Thiago Santos <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:thiagoss@osg.samsung.com" target="_blank">thiagoss@osg.samsung.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 05/29/2015 07:33 AM, Hamdi Rakkez wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default">Hi all,</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">What is the replacement
of "GST_BUFFER_CAPS" which is a property of
Gstreamer-0.10 in Gstreamer-1.0.</div>
</div>
</blockquote>
<br>
</span> GstBuffer doesn't have a caps attribute anymore in
1.0. In the pipeline, the caps is now passed as an event
and the current caps being used in a pad can be obtained
with gst_pad_get_current_caps. It is assumed that the
buffers flowing from/to that pad are of the type indicated
by that caps.<br>
<br>
Additionally, there is no GstSample which encapsulates a
GstBuffer with a GstCaps that can be used when you need to
have a caps attached to a particular buffer but it is not
used for the usual flow of buffers in the pipeline.<br>
<br>
A porting guide can be found at
<a moz-do-not-send="true"
href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt"
target="_blank">http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt</a><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Thank you.</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Best,</div>
<div class="gmail_default">Hamdi</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gstreamer-devel mailing list
<a moz-do-not-send="true" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<br>
<pre cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</font></span></div>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</body>
</html>