[SCM] libav/experimental: tell the c compiler that the memory changed
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:30:22 UTC 2013
The following commit has been merged in the experimental branch:
commit 2add307d0501dc2f13904ab182289617dad2b988
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sun Oct 28 19:54:23 2001 +0000
tell the c compiler that the memory changed
Originally committed as revision 2522 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
diff --git a/postproc/swscale.c b/postproc/swscale.c
index d4a2423..a4dd1a4 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095;
int i;
+ asm volatile ("\n\t"::: "memory");
+
for(i=0;i<dstw;i++)
{
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
);
}
#else
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -850,6 +856,8 @@ static inline void yuv2rgb1(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, ui
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index d4a2423..a4dd1a4 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095;
int i;
+ asm volatile ("\n\t"::: "memory");
+
for(i=0;i<dstw;i++)
{
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
);
}
#else
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -850,6 +856,8 @@ static inline void yuv2rgb1(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, ui
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list