git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7a288be
)
new function isPseudoDefiningTag.
author
kramm
<kramm>
Fri, 30 Nov 2001 09:28:44 +0000
(09:28 +0000)
committer
kramm
<kramm>
Fri, 30 Nov 2001 09:28:44 +0000
(09:28 +0000)
lib/modules/swftools.c
patch
|
blob
|
history
lib/rfxswf.h
patch
|
blob
|
history
diff --git
a/lib/modules/swftools.c
b/lib/modules/swftools.c
index
2a6e542
..
47ce10e
100644
(file)
--- a/
lib/modules/swftools.c
+++ b/
lib/modules/swftools.c
@@
-90,7
+90,7
@@
U16 swf_GetDefineID(TAG * t)
case ST_DEFINEBUTTONSOUND:
case ST_DEFINEFONT:
case ST_DEFINEFONT2:
case ST_DEFINEBUTTONSOUND:
case ST_DEFINEFONT:
case ST_DEFINEFONT2:
- case ST_DEFINEFONTINFO:
+ case ST_DEFINEFONTINFO: //psedodefine
case ST_DEFINETEXT:
case ST_DEFINETEXT2:
case ST_DEFINESOUND:
case ST_DEFINETEXT:
case ST_DEFINETEXT2:
case ST_DEFINESOUND:
@@
-172,6
+172,12
@@
static int swf_spritetagids[] =
-1
};
-1
};
+static int swf_pseudodefiningtagids[] =
+{
+ ST_DEFINEFONTINFO,
+ -1
+};
+
U8 swf_isAllowedSpriteTag(TAG * tag)
{
int id = tag->id;
U8 swf_isAllowedSpriteTag(TAG * tag)
{
int id = tag->id;
@@
-198,6
+204,19
@@
U8 swf_isDefiningTag(TAG * tag)
return 0;
}
return 0;
}
+U8 swf_isPseudoDefiningTag(TAG * tag)
+{
+ int id = tag->id;
+ int t=0;
+ while(swf_pseudodefiningtagids[t]>=0)
+ {
+ if(swf_pseudodefiningtagids[t] == id)
+ return 1;
+ t++;
+ }
+ return 0;
+}
+
U16 swf_GetDepth(TAG * t)
// up to SWF 4.0
{
U16 swf_GetDepth(TAG * t)
// up to SWF 4.0
{
diff --git
a/lib/rfxswf.h
b/lib/rfxswf.h
index
be529a3
..
62d270d
100644
(file)
--- a/
lib/rfxswf.h
+++ b/
lib/rfxswf.h
@@
-498,6
+498,7
@@
int swf_SetLosslessBitsGrayscale(TAG * t,U16 width,U16 height,U8 * bitmap);
// swftools.c
U8 swf_isDefiningTag(TAG * t);
// swftools.c
U8 swf_isDefiningTag(TAG * t);
+U8 swf_isPseudoDefiningTag(TAG * t);
U8 swf_isAllowedSpriteTag(TAG * t);
U16 swf_GetDefineID(TAG * t);
U16 swf_GetPlaceID(TAG * t); //PLACEOBJECT, PLACEOBJECT2 (sometimes), REMOVEOBJECT
U8 swf_isAllowedSpriteTag(TAG * t);
U16 swf_GetDefineID(TAG * t);
U16 swf_GetPlaceID(TAG * t); //PLACEOBJECT, PLACEOBJECT2 (sometimes), REMOVEOBJECT