Why did someone screw up GetFloat in video_frame.cpp?

Originally committed to SVN as r1012.
This commit is contained in:
Dan Donovan 2007-04-05 21:54:47 +00:00
parent a274bbc1aa
commit ae307d9f74

View file

@ -241,13 +241,7 @@ void AegiVideoFrame::GetFloat(float *buffer) const {
if (flipped) src = data[0] + (h-y-1)*pitch[0]; // I think that it requires flipped data - amz if (flipped) src = data[0] + (h-y-1)*pitch[0]; // I think that it requires flipped data - amz
else src = data[0] + y*pitch[0]; else src = data[0] + y*pitch[0];
for (unsigned int x=0;x<w;x++) { for (unsigned int x=0;x<w;x++) {
//temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3; temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
temp += (*src)*0.3;
src++;
temp += (*src)*0.4;
src++;
temp += (*src)*0.3;
src++;
src += delta; src += delta;
*dst++ = temp; *dst++ = temp;
} }