diff options
author | jaseg <jaseg@jaseg.net> | 2013-12-17 19:17:54 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2013-12-17 19:17:54 +0100 |
commit | d33af3cb209d94d2c59347bf7d315dfb3203b991 (patch) | |
tree | a66ebbb2bb24255beee2f1b9e62fa4a8c8036e13 | |
parent | 392c3d5da4ab6e33f9a804931ad8292fbab0cf83 (diff) | |
download | matelight-d33af3cb209d94d2c59347bf7d315dfb3203b991.tar.gz matelight-d33af3cb209d94d2c59347bf7d315dfb3203b991.tar.bz2 matelight-d33af3cb209d94d2c59347bf7d315dfb3203b991.zip |
Re-enabled the geometry correction code
-rw-r--r-- | firmware/main.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/main.c b/firmware/main.c index f7ad1d8..3538ed4 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -143,8 +143,6 @@ unsigned long framebuffer_read(void *data, unsigned long len) { if(len != sizeof(FramebufferData))
goto length_error;
- UARTprintf("Buffer for (%d,%d): ", fb->crate_x, fb->crate_y);
-
unsigned int bus = fb->crate_x/CRATES_X;
fb->crate_x %= CRATES_X;
@@ -157,20 +155,6 @@ unsigned long framebuffer_read(void *data, unsigned long len) { if(bus >= BUS_COUNT/2)
fb->crate_x = CRATES_X - fb->crate_x - 1;
- unsigned int offset = BYTES_PER_PIXEL*(fb->crate_x * CRATE_SIZE + fb->crate_y * CRATES_X * CRATE_SIZE);
- /*for(unsigned char *p=framebuffer_input+offset; p<framebuffer_input+sizeof(fb->rgb_data); p++){
- *p = fb->rgb_data[0];
- }*/
- unsigned char *d = framebuffer_input+offset;
- unsigned char *s = fb->rgb_data;
- unsigned int count = sizeof(fb->rgb_data);
- while(count--){
- UARTprintf("%02x ", *s);
- *d++ = *s++;
- }
- UARTprintf("\n");
- //memcpy(framebuffer_input+offset, fb->rgb_data, sizeof(fb->rgb_data));
- /*
unsigned int crate = CRATE_MAP[fb->crate_x + fb->crate_y*CRATES_X];
for(unsigned int x=0; x<CRATE_WIDTH; x++){
for(unsigned int y=0; y<CRATE_HEIGHT; y++){
@@ -183,7 +167,6 @@ unsigned long framebuffer_read(void *data, unsigned long len) { framebuffer_input[dst + 2] = fb->rgb_data[src + 2];
}
}
- */
}
return len;
length_error:
|