Changeset 314:0e2b4fed7a0f

Show
Ignore:
Timestamp:
10/07/08 08:44:44 (2 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

sync dwt/internal/image with dwt-linux

Files:

Legend:

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

    r246 r314  
    980980                        s &= 15; 
    981981                        if (s !is 0) { 
    982                             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 */ 
    983983//                              WARNMS(cinfo, JWRN_HUFF_BAD_CODE); 
    984984                            } 
     
    12431243                            } else {        /* EOBr, run length is 2^r + appended bits */ 
    12441244                                EOBRUN = 1 << r; 
    1245                                 if (r !is 0) {      /* EOBr, r > 0 */ 
     1245                                if (r !is 0) {      /* EOBr, r > 0 */ 
    12461246//                                  CHECK_BIT_BUFFER(br_state, r, return FALSE); 
    12471247                                    { 
     
    44494449        length -= count; 
    44504450 
    4451         if ((index & 0x10) !is 0) {     /* AC table definition */ 
     4451        if ((index & 0x10) !is 0) {      /* AC table definition */ 
    44524452            index -= 0x10; 
    44534453            htblptr = cinfo.ac_huff_tbl_ptrs[index] = new JHUFF_TBL(); 
     
    52385238        } 
    52395239        totallen -= APP0_DATA_LEN; 
    5240         if (totallen !is    ((data[12] & 0xFF) * (data[13] & 0xFF) * 3)) { 
     5240        if (totallen !is ((data[12] & 0xFF) * (data[13] & 0xFF) * 3)) { 
    52415241//          TRACEMS1(cinfo, 1, JTRC_JFIF_BADTHUMBNAILSIZE, cast(int) totallen); 
    52425242        } 
  • dwt/internal/image/PNGFileFormat.d

    r246 r314  
    177177        if ((signature[5] & 0xFF) !is 10) return false; //<LINEFEED> 
    178178        if ((signature[6] & 0xFF) !is 26) return false; //<CTRL/Z> 
    179         if ((signature[7] & 0xFF) !is 10) return false; //<LINEFEED>         
     179        if ((signature[7] & 0xFF) !is 10) return false; //<LINEFEED>      
    180180        return true; 
    181181    } catch (Exception e) { 
  • dwt/internal/image/PngPlteChunk.d

    r213 r314  
    113113    // Palette chunks' data fields must be event multiples 
    114114    // of 3. Each 3-byte group represents an RGB value. 
    115     if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE);   
     115    if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE);   
    116116 
    117117    // Palettes cannot have more entries than 2^bitDepth