hello everyone,when I using the The _mem4 function, a error that evaluation operation's left operand must be the left value is arise.
however,the other Compiler Intrinsics is right.
the called function gets the gray image :
void getGrayImageFromUYVY(
char * restrict grayImg,
const char * imageData,
int grayImageSize
)
{
int i;
for(i=grayImageSize; i>7; i-=8){
_mem4(grayImg) = _packh4(_hi(_memd8_const(imageData)),_lo(_memd8_const(imageData)));
_mem4(grayImg + 4) = _packh4(_hi(_memd8_const(imageData+8)),_lo(_memd8_const(imageData+8)));
grayImg+=8;
imageData += 16;
}
}
could you hlep me?
thanks
xianfeng