Simple video filter, changing pixel values

Kiran Kumar kirank3240 at gmail.com
Wed Jun 15 10:09:40 UTC 2016


Thanks for the quick reply. I always get 4096 bytes.

GstMapInfo map;
static GstFlowReturn
gst_mynewplugin_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
{
      [....]

        gst_buffer_map (buf, &map, GST_MAP_READ);
        g_print("buffer size=%d\n", map.size);

       [.......]
}

The input image size is 512x512x8(bit depth)=2097152 bits. But, map.size is
always = 4096 bytes.

I'm getting in terms of chunks where each chunk size is 4096 bytes. I need
the entire frame.

Are you setting the buffer size of the pad?

Thanks

On Wed, Jun 15, 2016 at 2:22 AM, Lazar Todic <lazzar.d.todic at gmail.com>
wrote:

> Hi, Kumar!
>
> I'm getting size of 460800 bytes. The resolution of my input video is
> 640x480. I suppose that color space format that I'm working with is YUV420
> or NV12, but it is yet to discover. :) Was I any of help?
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Simple-video-filter-changing-pixel-values-tp4678030p4678057.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160615/e8501d09/attachment-0001.html>


More information about the gstreamer-devel mailing list