SVGA图像处理
(j=0;j<m; j++) * (buf+j)&=(* (q+j));
else if(action==-GXOR)for (j=0;j<m; j++) * (buf+j)^=(* (q+j));
else if(action==-GPRESET)for (j=0;j<m; j++) * (buf+j)=~(* (q+j));
u+=640;
if(u<65536L) buf+=640;
else {
u-=65536L;
-FP-SEG(buf)=0xA000;
-FP-OFF(buf)=0;
block++;
-outp(0x3C4, 14);
-outp(0x3C5, block^2);
if (m>640-u) {
if (action==-GPSET) -memcpy(buf,q+640-u, (size-t)(m-640+u));
else if(action==-GOR)
for(j=0;j<m-640+u;j++) *(buf+j)|=(*(q+640-u+
else if(action==-GAND)
for(j=0;j<m-640+u;j++) * (buf+j)&=(*(q+640-u+j));
else if (action==-GXOR)
for(j=0;j<m-640+u;j++) * (buf+j)^=(*(q+640-u+j));
else if(action==-GPRESET)
for(j=0;j<m-640+u;j++) * (buf+j)=~(* (q+640-u+j));
}
-FP-OFF(buf)=u;
}
}
}
本文链接地址:http://www.oyaya.net/fanwen/view/171762.html
else if(action==-GXOR)for (j=0;j<m; j++) * (buf+j)^=(* (q+j));
else if(action==-GPRESET)for (j=0;j<m; j++) * (buf+j)=~(* (q+j));
u+=640;
if(u<65536L) buf+=640;
else {
u-=65536L;
-FP-SEG(buf)=0xA000;
-FP-OFF(buf)=0;
block++;
-outp(0x3C4, 14);
-outp(0x3C5, block^2);
if (m>640-u) {
if (action==-GPSET) -memcpy(buf,q+640-u, (size-t)(m-640+u));
else if(action==-GOR)
for(j=0;j<m-640+u;j++) *(buf+j)|=(*(q+640-u+
j));
else if(action==-GAND)
for(j=0;j<m-640+u;j++) * (buf+j)&=(*(q+640-u+j));
else if (action==-GXOR)
for(j=0;j<m-640+u;j++) * (buf+j)^=(*(q+640-u+j));
else if(action==-GPRESET)
for(j=0;j<m-640+u;j++) * (buf+j)=~(* (q+640-u+j));
}
-FP-OFF(buf)=u;
}
}
}
《SVGA图像处理(第2页)》