pike.git / lib / modules / _Image_PSD.pmod

version» Context lines:

pike.git/lib/modules/_Image_PSD.pmod:100:    {   // int st = gethrtime();    if( !sizeof(lays) )    lays += ({    Image.Layer(___decode_image_channel(l->width, l->height,    c->data))    });    else    lays += (({ Image.Layer( ([    "image":___decode_image_channel(l->width, l->height, c->data), -  "alpha_value":1.0, + // "alpha_value":1.0,    "mode":mode,    ]) )    }));   // werror(mode+" took %4.5f seconds\n", (gethrtime()-st)/1000000.0 );    c->data = 0;    }    }   // int st = gethrtime();    l->image = Image.lay( lays )->image();   // werror("combine took %4.5f seconds\n", (gethrtime()-st)/1000000.0 );
pike.git/lib/modules/_Image_PSD.pmod:303:    layers = ({ Image.Layer( lopts ) });    else    layers = ({});       foreach(reverse(what->layers), object l)    {    if( string m = translate_mode( l->mode ) )    {    Image.Layer lay = Image.Layer( l->image, l->alpha, m );    l->image = 0; l->alpha = 0; -  lay->set_alpha_value( l->opacity / 255.0 ); +  if( l->opacity != 255 ) +  lay->set_alpha_value( 1.0 - l->opacity / 255.0 );    lay->set_offset( l->xoffset, l->yoffset );    layers += ({ lay });    }    }    return layers;   }      mapping _decode( string|mapping what, mapping|void opts )   {   // mixed e = catch{