<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le jeu. 29 nov. 2018 15 h 14, Stirling Westrup <<a href="mailto:swestrup@gmail.com">swestrup@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm in the middle of implementing a new type of GstMemory and would<br>
like some clarification on the intended meaning of the<br>
GST_MEMORY_IS_PHYSICALLY_CONTIGUOUS flag. The help text essentially<br>
just repeats what the flag already says, and ignores the fact that any<br>
piece of allocated memory represented by a single address is<br>
NECESSARILY physically contiguous. So the flag appears to be<br>
inherently useless (and indeed, it appears completely unused in the<br>
gstreamer sources).<br>
<br>
My only guess at a likely meaning is that it marks the memory as being<br>
part of a larger contiguous piece of allocated memory, but without<br>
additional associated information, this would appear to be of no use,<br>
especially considering that GstMemory already has a mechanism to<br>
handle this very thing, using the size and offset fields.<br>
<br>
So, what is the flag intended to indicate?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It was meant to announce if memory is contiguous in physical memory. Information known with NXP Freescale vendoe stack, but not generally available for Linux CMA allocation. In general, you should not need it.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
-- <br>
Stirling Westrup<br>
Programmer, Entrepreneur.<br>
<a href="https://www.linkedin.com/e/fpf/77228" rel="noreferrer noreferrer" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br>
<a href="http://www.linkedin.com/in/swestrup" rel="noreferrer noreferrer" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" rel="noreferrer noreferrer" target="_blank">http://technaut.livejournal.com</a><br>
<a href="http://sourceforge.net/users/stirlingwestrup" rel="noreferrer noreferrer" target="_blank">http://sourceforge.net/users/stirlingwestrup</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>