Branch: Tag:

2000-10-08

2000-10-08 21:44:33 by Per Hedbor <ph@opera.com>

Optimized with regards to memory and cpu usage. Also added a new argument: It is now possible to decode an image with a scale factor (where the factor is an integer >=1) for thumbnail creation. Use ([ shrink_factor:factor ]) in the options mapping to do this. Also added a decode_header method.

Rev: lib/modules/_Image_XCF.pmod:1.14

285:    int last_selected_row;    int num_paths;    array res = ({}); +  if( stringp( data ) ) +  {    sscanf( data, "%4c%4c%s", last_selected_row, num_paths, data );    while(num_paths--)    {
292:    data = decode_one_path( data, path );    res += ({ path });    } +  }    return res;    }   
330:    res_unit = p->data->get_int( 0 );    break;    case PROP_PATHS: -  paths = decode_paths( p->data ); +  paths = decode_paths( (string)p->data );    break;    case PROP_USER_UNIT:    /* NYI */