Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/JPEGDecoder.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | f36c67707cb3 |
children | d46287db17ed |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
20 import org.eclipse.swt.graphics.ImageLoaderEvent; | 20 import org.eclipse.swt.graphics.ImageLoaderEvent; |
21 import org.eclipse.swt.graphics.PaletteData; | 21 import org.eclipse.swt.graphics.PaletteData; |
22 import org.eclipse.swt.graphics.RGB; | 22 import org.eclipse.swt.graphics.RGB; |
23 import java.lang.all; | 23 import java.lang.all; |
24 | 24 |
25 import tango.util.Convert; | |
26 | 25 |
27 public class JPEGDecoder { | 26 public class JPEGDecoder { |
28 | 27 |
29 static const int DCTSIZE = 8; | 28 static const int DCTSIZE = 8; |
30 static const int DCTSIZE2 = 64; | 29 static const int DCTSIZE2 = 64; |
5829 error(); | 5828 error(); |
5830 // ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); | 5829 // ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); |
5831 | 5830 |
5832 /* For now, precision must match compiled-in value... */ | 5831 /* For now, precision must match compiled-in value... */ |
5833 if (cinfo.data_precision !is BITS_IN_JSAMPLE) | 5832 if (cinfo.data_precision !is BITS_IN_JSAMPLE) |
5834 error(" [data precision=" ~ to!(String)(cinfo.data_precision) ~ "]"); | 5833 error(" [data precision=" ~ String_valueOf(cinfo.data_precision) ~ "]"); |
5835 // ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo.data_precision); | 5834 // ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo.data_precision); |
5836 | 5835 |
5837 /* Check that number of components won't exceed internal array sizes */ | 5836 /* Check that number of components won't exceed internal array sizes */ |
5838 if (cinfo.num_components > MAX_COMPONENTS) | 5837 if (cinfo.num_components > MAX_COMPONENTS) |
5839 error(); | 5838 error(); |