Lines Matching refs:desc
173 skin_image_desc_hash( SkinImageDesc* desc )
178 for (n = 0; desc->path[n] != 0; n++) {
179 int c = desc->path[n];
182 h += desc->rotation*1573;
183 h += desc->blend * 7;
220 SkinImageDesc desc;
253 skin_image_alloc( SkinImageDesc* desc, unsigned hash )
255 int len = strlen(desc->path);
259 image->desc = desc[0];
260 image->desc.path = (const char*)(image + 1);
261 memcpy( (char*)image->desc.path, desc->path, len );
262 ((char*)image->desc.path)[len] = 0;
280 const char* path = image->desc.path;
390 node->desc.path, node->desc.rotation, node->w*node->h );
447 SkinImageDesc* desc,
450 unsigned h = skin_image_desc_hash(desc);
457 if (node->hash == h && skin_image_desc_equal(desc, &node->desc))
467 skin_image_create( SkinImageDesc* desc, unsigned hash )
471 node = skin_image_alloc( desc, hash );
475 if (desc->rotation == SKIN_ROTATION_0 &&
476 desc->blend == SKIN_BLEND_FULL)
485 SkinImageDesc desc0 = desc[0];
497 if (desc->rotation == SKIN_ROTATION_90 ||
498 desc->rotation == SKIN_ROTATION_270)
508 desc->rotation );
518 if (desc->blend != SKIN_BLEND_FULL)
519 blend_image( node->pixels, node->pixels, node->w, node->h, desc->blend );
535 skin_image_find( SkinImageDesc* desc )
539 SkinImage** pnode = skin_image_lookup_p( cache, desc, &hash );
551 node = skin_image_create( desc, hash );
563 node->desc.path, node->desc.rotation, node->w*node->h );
576 SkinImageDesc desc;
578 desc.path = path;
579 desc.rotation = SKIN_ROTATION_0;
580 desc.blend = SKIN_BLEND_FULL;
582 return skin_image_find( &desc );
615 SkinImageDesc desc;
618 if (source == _no_image || source->desc.rotation == rotation)
621 desc = source->desc;
622 desc.rotation = rotation;
623 image = skin_image_find( &desc );
641 image->desc = source->desc;
667 SkinImageDesc desc;
679 desc.path = source->desc.path;
680 desc.rotation = rotation;
681 desc.blend = blend;
683 clone = skin_image_create( &desc, 0 );
716 if (image->desc.rotation == SKIN_ROTATION_90 ||
717 image->desc.rotation == SKIN_ROTATION_270)
729 if (image->desc.rotation == SKIN_ROTATION_90 ||
730 image->desc.rotation == SKIN_ROTATION_270)