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
1 changed files with 1 additions and 7 deletions

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
else src = data[0] + y*pitch[0];
for (unsigned int x=0;x<w;x++) {
//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++;
temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
src += delta;
*dst++ = temp;
}