Line
Link Here
|
0 |
-- a/lib/fxjpegio.cpp |
0 |
++ b/lib/fxjpegio.cpp |
Lines 138-144
Link Here
|
138 |
src->pub.next_input_byte=src->buffer; |
138 |
src->pub.next_input_byte=src->buffer; |
139 |
src->pub.bytes_in_buffer=1; |
139 |
src->pub.bytes_in_buffer=1; |
140 |
} |
140 |
} |
141 |
return true; |
141 |
return TRUE; |
142 |
} |
142 |
} |
143 |
|
143 |
|
144 |
|
144 |
|
Lines 216-222
Link Here
|
216 |
srcinfo.src=&src.pub; |
216 |
srcinfo.src=&src.pub; |
217 |
|
217 |
|
218 |
// read the header from the jpg; |
218 |
// read the header from the jpg; |
219 |
jpeg_read_header(&srcinfo,true); |
219 |
jpeg_read_header(&srcinfo,TRUE); |
220 |
|
220 |
|
221 |
// make sure the output is RGB |
221 |
// make sure the output is RGB |
222 |
srcinfo.out_color_space=JCS_RGB; |
222 |
srcinfo.out_color_space=JCS_RGB; |
Lines 279-285
Link Here
|
279 |
dest->stream->save(dest->buffer,JPEG_BUFFER_SIZE); |
279 |
dest->stream->save(dest->buffer,JPEG_BUFFER_SIZE); |
280 |
dest->pub.free_in_buffer=JPEG_BUFFER_SIZE; |
280 |
dest->pub.free_in_buffer=JPEG_BUFFER_SIZE; |
281 |
dest->pub.next_output_byte=dest->buffer; |
281 |
dest->pub.next_output_byte=dest->buffer; |
282 |
return true; |
282 |
return TRUE; |
283 |
} |
283 |
} |
284 |
|
284 |
|
285 |
|
285 |
|
Lines 336-343
Link Here
|
336 |
dstinfo.dest=&dst.pub; |
336 |
dstinfo.dest=&dst.pub; |
337 |
|
337 |
|
338 |
jpeg_set_defaults(&dstinfo); |
338 |
jpeg_set_defaults(&dstinfo); |
339 |
jpeg_set_quality(&dstinfo,quality,true); |
339 |
jpeg_set_quality(&dstinfo,quality,TRUE); |
340 |
jpeg_start_compress(&dstinfo,true); |
340 |
jpeg_start_compress(&dstinfo,TRUE); |
341 |
|
341 |
|
342 |
// Write the jpeg data |
342 |
// Write the jpeg data |
343 |
pp=data; |
343 |
pp=data; |