FIX2INT 357 applications/testapps/svg2bifs/main.c converter->bifs_sg->width = FIX2INT(converter->all_atts.width->value); FIX2INT 362 applications/testapps/svg2bifs/main.c converter->bifs_sg->height = FIX2INT(converter->all_atts.height->value); FIX2INT 129 include/gpac/color.h #define GF_COL_ARGB_FIXED(_a, _r, _g, _b) GF_COL_ARGB(FIX2INT(255*(_a)), FIX2INT(255*(_r)), FIX2INT(255*(_g)), FIX2INT(255*(_b))) FIX2INT 42 include/gpac/internal/mesh.h #define MESH_MAKE_COL(_argb) GF_COL_ARGB(FIX2INT(255*(_argb.alpha)), FIX2INT(255*(_argb.blue)), FIX2INT(255*(_argb.green)), FIX2INT(255*(_argb.red))) FIX2INT 65 include/gpac/internal/mesh.h #define MESH_SET_NORMAL(_vertex, _nor) { SFVec3f_bytes __nor; __nor.x = (s8) FIX2INT(_nor.x*100); __nor.y = (s8) FIX2INT(_nor.y*100); __nor.z = (s8) FIX2INT(_nor.z*100); __nor.__dummy=0; _vertex.normal = __nor; } FIX2INT 325 modules/gdip_raster/gdip_font.cpp glyph->width = FIX2INT(bounds.width); FIX2INT 326 modules/gdip_raster/gdip_font.cpp glyph->height = FIX2INT(bounds.height); FIX2INT 130 modules/osd/osd.c osd->transform->translation.y = INT2FIX( (FIX2INT(event->screen_rect.height) - osd->ct2d->pixelHeight) / 2 ) ; FIX2INT 65 modules/soft_raster/stencil.c end = FIX2INT(gf_mulfix(_this->pos[0], maxPos)); FIX2INT 73 modules/soft_raster/stencil.c start = FIX2INT(gf_mulfix(_this->pos[c], maxPos)); FIX2INT 74 modules/soft_raster/stencil.c end = FIX2INT(gf_mulfix(_this->pos[c+1], maxPos)); FIX2INT 84 modules/soft_raster/stencil.c start = FIX2INT(gf_mulfix(_this->pos[c+0], maxPos)); FIX2INT 242 modules/soft_raster/stencil.c val = FIX2INT(_res); FIX2INT 331 modules/soft_raster/stencil.c pos = FIX2INT(EVGGRADIENTBUFFERSIZE*b); FIX2INT 537 modules/soft_raster/stencil.c x0 = FIX2INT(x); FIX2INT 545 modules/soft_raster/stencil.c y0 = FIX2INT(y); FIX2INT 568 modules/soft_raster/stencil.c tx = FIX2INT(gf_muldiv(x, 255, _this->width) ); FIX2INT 569 modules/soft_raster/stencil.c ty = FIX2INT(gf_muldiv(y, 255, _this->height) ); FIX2INT 663 modules/soft_raster/stencil.c y0 = FIX2INT(y); FIX2INT 668 modules/soft_raster/stencil.c x0 = FIX2INT(x); FIX2INT 705 modules/soft_raster/stencil.c _this->replace_col = GF_COL_ARGB(FIX2INT(_this->cmat.m[18]*255), FIX2INT(_this->cmat.m[4]*255), FIX2INT(_this->cmat.m[9]*255), FIX2INT(_this->cmat.m[14]*255)); FIX2INT 151 src/bifs/quantize.c return FIX2INT(gf_floor( FLT2FIX(_v+0.5) ) ); FIX2INT 113 src/compositor/audio_input.c s32 resync_delay = speed > 0 ? FIX2INT(speed * MAX_RESYNC_TIME) : FIX2INT(-speed * MAX_RESYNC_TIME); FIX2INT 480 src/compositor/audio_mixer.c ratio = (u32) (in->src->samplerate * FIX2INT(255*in->speed) / am->sample_rate); FIX2INT 532 src/compositor/audio_mixer.c *(in->ch_buf[j] + in->out_samples_written) = (s32) (inChan[j] * FIX2INT(100*in->pan[j]) / 100 ); FIX2INT 1044 src/compositor/compositor.c width = FIX2INT(gf_sc_svg_convert_length_to_display(compositor, w) ); FIX2INT 1045 src/compositor/compositor.c } else if ((u32) FIX2INT(vb->width)<compositor->video_out->max_screen_width) { FIX2INT 1046 src/compositor/compositor.c width = FIX2INT(vb->width); FIX2INT 1052 src/compositor/compositor.c height = FIX2INT(gf_sc_svg_convert_length_to_display(compositor, h) ); FIX2INT 1053 src/compositor/compositor.c } else if ((u32) FIX2INT(vb->height)<compositor->video_out->max_screen_height) { FIX2INT 1054 src/compositor/compositor.c height = FIX2INT(vb->height); FIX2INT 728 src/compositor/compositor_2d.c if (clipped_final.width-1>= FIX2INT(final.width) ) clipped_final.width = FIX2INT(final.width); FIX2INT 729 src/compositor/compositor_2d.c if (clipped_final.height-1>= FIX2INT(final.height) ) clipped_final.height = FIX2INT(final.height); FIX2INT 741 src/compositor/compositor_2d.c _v = FIX2INT(tmp); FIX2INT 743 src/compositor/compositor_2d.c _v = FIX2INT(tmp); \ FIX2INT 747 src/compositor/compositor_2d.c _v = FIX2INT(tmp); \ FIX2INT 752 src/compositor/compositor_2d.c _v = FIX2INT(tmp); \ FIX2INT 1272 src/compositor/compositor_2d.c compositor->vp_width = FIX2INT(gf_divfix(INT2FIX(compositor->display_width), scaleX)); FIX2INT 1273 src/compositor/compositor_2d.c compositor->vp_height = FIX2INT(gf_divfix(INT2FIX(compositor->display_height), scaleY)); FIX2INT 587 src/compositor/drawable.c asp->fill_color |= FIX2INT(255 * (m ? (FIX_ONE - m->transparency) : FIX_ONE)) << 24; FIX2INT 681 src/compositor/events.c evt.clientX = evt.screenX = FIX2INT(X); FIX2INT 682 src/compositor/events.c evt.clientY = evt.screenY = FIX2INT(Y); FIX2INT 761 src/compositor/events.c evt.clientX = evt.screenX = FIX2INT(X); FIX2INT 762 src/compositor/events.c evt.clientY = evt.screenY = FIX2INT(Y); FIX2INT 779 src/compositor/events.c evt.clientX = evt.screenX = FIX2INT(X); FIX2INT 780 src/compositor/events.c evt.clientY = evt.screenY = FIX2INT(Y); FIX2INT 714 src/compositor/font_engine.c tw = FIX2INT( gf_ceil(gf_mulfix(scale, bounds.width)) ); FIX2INT 720 src/compositor/font_engine.c th = FIX2INT( gf_ceil(gf_mulfix(scale, bounds.height)) ); FIX2INT 381 src/compositor/mpeg4_background2d.c stack->col_tx[3*i] = FIX2INT(255 * bck->backColor.red); FIX2INT 382 src/compositor/mpeg4_background2d.c stack->col_tx[3*i+1] = FIX2INT(255 * bck->backColor.green); FIX2INT 383 src/compositor/mpeg4_background2d.c stack->col_tx[3*i+2] = FIX2INT(255 * bck->backColor.blue); FIX2INT 136 src/compositor/mpeg4_bitmap.c keyColor.r = FIX2INT(mk->keyColor.red * 255); FIX2INT 137 src/compositor/mpeg4_bitmap.c keyColor.g = FIX2INT(mk->keyColor.green * 255); FIX2INT 138 src/compositor/mpeg4_bitmap.c keyColor.b = FIX2INT(mk->keyColor.blue * 255); FIX2INT 139 src/compositor/mpeg4_bitmap.c keyColor.alpha = FIX2INT( (FIX_ONE - mk->transparency) * 255); FIX2INT 140 src/compositor/mpeg4_bitmap.c keyColor.low = FIX2INT(mk->lowThreshold * 255); FIX2INT 141 src/compositor/mpeg4_bitmap.c keyColor.high = FIX2INT(mk->highThreshold * 255); FIX2INT 169 src/compositor/mpeg4_bitmap.c keyColor.r = FIX2INT(mk->keyColor.red * 255); FIX2INT 170 src/compositor/mpeg4_bitmap.c keyColor.g = FIX2INT(mk->keyColor.green * 255); FIX2INT 171 src/compositor/mpeg4_bitmap.c keyColor.b = FIX2INT(mk->keyColor.blue * 255); FIX2INT 172 src/compositor/mpeg4_bitmap.c keyColor.alpha = FIX2INT( (FIX_ONE - mk->transparency) * 255); FIX2INT 173 src/compositor/mpeg4_bitmap.c keyColor.low = FIX2INT(mk->lowThreshold * 255); FIX2INT 174 src/compositor/mpeg4_bitmap.c keyColor.high = FIX2INT(mk->highThreshold * 255); FIX2INT 737 src/compositor/mpeg4_composite.c ev->mouse.x = FIX2INT( (txcoord.x - FIX_ONE/2) * stack->visual->width + FIX_ONE/2); FIX2INT 738 src/compositor/mpeg4_composite.c ev->mouse.y = FIX2INT( (txcoord.y - FIX_ONE/2) * stack->visual->height + FIX_ONE/2); FIX2INT 178 src/compositor/mpeg4_layer_3d.c w = (u32) FIX2INT(gf_ceil(width)); FIX2INT 179 src/compositor/mpeg4_layer_3d.c h = (u32) FIX2INT(gf_ceil(height)); FIX2INT 720 src/compositor/offscreen_cache.c area_world = FIX2INT(group_bounds.width) * FIX2INT(group_bounds.height); FIX2INT 731 src/compositor/offscreen_cache.c cache_size = FIX2INT(group_bounds.width) * FIX2INT(group_bounds.height) * 4 /* pixelFormat is ARGB*/; FIX2INT 135 src/compositor/svg_filters.c u32 k = FIX2INT(p*N); FIX2INT 245 src/compositor/svg_font.c font->em_size = atts.units_per_em ? FIX2INT( gf_ceil(atts.units_per_em->value) ) : 1000; FIX2INT 250 src/compositor/svg_font.c font->ascent = atts.ascent ? FIX2INT( gf_ceil(atts.ascent->value) ) : 0; FIX2INT 252 src/compositor/svg_font.c font->descent = atts.descent ? FIX2INT( gf_ceil(atts.descent->value) ) : 0; FIX2INT 253 src/compositor/svg_font.c font->baseline = atts.alphabetic ? FIX2INT( gf_ceil(atts.alphabetic->value) ) : 0; FIX2INT 314 src/compositor/svg_font.c font->max_advance_h = atts.horiz_adv_x ? FIX2INT( gf_ceil(atts.horiz_adv_x->value) ) : 0; FIX2INT 397 src/compositor/svg_font.c if (atts.horiz_adv_x) st->glyph.horiz_advance = FIX2INT( gf_ceil(atts.horiz_adv_x->value) ); FIX2INT 401 src/compositor/svg_font.c st->glyph.width = FIX2INT( gf_ceil(rc.width) ); FIX2INT 402 src/compositor/svg_font.c st->glyph.height = FIX2INT( gf_ceil(rc.height) ); FIX2INT 373 src/compositor/svg_media.c ctx->aspect.fill_color = GF_COL_ARGB(FIX2INT(0xFF * tr_state->svg_props->opacity->value), 0, 0, 0); FIX2INT 1659 src/compositor/texturing_gl.c texture[0] = (u8) FIX2INT( 255 * coefficients.vals[0]); FIX2INT 1660 src/compositor/texturing_gl.c texture[1] = (u8) FIX2INT( 255 * coefficients.vals[1]); FIX2INT 1661 src/compositor/texturing_gl.c texture[2] = (u8) FIX2INT( 255 * coefficients.vals[2]); FIX2INT 1664 src/compositor/texturing_gl.c texture[3] = (u8) FIX2INT( 255 * coefficients.vals[3]); FIX2INT 1700 src/compositor/texturing_gl.c tmp = FIX2INT(255 * matte->fraction); FIX2INT 1579 src/compositor/visual_manager_3d_gl.c glViewport(FIX2INT(vp.x), FIX2INT(vp.y), FIX2INT(vp.width), FIX2INT(vp.height)); FIX2INT 1587 src/compositor/visual_manager_3d_gl.c glScissor(FIX2INT(vp->x), FIX2INT(vp->y), FIX2INT(vp->width), FIX2INT(vp->height)); FIX2INT 2918 src/compositor/visual_manager_3d_gl.c glColor4x( FIX2INT(visual->mat_2d.red * 255), FIX2INT(visual->mat_2d.green * 255), FIX2INT(visual->mat_2d.blue * 255), FIX2INT(visual->mat_2d.alpha * 255)); FIX2INT 3585 src/compositor/visual_manager_3d_gl.c u32 factor = FIX2INT(width); FIX2INT 5314 src/laser/lsr_dec.c evt.clientX = FIX2INT(x.value); FIX2INT 5315 src/laser/lsr_dec.c evt.clientY = FIX2INT(y.value); FIX2INT 5330 src/laser/lsr_dec.c com->send_event_x = FIX2INT(x.value); FIX2INT 5331 src/laser/lsr_dec.c com->send_event_y = FIX2INT(y.value); FIX2INT 311 src/laser/lsr_enc.c val = (1<<24) + FIX2INT(fix * 256); FIX2INT 317 src/laser/lsr_enc.c val = FIX2INT(fix*256); FIX2INT 350 src/laser/lsr_enc.c r = FIX2INT(color->red*lsr->color_scale); FIX2INT 351 src/laser/lsr_enc.c g = FIX2INT(color->green*lsr->color_scale); FIX2INT 352 src/laser/lsr_enc.c b = FIX2INT(color->blue*lsr->color_scale); FIX2INT 589 src/laser/lsr_enc.c res = FIX2INT( gf_divfix(x, lsr->res_factor) ); FIX2INT 620 src/laser/lsr_enc.c res = FIX2INT(v) + (1<<lsr->coord_bits); FIX2INT 624 src/laser/lsr_enc.c res = FIX2INT(v); FIX2INT 2002 src/laser/lsr_enc.c val = (v<0) ? FIX2INT(-v) : FIX2INT(v); FIX2INT 4143 src/laser/lsr_enc.c lsr->col_table[lsr->nb_cols].r = FIX2INT(color->red*lsr->color_scale); FIX2INT 4144 src/laser/lsr_enc.c lsr->col_table[lsr->nb_cols].g = FIX2INT(color->green*lsr->color_scale); FIX2INT 4145 src/laser/lsr_enc.c lsr->col_table[lsr->nb_cols].b = FIX2INT(color->blue*lsr->color_scale); FIX2INT 603 src/scene_manager/loader_svg.c if (w->type == SVG_NUMBER_VALUE) svg_w = FIX2INT(w->value); FIX2INT 604 src/scene_manager/loader_svg.c if (h->type == SVG_NUMBER_VALUE) svg_h = FIX2INT(h->value); FIX2INT 1288 src/scene_manager/loader_svg.c parser->command->send_event_x = FIX2INT(pt.x); FIX2INT 1289 src/scene_manager/loader_svg.c parser->command->send_event_y = FIX2INT(pt.y); FIX2INT 142 src/scene_manager/scene_stats.c u32 fixv = FIX2INT((v>0?v:-v) * (1<<16)); FIX2INT 2085 src/scene_manager/swf_bifs.c read->load->ctx->scene_width = FIX2INT(read->width); FIX2INT 2086 src/scene_manager/swf_bifs.c read->load->ctx->scene_height = FIX2INT(read->height); FIX2INT 2614 src/scene_manager/swf_parse.c load->ctx->scene_width = FIX2INT(read->width); FIX2INT 2615 src/scene_manager/swf_parse.c load->ctx->scene_height = FIX2INT(read->height); FIX2INT 518 src/scene_manager/swf_svg.c swf_svg_print(read, "viewBox=\"0 0 %d %d\" ", FIX2INT(read->width), FIX2INT(read->height)); FIX2INT 2530 src/scenegraph/dom_smjs.c *vp = INT_TO_JSVAL(FIX2INT(evt->new_scale) ); FIX2INT 386 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 390 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 412 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 431 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 435 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 555 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 559 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 580 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac * (nbVals-1))); FIX2INT 598 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 602 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 721 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 725 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 745 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 760 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*nbVals)); FIX2INT 764 src/scenegraph/mpeg4_animators.c i = FIX2INT(gf_floor(frac*(nbVals-1))); FIX2INT 223 src/scenegraph/mpeg4_valuator.c p->outSFInt32 = FIX2INT(sf_out.x); FIX2INT 275 src/scenegraph/mpeg4_valuator.c p->outMFInt32.vals[i] = FIX2INT(mf_output->vals[i].x); FIX2INT 295 src/scenegraph/smil_anim.c keyValueIndex = FIX2INT(tmp_floor) - 1; FIX2INT 297 src/scenegraph/smil_anim.c keyValueIndex = FIX2INT(tmp_floor); FIX2INT 306 src/scenegraph/smil_anim.c keyValueIndex = FIX2INT(gf_floor(tmp)); FIX2INT 3728 src/scenegraph/svg_attributes.c r = FIX2INT(255*col->red); FIX2INT 3729 src/scenegraph/svg_attributes.c g = FIX2INT(255*col->green); FIX2INT 3730 src/scenegraph/svg_attributes.c b = FIX2INT(255*col->blue); FIX2INT 5835 src/scenegraph/svg_attributes.c len_a = FIX2INT(alpha * len_a); FIX2INT 5836 src/scenegraph/svg_attributes.c len_b = FIX2INT(beta * len_b); FIX2INT 497 src/scenegraph/vrml_smjs.c i = FIX2INT( gf_floor(hue) ); FIX2INT 218 src/terminal/clock.c if ((ck->speed < 0) && ((s32) ck->init_time < FIX2INT( (-ck->speed * 100) * (time - ck->StartTime)) / 100 ) ) { FIX2INT 221 src/terminal/clock.c time = ck->discontinuity_time + ck->init_time + (time - ck->StartTime) * FIX2INT(100*ck->speed) / 100; FIX2INT 645 src/terminal/media_object.c mo->ms_until_next = FIX2INT(diff * mo->speed); FIX2INT 648 src/terminal/media_object.c mo->ms_until_pres = FIX2INT(diff * mo->speed); FIX2INT 1240 src/terminal/scene.c w = FIX2INT( tx_coord.x * 0xFFFF); FIX2INT 1241 src/terminal/scene.c h = FIX2INT( tx_coord.y * 0xFFFF); FIX2INT 1809 src/utils/color.c *a_ = FIX2INT(_a*255); FIX2INT 1810 src/utils/color.c *r_ = FIX2INT(_r*255); FIX2INT 1811 src/utils/color.c *g_ = FIX2INT(_g*255); FIX2INT 1812 src/utils/color.c *b_ = FIX2INT(_b*255); FIX2INT 1838 src/utils/color.c return GF_COL_ARGB(FIX2INT(_a*255),FIX2INT(_r*255),FIX2INT(_g*255),FIX2INT(_b*255)); FIX2INT 970 src/utils/math.c rc.x = FIX2INT(gf_floor(r->x)); FIX2INT 971 src/utils/math.c rc.y = FIX2INT(gf_ceil(r->y)); FIX2INT 972 src/utils/math.c rc.width = FIX2INT(gf_ceil(r->x + r->width)) - rc.x; FIX2INT 973 src/utils/math.c rc.height = rc.y - FIX2INT(gf_floor(r->y - r->height)); FIX2INT 359 src/utils/path2d.c numPoints = (u32) FIX2INT(GF_2D_DEFAULT_RES * gp->fineness);