// from swftools.c:
void enumerateUsedIDs_styles(TAG * tag, void (*callback)(TAG*, int, void*), void*callback_data, int num, int morph);
// from swftools.c:
void enumerateUsedIDs_styles(TAG * tag, void (*callback)(TAG*, int, void*), void*callback_data, int num, int morph);
swf_GetRGBA(tag, &dest->color);
else
swf_GetRGB(tag, &dest->color);
swf_GetRGBA(tag, &dest->color);
else
swf_GetRGB(tag, &dest->color);
swf_GetRGBA(tag, &shape->linestyles[t].color);
else
swf_GetRGB(tag, &shape->linestyles[t].color);
}
}
swf_GetRGBA(tag, &shape->linestyles[t].color);
else
swf_GetRGB(tag, &shape->linestyles[t].color);
}
}
}
fillbits = swf_GetBits(tag, 4);
linebits = swf_GetBits(tag, 4);
}
fillbits = swf_GetBits(tag, 4);
linebits = swf_GetBits(tag, 4);
memset(shape, 0, sizeof(SHAPE2));
shape->bbox = rfx_alloc(sizeof(SRECT));
swf_GetRect(tag, shape->bbox);
memset(shape, 0, sizeof(SHAPE2));
shape->bbox = rfx_alloc(sizeof(SRECT));
swf_GetRect(tag, shape->bbox);
+ if(num>=4) {
+ SRECT r2;
+ swf_ResetReadBits(tag);
+ swf_GetRect(tag, &r2); // edge bounds
+ U8 flags = swf_GetU8(tag); // flags, &1: contains scaling stroke, &2: contains non-scaling stroke
+ }
void swf_RecodeShapeData(U8*data, int bitlen, int in_bits_fill, int in_bits_line,
U8**destdata, U32*destbitlen, int out_bits_fill, int out_bits_line)
{
void swf_RecodeShapeData(U8*data, int bitlen, int in_bits_fill, int in_bits_line,
U8**destdata, U32*destbitlen, int out_bits_fill, int out_bits_line)
{