1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- a/lib/fxjpegio.cpp
+++ b/lib/fxjpegio.cpp
@@ -138,7 +138,7 @@
src->pub.next_input_byte=src->buffer;
src->pub.bytes_in_buffer=1;
}
- return true;
+ return TRUE;
}
@@ -216,7 +216,7 @@
srcinfo.src=&src.pub;
// read the header from the jpg;
- jpeg_read_header(&srcinfo,true);
+ jpeg_read_header(&srcinfo,TRUE);
// make sure the output is RGB
srcinfo.out_color_space=JCS_RGB;
@@ -279,7 +279,7 @@
dest->stream->save(dest->buffer,JPEG_BUFFER_SIZE);
dest->pub.free_in_buffer=JPEG_BUFFER_SIZE;
dest->pub.next_output_byte=dest->buffer;
- return true;
+ return TRUE;
}
@@ -336,8 +336,8 @@
dstinfo.dest=&dst.pub;
jpeg_set_defaults(&dstinfo);
- jpeg_set_quality(&dstinfo,quality,true);
- jpeg_start_compress(&dstinfo,true);
+ jpeg_set_quality(&dstinfo,quality,TRUE);
+ jpeg_start_compress(&dstinfo,TRUE);
// Write the jpeg data
pp=data;
|