Hey guys. I have dump some jpg file, but I can’t open it with eog.
static int jpeg_id = 0; static void dump_jpeg(uint8_t* data, int data_size) { char file_str[200]; uint32_t id = ++jpeg_id;
#ifdef WIN32 sprintf(file_str, "c:\\tmp\\spice_dump\\%u.jpg", id); #else sprintf(file_str, "/tmp/spice_dump/%u.jpg", id); #endif
FILE *f = fopen(file_str, "wb"); if (!f) { return; }
fwrite(data, 1, data_size, f); fclose(f); }
发送自 Windows 10 版邮件应用
|
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel