<div dir="ltr">Hi,<div><br></div><div>I am new to gstreamer. I am writing a plugin by referring gstreamer plugin writers guide.</div><div><br></div><div>My gst-launch command line looks like  gst-launch-1.0 filesrc location=mandrill.pgm ! image/pgm,width=512,height=512,framerate=1/1 ! mynewplugin ! filesink location=image_out.pgm</div><div><br></div><div>I am trying to process the data buffer inside _chain() function of my new plugin.</div><div><br></div><div>Problem:</div><div>GstMapInfo map;</div><div><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>        </div><div>       [.......]</div><div>}</div><div><br></div><div>The input image size is 512x512x8(bit depth)=2097152 bits. But, map.size is always = 4096 bytes. </div><div><br></div><div>My requirement:</div><div>1. I need the entire frame i.e., 2097152 bits at once and not in the form of series of chunks where each chunk size is 4096 bytes.</div><div>2. The filter which I'm using inside my new plugin needs the entire frame as its input and not chunks of the frame.</div><div><br></div><div>Questions:</div><div>1. How to get the entire image frame at once in "map.data"?</div><div>2. What am I missing here?</div><div><br></div><div>I really need someones help.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Kiran</div></div>