gradient 433 mingpp.h c_SWFGradient gradient; gradient 437 mingpp.h this->gradient = newSWFGradient(); gradient 438 mingpp.h if(this->gradient == NULL) gradient 443 mingpp.h { destroySWFGradient(this->gradient); } gradient 446 mingpp.h { SWFGradient_addEntry(this->gradient, ratio, r, g, b, a); } gradient 449 mingpp.h { SWFGradient_setSpreadMode(this->gradient, mode); } gradient 452 mingpp.h { SWFGradient_setInterpolationMode(this->gradient, mode); } gradient 455 mingpp.h { SWFGradient_setFocalPoint(this->gradient, focalPoint); } gradient 540 mingpp.h static SWFFilter *GradientGlowFilter(SWFGradient *gradient, SWFBlur *blur, SWFShadow *shadow, int flags) gradient 541 mingpp.h { return new SWFFilter(newGradientGlowFilter(gradient->gradient, blur->blur, shadow->shadow, flags)); } gradient 543 mingpp.h static SWFFilter *GradientBevelFilter(SWFGradient *gradient, SWFBlur *blur, gradient 545 mingpp.h { return new SWFFilter(newGradientBevelFilter(gradient->gradient, blur->blur, shadow->shadow, flags)); } gradient 1191 mingpp.h static SWFFillStyle *GradientFillStyle(SWFGradient *gradient, byte flags) gradient 1192 mingpp.h { return new SWFFillStyle(newSWFGradientFillStyle(gradient->gradient, flags)); } gradient 1354 mingpp.h SWFFill *addGradientFill(SWFGradient *gradient, byte flags=0x10) gradient 1355 mingpp.h { return new SWFFill(SWFShape_addGradientFill(this->shape, gradient->gradient, flags)); } gradient 2651 php_ext/ming.c SWFGradient gradient = newSWFGradient(); gradient 2652 php_ext/ming.c int ret = zend_list_insert(gradient, le_swfgradientp); gradient 2669 php_ext/ming.c void *gradient = SWFgetProperty(id, "gradient", 8, le_swfgradientp TSRMLS_CC); gradient 2671 php_ext/ming.c if (!gradient) { gradient 2674 php_ext/ming.c return (SWFGradient)gradient; gradient 2897 php_ext/ming.c zval **gradient, **blur, **shadow, **flags; gradient 2902 php_ext/ming.c gradient = argv[1]; gradient 2903 php_ext/ming.c convert_to_object_ex(gradient); gradient 2914 php_ext/ming.c return newGradientGlowFilter(getGradient(*gradient TSRMLS_CC), gradient 2962 php_ext/ming.c zval **gradient, **blur, **shadow, **flags; gradient 2967 php_ext/ming.c gradient = argv[1]; gradient 2968 php_ext/ming.c convert_to_object_ex(gradient); gradient 2979 php_ext/ming.c return newGradientBevelFilter(getGradient(*gradient TSRMLS_CC), gradient 48 src/blocks/fillstyle.c SWFGradient gradient; gradient 98 src/blocks/fillstyle.c else if(SWFGradient_isFocalGradient(gradient)) gradient 103 src/blocks/fillstyle.c fill->data.gradient = gradient; gradient 174 src/blocks/fillstyle.c return (fill1->data.gradient == fill2->data.gradient); gradient 209 src/blocks/fillstyle.c SWFOutput_writeGradient(out, fill->data.gradient, shapeType); gradient 272 src/blocks/fillstyle.c SWFOutput_writeMorphGradient(out, fill1->data.gradient, fill2->data.gradient); gradient 131 src/blocks/filter.c SWFGradient gradient; gradient 139 src/blocks/filter.c SWFGradient gradient; gradient 298 src/blocks/filter.c SWFOutput_writeGradientAsFilter(out, filter->gradient); gradient 345 src/blocks/filter.c SWFOutput_writeGradientAsFilter(out, filter->gradient); gradient 512 src/blocks/filter.c if(gradient == NULL || blur == NULL) gradient 520 src/blocks/filter.c gBevel->gradient = gradient; gradient 542 src/blocks/filter.c if(gradient == NULL || blur == NULL) gradient 550 src/blocks/filter.c gGlow->gradient = gradient; gradient 775 src/blocks/fromswf.c gradient(tp, lev >= 3, cod); gradient 54 src/blocks/gradient.c SWFGradient gradient = (SWFGradient) malloc(sizeof(struct SWFGradient_s)); gradient 55 src/blocks/gradient.c gradient->spreadMode = 0; gradient 56 src/blocks/gradient.c gradient->interpolationMode = 0; gradient 57 src/blocks/gradient.c gradient->nGrads = 0; gradient 58 src/blocks/gradient.c gradient->isFocalGradient = 0; gradient 59 src/blocks/gradient.c return gradient; gradient 71 src/blocks/gradient.c gradient->spreadMode = mode; gradient 82 src/blocks/gradient.c gradient->interpolationMode = mode; gradient 94 src/blocks/gradient.c gradient->isFocalGradient = 1; gradient 97 src/blocks/gradient.c gradient->focalPoint = focalPoint; gradient 102 src/blocks/gradient.c return gradient->isFocalGradient; gradient 108 src/blocks/gradient.c free(gradient); gradient 129 src/blocks/gradient.c int nGrads = gradient->nGrads; gradient 134 src/blocks/gradient.c gradient->entries[nGrads].ratio = (byte)floor(255*ratio); gradient 135 src/blocks/gradient.c gradient->entries[nGrads].r = r; gradient 136 src/blocks/gradient.c gradient->entries[nGrads].g = g; gradient 137 src/blocks/gradient.c gradient->entries[nGrads].b = b; gradient 138 src/blocks/gradient.c gradient->entries[nGrads].a = a; gradient 140 src/blocks/gradient.c ++gradient->nGrads; gradient 147 src/blocks/gradient.c int nGrads = gradient->nGrads; gradient 159 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].r); gradient 160 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].g); gradient 161 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].b); gradient 162 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].a); gradient 166 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].ratio); gradient 204 src/blocks/gradient.c int nGrads = gradient->nGrads; gradient 211 src/blocks/gradient.c flags |= (0x3 & gradient->interpolationMode) << 4; gradient 212 src/blocks/gradient.c flags |= (0x3 & gradient->spreadMode) << 6; gradient 223 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].ratio); gradient 224 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].r); gradient 225 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].g); gradient 226 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].b); gradient 229 src/blocks/gradient.c SWFOutput_writeUInt8(out, gradient->entries[i].a); gradient 232 src/blocks/gradient.c if(shapeType == SWF_DEFINESHAPE4 && gradient->isFocalGradient) gradient 233 src/blocks/gradient.c SWFOutput_writeFixed8(out, gradient->focalPoint); gradient 1116 src/blocks/shape.c SWFFillStyle fill = newSWFGradientFillStyle(gradient, flags); gradient 287 src/ming.h void destroySWFGradient(SWFGradient gradient); gradient 289 src/ming.h void SWFGradient_addEntry(SWFGradient gradient, gradient 292 src/ming.h void SWFGradient_setSpreadMode(SWFGradient gradient, GradientSpreadMode mode); gradient 293 src/ming.h void SWFGradient_setInterpolationMode(SWFGradient gradient, GradientInterpolationMode mode); gradient 294 src/ming.h void SWFGradient_setFocalPoint(SWFGradient gradient, float focalPoint); gradient 311 src/ming.h SWFFillStyle newSWFGradientFillStyle(SWFGradient gradient, byte radial); gradient 401 src/ming.h SWFGradient gradient, byte flags); gradient 809 src/ming.h SWFFilter newGradientBevelFilter(SWFGradient gradient, SWFBlur blur, gradient 812 src/ming.h SWFFilter newGradientGlowFilter(SWFGradient gradient, SWFBlur blur, gradient 959 src/ming.h SWFFill SWFShape_addGradientFill(SWFShape shape, SWFGradient gradient, byte flags); gradient 178 src/shape_util.c return newSWFFill(SWFShape_addGradientFillStyle(shape, gradient, flags)); gradient 463 util/outputscript.c for (i = 0; i < gradient->NumGradients; i++) gradient 466 util/outputscript.c (gradient->GradientRecords[i].Ratio / 255.0), gradient 467 util/outputscript.c gradient->GradientRecords[i].Color.red, gradient 468 util/outputscript.c gradient->GradientRecords[i].Color.green, gradient 469 util/outputscript.c gradient->GradientRecords[i].Color.blue, gradient 470 util/outputscript.c gradient->GradientRecords[i].Color.alpha); gradient 405 util/outputtxt.c _iprintf (" SpreadMode: %d\n", gradient->SpreadMode); gradient 406 util/outputtxt.c _iprintf (" InterpolationMode: %d\n", gradient->InterpolationMode); gradient 407 util/outputtxt.c _iprintf (" NumGradients: %d\n", gradient->NumGradients); gradient 408 util/outputtxt.c for (i = 0; i < gradient->NumGradients; i++) gradient 409 util/outputtxt.c outputSWF_GRADIENTRECORD (&(gradient->GradientRecords[i]),""); gradient 410 util/outputtxt.c outputFIXED8(gradient->FocalPoint, " FocalPoint: "); gradient 418 util/outputtxt.c _iprintf (" SpreadMode: %d\n", gradient->SpreadMode); gradient 419 util/outputtxt.c _iprintf (" InterpolationMode: %d\n", gradient->InterpolationMode); gradient 420 util/outputtxt.c _iprintf (" NumGradients: %d\n", gradient->NumGradients); gradient 421 util/outputtxt.c for (i = 0; i < gradient->NumGradients; i++) gradient 422 util/outputtxt.c outputSWF_GRADIENTRECORD (&(gradient->GradientRecords[i]),""); gradient 430 util/outputtxt.c _iprintf (" NumGradients: %d\n", gradient->NumGradients); gradient 431 util/outputtxt.c for (i = 0; i < gradient->NumGradients; i++) gradient 432 util/outputtxt.c outputSWF_MORPHGRADIENTRECORD (&(gradient->GradientRecords[i]),""); gradient 417 util/parser.c gradient->SpreadMode = readBits(f, 2); gradient 418 util/parser.c gradient->InterpolationMode = readBits(f, 2); gradient 419 util/parser.c gradient->NumGradients = readBits (f, 4); gradient 420 util/parser.c if(gradient->NumGradients > 15) { gradient 421 util/parser.c fprintf(stderr, "%d gradients in SWF_FOCALGRADIENT, expected a max of 15\n", gradient->NumGradients ); gradient 425 util/parser.c for (i = 0; i < gradient->NumGradients; i++) gradient 426 util/parser.c parseSWF_GRADIENTRECORD (f, &(gradient->GradientRecords[i]), level); gradient 428 util/parser.c gradient->FocalPoint = readUInt16(f); gradient 435 util/parser.c gradient->SpreadMode = readBits(f, 2); gradient 436 util/parser.c gradient->InterpolationMode = readBits(f, 2); gradient 437 util/parser.c gradient->NumGradients = readBits (f, 4); gradient 438 util/parser.c if((gradient->NumGradients > 8 && level < 4) || (gradient->NumGradients > 15 && level == 4)) { gradient 439 util/parser.c fprintf(stderr, "%d gradients in SWF_GRADiENT, expected a max of %d\n", gradient->NumGradients, level<4 ? 8 : 15 ); gradient 443 util/parser.c for (i = 0; i < gradient->NumGradients; i++) gradient 444 util/parser.c parseSWF_GRADIENTRECORD (f, &(gradient->GradientRecords[i]), level); gradient 751 util/parser.c gradient->NumGradients = readUInt8 (f); gradient 752 util/parser.c if( gradient->NumGradients > 8 ) { gradient 753 util/parser.c fprintf(stderr, "%d gradients in SWF_MORPHGRADiENT, expected a max of 8", gradient->NumGradients); gradient 756 util/parser.c for (i = 0; i < gradient->NumGradients; i++) gradient 757 util/parser.c parseSWF_MORPHGRADIENTRECORD (f, &(gradient->GradientRecords[i]));