Lines Matching refs:bd

3688     BlendDataRec *bd;
3692 bd = f->blend_data;
3693 for (b = bd->blends; b != NULL; b = next_b) {
3697 XtFree((char *) bd->internal_break);
3698 XtFree((char *) bd->internal_value);
3699 XtFree((char *) bd->design_positions);
3700 XtFree((char *) bd);
4521 BlendDataRec *bd;
4530 bd = fsb->fsb.currently_selected_face->blend_data;
4545 bd = f->blend_data;
4548 *num_axes_return = bd->num_axes;
4549 *num_designs_return = bd->num_designs;
4552 (String *) XtMalloc(bd->num_axes * sizeof(String));
4554 (int *) XtMalloc(bd->num_axes * sizeof(int));
4556 for (i = 0; i < bd->num_axes; i++) {
4557 *sbuf++ = bd->name[i];
4558 *ibuf++ = bd->internal_points[i] + 2;
4559 coords += bd->internal_points[i] + 2;
4563 (float *) XtMalloc(bd->num_axes * bd->num_designs * sizeof(float));
4564 for (i = 0; i < bd->num_axes * bd->num_designs; i++) {
4565 *fbuf++ = bd->design_positions[i];
4573 for (i = 0; i < bd->num_axes; i++) {
4574 *ibuf++ = bd->min[i];
4576 for (j = 0; j < bd->internal_points[i]; j++) {
4577 *ibuf++ = bd->internal_break[i][j];
4578 *fbuf++ = bd->internal_value[i][j];
4580 *ibuf++ = bd->max[i];
4619 BlendDataRec *bd;
4631 if ((bd = f->blend_data) == NULL) return False;
4645 for (i = 0; i < bd->num_axes; i++) {
4647 pct[i] = _FSBNormalize(val[i], bd, i);
4652 for (i = 0; i < bd->num_axes; i++) {
4654 val[i] = _FSBUnnormalize(pct[i], bd, i);
4674 newb->font_name = _FSBGenFontName(base_name, val, bd);
4679 lastb = &bd->blends;
4680 for (b = bd->blends; b != NULL; b = b->next) {
4693 b->font_name = _FSBGenFontName(base_name, val, bd);
4701 if (bd->blends == b) {
4702 bd->blends = b->next;
4704 for (newb = bd->blends; newb->next != b; newb = newb->next) {}
4787 BlendDataRec *bd,
4794 if (bd->internal_points[i] == 0) {
4795 return ((float) (val - bd->min[i])) /
4796 ((float) (bd->max[i] - bd->min[i]));
4802 lessBreak = bd->min[i];
4804 moreBreak = bd->max[i];
4807 for (j = 0; j < bd->internal_points[i]; j++) {
4808 if (bd->internal_break[i][j] > lessBreak &&
4809 bd->internal_break[i][j] <= val) {
4810 lessBreak = bd->internal_break[i][j];
4811 lessValue = bd->internal_value[i][j];
4813 if (bd->internal_break[i][j] < moreBreak &&
4814 bd->internal_break[i][j] >= val) {
4815 moreBreak = bd->internal_break[i][j];
4816 moreValue = bd->internal_value[i][j];
4826 int _FSBUnnormalize(val, bd, i)
4828 BlendDataRec *bd;
4835 if (bd->internal_points[i] == 0) {
4836 return val * (bd->max[i] - bd->min[i]) + bd->min[i] + 0.5;
4842 lessBreak = bd->min[i];
4844 moreBreak = bd->max[i];
4847 for (j = 0; j < bd->internal_points[i]; j++) {
4848 if (bd->internal_value[i][j] > lessValue &&
4849 bd->internal_value[i][j] <= val) {
4850 lessBreak = bd->internal_break[i][j];
4851 lessValue = bd->internal_value[i][j];
4853 if (bd->internal_value[i][j] < moreBreak &&
4854 bd->internal_value[i][j] >= val) {
4855 moreBreak = bd->internal_break[i][j];
4856 moreValue = bd->internal_value[i][j];
4869 BlendDataRec *bd)
4878 for (i = 0; i < bd->num_axes; i++) {
4879 sprintf(ch, "_%d_%s", val[i], bd->name[i]);