Show
Ignore:
Timestamp:
05/17/08 11:34:28 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to SWT 3.4M7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/internal/image/JPEGDecoder.d

    r212 r213  
    2121import dwt.graphics.PaletteData; 
    2222import dwt.graphics.RGB; 
     23import dwt.dwthelper.utils; 
    2324 
    2425import tango.core.Exception; 
    2526import tango.util.Convert; 
    2627import Math = tango.math.Math; 
    27 import dwt.dwthelper.System; 
    28 import dwt.dwthelper.utils; 
    2928 
    3029public class JPEGDecoder { 
     
    981980                        s &= 15; 
    982981                        if (s !is 0) { 
    983                             if (s !is 1) {      /* size of new coef should always be 1 */ 
     982                            if (s !is 1) {      /* size of new coef should always be 1 */ 
    984983//                              WARNMS(cinfo, JWRN_HUFF_BAD_CODE); 
    985984                            } 
     
    12441243                            } else {        /* EOBr, run length is 2^r + appended bits */ 
    12451244                                EOBRUN = 1 << r; 
    1246                                 if (r !is 0) {      /* EOBr, r > 0 */ 
     1245                                if (r !is 0) {      /* EOBr, r > 0 */ 
    12471246//                                  CHECK_BIT_BUFFER(br_state, r, return FALSE); 
    12481247                                    { 
     
    12821281        } 
    12831282 
    1284         bool decode_mcu_DC_first (jpeg_decompress_struct cinfo, short[][] MCU_data) { 
     1283        bool decode_mcu_DC_first (jpeg_decompress_struct cinfo, short[][] MCU_data) {     
    12851284            phuff_entropy_decoder entropy = this; 
    12861285            int Al = cinfo.Al; 
     
    16461645        /* Variables for Floyd-Steinberg dithering */ 
    16471646//          FSERRPTR fserrors[MAX_Q_COMPS]; /* accumulated errors */ 
    1648         bool on_odd_row; 
     1647        bool on_odd_row;     
    16491648 
    16501649        void start_pass (jpeg_decompress_struct cinfo, bool is_pre_scan) { 
     
    44504449        length -= count; 
    44514450 
    4452         if ((index & 0x10) !is 0) {      /* AC table definition */ 
     4451        if ((index & 0x10) !is 0) {     /* AC table definition */ 
    44534452            index -= 0x10; 
    44544453            htblptr = cinfo.ac_huff_tbl_ptrs[index] = new JHUFF_TBL(); 
     
    52395238        } 
    52405239        totallen -= APP0_DATA_LEN; 
    5241         if (totallen !is ((data[12] & 0xFF) * (data[13] & 0xFF) * 3)) { 
     5240        if (totallen !is    ((data[12] & 0xFF) * (data[13] & 0xFF) * 3)) { 
    52425241//          TRACEMS1(cinfo, 1, JTRC_JFIF_BADTHUMBNAILSIZE, cast(int) totallen); 
    52435242        }