pike.git / lib / modules / _Image_PSD.pmod

version» Context lines:

pike.git/lib/modules/_Image_PSD.pmod:32:   Layer decode_layer(mapping layer, mapping i)   {   // int stt = gethrtime();    Layer l = Layer();    int use_cmap;    l->opacity = layer->opacity;    l->width = layer->right-layer->left;    l->height = layer->bottom-layer->top;    l->xoffset = layer->left;    l->yoffset = layer->top; -  l->image = Image.image( l->width, l->height ); +  l->image = Image.Image( l->width, l->height );    l->mode = layer->mode;    l->flags = layer->flags;    l->name = layer->name;    l->mask_flags = layer->mask_flags;    l->mask_default_color = layer->mask_default_color;       l->mask_width = layer->mask_right-layer->mask_left;    l->mask_height = layer->mask_bottom-layer->mask_top;    l->mask_xoffset = layer->mask_left;    l->mask_yoffset = layer->mask_top;
pike.git/lib/modules/_Image_PSD.pmod:101:   // int st = gethrtime();    l->image = Image.lay( lays )->image();   // werror("combine took %4.5f seconds\n", (gethrtime()-st)/1000000.0 );    break;    case CMYK:    inverted = 1;    colors = ({ ({255,0,0,}),    ({0,255,0,}),    ({0,0,255,}),    }) + ({ 255,255,255 }) * 24; -  l->image = Image.image( l->width, l->height, 255, 255, 255); +  l->image = Image.Image( l->width, l->height, 255, 255, 255);    break;       case Indexed:    use_cmap = 1;    break;    default:    werror("Unsupported layer format mode ("+i->mode+"), using greyscale\n");    case Greyscale:    colors = ({    255,255,255