Mercurial > mm7
comparison Render.cpp @ 2221:c69013c186c7
for video
author | Ritor1 |
---|---|
date | Tue, 18 Feb 2014 16:18:20 +0600 |
parents | e6771956e74a |
children | 5944810e88e2 |
comparison
equal
deleted
inserted
replaced
2220:7dccb5752b66 | 2221:c69013c186c7 |
---|---|
2173 { | 2173 { |
2174 lineG = (char *)lineRGB + pitch; | 2174 lineG = (char *)lineRGB + pitch; |
2175 lineB = (char *)lineRGB + 2 * pitch; | 2175 lineB = (char *)lineRGB + 2 * pitch; |
2176 for ( uint x = 0; x < this->GetRenderWidth(); x++ ) | 2176 for ( uint x = 0; x < this->GetRenderWidth(); x++ ) |
2177 { | 2177 { |
2178 int p = *line_picture_data; //0x2818 | 2178 //int p = *line_picture_data; //0x2818 |
2179 int for_rad = (pRenderer->uTargetGBits + pRenderer->uTargetBBits );//16 = 8 + 8 | 2179 //int for_rad = (pRenderer->uTargetGBits + pRenderer->uTargetBBits );//16 = 8 + 8 |
2180 int value = (pRenderer->uTargetRMask & *line_picture_data);//0 = 0xFF0000 & 0x2818 | 2180 //int value = (pRenderer->uTargetRMask & *line_picture_data);//0 = 0xFF0000 & 0x2818 |
2181 int result = (pRenderer->uTargetRMask & *line_picture_data) >> (pRenderer->uTargetGBits + pRenderer->uTargetBBits ); | 2181 //int result = (pRenderer->uTargetRMask & *line_picture_data) >> (pRenderer->uTargetGBits + pRenderer->uTargetBBits ); |
2182 lineRGB[x] = (pRenderer->uTargetRMask & *line_picture_data) >> (pRenderer->uTargetGBits + pRenderer->uTargetBBits );// + pRenderer->uTargetRBits - 8); | 2182 lineRGB[x] = (pRenderer->uTargetRMask & *line_picture_data) >> (pRenderer->uTargetGBits + pRenderer->uTargetBBits );// + pRenderer->uTargetRBits - 8); |
2183 lineG[x] = (pRenderer->uTargetGMask & *line_picture_data) >> (pRenderer->uTargetBBits);// + pRenderer->uTargetGBits - 8); | 2183 lineG[x] = (pRenderer->uTargetGMask & *line_picture_data) >> (pRenderer->uTargetBBits);// + pRenderer->uTargetGBits - 8); |
2184 int value2 = (pRenderer->uTargetGMask & *line_picture_data); //10240 = 0xFF00 & 0x2818 | 2184 //int value2 = (pRenderer->uTargetGMask & *line_picture_data); //10240 = 0xFF00 & 0x2818 |
2185 int result2 = (pRenderer->uTargetGMask & *line_picture_data) >> (pRenderer->uTargetBBits); | 2185 //int result2 = (pRenderer->uTargetGMask & *line_picture_data) >> (pRenderer->uTargetBBits); |
2186 lineB[x] = (pRenderer->uTargetBMask & *line_picture_data);// << (8 - pRenderer->uTargetBBits); | 2186 lineB[x] = (pRenderer->uTargetBMask & *line_picture_data);// << (8 - pRenderer->uTargetBBits); |
2187 int value3 = (pRenderer->uTargetBMask & *line_picture_data);//24 = 0xFF & 0x2818 | 2187 //int value3 = (pRenderer->uTargetBMask & *line_picture_data);//24 = 0xFF & 0x2818 |
2188 line_picture_data += 2; | 2188 line_picture_data += 2; |
2189 } | 2189 } |
2190 } | 2190 } |
2191 for ( uint i = 0; i < image_width; i += test_byte ) | 2191 for ( uint i = 0; i < image_width; i += test_byte ) |
2192 { | 2192 { |