pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:2190:   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #undef L_COPY_ALPHA   #undef L_CHANNEL_DO      /* special modes */    - /* Generates a random string of lenght len using the current -  random_string() function. */ - static void push_random_string(unsigned len) - { -  struct svalue *random = -  simple_mapping_string_lookup(get_builtin_constants(), "random_string"); -  if(!random || (TYPEOF(*random) != T_FUNCTION)) -  Pike_error("Unable to resolve random function.\n"); -  push_int(len); -  apply_svalue(random, 1); -  if(TYPEOF(Pike_sp[-1])!=T_STRING || Pike_sp[-1].u.string->len != len) -  Pike_error("Couldn't generate random string.\n"); - } -  +    static void lm_dissolve(rgb_group *s,rgb_group *l,rgb_group *d,    rgb_group *sa,rgb_group *la,rgb_group *da,    int len,double alpha)   {    if (alpha==0.0)    {   #ifdef LAYERS_DUAL    memcpy(d,s,sizeof(rgb_group)*len);    memcpy(da,sa,sizeof(rgb_group)*len);   #endif