[Bug 722345] directfb: video sink crashes when used with ext_surface
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Jan 16 08:58:42 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=722345
GStreamer | gst-plugins-bad | 1.2.2
--- Comment #12 from Eric <etrousset at awox.com> 2014-01-16 16:58:35 UTC ---
(In reply to comment #11)
> (In reply to comment #10)
>
> > > With stride I mean how many bytes are used per row, which is usually not
> > > width*bpp but larger than that
> >
> > OK so its the same has pitch?
> >
> > So alloc_size would be height * stride?
>
> Yes, pitch is also used as name for that... however sometimes people express
> pitch in pixels, which is dangerous and often useless ;) Check what DirectFB
> does here... if it's in bytes then the allocation size will be height*stride
> for all RGB formats.
I think this should do :
alloc_size = meta->height * DFB_BYTES_PER_LINE(meta->pixel_format,
meta->width);
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list