JR
2009-12-23 12:16:35 UTC
Hi all,
I'm experiencing a problem using the libjpeg.a (version 7.0) when i
execute a small application of mine that converts a bpm file into jpg
format.
when writing the jpg output to file, the libjpeg complains:
"Output file write error --- out of disk space?"
OK.
1.) yes i have enough disk space left.
2.) my platform is CYGWIN_NT-5.1
3.) inside the libjpeg, i traced the error to the function jdatadst.c,
this is the code fragment that causes the trouble:
/* Write any data remaining in the buffer */
if (datacount > 0) {
if (JFWRITE(dest->outfile, dest->buffer, datacount) != datacount)
{
printf("location 2\n"); fflush(stdout);
ERREXIT(cinfo, JERR_FILE_WRITE);
}
}
4.) the code fragment that calls 3.) looks as follows:
for (y=0; y<height; ++y) {
*rp = (str + y*x);
jpeg_write_scanlines( &cinfo, rp, 1 );
}
with x being the size of a row.
Did anybody experience (and pro'ly solve) this problem before?
TIA,
Jorg.
I'm experiencing a problem using the libjpeg.a (version 7.0) when i
execute a small application of mine that converts a bpm file into jpg
format.
when writing the jpg output to file, the libjpeg complains:
"Output file write error --- out of disk space?"
OK.
1.) yes i have enough disk space left.
2.) my platform is CYGWIN_NT-5.1
3.) inside the libjpeg, i traced the error to the function jdatadst.c,
this is the code fragment that causes the trouble:
/* Write any data remaining in the buffer */
if (datacount > 0) {
if (JFWRITE(dest->outfile, dest->buffer, datacount) != datacount)
{
printf("location 2\n"); fflush(stdout);
ERREXIT(cinfo, JERR_FILE_WRITE);
}
}
4.) the code fragment that calls 3.) looks as follows:
for (y=0; y<height; ++y) {
*rp = (str + y*x);
jpeg_write_scanlines( &cinfo, rp, 1 );
}
with x being the size of a row.
Did anybody experience (and pro'ly solve) this problem before?
TIA,
Jorg.