<div dir="ltr">Thanks for the quick reply. I always get 4096 bytes.<div><br></div><div><div style="font-size:12.8px">GstMapInfo map;</div><div style="font-size:12.8px"><div>static GstFlowReturn</div><div>gst_mynewplugin_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)</div><div>{</div><div>      [....]</div><div><br></div><div>        gst_buffer_map (buf, &map, GST_MAP_READ);</div><div>        g_print("buffer size=%d\n", map.size);</div></div><div style="font-size:12.8px">        </div><div style="font-size:12.8px">       [.......]</div><div style="font-size:12.8px">}</div></div><div><br></div><div><span style="font-size:12.8px">The input image size is 512x512x8(bit depth)=2097152 bits. But, map.size is always = 4096 bytes.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I'm getting in terms of chunks where each chunk size is 4096 bytes. I need the entire frame. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Are you setting the buffer size of the pad?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 2:22 AM, Lazar Todic <span dir="ltr"><<a href="mailto:lazzar.d.todic@gmail.com" target="_blank">lazzar.d.todic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Kumar!<br>
<br>
I'm getting size of 460800 bytes. The resolution of my input video is<br>
640x480. I suppose that color space format that I'm working with is YUV420<br>
or NV12, but it is yet to discover. :) Was I any of help?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Simple-video-filter-changing-pixel-values-tp4678030p4678057.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Simple-video-filter-changing-pixel-values-tp4678030p4678057.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div></div>