fix some errors

This commit is contained in:
SikongJueluo
2024-05-16 17:33:39 +08:00
parent 74425d1c28
commit 5eebe6e922
4 changed files with 8 additions and 6 deletions

View File

@@ -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;