fix some errors
This commit is contained in:
@@ -126,7 +126,7 @@ int sc_main(int argc, char* argv[]) {
|
||||
for (int y = 0; y < IM_HEIGHT; y++) {
|
||||
for (int x = 0; x < IM_WIDTH; x++) {
|
||||
image[y * IM_WIDTH + x] = (uint16_t)buf[i] + ((uint16_t)buf[i + 1] << 8);
|
||||
i++;
|
||||
i += 2;
|
||||
}
|
||||
}
|
||||
cout << "Finish Reading data" << endl;
|
||||
|
Reference in New Issue
Block a user