<html><head></head><body>I would expect that SIMD code cares about the scan line alignment, or at least the plane alignment. Adjusting the buffer alignment is necessary but *not* sufficient for that purpose.<br><br><div class="gmail_quote">Le 12 novembre 2018 09:51:20 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Code relying on AVX-2 (like dav1d) cannot work without that. Even avcodec has a<br>requirement of 64 (likely to get at least 32 on all planes). So it's probably<br>time to upgrade.<hr> src/misc/picture.c | 6 +++---<br> 1 file changed, 3 insertions(+), 3 deletions(-)<br><br>diff --git a/src/misc/picture.c b/src/misc/picture.c<br>index b373ebd21f..388d4ab8d5 100644<br>--- a/src/misc/picture.c<br>+++ b/src/misc/picture.c<br>@@ -73,16 +73,16 @@ static void picture_Destroy(picture_t *pic)<br> <br> VLC_WEAK void *picture_Allocate(int *restrict fdp, size_t size)<br> {<br>- assert((size % 16) == 0);<br>+ assert((size % 32) == 0);<br> *fdp = -1;<br>- return aligned_alloc(16, size);<br>+ return aligned_alloc(32, size);<br> }<br> <br> VLC_WEAK void picture_Deallocate(int fd, void *base, size_t size)<br> {<br> assert(fd == -1);<br> aligned_free(base);<br>- assert((size % 16) == 0);<br>+ assert((size % 32) == 0);<br> }<br> <br> /*****************************************************************************</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>