I find now the Problem with the console output.
seem the strcat function do not work correct.
see testcode below.
when use original code with strcat
sprintf(osd_buf, "cur %s", cur);
draw_txt_string(26, 12, osd_buf, MAKE_COLOR(0xdd,0x6f));
output nothing.
when i use strncpy as in the source then output can see on the console
so seem the function strcat work not ok in IX 1000 Port.can you look at this please ?
in console.c
static void console_add_text(const char *str)
{
console_ensure_inited();
char *cur;
int curlen;
int left;
do
{
cur = console_buf[console_line_index(console_line_start + console_num_lines - 1)];
sprintf(osd_buf, "str %s %s", cur,str);
if (cur != 0)draw_txt_string(26, 10, osd_buf, MAKE_COLOR(0xdd,0x6f));
curlen = strlen(cur);
left = console_line_length - curlen;
if(strlen(str) > left)
{
strncpy(cur + curlen, str, left);
cur[console_line_length] = 0;
console_start_line();
str += left;
sprintf(osd_buf, "cur >left %s", cur);
draw_txt_string(26, 11, osd_buf, MAKE_COLOR(0xdd,0x6f));
}
else
{
//strcat(cur, str); // does not work !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
strncpy(cur,str,console_line_length -1); // quick hack code to get output to console
sprintf(osd_buf, "cur %s", cur);
draw_txt_string(26, 12, osd_buf, MAKE_COLOR(0xdd,0x6f));
break;
}
} while(1);
}
@fe50
>Use a correct RAW file from your camera, not a DNG !
i disable dng.
but the crw or cr2 files of IX1000 are wrong, because we find no program, that can show them.only dng mode give something visible.
with badpixel pro its possible to see wy the cr2 file is wrong from IX 1000, because source is here.
@asm1989
>about the color you need to work with the file raw.c and add a new code for this:
yes i know, but i dont want spend time to search for correct color, because the solution from microfunguy sounds lots better and faster.I better use that code, but nobody have tell where i can find it so i need to wait.
"""""
http://chdk.setepontos.com/index.php?topic=5911.msg58120#msg58120Just for the record, I have just finished adding a 'save raw image strip' to SDM.
Bad-pixel patching and byte reversal is done on the PC.
Sensor data and DNG header (including white-balance as shot) are saved, in less than one second (for full-size image).
David
""""""
>keyb works better with new file, did you chech other new cams keyb, like sx30, s95, ixus130 and so on?
yes i have look on all, but all camera clear a bit when a key is press.
on what place the keyboard code is hook in i dont so, and if that is diffrent.because i have no asm dump of this firmware.