[gstreamer-bugs] [Bug 596832] New: pagesize aligned buffers
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Sep 30 01:03:48 PDT 2009
https://bugzilla.gnome.org/show_bug.cgi?id=596832
GStreamer | gstreamer (core) | git
Summary: pagesize aligned buffers
Classification: Desktop
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: ensonic at sonicpulse.de
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
The alignment guaranteed by malloc is not always sufficient. E.g. vector
instructions or hardware subsystems want specifically aligned buffers. The
attached patch will use posix_memalign if available to allocate buffers.
Alignment is pagesize().
We could have a configure option to specify the alignment needs.
Elements would still need to check the alignment and do a memcopy if the
alignment is not good. E.g. we cannot guarantee alignments when doing
subbuffers.
--
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