Optimizations and cleanups
(missing float conversion, defines, 1.0 vs 1.f etc.)
This commit is contained in:
@@ -229,10 +229,12 @@ unsigned short** RawImage::compress_image()
|
||||
|
||||
// copy pixel raw data: the compressed format earns space
|
||||
if (filters != 0) {
|
||||
#pragma omp parallel for
|
||||
for (int row = 0; row < height; row++)
|
||||
for (int col = 0; col < width; col++)
|
||||
this->data[row][col] = image[row * width + col][FC(row, col)];
|
||||
} else {
|
||||
#pragma omp parallel for
|
||||
for (int row = 0; row < height; row++)
|
||||
for (int col = 0; col < width; col++) {
|
||||
this->data[row][3 * col + 0] = image[row * width + col][0];
|
||||
|
Reference in New Issue
Block a user