summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqjpegio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqjpegio.cpp')
-rw-r--r--src/kernel/tqjpegio.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kernel/tqjpegio.cpp b/src/kernel/tqjpegio.cpp
index f76aad44d..ec7b892ab 100644
--- a/src/kernel/tqjpegio.cpp
+++ b/src/kernel/tqjpegio.cpp
@@ -124,7 +124,7 @@ boolean qt_fill_input_buffer(j_decompress_ptr cinfo)
#if defined(Q_OS_UNIXWARE)
return B_TRUE;
#else
- return TRUE;
+ return true;
#endif
}
@@ -143,7 +143,7 @@ void qt_skip_input_data(j_decompress_ptr cinfo, long num_bytes)
while (num_bytes > (long) src->bytes_in_buffer) {
num_bytes -= (long) src->bytes_in_buffer;
(void) qt_fill_input_buffer(cinfo);
- /* note we assume that qt_fill_input_buffer will never return FALSE,
+ /* note we assume that qt_fill_input_buffer will never return false,
* so suspension need not be handled.
*/
}
@@ -210,7 +210,7 @@ void read_jpeg_image(TQImageIO* iio)
#if defined(Q_OS_UNIXWARE)
(void) jpeg_read_header(&cinfo, B_TRUE);
#else
- (void) jpeg_read_header(&cinfo, TRUE);
+ (void) jpeg_read_header(&cinfo, true);
#endif
(void) jpeg_start_decompress(&cinfo);
@@ -253,7 +253,7 @@ void read_jpeg_image(TQImageIO* iio)
scaleSize( sWidth, sHeight, cinfo.output_width, cinfo.output_height, sMode );
// tqDebug( "Scaling the jpeg to %i x %i", sWidth, sHeight, sModeStr );
- bool created = FALSE;
+ bool created = false;
if ( cinfo.output_components == 3 || cinfo.output_components == 4) {
created = image.create( sWidth, sHeight, 32 );
} else if ( cinfo.output_components == 1 ) {
@@ -302,7 +302,7 @@ void read_jpeg_image(TQImageIO* iio)
} else {
- bool created = FALSE;
+ bool created = false;
if ( cinfo.output_components == 3 || cinfo.output_components == 4) {
created = image.create( cinfo.output_width, cinfo.output_height, 32 );
} else if ( cinfo.output_components == 1 ) {
@@ -402,7 +402,7 @@ boolean qt_empty_output_buffer(j_compress_ptr cinfo)
#if defined(Q_OS_UNIXWARE)
return B_TRUE;
#else
- return TRUE;
+ return true;
#endif
}
@@ -463,12 +463,12 @@ void write_jpeg_image(TQImageIO* iio)
cinfo.image_height = image.height();
TQRgb* cmap=0;
- bool gray=FALSE;
+ bool gray=false;
switch ( image.depth() ) {
case 1:
case 8:
cmap = image.colorTable();
- gray = TRUE;
+ gray = true;
int i;
for (i=image.numColors(); gray && i--; ) {
gray = gray & ( tqRed(cmap[i]) == tqGreen(cmap[i]) &&
@@ -503,8 +503,8 @@ void write_jpeg_image(TQImageIO* iio)
jpeg_set_quality(&cinfo, quality, B_TRUE /* limit to baseline-JPEG values */);
jpeg_start_compress(&cinfo, B_TRUE);
#else
- jpeg_set_quality(&cinfo, quality, TRUE /* limit to baseline-JPEG values */);
- jpeg_start_compress(&cinfo, TRUE);
+ jpeg_set_quality(&cinfo, quality, true /* limit to baseline-JPEG values */);
+ jpeg_start_compress(&cinfo, true);
#endif
row_pointer[0] = new uchar[cinfo.image_width*cinfo.input_components];