s 200 avi2swf/v2swf.c int s; s 202 avi2swf/v2swf.c for(s=0;s<video->channels;s++) s 203 avi2swf/v2swf.c a += tmp[t*video->channels+s]; s 221 avi2swf/v2swf.c int s; s 164 lib/MD5.c *s++ = itoa64[v&0x3f]; s 337 lib/MD5.c #define SHIFT(X, s) (((X) << (s)) | ((X) >> (32 - (s)))) s 346 lib/MD5.c (a) = SHIFT((a), (s)); \ s 352 lib/MD5.c (a) = SHIFT((a), (s)); \ s 358 lib/MD5.c (a) = SHIFT((a), (s)); \ s 364 lib/MD5.c (a) = SHIFT((a), (s)); \ s 121 lib/action/compile.c if(strcmp(s, constants[i]) == 0) s 126 lib/action/compile.c if ( sizeConstants+strlen(s)+1 > MAXCONSTANTPOOLSIZE ) return -1; s 130 lib/action/compile.c constants[nConstants] = strdup(s); s 131 lib/action/compile.c sizeConstants += (strlen(s)+1); s 537 lib/action/compile.c while(*s) s 539 lib/action/compile.c *s = tolower(*s); s 540 lib/action/compile.c ++s; s 2630 lib/action/lex.swf4.c for ( n = 0; s[n]; ++n ) s 3005 lib/action/lex.swf5.c for ( n = 0; s[n]; ++n ) s 21 lib/action/listaction.c va_start(ap, s); s 22 lib/action/listaction.c vprintf(s, ap); s 70 lib/args.h int s=1; s 74 lib/args.h if(argv2[t][s+1]) { s 75 lib/args.h buf[0] = argv2[t][s]; s 76 lib/args.h ret = args_callback_option(buf,&argv2[t][s+1]); s 79 lib/args.h t+= args_callback_option(&argv2[t][s], next); s 82 lib/args.h s++; s 52 lib/as3/abc.c char*s = multiname_tostring(l->multiname); s 53 lib/as3/abc.c fprintf(fo, "%s", s); s 54 lib/as3/abc.c free(s); s 56 lib/as3/abc.c s = constant_tostring(o->constant); s 58 lib/as3/abc.c fprintf(fo, "%s", s); s 59 lib/as3/abc.c free(s); s 82 lib/as3/abc.c int s; s 85 lib/as3/abc.c for(s=0;s<num;s++) { s 341 lib/as3/abc.c abc_script_t* s = malloc(sizeof(abc_script_t)); s 342 lib/as3/abc.c s->method = m; s 343 lib/as3/abc.c s->traits = list_new(); s 344 lib/as3/abc.c s->file = file; s 345 lib/as3/abc.c array_append(file->scripts, NO_KEY, s); s 346 lib/as3/abc.c return s; s 484 lib/as3/abc.c int s; s 485 lib/as3/abc.c for(s=0;s<num;s++) { s 510 lib/as3/abc.c int s, num = swf_GetU30(tag); s 511 lib/as3/abc.c for(s=0;s<num;s++) swf_GetU30(tag); s 524 lib/as3/abc.c int s; s 635 lib/as3/abc.c int s; s 637 lib/as3/abc.c for(s=0;s<items->num;s++) { s 638 lib/as3/abc.c fprintf(fo, "%s# %s=%s\n", prefix, (char*)array_getkey(items, s), (char*)array_getvalue(items,s)); s 654 lib/as3/abc.c char*s = namespace_tostring(cls->protectedNS); s 655 lib/as3/abc.c fprintf(fo, "protectedNS(%s) ", s); s 656 lib/as3/abc.c free(s); s 672 lib/as3/abc.c char*s = multiname_tostring(ilist->multiname); s 673 lib/as3/abc.c fprintf(fo, " %s", s); s 674 lib/as3/abc.c free(s); s 706 lib/as3/abc.c abc_script_t*s = (abc_script_t*)array_getvalue(file->scripts, t); s 707 lib/as3/abc.c dump_method(fo, prefix, "", "initmethod", "init", s->method, file, methods_seen); s 708 lib/as3/abc.c traits_dump(fo, prefix, s->traits, file, methods_seen); s 761 lib/as3/abc.c int s; s 762 lib/as3/abc.c for(s=0;s<param_count;s++) { s 785 lib/as3/abc.c int s; s 786 lib/as3/abc.c for(s=0;s<num;s++) { s 825 lib/as3/abc.c int s; s 828 lib/as3/abc.c for(s=0;s<inum;s++) { s 881 lib/as3/abc.c int s; s 883 lib/as3/abc.c for(s=0;s<exception_count;s++) { s 924 lib/as3/abc.c int s; s 925 lib/as3/abc.c for(s=0;s<num_interfaces;s++) { s 943 lib/as3/abc.c abc_script_t*s = malloc(sizeof(abc_script_t)); s 944 lib/as3/abc.c memset(s, 0, sizeof(abc_script_t)); s 945 lib/as3/abc.c s->method = m; s 946 lib/as3/abc.c s->traits = traits_parse(tag, pool, file); s 947 lib/as3/abc.c array_append(file->scripts, NO_KEY, s); s 1064 lib/as3/abc.c int s; s 1106 lib/as3/abc.c int s; s 1107 lib/as3/abc.c for(s=0;s<items->num;s++) { s 1108 lib/as3/abc.c int i1 = pool_register_string(pool, array_getkey(items, s)); s 1109 lib/as3/abc.c int i2 = pool_register_string(pool, array_getvalue(items, s)); s 1153 lib/as3/abc.c abc_script_t*s = (abc_script_t*)array_getvalue(file->scripts, t); s 1154 lib/as3/abc.c if(!s->method->body || !s->method->body->code) { s 1157 lib/as3/abc.c swf_SetU30(tag, s->method->index); //!=t! s 1158 lib/as3/abc.c traits_write(pool, tag, s->traits); s 1246 lib/as3/abc.c int s; s 1247 lib/as3/abc.c for(s=0;s<items->num;s++) { s 1248 lib/as3/abc.c free(array_getvalue(items, s)); s 1309 lib/as3/abc.c abc_script_t*s = (abc_script_t*)array_getvalue(file->scripts, t); s 1310 lib/as3/abc.c traits_free(s->traits);s->traits=0; s 1311 lib/as3/abc.c free(s); s 334 lib/as3/code.c string_t s = pool_lookup_string2(pool, swf_GetU30(tag)); s 335 lib/as3/code.c data = string_dup3(&s); s 995 lib/as3/code.c char*s = string_escape((string_t*)data); s 996 lib/as3/code.c fprintf(fo, "\"%s\"", s); s 997 lib/as3/code.c free(s); s 1062 lib/as3/code.c free(s); s 135 lib/as3/compiler.c scheduled_file_t*s = scheduled; s 137 lib/as3/compiler.c while(s) { s 138 lib/as3/compiler.c scheduled_file_t*old = s; s 139 lib/as3/compiler.c as3_parse_file_or_array(s->name, s->filename, 0,0); s 140 lib/as3/compiler.c s = s->next; s 273 lib/as3/compiler.c int s=0; s 274 lib/as3/compiler.c while(dirname[s]) { s 275 lib/as3/compiler.c if(dirname[s]=='.') s 276 lib/as3/compiler.c dirname[s] = path_seperator; s 277 lib/as3/compiler.c s++; s 295 lib/as3/compiler.c int s=0,t=0; s 296 lib/as3/compiler.c while(package[s]) { s 297 lib/as3/compiler.c if(package[s]=='.') s 300 lib/as3/compiler.c filename[t++] = package[s]; s 301 lib/as3/compiler.c s++; s 281 lib/as3/expr.c case CONSTANT_STRING: t.c = abc_pushstring2(0, v->s);t.t = TYPE_STRING;break; s 308 lib/as3/expr.c case CONSTANT_STRING: return atoi(c->s->str); s 321 lib/as3/expr.c case CONSTANT_STRING: return atof(c->s->str); s 364 lib/as3/expr.c int l1 = left.s->len; s 366 lib/as3/expr.c char*s = malloc(l1+l2+1); s 367 lib/as3/expr.c memcpy(s, left.s->str, l1); s 368 lib/as3/expr.c memcpy(s+l1, add, l2); s 369 lib/as3/expr.c s[l1+l2]=0; s 371 lib/as3/expr.c r.s = malloc(sizeof(string_t)); s 372 lib/as3/expr.c r.s->str = s; s 373 lib/as3/expr.c r.s->len = l1+l2; s 2589 lib/as3/expr.c c = abc_pushstring2(0,v->s); s 2750 lib/as3/expr.c return mkconstnode(constant_new_string(s)); s 2887 lib/as3/expr.c char*s = constant_tostring(n->value); s 2888 lib/as3/expr.c fprintf(fi, "%s%s (%s)\n", p1, n->type->name, s); s 2889 lib/as3/expr.c free(s); s 126 lib/as3/files.c char*s = n; s 129 lib/as3/files.c while(*s) { s 133 lib/as3/files.c if(*s>='A' && *s<='Z') s 134 lib/as3/files.c *s += 'a'-'A'; s 135 lib/as3/files.c s++; s 155 lib/as3/files.c const char*s=path; s 158 lib/as3/files.c while(*s) { s 159 lib/as3/files.c if(init && s[0] == '.' && (s[1]==path_seperator || s[1]=='\0')) { s 160 lib/as3/files.c if(!s[1]) break; s 161 lib/as3/files.c s+=2; s 165 lib/as3/files.c if(init && s[0] == '.' && s[1] == '.' && (s[2] == path_seperator || s[2]=='\0')) { s 175 lib/as3/files.c if(!s[2]) break; s 176 lib/as3/files.c s+=3; s 181 lib/as3/files.c *d = *s; s 182 lib/as3/files.c if(*s==path_seperator) init=1; s 184 lib/as3/files.c d++;s++; s 276 lib/as3/import.c namespace_list_t*s = n->namespace_set->namespaces; s 277 lib/as3/import.c while(s) { s 278 lib/as3/import.c c = (classinfo_t*)registry_find(s->namespace->name, n->name); s 281 lib/as3/import.c s = s->next; s 364 lib/as3/import.c memberinfo_t*s = 0; s 366 lib/as3/import.c s = (memberinfo_t*)methodinfo_register_onclass(c, access, ns, name, is_static); s 367 lib/as3/import.c s->return_type = resolve_class(filename, "return type", trait->method->return_type); s 370 lib/as3/import.c s = (memberinfo_t*)varinfo_register_onclass(c, access, ns, name, is_static); s 371 lib/as3/import.c s->type = resolve_class(filename, "type", trait->type_name); s 374 lib/as3/import.c s = (memberinfo_t*)varinfo_register_onclass(c, access, ns, name, is_static); s 375 lib/as3/import.c s->type = resolve_class(filename, "type", trait->method->return_type); s 386 lib/as3/import.c s = (memberinfo_t*)v; s 395 lib/as3/import.c s->flags = is_static?FLAG_STATIC:0; s 396 lib/as3/import.c s->flags |= FLAG_BUILTIN; s 397 lib/as3/import.c s->parent = c; s 221 lib/as3/initcode.c classinfo_t*s = cls->superclass; s 225 lib/as3/initcode.c while(s) { s 228 lib/as3/initcode.c s = s->superclass; s 229 lib/as3/initcode.c if(!s) s 232 lib/as3/initcode.c multiname_t*s2 = sig2mname(s); s 237 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 299 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 814 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 965 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 982 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 994 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 1006 lib/as3/opcodes.c self->data[0] = string_dup3(s); s 124 lib/as3/opcodes.h #define debugfile2(method,s) (method->code = abc_debugfile2(method->code,s)) s 157 lib/as3/opcodes.h #define dxns2(method,s) (method->code = abc_dxns2(method->code,s)) s 424 lib/as3/opcodes.h #define pushstring2(method,s) (method->code = abc_pushstring2(method->code,s)) s 508 lib/as3/opcodes.h #define __pushpackage__2(method,s) (method->code = abc___pushpackage__2(method->code,s)) s 517 lib/as3/opcodes.h #define __fallthrough__2(method,s) (method->code = abc___fallthrough__2(method->code,s)) s 523 lib/as3/opcodes.h #define __continue__2(method,s) (method->code = abc___continue__2(method->code,s)) s 529 lib/as3/opcodes.h #define __break__2(method,s) (method->code = abc___break__2(method->code,s)) s 299 lib/as3/parser.tab.c syntaxerror("%s", s); s 509 lib/as3/parser.tab.c NEW(state_t, s); s 512 lib/as3/parser.tab.c memcpy(s, state, sizeof(state_t)); //shallow copy s 513 lib/as3/parser.tab.c if(!s->imports) { s 514 lib/as3/parser.tab.c s->imports = dict_new(); s 516 lib/as3/parser.tab.c if(!s->import_toplevel_packages) { s 517 lib/as3/parser.tab.c s->import_toplevel_packages = dict_new(); s 519 lib/as3/parser.tab.c state = s; s 660 lib/as3/parser.tab.c if(s->method->no_variable_scoping) { s 661 lib/as3/parser.tab.c return dict_lookup(s->method->allvars, name); s 663 lib/as3/parser.tab.c state_t*top = s; s 664 lib/as3/parser.tab.c while(s) { s 666 lib/as3/parser.tab.c v = dict_lookup(s->vars, name); s 668 lib/as3/parser.tab.c if(s->new_vars) break; s 669 lib/as3/parser.tab.c s = s->old; s 683 lib/as3/parser.tab.c variable_t* v = find_variable(s, name); s 802 lib/as3/parser.tab.c code_t*s = code_start(e); s 803 lib/as3/parser.tab.c s->prev = x->prev; s 805 lib/as3/parser.tab.c x->prev->next = s; s 936 lib/as3/parser.tab.c state_t*s = state; s 937 lib/as3/parser.tab.c while(s) { s 938 lib/as3/parser.tab.c const char*url = dict_lookup(s->namespaces, name); s 941 lib/as3/parser.tab.c s = s->old; s 2047 lib/as3/parser.tab.c char* s = strdup(package); s 2049 lib/as3/parser.tab.c dict_put(state->import_toplevel_packages, s, 0); s 2050 lib/as3/parser.tab.c char*x = strrchr(s, '.'); s 2055 lib/as3/parser.tab.c free(s); s 5896 lib/as3/parser.tab.c slotinfo_t*s = registry_find(state->package, (yyvsp[(2) - (2)].id)); s 5897 lib/as3/parser.tab.c if(!s && as3_pass==1) {as3_schedule_class(state->package, (yyvsp[(2) - (2)].id));} s 5914 lib/as3/parser.tab.c slotinfo_t*s = registry_find((yyvsp[(2) - (2)].classinfo)->package, (yyvsp[(2) - (2)].classinfo)->name); s 5915 lib/as3/parser.tab.c if(!s && as3_pass==1) { s 7172 lib/as3/parser.tab.c slotinfo_t*s = find_class((yyvsp[(1) - (1)].id)); s 7173 lib/as3/parser.tab.c if(!s) syntaxerror("Could not find class/method %s (current package: %s)\n", (yyvsp[(1) - (1)].id), state->package); s 7174 lib/as3/parser.tab.c (yyval.classinfo) = (classinfo_t*)s; s 7175 lib/as3/parser.tab.c registry_use(s); s 7195 lib/as3/parser.tab.c slotinfo_t*s = registry_find((yyvsp[(1) - (3)].id), (yyvsp[(3) - (3)].id)); s 7196 lib/as3/parser.tab.c if(!s) syntaxerror("Couldn't find class/method %s.%s\n", (yyvsp[(1) - (3)].id), (yyvsp[(3) - (3)].id)); s 7198 lib/as3/parser.tab.c (yyval.classinfo) = (classinfo_t*)s; s 7199 lib/as3/parser.tab.c registry_use(s); s 8986 lib/as3/parser.tab.c varinfo_t*s = (varinfo_t*)(yyvsp[(3) - (3)].classinfo); s 8987 lib/as3/parser.tab.c if(s->kind == INFOTYPE_UNRESOLVED) { s 8988 lib/as3/parser.tab.c s = (varinfo_t*)registry_resolve((slotinfo_t*)s); s 8989 lib/as3/parser.tab.c if(!s) s 8993 lib/as3/parser.tab.c if(!s || s->kind != INFOTYPE_VAR) s 8994 lib/as3/parser.tab.c syntaxerror("%s.%s is not a public namespace (%d)", (yyvsp[(3) - (3)].classinfo)->package, (yyvsp[(3) - (3)].classinfo)->name, s?s->kind:-1); s 8995 lib/as3/parser.tab.c if(!s->value || !NS_TYPE(s->value->type)) s 8998 lib/as3/parser.tab.c const char*url = s->value->ns->name; s 139 lib/as3/pool.c unsigned const char*s=(unsigned const char*)str; s 140 lib/as3/pool.c while(*s) { s 141 lib/as3/pool.c if(*s<10) { s 143 lib/as3/pool.c } else if(*s<32) { s 145 lib/as3/pool.c } else if(*s<127) { s 150 lib/as3/pool.c s++; s 154 lib/as3/pool.c s=(unsigned const char*)str; s 155 lib/as3/pool.c while(*s) { s 156 lib/as3/pool.c if(*s<9) { s 157 lib/as3/pool.c dest+=sprintf(dest, "\\%d", *s); s 158 lib/as3/pool.c } else if(*s<32) { s 159 lib/as3/pool.c if(*s==13) s 161 lib/as3/pool.c else if(*s==10) s 163 lib/as3/pool.c else if(*s==9) s 166 lib/as3/pool.c dest+=sprintf(dest, "\\%2o", *s); s 167 lib/as3/pool.c } else if(*s<127) { s 168 lib/as3/pool.c *dest++=*s; s 170 lib/as3/pool.c dest+=sprintf(dest, "\\x%02x", *s); s 172 lib/as3/pool.c s++; s 185 lib/as3/pool.c char*s = escape_string(ns->name); s 186 lib/as3/pool.c char*string = (char*)malloc(strlen(access)+strlen(s)+7); s 187 lib/as3/pool.c if(!s) s 189 lib/as3/pool.c else if(!*s) s 192 lib/as3/pool.c sprintf(string, "[%s]%s", access, s); s 193 lib/as3/pool.c free(s); s 360 lib/as3/pool.c char*s = namespace_tostring(lns->namespace); s 361 lib/as3/pool.c l += strlen(s)+1; s 362 lib/as3/pool.c free(s); s 369 lib/as3/pool.c char*s = namespace_tostring(lns->namespace); s 370 lib/as3/pool.c strcat(desc, s); s 371 lib/as3/pool.c free(s); s 553 lib/as3/pool.c char*s = namespace_set_tostring(m->namespace_set); s 554 lib/as3/pool.c mname = malloc(strlen(s)+namelen+16); s 559 lib/as3/pool.c strcat(mname, s); s 562 lib/as3/pool.c free(s); s 564 lib/as3/pool.c char*s = namespace_set_tostring(m->namespace_set); s 565 lib/as3/pool.c mname = malloc(strlen(s)+16); s 570 lib/as3/pool.c strcat(mname,s); s 571 lib/as3/pool.c free(s); s 667 lib/as3/pool.c c->s = string_new4(s); s 674 lib/as3/pool.c c->s = string_new3(s, len); s 718 lib/as3/pool.c c->s = string_dup3(other->s); s 740 lib/as3/pool.c string_t s = pool_lookup_string2(pool, index); s 741 lib/as3/pool.c c->s = string_dup3(&s); s 768 lib/as3/pool.c return strdup_n(c->s->str,c->s->len); s 806 lib/as3/pool.c return pool_register_string2(pool, c->s); s 823 lib/as3/pool.c string_free(c->s); s 890 lib/as3/pool.c string_t s = string_new2(str); s 891 lib/as3/pool.c int pos = array_append_or_increase(pool->x_strings, &s); s 897 lib/as3/pool.c if(!s || !s->str) return 0; s 898 lib/as3/pool.c int pos = array_append_or_increase(pool->x_strings, s); s 967 lib/as3/pool.c char*s = namespace_tostring(ns); s 968 lib/as3/pool.c fprintf(stderr, "Couldn't find namespace \"%s\" %08x in constant pool\n", s, (int)ns); s 969 lib/as3/pool.c free(s); s 980 lib/as3/pool.c char*s = namespace_set_tostring(set); s 981 lib/as3/pool.c fprintf(stderr, "Couldn't find namespace_set \"%s\" in constant pool\n", s); s 982 lib/as3/pool.c free(s); s 991 lib/as3/pool.c string_t s = string_new2(str); s 992 lib/as3/pool.c int i = array_find(pool->x_strings, &s); s 1005 lib/as3/pool.c char*s = multiname_tostring(name); s 1006 lib/as3/pool.c fprintf(stderr, "Couldn't find multiname \"%s\" in constant pool\n", s); s 1007 lib/as3/pool.c free(s); s 1030 lib/as3/pool.c string_t*s = array_getkey(pool->x_strings, i); s 1031 lib/as3/pool.c if(!s) return 0; s 1032 lib/as3/pool.c return s->str; s 1036 lib/as3/pool.c string_t*s = array_getkey(pool->x_strings, i); s 1037 lib/as3/pool.c return *s; s 1122 lib/as3/pool.c string_t s = string_new((char*)&tag->data[tag->pos], len); s 1124 lib/as3/pool.c array_append(pool->x_strings, &s, 0); s 1144 lib/as3/pool.c int s; s 1147 lib/as3/pool.c for(s=0;s<count;s++) { s 1240 lib/as3/pool.c char*s = namespace_tostring(ns); s 1242 lib/as3/pool.c if(flags&1) fprintf(fo, "%5d %d) %s\n", freq, t, s); s 1243 lib/as3/pool.c free(s); s 1248 lib/as3/pool.c char*s = namespace_set_tostring(set); s 1250 lib/as3/pool.c if(flags&1) fprintf(fo, "%5d %d) %s\n", freq, t, s); s 1251 lib/as3/pool.c free(s); s 1257 lib/as3/pool.c char*s = multiname_tostring(m); s 1259 lib/as3/pool.c if(flags&1) fprintf(fo, "%5d %d) %s\n", freq, t, s); s 1260 lib/as3/pool.c free(s); s 91 lib/as3/pool.h string_t* s; s 89 lib/as3/registry.c if(!s) return; s 90 lib/as3/registry.c if(!(s->flags&FLAG_USED)) { s 91 lib/as3/registry.c s->flags |= FLAG_USED; s 92 lib/as3/registry.c if(s->kind == INFOTYPE_CLASS) { s 93 lib/as3/registry.c classinfo_t*c=(classinfo_t*)s; s 106 lib/as3/registry.c } else if(s->kind == INFOTYPE_METHOD) { s 107 lib/as3/registry.c methodinfo_t*m=(methodinfo_t*)s; s 111 lib/as3/registry.c } else if(s->kind == INFOTYPE_VAR) { s 112 lib/as3/registry.c varinfo_t*v=(varinfo_t*)s; s 132 lib/as3/registry.c unresolvedinfo_t*s = (unresolvedinfo_t*)_s; s 134 lib/as3/registry.c if(s->package) s 135 lib/as3/registry.c return registry_find(s->package, s->name); s 137 lib/as3/registry.c namespace_list_t*l = s->nsset; s 139 lib/as3/registry.c slotinfo_t* n = registry_find(l->namespace->name, s->name); s 149 lib/as3/registry.c list_append(unresolved, s); s 329 lib/as3/registry.c classinfo_t*s = cls; s 332 lib/as3/registry.c s = s->superclass; s 334 lib/as3/registry.c while(s) { s 335 lib/as3/registry.c if(s->kind == INFOTYPE_UNRESOLVED) s 339 lib/as3/registry.c m = (slotinfo_t*)dict_lookup(&s->members, &tmp); s 342 lib/as3/registry.c m = (slotinfo_t*)dict_lookup(&s->static_members, &tmp); s 345 lib/as3/registry.c s = s->superclass; s 350 lib/as3/registry.c classinfo_t*s = cls->interfaces[t]; s 351 lib/as3/registry.c if(s->kind != INFOTYPE_UNRESOLVED) { s 352 lib/as3/registry.c while(s) { s 354 lib/as3/registry.c m = (slotinfo_t*)dict_lookup(&s->members, &tmp); s 357 lib/as3/registry.c m = (slotinfo_t*)dict_lookup(&s->static_members, &tmp); s 360 lib/as3/registry.c s = s->superclass; s 563 lib/as3/registry.c if(s->kind == INFOTYPE_CLASS) return "class"; s 564 lib/as3/registry.c else if(s->kind == INFOTYPE_VAR) return "var"; s 565 lib/as3/registry.c else if(s->kind == INFOTYPE_METHOD) return "function"; s 571 lib/as3/registry.c if(s->package[0]) { s 572 lib/as3/registry.c printf("%s %s.%s", infotypename(s), s->package, s->name); s 574 lib/as3/registry.c printf("%s %s", infotypename(s), s->name); s 576 lib/as3/registry.c if(s->kind == INFOTYPE_CLASS) { s 577 lib/as3/registry.c classinfo_t*c = (classinfo_t*)s; s 579 lib/as3/registry.c else if(s->kind == INFOTYPE_VAR) { s 580 lib/as3/registry.c varinfo_t*v = (varinfo_t*)s; s 587 lib/as3/registry.c else if(s->kind == INFOTYPE_METHOD) { s 588 lib/as3/registry.c methodinfo_t*m = (methodinfo_t*)s; s 219 lib/as3/scripts.c multiname_t*s = multiname_fromstring(buttonname); s 228 lib/as3/scripts.c abc_script_t*s = abc_initscript(file); s 229 lib/as3/scripts.c c = s->method->body; s 266 lib/as3/scripts.c abc_initscript_addClassTrait(s, classname, cls); s 282 lib/as3/scripts.c abc_script_t*s = abc_initscript(file); s 283 lib/as3/scripts.c code_t*c = s->method->body->code; s 294 lib/as3/scripts.c s->method->body->code = c; s 296 lib/as3/scripts.c abc_initscript_addClassTrait(s, multiname_fromstring(fontname), cls); s 1718 lib/as3/tokenizer.yy.c while(s<end) { s 1719 lib/as3/tokenizer.yy.c if(*s!='\\') { s 1720 lib/as3/tokenizer.yy.c if(o) o[len] = *s;len++; s 1721 lib/as3/tokenizer.yy.c s++; s 1724 lib/as3/tokenizer.yy.c s++; //skip past '\' s 1725 lib/as3/tokenizer.yy.c if(s==end) syntaxerror("invalid \\ at end of string"); s 1728 lib/as3/tokenizer.yy.c if(*s=='\r') { s 1729 lib/as3/tokenizer.yy.c s++; s 1730 lib/as3/tokenizer.yy.c if(s==end) break; s 1731 lib/as3/tokenizer.yy.c if(*s=='\n') s 1732 lib/as3/tokenizer.yy.c s++; s 1735 lib/as3/tokenizer.yy.c if(*s=='\n') { s 1736 lib/as3/tokenizer.yy.c s++; s 1739 lib/as3/tokenizer.yy.c switch(*s) { s 1740 lib/as3/tokenizer.yy.c case '\\': if(o) o[len] = '\\';s++;len++; break; s 1741 lib/as3/tokenizer.yy.c case '"': if(o) o[len] = '"';s++;len++; break; s 1742 lib/as3/tokenizer.yy.c case '\'': if(o) o[len] = '\'';s++;len++; break; s 1743 lib/as3/tokenizer.yy.c case 'b': if(o) o[len] = '\b';s++;len++; break; s 1744 lib/as3/tokenizer.yy.c case 'f': if(o) o[len] = '\f';s++;len++; break; s 1745 lib/as3/tokenizer.yy.c case 'n': if(o) o[len] = '\n';s++;len++; break; s 1746 lib/as3/tokenizer.yy.c case 'r': if(o) o[len] = '\r';s++;len++; break; s 1747 lib/as3/tokenizer.yy.c case 't': if(o) o[len] = '\t';s++;len++; break; s 1751 lib/as3/tokenizer.yy.c while(strchr("01234567", *s) && nr<3 && s<end) { s 1753 lib/as3/tokenizer.yy.c num |= *s-'0'; s 1755 lib/as3/tokenizer.yy.c s++; s 1766 lib/as3/tokenizer.yy.c if(*s == 'u') { s 1770 lib/as3/tokenizer.yy.c s++; s 1771 lib/as3/tokenizer.yy.c if(s==end) syntaxerror("invalid \\u or \\x at end of string"); s 1772 lib/as3/tokenizer.yy.c if(*s == '{') { s 1773 lib/as3/tokenizer.yy.c s++; s 1774 lib/as3/tokenizer.yy.c if(s==end) syntaxerror("invalid \\u{ at end of string"); s 1779 lib/as3/tokenizer.yy.c while(strchr("0123456789abcdefABCDEF", *s) && (bracket || nr < max) && s<end) { s 1781 lib/as3/tokenizer.yy.c if(*s>='0' && *s<='9') num |= *s - '0'; s 1782 lib/as3/tokenizer.yy.c if(*s>='a' && *s<='f') num |= *s - 'a' + 10; s 1783 lib/as3/tokenizer.yy.c if(*s>='A' && *s<='F') num |= *s - 'A' + 10; s 1785 lib/as3/tokenizer.yy.c s++; s 1788 lib/as3/tokenizer.yy.c if(*s=='}' && s<end) { s 1789 lib/as3/tokenizer.yy.c s++; s 1809 lib/as3/tokenizer.yy.c o[len+1] = *s; s 1811 lib/as3/tokenizer.yy.c s++; s 1823 lib/as3/tokenizer.yy.c const char*s = in; s 1826 lib/as3/tokenizer.yy.c int len = do_unescape(s, end, 0); s 1828 lib/as3/tokenizer.yy.c do_unescape(s, end, n); s 1835 lib/as3/tokenizer.yy.c a3_lval.str.str = s+9; // <![CDATA[ s 1843 lib/as3/tokenizer.yy.c a3_lval.str.str = strdup_n(s, a3_lval.str.len); s 1848 lib/as3/tokenizer.yy.c if(s[0]=='"') { s 1849 lib/as3/tokenizer.yy.c if(s[len-1]!='"') syntaxerror("String doesn't end with '\"'"); s 1850 lib/as3/tokenizer.yy.c s++;len-=2; s 1852 lib/as3/tokenizer.yy.c else if(s[0]=='\'') { s 1853 lib/as3/tokenizer.yy.c if(s[len-1]!='\'') syntaxerror("String doesn't end with '\"'"); s 1854 lib/as3/tokenizer.yy.c s++;len-=2; s 1858 lib/as3/tokenizer.yy.c a3_lval.str = string_unescape(s, len); s 1875 lib/as3/tokenizer.yy.c char*s = numberbuf; s 1876 lib/as3/tokenizer.yy.c memcpy(s, as3_text, as3_leng); s 1877 lib/as3/tokenizer.yy.c s[as3_leng]=0; s 1878 lib/as3/tokenizer.yy.c return s; s 1894 lib/as3/tokenizer.yy.c char*s = nrbuf(); s 1895 lib/as3/tokenizer.yy.c a3_lval.number_float = atof(s); s 1901 lib/as3/tokenizer.yy.c char*s = nrbuf(); s 1908 lib/as3/tokenizer.yy.c as3_softwarning("integer overflow: %s (converted to Number)", s); s 1915 lib/as3/tokenizer.yy.c as3_softwarning("integer overflow: %s (converted to Number)", s); s 1923 lib/as3/tokenizer.yy.c int v = atoi(s); s 1967 lib/as3/tokenizer.yy.c char*s = nrbuf(); s 1968 lib/as3/tokenizer.yy.c syntaxerror("integer overflow %s", s); s 1982 lib/as3/tokenizer.yy.c char*s = nrbuf(); s 1983 lib/as3/tokenizer.yy.c as3_softwarning("integer overflow: %s (converted to Number)", s); s 1987 lib/as3/tokenizer.yy.c char*s = nrbuf(); s 1988 lib/as3/tokenizer.yy.c as3_softwarning("integer overflow: %s (converted to Number)", s); s 2007 lib/as3/tokenizer.yy.c char*s = malloc(t+1); s 2008 lib/as3/tokenizer.yy.c memcpy(s, as3_text, t); s 2009 lib/as3/tokenizer.yy.c s[t]=0; s 2010 lib/as3/tokenizer.yy.c a3_lval.id = s; s 2015 lib/as3/tokenizer.yy.c char*s = malloc(as3_leng); s 2017 lib/as3/tokenizer.yy.c memcpy(s, as3_text+1, len); s 2018 lib/as3/tokenizer.yy.c s[len] = 0; s 2021 lib/as3/tokenizer.yy.c if(s[t]=='/') { s 2022 lib/as3/tokenizer.yy.c s[t] = 0; s 2026 lib/as3/tokenizer.yy.c a3_lval.regexp.pattern = s; s 2030 lib/as3/tokenizer.yy.c a3_lval.regexp.options = s+t+1; s 2057 lib/as3/tokenizer.yy.c char*s = malloc(as3_leng+1); s 2058 lib/as3/tokenizer.yy.c memcpy(s, as3_text, as3_leng); s 2059 lib/as3/tokenizer.yy.c s[as3_leng]=0; s 2060 lib/as3/tokenizer.yy.c a3_lval.id = s; s 4086 lib/as3/tokenizer.yy.c for ( n = 0; s[n]; ++n ) s 4153 lib/as3/tokenizer.yy.c char*s = malloc(v.str.len+10); s 4154 lib/as3/tokenizer.yy.c strcpy(s, "<string>"); s 4155 lib/as3/tokenizer.yy.c memcpy(s+8, v.str.str, v.str.len); s 4156 lib/as3/tokenizer.yy.c sprintf(s+8+v.str.len, " (%d bytes)", v.str.len); s 4157 lib/as3/tokenizer.yy.c return s; s 4160 lib/as3/tokenizer.yy.c char*s = malloc(strlen(v.regexp.pattern)+10); s 4161 lib/as3/tokenizer.yy.c sprintf(s, "<regexp>%s", v.regexp.pattern); s 4162 lib/as3/tokenizer.yy.c return s; s 4165 lib/as3/tokenizer.yy.c char*s = malloc(strlen(v.id)+10); s 4166 lib/as3/tokenizer.yy.c sprintf(s, "<ID>%s", v.id); s 4167 lib/as3/tokenizer.yy.c return s; s 807 lib/bitio.c int l = strlen(s); s 809 lib/bitio.c w->write(w, (void*)s, l); s 474 lib/devices/record.c char*s = reader_readString(r); s 478 lib/devices/record.c state->last_string[id] = strdup(s); s 479 lib/devices/record.c return s; s 792 lib/devices/record.c char* s = reader_readString(r); s 793 lib/devices/record.c out->drawlink(out,line,s); s 795 lib/devices/record.c free(s); s 912 lib/devices/record.c int s,p=((t)&15)+1; s 914 lib/devices/record.c for(s=p-1;s<16;s++) { s 954 lib/devices/record.c state_t*s = &i->state; s 956 lib/devices/record.c msg("<notice> %4.1f%% matrices (%d bytes)", s->size_matrices*100.0/total, s->size_matrices); s 957 lib/devices/record.c msg("<notice> %4.1f%% positions (%d bytes)", s->size_positions*100.0/total, s->size_positions); s 958 lib/devices/record.c msg("<notice> %4.1f%% colors (%d bytes)", s->size_colors*100.0/total, s->size_colors); s 959 lib/devices/record.c msg("<notice> %4.1f%% lines (%d bytes)", s->size_lines*100.0/total, s->size_lines); s 960 lib/devices/record.c msg("<notice> %4.1f%% fonts (%d bytes)", s->size_fonts*100.0/total, s->size_fonts); s 961 lib/devices/record.c msg("<notice> %4.1f%% images (%d bytes)", s->size_images*100.0/total, s->size_images); s 962 lib/devices/record.c msg("<notice> %4.1f%% characters (%d bytes)", s->size_chars*100.0/total, s->size_chars); s 228 lib/devices/render.c double s = sin(t*PI/segments); s 230 lib/devices/render.c xx = (x2 + vx*c - vy*s); s 231 lib/devices/render.c yy = (y2 + vx*s + vy*c); s 248 lib/devices/render.c double s = sin(t*PI/segments); s 250 lib/devices/render.c xx = (x1 - vx*c + vy*s); s 251 lib/devices/render.c yy = (y1 - vx*s - vy*c); s 686 lib/devices/swf.c int s; s 687 lib/devices/swf.c for(s=0;s<charstorepos;s++) s 689 lib/devices/swf.c while(charids[s]>=(1<<glyphbits)) s 691 lib/devices/swf.c while(charadvance[s]>=(1<<advancebits)) s 700 lib/devices/swf.c int s; s 701 lib/devices/swf.c for(s=0;s<charstorepos;s++) s 703 lib/devices/swf.c swf_SetBits(tag, charids[s], glyphbits); s 704 lib/devices/swf.c swf_SetBits(tag, charadvance[s], advancebits); s 982 lib/devices/swf.c SHAPE*s; s 991 lib/devices/swf.c swf_ShapeNew(&s); s 992 lib/devices/swf.c int ls1 = swf_ShapeAddLineStyle(s,40,&black); s 993 lib/devices/swf.c int fs1 = swf_ShapeAddSolidFillStyle(s,&button_colors[t/2]); s 1002 lib/devices/swf.c swf_SetShapeHeader(i->tag,s); // write all styles to tag s 1003 lib/devices/swf.c swf_ShapeSetAll(i->tag,s,0*button_sizex,0,ls1,fs1,0); s 1004 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,(1-(t&1)*2)*20*button_sizex,20*button_sizey); s 1005 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,-(1-(t&1)*2)*20*button_sizex,20*button_sizey); s 1006 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,0,-40*button_sizey); s 1008 lib/devices/swf.c swf_ShapeFree(s); // clean shape structure (which isn't needed anymore after writing the tag) s 1137 lib/devices/swf.c SHAPE* s; s 1145 lib/devices/swf.c swf_ShapeNew(&s); s 1146 lib/devices/swf.c fs1 = swf_ShapeAddSolidFillStyle(s, &rgb); s 1149 lib/devices/swf.c swf_SetShapeHeader(i->tag,s); s 1150 lib/devices/swf.c swf_ShapeSetAll(i->tag,s,x1,y1,ls1,fs1,0); s 1151 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,(x2-x1),0); s 1152 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,0,(y2-y1)); s 1153 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,(x1-x2),0); s 1154 lib/devices/swf.c swf_ShapeSetLine(i->tag,s,0,(y1-y2)); s 1156 lib/devices/swf.c swf_ShapeFree(s); s 1841 lib/devices/swf.c plotxy_t s,p; s 1842 lib/devices/swf.c s.x = line->sx;p.x = line->x; s 1843 lib/devices/swf.c s.y = line->sy;p.y = line->y; s 1844 lib/devices/swf.c splineto(dev, i->tag, s, p); s 2153 lib/devices/swf.c # define NIBBLE(s) (((s)>='0' && (s)<='9')?((s)-'0'):((s)&0x0f)+9) s 2834 lib/devices/swf.c int s; s 2836 lib/devices/swf.c for(s=0;s<font->num_glyphs;s++) { s 2837 lib/devices/swf.c if(swffont->glyph2ascii[s]==u) s 3109 lib/devices/swf.c double s = 20 * GLYPH_SCALE / det; s 3112 lib/devices/swf.c int x = (SCOORD)(( px * i->fontmatrix.sy/65536.0 - py * i->fontmatrix.r1/65536.0)*s); s 3113 lib/devices/swf.c int y = (SCOORD)((- px * i->fontmatrix.r0/65536.0 + py * i->fontmatrix.sx/65536.0)*s); s 225 lib/drawer.c p.x= s->end.x*ttt + 3*s->control2.x*tt*mt s 226 lib/drawer.c + 3*s->control1.x*t*mtmt + s->start.x*mtmtmt; s 227 lib/drawer.c p.y= s->end.y*ttt + 3*s->control2.y*tt*mt s 228 lib/drawer.c + 3*s->control1.y*t*mtmt + s->start.y*mtmtmt; s 234 lib/drawer.c p.x= s->end.x*t*t + 2*s->control.x*t*(1-t) + s->start.x*(1-t)*(1-t); s 235 lib/drawer.c p.y= s->end.y*t*t + 2*s->control.y*t*(1-t) + s->start.y*(1-t)*(1-t); s 260 lib/drawer.c test.start = cspline_getpoint(s, start); s 261 lib/drawer.c test.control = cspline_getpoint(s, (start+end)/2); s 262 lib/drawer.c test.end = cspline_getpoint(s, end); s 275 lib/drawer.c test.control.x = s->end.x*(3*qpos) + 3*s->control2.x*(2*pos-3*qpos) + s 276 lib/drawer.c 3*s->control1.x*(1-4*pos+3*qpos) + s->start.x*(-3+6*pos-3*qpos); s 277 lib/drawer.c test.control.y = s->end.y*(3*qpos) + 3*s->control2.y*(2*pos-3*qpos) + s 278 lib/drawer.c 3*s->control1.y*(1-4*pos+3*qpos) + s->start.y*(-3+6*pos-3*qpos); s 300 lib/drawer.c cr1 = cspline_getpoint(s, start+pos*(end-start)); s 310 lib/drawer.c cr2 = cspline_getpoint(s, start+(1-pos)*(end-start)); s 325 lib/drawer.c dx= s->end.x - s->control2.x*3 + s->control1.x*3 - s->start.x; s 326 lib/drawer.c dy= s->end.y - s->control2.y*3 + s->control1.y*3 - s->start.y; s 669 lib/gfxfont.c int s; s 673 lib/gfxfont.c for(s=1;s<count;s++) { s 674 lib/gfxfont.c if(dest->points[s].x < dest->xmin) s 675 lib/gfxfont.c dest->xmin = dest->points[s].x; s 676 lib/gfxfont.c if(dest->points[s].y < dest->ymin) s 677 lib/gfxfont.c dest->ymin = dest->points[s].y; s 678 lib/gfxfont.c if(dest->points[s].x > dest->xmax) s 679 lib/gfxfont.c dest->xmax = dest->points[s].x; s 680 lib/gfxfont.c if(dest->points[s].y > dest->ymax) s 681 lib/gfxfont.c dest->ymax = dest->points[s].y; s 694 lib/gfxfont.c for(s=0;s<count;s++) { s 695 lib/gfxfont.c dest->points[s].x += xshift; s 24 lib/gfximage.c int s,t; s 25 lib/gfximage.c for(t=0,s=0;t<l;s+=3,t++) { s 26 lib/gfximage.c data[s+0] = img->data[t].r; s 27 lib/gfximage.c data[s+1] = img->data[t].g; s 28 lib/gfximage.c data[s+2] = img->data[t].b; s 165 lib/gfximage.c gfxcolor_t*s = &src[y*width]; s 168 lib/gfximage.c d[x] = s[x]; s 178 lib/gfximage.c r += s[xx].r * f[0]; s 179 lib/gfximage.c g += s[xx].g * f[0]; s 180 lib/gfximage.c b += s[xx].b * f[0]; s 181 lib/gfximage.c a += s[xx].a * f[0]; s 190 lib/gfximage.c d[x] = s[x]; s 195 lib/gfximage.c gfxcolor_t*s = &tmp[x]; s 199 lib/gfximage.c d[yy] = s[yy]; s 210 lib/gfximage.c r += s[cyy].r * f[0]; s 211 lib/gfximage.c g += s[cyy].g * f[0]; s 212 lib/gfximage.c b += s[cyy].b * f[0]; s 213 lib/gfximage.c a += s[cyy].a * f[0]; s 224 lib/gfximage.c d[yy] = s[yy]; s 182 lib/gfxpoly.c int s; s 183 lib/gfxpoly.c for(s=0;s<seg->n_points-1;s++) { s 185 lib/gfxpoly.c add_line(buf, seg->points[s].x, seg->points[s].y, seg->points[s+1].x, seg->points[s+1].y, dir); s 251 lib/gfxpoly.c int s; s 252 lib/gfxpoly.c for(s=0;s<seg->n_points;s++) { s 253 lib/gfxpoly.c double x = seg->points[s].x*zoom; s 254 lib/gfxpoly.c double y = seg->points[s].y*zoom; s 484 lib/gfxpoly.c int s; s 485 lib/gfxpoly.c for(s=0;s<seg->n_points;s++) { s 486 lib/gfxpoly.c ArtPoint* point = &seg->points[s]; s 505 lib/gfxpoly.c int s; s 506 lib/gfxpoly.c for(s=0;s<seg->n_points-1;s++) { s 507 lib/gfxpoly.c ArtPoint* p1 = &seg->points[s]; s 508 lib/gfxpoly.c ArtPoint* p2 = &seg->points[s+1]; s 690 lib/gfxpoly.c int s; s 691 lib/gfxpoly.c for(s=0;s<num_segs;s++) { s 692 lib/gfxpoly.c if(segs[s].y1==y[t]) { s 694 lib/gfxpoly.c segs[s].active = 1; s 696 lib/gfxpoly.c } else if(segs[s].y2==y[t]) { s 697 lib/gfxpoly.c segs[s].active = 0; s 884 lib/gfxpoly.c int s; s 885 lib/gfxpoly.c for(s=t;s<t2;s++) { s 886 lib/gfxpoly.c vpath[pos[s]].x += dx; s 887 lib/gfxpoly.c vpath[pos[s]].y += dy; s 21 lib/gfxpoly/active.c segment_t*s = a->list; s 24 lib/gfxpoly/active.c if(!s) fprintf(stderr, "(empty)\n"); s 25 lib/gfxpoly/active.c while(s) { s 27 lib/gfxpoly/active.c double x = ((double)s->delta.x*(y-s->a.y)/s->delta.y)+s->a.x; s 28 lib/gfxpoly/active.c if(s!=a->list) { s 34 lib/gfxpoly/active.c fprintf(stderr, "[%d]", (int)s->nr); s 35 lib/gfxpoly/active.c s = s->right; s 36 lib/gfxpoly/active.c if(s) fprintf(stderr, " "); s 42 lib/gfxpoly/active.c segment_t*s = a->list; s 43 lib/gfxpoly/active.c assert(!s || !s->left); s 45 lib/gfxpoly/active.c while(s) { s 53 lib/gfxpoly/active.c assert((XPOS(s, y) - XPOS(l, y)) >= 0); s 54 lib/gfxpoly/active.c assert(XDIFF(s,l,y) >= 0); s 56 lib/gfxpoly/active.c l = s; s 58 lib/gfxpoly/active.c assert(!s->left || s->left->right == s); s 59 lib/gfxpoly/active.c assert(!s->right || s->right->left == s); s 60 lib/gfxpoly/active.c s = s->right; s 66 lib/gfxpoly/active.c return LINE_EQ(p1, s); s 71 lib/gfxpoly/active.c double d = LINE_EQ(p1, s); s 73 lib/gfxpoly/active.c d = LINE_EQ(p2, s); s 101 lib/gfxpoly/active.c segment_t*s = a->list; s 102 lib/gfxpoly/active.c while(s) { s 103 lib/gfxpoly/active.c fprintf(stderr, "[%d] %f/%f (%d,%d) -> (%d,%d)\n", SEGNR(s), s 104 lib/gfxpoly/active.c single_cmp(s,p1), cmp(s,p1,p2), s 105 lib/gfxpoly/active.c s->a.x, s->a.y, s->b.x, s->b.y); s 106 lib/gfxpoly/active.c s = s->right; s 123 lib/gfxpoly/active.c segment_t*last=0, *s = a->root; s 124 lib/gfxpoly/active.c if(!s) return 0; s 127 lib/gfxpoly/active.c while(s) { s 128 lib/gfxpoly/active.c last = s; s 130 lib/gfxpoly/active.c d = single_cmp(s, p1); s 132 lib/gfxpoly/active.c s = s->leftchild; s 134 lib/gfxpoly/active.c s = s->rightchild; s 170 lib/gfxpoly/active.c s = a->list; s 171 lib/gfxpoly/active.c while(s) { s 172 lib/gfxpoly/active.c if(cmp(s, p1, p2)<0) s 174 lib/gfxpoly/active.c l = s;s = s->right; s 180 lib/gfxpoly/active.c s = a->list; s 181 lib/gfxpoly/active.c while(s) { s 182 lib/gfxpoly/active.c double d1 = single_cmp(s,p1); s 183 lib/gfxpoly/active.c double d2 = cmp(s,p1,p2); s 186 lib/gfxpoly/active.c printf("[%d](%d,%d) ", SEGNR(s), x1, x2); s 187 lib/gfxpoly/active.c s = s->right; s 199 lib/gfxpoly/active.c segment_t*last=0, *s = a->list; s 200 lib/gfxpoly/active.c if(!s) return last; s 201 lib/gfxpoly/active.c while(s) { s 202 lib/gfxpoly/active.c double d = cmp(s, p1, p2); s 205 lib/gfxpoly/active.c last = s; s 206 lib/gfxpoly/active.c s = s->right; s 226 lib/gfxpoly/active.c assert(s->leftchild); s 227 lib/gfxpoly/active.c segment_t*p = s->parent; s 228 lib/gfxpoly/active.c segment_t*n = s->leftchild; s 230 lib/gfxpoly/active.c LINK(n,rightchild,s); s 231 lib/gfxpoly/active.c LINK(s,leftchild,l); s 234 lib/gfxpoly/active.c if(p->leftchild == s) s 236 lib/gfxpoly/active.c else if(p->rightchild == s) s 252 lib/gfxpoly/active.c assert(s->rightchild); s 253 lib/gfxpoly/active.c segment_t*p = s->parent; s 254 lib/gfxpoly/active.c segment_t*n = s->rightchild; s 256 lib/gfxpoly/active.c LINK(n,leftchild,s); s 257 lib/gfxpoly/active.c LINK(s,rightchild,r); s 260 lib/gfxpoly/active.c if(p->leftchild == s) s 262 lib/gfxpoly/active.c else if(p->rightchild == s) s 272 lib/gfxpoly/active.c if(!s) return 1; s 273 lib/gfxpoly/active.c if(parent != s->parent) { s 274 lib/gfxpoly/active.c fprintf(stderr, "Parent mismatch in [%d]: [%d] != [%d]\n", SEGNR(s), SEGNR(parent), SEGNR(s->parent)); s 277 lib/gfxpoly/active.c if(!actlist_splay_walk(a, s->leftchild, ss, s)) return 0; s 278 lib/gfxpoly/active.c if(s != *ss) { s 279 lib/gfxpoly/active.c fprintf(stderr, "[%d] != [%d]\n", SEGNR(s), SEGNR(*ss)); s 283 lib/gfxpoly/active.c if(!actlist_splay_walk(a, s->rightchild, ss, s)) return 0; s 296 lib/gfxpoly/active.c if(!s) return; s 298 lib/gfxpoly/active.c if(s->leftchild || s->rightchild) { s 301 lib/gfxpoly/active.c if(s->leftchild) { s 308 lib/gfxpoly/active.c actlist_splay_dump2(a, s->leftchild, o3, newup2, newup); s 314 lib/gfxpoly/active.c fprintf(stderr, "%s[%d]\n", mid, SEGNR(s)); s 315 lib/gfxpoly/active.c if(s->rightchild) { s 323 lib/gfxpoly/active.c actlist_splay_dump2(a, s->rightchild, o3, newdown, newdown2); s 329 lib/gfxpoly/active.c fprintf(stderr, "%s[%d]\n", mid, SEGNR(s)); s 340 lib/gfxpoly/active.c if(!s) return; s 344 lib/gfxpoly/active.c while(a->root != s) { s 345 lib/gfxpoly/active.c assert(s->parent); s 346 lib/gfxpoly/active.c segment_t*p = s->parent; s 349 lib/gfxpoly/active.c if(a->root->leftchild == s) { s 354 lib/gfxpoly/active.c assert(a->root == s); s 357 lib/gfxpoly/active.c if(p->leftchild == s && pp->leftchild == p) { s 360 lib/gfxpoly/active.c rotate_right(a, s->parent); s 361 lib/gfxpoly/active.c } else if(p->rightchild == s && pp->rightchild == p) { s 364 lib/gfxpoly/active.c rotate_left(a, s->parent); s 365 lib/gfxpoly/active.c } else if(p->leftchild == s && pp->rightchild == p) { s 368 lib/gfxpoly/active.c rotate_left(a, s->parent); s 369 lib/gfxpoly/active.c } else if(p->rightchild == s && pp->leftchild == p) { s 372 lib/gfxpoly/active.c rotate_right(a, s->parent); s 398 lib/gfxpoly/active.c segment_t*s = a->root->leftchild; s 399 lib/gfxpoly/active.c LINK(a->root, leftchild, s->rightchild); s 400 lib/gfxpoly/active.c LINK(s, rightchild, a->root); s 401 lib/gfxpoly/active.c a->root = s; s 417 lib/gfxpoly/active.c segment_t*s = a->root->rightchild; s 418 lib/gfxpoly/active.c LINK(a->root, rightchild, s->leftchild); s 419 lib/gfxpoly/active.c LINK(s, leftchild, a->root); s 420 lib/gfxpoly/active.c a->root = s; s 446 lib/gfxpoly/active.c s->left = left; s 448 lib/gfxpoly/active.c s->right = left->right; s 450 lib/gfxpoly/active.c s->right = a->list; s 451 lib/gfxpoly/active.c a->list = s; s 453 lib/gfxpoly/active.c if(s->left) s 454 lib/gfxpoly/active.c s->left->right = s; s 455 lib/gfxpoly/active.c if(s->right) s 456 lib/gfxpoly/active.c s->right->left = s; s 460 lib/gfxpoly/active.c assert(!s->leftchild); s 461 lib/gfxpoly/active.c assert(!s->rightchild); s 466 lib/gfxpoly/active.c LINK(s,leftchild,a->root); s 468 lib/gfxpoly/active.c LINK(s,rightchild,a->root->rightchild); s 471 lib/gfxpoly/active.c LINK(s,rightchild,a->root); s 474 lib/gfxpoly/active.c a->root = s; s 487 lib/gfxpoly/active.c move_to_root(a, s); s 490 lib/gfxpoly/active.c if(s->left) { s 491 lib/gfxpoly/active.c s->left->right = s->right; s 493 lib/gfxpoly/active.c a->list = s->right; s 495 lib/gfxpoly/active.c if(s->right) { s 496 lib/gfxpoly/active.c s->right->left = s->left; s 498 lib/gfxpoly/active.c s->left = s->right = 0; s 501 lib/gfxpoly/active.c assert(a->root == s); s 511 lib/gfxpoly/active.c if(((ptroff_t)s)&16) { s 544 lib/gfxpoly/active.c s->leftchild = s->rightchild = s->parent = 0; s 565 lib/gfxpoly/active.c segment_t*s = a->list; s 567 lib/gfxpoly/active.c while(s) { s 568 lib/gfxpoly/active.c last = s; s 569 lib/gfxpoly/active.c s = s->right; s 577 lib/gfxpoly/active.c actlist_insert_after(a, left, s); s 588 lib/gfxpoly/active.c segment_t*s = s1; s 589 lib/gfxpoly/active.c while(s && s!=s2) s = s->right; s 590 lib/gfxpoly/active.c assert(s==s2); s 15 lib/gfxpoly/active.h #define actlist_left(a,s) ((s)->left) s 16 lib/gfxpoly/active.h #define actlist_right(a,s) ((s)?(s)->right:(a)->list) s 94 lib/gfxpoly/convert.c char s[256]; s 95 lib/gfxpoly/convert.c if(sscanf(line, "%lf %lf %s", &x, &y, (char*)&s) == 3) { s 96 lib/gfxpoly/convert.c if(s && !strcmp(s,"moveto")) { s 99 lib/gfxpoly/convert.c } else if(s && !strcmp(s,"lineto")) { s 103 lib/gfxpoly/convert.c fprintf(stderr, "invalid command: %s\n", s); s 135 lib/gfxpoly/convert.c gfxpolystroke_t*s = rfx_calloc(sizeof(gfxpolystroke_t)); s 136 lib/gfxpoly/convert.c s->fs = &edgestyle_default; s 137 lib/gfxpoly/convert.c s->next = data->poly->strokes; s 138 lib/gfxpoly/convert.c data->poly->strokes = s; s 139 lib/gfxpoly/convert.c s->num_points = s->points_size = data->num_points; s 140 lib/gfxpoly/convert.c s->dir = data->dir; s 141 lib/gfxpoly/convert.c s->points = p; s 145 lib/gfxpoly/convert.c int s = data->num_points; s 147 lib/gfxpoly/convert.c p[--s] = data->points[t]; s 24 lib/gfxpoly/poly.c int s,t; s 178 lib/gfxpoly/poly.c int s,t; s 191 lib/gfxpoly/poly.c int s,t; s 200 lib/gfxpoly/poly.c for(s=0;s<stroke->num_points;s++) { s 201 lib/gfxpoly/poly.c point_t p = stroke->points[s]; s 202 lib/gfxpoly/poly.c int num_xor = (s>=1 && s<stroke->num_points-1)?2:1; // mid points are two points (start+end) s 203 lib/gfxpoly/poly.c int num_circ = (s>=1 && s<stroke->num_points-1)?0:(s==0?1:-1); s 248 lib/gfxpoly/poly.c for(s=0;s<stroke->num_points-1;s++) { s 249 lib/gfxpoly/poly.c point_t a = stroke->points[s]; s 250 lib/gfxpoly/poly.c point_t b = stroke->points[s+1]; s 273 lib/gfxpoly/poly.c int s,t; s 280 lib/gfxpoly/poly.c for(s=stroke->num_points-1;s>=1;s--) { s 281 lib/gfxpoly/poly.c point_t a = stroke->points[s]; s 282 lib/gfxpoly/poly.c point_t b = stroke->points[s-1]; s 283 lib/gfxpoly/poly.c fprintf(stderr, "%s (%.2f,%.2f) -> (%.2f,%.2f)%s%s\n", s!=stroke->num_points-1?" ":"", a.x*g, a.y*g, b.x*g, b.y*g, s 284 lib/gfxpoly/poly.c s==1?"]":"", a.y==b.y?"H":""); s 287 lib/gfxpoly/poly.c for(s=0;s<stroke->num_points-1;s++) { s 288 lib/gfxpoly/poly.c point_t a = stroke->points[s]; s 289 lib/gfxpoly/poly.c point_t b = stroke->points[s+1]; s 290 lib/gfxpoly/poly.c fprintf(stderr, "%s (%.2f,%.2f) -> (%.2f,%.2f)%s%s\n", s?" ":"", a.x*g, a.y*g, b.x*g, b.y*g, s 291 lib/gfxpoly/poly.c s==stroke->num_points-2?"]":"", a.y==b.y?"H":""); s 302 lib/gfxpoly/poly.c int s,t; s 308 lib/gfxpoly/poly.c for(s=1;s<stroke->num_points;s++) { s 309 lib/gfxpoly/poly.c p = stroke->points[s]; s 330 lib/gfxpoly/poly.c int s = stroke->dir==DIR_UP?stroke->num_points-1:0; s 334 lib/gfxpoly/poly.c point_t p = stroke->points[s]; s 335 lib/gfxpoly/poly.c s+=dir; s 338 lib/gfxpoly/poly.c for(;s!=end;s+=dir) { s 339 lib/gfxpoly/poly.c p = stroke->points[s]; s 396 lib/gfxpoly/poly.c fprintf(stderr, "[%d] (%d,%d)->(%d,%d) ", (int)s->nr, s->a.x, s->a.y, s->b.x, s->b.y); s 397 lib/gfxpoly/poly.c fprintf(stderr, " dx:%d dy:%d k:%f dx/dy=%f fs=%p\n", s->delta.x, s->delta.y, s->k, s 398 lib/gfxpoly/poly.c (double)s->delta.x / s->delta.y, s->fs); s 404 lib/gfxpoly/poly.c s->nr = segment_count++; s 405 lib/gfxpoly/poly.c s->dir = dir; s 416 lib/gfxpoly/poly.c s->dir = DIR_INVERT(s->dir); s 423 lib/gfxpoly/poly.c x1 * 0.05, y1 * 0.05, x2 * 0.05, y2 * 0.05, s->dir==DIR_UP?"up":"down"); s 426 lib/gfxpoly/poly.c s->a.x = x1; s 427 lib/gfxpoly/poly.c s->a.y = y1; s 428 lib/gfxpoly/poly.c s->b.x = x2; s 429 lib/gfxpoly/poly.c s->b.y = y2; s 430 lib/gfxpoly/poly.c s->k = (double)x1*y2-(double)x2*y1; s 431 lib/gfxpoly/poly.c s->left = s->right = 0; s 432 lib/gfxpoly/poly.c s->delta.x = x2-x1; s 433 lib/gfxpoly/poly.c s->delta.y = y2-y1; s 434 lib/gfxpoly/poly.c s->minx = min32(x1,x2); s 435 lib/gfxpoly/poly.c s->maxx = max32(x1,x2); s 437 lib/gfxpoly/poly.c s->pos = s->a; s 438 lib/gfxpoly/poly.c s->polygon_nr = polygon_nr; s 446 lib/gfxpoly/poly.c assert(LINE_EQ(s->a, s) == 0); s 447 lib/gfxpoly/poly.c assert(LINE_EQ(s->b, s) == 0); s 456 lib/gfxpoly/poly.c point_t p = s->b; s 457 lib/gfxpoly/poly.c p.x = min32(s->a.x, s->b.x); s 458 lib/gfxpoly/poly.c assert(LINE_EQ(p, s) <= 0); s 459 lib/gfxpoly/poly.c p.x = max32(s->a.x, s->b.x); s 460 lib/gfxpoly/poly.c assert(LINE_EQ(p, s) >= 0); s 464 lib/gfxpoly/poly.c dict_init2(&s->scheduled_crossings, &ptr_type, 0); s 470 lib/gfxpoly/poly.c segment_t*s = (segment_t*)rfx_calloc(sizeof(segment_t)); s 471 lib/gfxpoly/poly.c segment_init(s, a.x, a.y, b.x, b.y, polygon_nr, dir); s 472 lib/gfxpoly/poly.c return s; s 478 lib/gfxpoly/poly.c dict_clear(&s->scheduled_crossings); s 483 lib/gfxpoly/poly.c segment_clear(s); s 484 lib/gfxpoly/poly.c free(s); s 491 lib/gfxpoly/poly.c segment_t*s = 0; s 496 lib/gfxpoly/poly.c s = segment_new(stroke->points[pos], stroke->points[pos+1], polygon_nr, stroke->dir); s 497 lib/gfxpoly/poly.c s->fs = stroke->fs; s 499 lib/gfxpoly/poly.c s->stroke = 0; s 500 lib/gfxpoly/poly.c s->stroke_pos = 0; s 505 lib/gfxpoly/poly.c s->nr, s->a.x * gridsize, s->a.y * gridsize, s 506 lib/gfxpoly/poly.c s->b.x * gridsize, s->b.y * gridsize, s 507 lib/gfxpoly/poly.c s->dir==DIR_UP?"up":"down", stroke, stroke->num_points - 1 - pos); s 510 lib/gfxpoly/poly.c e->type = s->delta.y ? EVENT_START : EVENT_HORIZONTAL; s 511 lib/gfxpoly/poly.c e->p = s->a; s 512 lib/gfxpoly/poly.c e->s1 = s; s 522 lib/gfxpoly/poly.c if(s) { s 523 lib/gfxpoly/poly.c s->stroke = stroke; s 524 lib/gfxpoly/poly.c s->stroke_pos = pos; s 536 lib/gfxpoly/poly.c int s; s 537 lib/gfxpoly/poly.c for(s=0;s<stroke->num_points-1;s++) { s 538 lib/gfxpoly/poly.c assert(stroke->points[s].y <= stroke->points[s+1].y); s 548 lib/gfxpoly/poly.c assert(s->b.y > status->y); s 551 lib/gfxpoly/poly.c e->p = s->b; s 552 lib/gfxpoly/poly.c e->s1 = s; s 814 lib/gfxpoly/poly.c assert(s->pos.x != p.x || s->pos.y != p.y); s 817 lib/gfxpoly/poly.c if(!dict_contains(status->segs_with_point, s)) s 818 lib/gfxpoly/poly.c dict_put(status->segs_with_point, s, 0); s 819 lib/gfxpoly/poly.c assert(s->fs_out_ok); s 822 lib/gfxpoly/poly.c if(s->pos.y != p.y) { s 824 lib/gfxpoly/poly.c if(s->fs_out) { s 825 lib/gfxpoly/poly.c segment_dir_t dir = s->wind.is_filled?DIR_DOWN:DIR_UP; s 827 lib/gfxpoly/poly.c fprintf(stderr, "[%d] receives next point (%.2f,%.2f)->(%.2f,%.2f) (drawing (%s))\n", s->nr, s 828 lib/gfxpoly/poly.c s->pos.x * status->gridsize, s->pos.y * status->gridsize, s 833 lib/gfxpoly/poly.c assert(s->pos.y != p.y); s 834 lib/gfxpoly/poly.c append_stroke(status, s->pos, p, dir, s->fs_out); s 837 lib/gfxpoly/poly.c fprintf(stderr, "[%d] receives next point (%.2f,%.2f) (omitting)\n", s->nr, s 845 lib/gfxpoly/poly.c store_horizontal(status, s->pos, p, s->fs, s->dir, s->polygon_nr); s 848 lib/gfxpoly/poly.c s->pos = p; s 1055 lib/gfxpoly/poly.c segment_t*s = range->segmin; s 1060 lib/gfxpoly/poly.c s = actlist_leftmost(status->actlist); s 1061 lib/gfxpoly/poly.c while(s) { s 1062 lib/gfxpoly/poly.c fprintf(stderr, "[%d]%d%s ", s->nr, s->changed, s 1063 lib/gfxpoly/poly.c s == range->segmin?"S":( s 1064 lib/gfxpoly/poly.c s == range->segmax?"E":"")); s 1065 lib/gfxpoly/poly.c s = s->right; s 1068 lib/gfxpoly/poly.c s = range->segmin; s 1073 lib/gfxpoly/poly.c s = actlist_leftmost(status->actlist); s 1074 lib/gfxpoly/poly.c while(s && s!=range->segmin) { s 1075 lib/gfxpoly/poly.c assert(!s->changed); s 1076 lib/gfxpoly/poly.c s = s->right; s 1078 lib/gfxpoly/poly.c s = actlist_rightmost(status->actlist); s 1079 lib/gfxpoly/poly.c while(s && s!=range->segmax) { s 1080 lib/gfxpoly/poly.c assert(!s->changed); s 1081 lib/gfxpoly/poly.c s = s->left; s 1085 lib/gfxpoly/poly.c s = actlist_leftmost(status->actlist); s 1091 lib/gfxpoly/poly.c while(s!=end) { s 1093 lib/gfxpoly/poly.c if(s->changed) s 1096 lib/gfxpoly/poly.c segment_t* left = actlist_left(status->actlist, s); s 1098 lib/gfxpoly/poly.c s->wind = status->windrule->add(status->context, wind, s->fs, s->dir, s->polygon_nr); s 1099 lib/gfxpoly/poly.c edgestyle_t*fs_old = s->fs_out; s 1100 lib/gfxpoly/poly.c s->fs_out = status->windrule->diff(&wind, &s->wind); s 1103 lib/gfxpoly/poly.c fprintf(stderr, "[%d] dir=%s wind=%d wind.filled=%s fs_old/new=%s/%s %s\n", s->nr, s->dir==DIR_UP?"up":"down", s->wind.wind_nr, s->wind.is_filled?"fill":"nofill", s 1104 lib/gfxpoly/poly.c fs_old?"draw":"omit", s->fs_out?"draw":"omit", s 1105 lib/gfxpoly/poly.c fs_old!=s->fs_out?"CHANGED":""); s 1107 lib/gfxpoly/poly.c assert(!(!s->changed && fs_old!=s->fs_out)); s 1108 lib/gfxpoly/poly.c s->changed = 0; s 1111 lib/gfxpoly/poly.c s->fs_out_ok = 1; s 1114 lib/gfxpoly/poly.c s = s->right; s 1136 lib/gfxpoly/poly.c segment_t* s = left; s 1139 lib/gfxpoly/poly.c while(s!=right) { s 1140 lib/gfxpoly/poly.c assert(s); s 1141 lib/gfxpoly/poly.c int32_t x = XPOS_INT(s, status->y); s 1145 lib/gfxpoly/poly.c s->nr, s 1146 lib/gfxpoly/poly.c s->a.x * status->gridsize, s->a.y * status->gridsize, s 1147 lib/gfxpoly/poly.c s->b.x * status->gridsize, s->b.y * status->gridsize, s 1153 lib/gfxpoly/poly.c assert(s->delta.x > 0 && x >= s->a.x || s->delta.x <= 0 && x <= s->a.x); s 1154 lib/gfxpoly/poly.c assert(s->delta.x > 0 && x <= s->b.x || s->delta.x <= 0 && x >= s->b.x); s 1158 lib/gfxpoly/poly.c s = s->right; s 1319 lib/gfxpoly/poly.c int s,t; s 1347 lib/gfxpoly/poly.c for(s=0;s<num_open;s++) { s 1348 lib/gfxpoly/poly.c int x1 = open[s]->xpos; s 1350 lib/gfxpoly/poly.c assert(status->y == open[s]->y); s 1351 lib/gfxpoly/poly.c if(!s) s 1353 lib/gfxpoly/poly.c open[s]->xpos = e->x; s 1355 lib/gfxpoly/poly.c below = process_horizontal_fragment(status, open[s], x1, x2, below); s 1404 lib/gfxpoly/poly.c segment_t*s = e->s1; s 1405 lib/gfxpoly/poly.c intersect_with_horizontal(status, s); s 1406 lib/gfxpoly/poly.c store_horizontal(status, s->a, s->b, s->fs, s->dir, s->polygon_nr); s 1407 lib/gfxpoly/poly.c advance_stroke(&status->queue, 0, s->stroke, s->polygon_nr, s->stroke_pos, status->gridsize); s 1408 lib/gfxpoly/poly.c segment_destroy(s);e->s1=0; s 1413 lib/gfxpoly/poly.c segment_t*s = e->s1; s 1415 lib/gfxpoly/poly.c dict_del(status->intersecting_segs, s); s 1416 lib/gfxpoly/poly.c dict_del(status->segs_with_point, s); s 1417 lib/gfxpoly/poly.c assert(!dict_contains(status->intersecting_segs, s)); s 1418 lib/gfxpoly/poly.c assert(!dict_contains(status->segs_with_point, s)); s 1420 lib/gfxpoly/poly.c segment_t*left = s->left; s 1421 lib/gfxpoly/poly.c segment_t*right = s->right; s 1422 lib/gfxpoly/poly.c actlist_delete(status->actlist, s); s 1427 lib/gfxpoly/poly.c s->left = 0; s->right = status->ending_segments; s 1428 lib/gfxpoly/poly.c status->ending_segments = s; s 1429 lib/gfxpoly/poly.c advance_stroke(&status->queue, 0, s->stroke, s->polygon_nr, s->stroke_pos, status->gridsize); s 1434 lib/gfxpoly/poly.c segment_t*s = e->s1; s 1435 lib/gfxpoly/poly.c assert(e->p.x == s->a.x && e->p.y == s->a.y); s 1436 lib/gfxpoly/poly.c actlist_insert(status->actlist, s->a, s->b, s); s 1437 lib/gfxpoly/poly.c segment_t*left = s->left; s 1438 lib/gfxpoly/poly.c segment_t*right = s->right; s 1440 lib/gfxpoly/poly.c schedule_crossing(status, left, s); s 1442 lib/gfxpoly/poly.c schedule_crossing(status, s, right); s 1443 lib/gfxpoly/poly.c schedule_endpoint(status, s); s 1480 lib/gfxpoly/poly.c DICT_ITERATE_KEY(status->intersecting_segs, segment_t*, s) { s 1481 lib/gfxpoly/poly.c if((s->pos.x != s->b.x || s 1482 lib/gfxpoly/poly.c s->pos.y != s->b.y) && s 1483 lib/gfxpoly/poly.c !dict_contains(status->segs_with_point, s)) { s 1485 lib/gfxpoly/poly.c SEGNR(s), s 1486 lib/gfxpoly/poly.c s->delta.x<0?"-":"+", s 23 lib/gfxpoly/poly.h #define SEGNR(s) ((int)((s)?(s)->nr:-1)) s 75 lib/gfxpoly/poly.h #define LINE_EQ(p,s) ((double)(s)->delta.y*(p).x - (double)(s)->delta.x*(p).y - (s)->k) s 85 lib/gfxpoly/poly.h #define XPOS(s,ypos) (((s)->k + (double)(s)->delta.x*ypos) / (s)->delta.y) s 87 lib/gfxpoly/poly.h #define XPOS_INT(s,ypos) ((int)ceil(XPOS((s),ypos))) s 145 lib/gfxpoly/renderpoly.c int s,t; s 242 lib/gfxpoly/renderpoly.c int s,t; s 44 lib/gfxpoly/stroke.c double s = sin(a)*r; s 46 lib/gfxpoly/stroke.c double yy = s + y; s 62 lib/gfxpoly/stroke.c int s=1,t; s 66 lib/gfxpoly/stroke.c p[s++] = last = p[t]; s 69 lib/gfxpoly/stroke.c num = s; s 140 lib/gfxpoly/stroke.c double s = sin(lastw-M_PI/2)*width; s 142 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x+c, p[pos].y+s); s 143 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x-c, p[pos].y-s); s 148 lib/gfxpoly/stroke.c double s = sin(lastw-M_PI/2)*width; s 149 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x+c, p[pos].y+s); s 150 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x+c-s, p[pos].y+s+c); s 151 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x-c-s, p[pos].y-s+c); s 152 lib/gfxpoly/stroke.c draw->lineTo(draw, p[pos].x-c, p[pos].y-s); s 162 lib/gfxtools.c s->cx = x; s->bx = 2*l->sx - 2*x; s->ax = l->x - 2*l->sx + x; s 163 lib/gfxtools.c s->cy = y; s->by = 2*l->sy - 2*y; s->ay = l->y - 2*l->sy + y; s 181 lib/gfxtools.c int parts = (int)(sqrt(fabs(s->ax) + fabs(s->ay))*3); s 191 lib/gfxtools.c double dx = s->ax*(2*i+1)*r2 + s->bx*r; s 192 lib/gfxtools.c double dy = s->ay*(2*i+1)*r2 + s->by*r; s 465 lib/gfxtools.c p.x= s->end.x*ttt + 3*s->control2.x*tt*mt s 466 lib/gfxtools.c + 3*s->control1.x*t*mtmt + s->start.x*mtmtmt; s 467 lib/gfxtools.c p.y= s->end.y*ttt + 3*s->control2.y*tt*mt s 468 lib/gfxtools.c + 3*s->control1.y*t*mtmt + s->start.y*mtmtmt; s 474 lib/gfxtools.c p.x= s->end.x*t*t + 2*s->control.x*t*(1-t) + s->start.x*(1-t)*(1-t); s 475 lib/gfxtools.c p.y= s->end.y*t*t + 2*s->control.y*t*(1-t) + s->start.y*(1-t)*(1-t); s 501 lib/gfxtools.c test.start = cspline_getpoint(s, start); s 502 lib/gfxtools.c test.control = cspline_getpoint(s, (start+end)/2); s 503 lib/gfxtools.c test.end = cspline_getpoint(s, end); s 516 lib/gfxtools.c test.control.x = s->end.x*(3*qpos) + 3*s->control2.x*(2*pos-3*qpos) + s 517 lib/gfxtools.c 3*s->control1.x*(1-4*pos+3*qpos) + s->start.x*(-3+6*pos-3*qpos); s 518 lib/gfxtools.c test.control.y = s->end.y*(3*qpos) + 3*s->control2.y*(2*pos-3*qpos) + s 519 lib/gfxtools.c 3*s->control1.y*(1-4*pos+3*qpos) + s->start.y*(-3+6*pos-3*qpos); s 541 lib/gfxtools.c cr1 = cspline_getpoint(s, start+pos*(end-start)); s 551 lib/gfxtools.c cr2 = cspline_getpoint(s, start+(1-pos)*(end-start)); s 565 lib/gfxtools.c dx= s->end.x - s->control2.x*3 + s->control1.x*3 - s->start.x; s 566 lib/gfxtools.c dy= s->end.y - s->control2.y*3 + s->control1.y*3 - s->start.y; s 85 lib/gocr/pgm2asc.c size_t i; for(i=0;s[i];i++); return i; s 1358 lib/gocr/pgm2asc.c int *s=(int *)vs; s 1360 lib/gocr/pgm2asc.c if (*r < *s) return -1; s 1361 lib/gocr/pgm2asc.c if (*r > *s) return 1; s 659 lib/graphcut.c int s; s 660 lib/graphcut.c for(s=0;s<10;s++) { s 266 lib/h.263/swfvideo.c YUV*p1 = &dest[by*s->linex*16+bx*16]; s 267 lib/h.263/swfvideo.c YUV*p2 = &src[by*s->linex*16+bx*16]; s 271 lib/h.263/swfvideo.c p1+=s->linex;p2+=s->linex; s 292 lib/h.263/swfvideo.c YUV*p1 = &dest[(by*16)*s->linex+bx*16]; s 293 lib/h.263/swfvideo.c YUV*p2 = &dest[(by*16+8)*s->linex+bx*16]; s 311 lib/h.263/swfvideo.c p1+=s->linex; s 312 lib/h.263/swfvideo.c p2+=s->linex; s 318 lib/h.263/swfvideo.c int linex = s->width; s 341 lib/h.263/swfvideo.c int linex = s->width; s 774 lib/h.263/swfvideo.c if(bx) {x1=s->mvdx[by*s->bbx+bx-1]; s 775 lib/h.263/swfvideo.c y1=s->mvdy[by*s->bbx+bx-1]; s 778 lib/h.263/swfvideo.c if(by) {x2=s->mvdx[(by-1)*s->bbx+bx]; s 779 lib/h.263/swfvideo.c y2=s->mvdy[(by-1)*s->bbx+bx]; s 780 lib/h.263/swfvideo.c if(bx<s->bbx-1) { s 781 lib/h.263/swfvideo.c x3=s->mvdx[(by-1)*s->bbx+bx+1]; s 782 lib/h.263/swfvideo.c y3=s->mvdy[(by-1)*s->bbx+bx+1]; s 890 lib/h.263/swfvideo.c dodctandquant(&fb_i, &data->b, 1, s->quant); s 908 lib/h.263/swfvideo.c dequantize(&data->reconstruction, 1, s->quant); s 937 lib/h.263/swfvideo.c copy_block_pic(s, s->current, &data->reconstruction, data->bx, data->by); s 949 lib/h.263/swfvideo.c getmvdregion(&fbold, s->oldpic, bx, by, hx, hy, s->linex); s 951 lib/h.263/swfvideo.c dodctandquant(&fbdiff, &b, 0, s->quant); s 972 lib/h.263/swfvideo.c predictmvd(s,bx,by,&predictmvdx,&predictmvdy); s 978 lib/h.263/swfvideo.c if(s->do_motion) { s 986 lib/h.263/swfvideo.c if(bx==s->bbx-1) endx=0; s 987 lib/h.263/swfvideo.c if(by==s->bby-1) endy=0; s 993 lib/h.263/swfvideo.c bits = getmvdbits(s,fb,bx,by,hx,hy); s 1010 lib/h.263/swfvideo.c bits = getmvdbits(s,fb,bx,by,hx,hy); s 1022 lib/h.263/swfvideo.c getmvdregion(&data->fbold, s->oldpic, bx, by, data->movex, data->movey, s->linex); s 1024 lib/h.263/swfvideo.c dodctandquant(&fbdiff, &data->b, 0, s->quant); s 1045 lib/h.263/swfvideo.c dequantize(&data->reconstruction, 0, s->quant); s 1093 lib/h.263/swfvideo.c s->mvdx[by*s->bbx+bx] = data->movex; s 1094 lib/h.263/swfvideo.c s->mvdy[by*s->bbx+bx] = data->movey; s 1096 lib/h.263/swfvideo.c copy_block_pic(s, s->current, &data->reconstruction, data->bx, data->by); s 1111 lib/h.263/swfvideo.c getregion(&fb, s->current, bx, by, s->linex); s 1112 lib/h.263/swfvideo.c prepareIBlock(s, &iblock, bx, by, &fb, &bits_i, 0); s 1115 lib/h.263/swfvideo.c diff1 = compare_pic_pic(s, s->current, s->oldpic, bx, by); s 1117 lib/h.263/swfvideo.c diff2 = compare_pic_block(s, &iblock.reconstruction, s->current, bx, by); s 1122 lib/h.263/swfvideo.c copyregion(s, s->current, s->oldpic, bx, by); s 1125 lib/h.263/swfvideo.c prepareMVDBlock(s, &mvdblock, bx, by, &fb, &bits_vxy); s 1128 lib/h.263/swfvideo.c return writeMVDBlock(s, tag, &mvdblock); s 1130 lib/h.263/swfvideo.c return writeIBlock(s, tag, &iblock); s 1141 lib/h.263/swfvideo.c getregion(&fb, s->current, bx, by, s->width); s 1142 lib/h.263/swfvideo.c prepareIBlock(s, &data, bx, by, &fb, &bits, 1); s 1143 lib/h.263/swfvideo.c writeIBlock(s, tag, &data); s 1221 lib/h.263/swfvideo.c s->quant = quant; s 1223 lib/h.263/swfvideo.c writeHeader(tag, s->width, s->height, s->frame, quant, TYPE_IFRAME); s 1226 lib/h.263/swfvideo.c memset(s->current, 0, s->linex*s->height*sizeof(YUV)); s 1228 lib/h.263/swfvideo.c rgb2yuv(s->current, pic, s->linex, s->olinex, s->owidth, s->oheight); s 1230 lib/h.263/swfvideo.c for(by=0;by<s->bby;by++) s 1232 lib/h.263/swfvideo.c for(bx=0;bx<s->bbx;bx++) s 1234 lib/h.263/swfvideo.c encode_IFrame_block(tag, s, bx, by); s 1237 lib/h.263/swfvideo.c s->frame++; s 1238 lib/h.263/swfvideo.c memcpy(s->oldpic, s->current, s->width*s->height*sizeof(YUV)); s 1245 lib/h.263/swfvideo.c s->quant = quant; s 1247 lib/h.263/swfvideo.c writeHeader(tag, s->width, s->height, s->frame, quant, TYPE_IFRAME); s 1249 lib/h.263/swfvideo.c for(y=0;y<s->height;y++) s 1250 lib/h.263/swfvideo.c for(x=0;x<s->width;x++) { s 1251 lib/h.263/swfvideo.c s->current[y*s->width+x].y = 0; s 1252 lib/h.263/swfvideo.c s->current[y*s->width+x].u = 128; s 1253 lib/h.263/swfvideo.c s->current[y*s->width+x].v = 128; s 1257 lib/h.263/swfvideo.c s->current[y*s->width+x].y = 64; s 1258 lib/h.263/swfvideo.c s->current[y*s->width+x].u = 128; s 1259 lib/h.263/swfvideo.c s->current[y*s->width+x].v = 128; s 1262 lib/h.263/swfvideo.c for(by=0;by<s->bby;by++) s 1264 lib/h.263/swfvideo.c for(bx=0;bx<s->bbx;bx++) s 1266 lib/h.263/swfvideo.c encode_IFrame_block(tag, s, bx, by); s 1269 lib/h.263/swfvideo.c s->frame++; s 1270 lib/h.263/swfvideo.c memcpy(s->oldpic, s->current, s->width*s->height*sizeof(YUV)); s 1279 lib/h.263/swfvideo.c s->quant = quant; s 1281 lib/h.263/swfvideo.c writeHeader(tag, s->width, s->height, s->frame, quant, TYPE_PFRAME); s 1284 lib/h.263/swfvideo.c memset(s->current, 0, s->linex*s->height*sizeof(YUV)); s 1286 lib/h.263/swfvideo.c rgb2yuv(s->current, pic, s->linex, s->olinex, s->owidth, s->oheight); s 1287 lib/h.263/swfvideo.c memset(s->mvdx, 0, s->bbx*s->bby*sizeof(int)); s 1288 lib/h.263/swfvideo.c memset(s->mvdy, 0, s->bbx*s->bby*sizeof(int)); s 1290 lib/h.263/swfvideo.c for(by=0;by<s->bby;by++) s 1292 lib/h.263/swfvideo.c for(bx=0;bx<s->bbx;bx++) s 1294 lib/h.263/swfvideo.c encode_PFrame_block(tag, s, bx, by); s 1297 lib/h.263/swfvideo.c s->frame++; s 1298 lib/h.263/swfvideo.c memcpy(s->oldpic, s->current, s->width*s->height*sizeof(YUV)); s 1302 lib/h.263/swfvideo.c yuv2rgb(pic, s->current, s->linex, s->width, s->height); s 1303 lib/h.263/swfvideo.c setdbgpic(tag, pic, s->width, s->height); s 1315 lib/h.263/swfvideo.c s->quant = quant; s 1317 lib/h.263/swfvideo.c writeHeader(tag, s->width, s->height, s->frame, quant, TYPE_PFRAME); s 1319 lib/h.263/swfvideo.c memset(s->mvdx, 0, s->bbx*s->bby*sizeof(int)); s 1320 lib/h.263/swfvideo.c memset(s->mvdy, 0, s->bbx*s->bby*sizeof(int)); s 1322 lib/h.263/swfvideo.c for(by=0;by<s->bby;by++) s 1324 lib/h.263/swfvideo.c for(bx=0;bx<s->bbx;bx++) s 1327 lib/h.263/swfvideo.c int mvx=movex[by*s->bbx+bx]; s 1328 lib/h.263/swfvideo.c int mvy=movey[by*s->bbx+bx]; s 1329 lib/h.263/swfvideo.c void*picture = pictures?pictures[by*s->bbx+bx]:0; s 1357 lib/h.263/swfvideo.c dodctandquant(&b, &b2, 1, s->quant); s 1368 lib/h.263/swfvideo.c predictmvd(s,bx,by,&predictmvdx,&predictmvdy); s 1371 lib/h.263/swfvideo.c s->mvdx[by*s->bbx+bx] = mvx; s 1372 lib/h.263/swfvideo.c s->mvdy[by*s->bbx+bx] = mvy; s 1386 lib/h.263/swfvideo.c s->frame++; s 1394 lib/h.263/swfvideo.c VIDEOSTREAM* s = &stream; s 1408 lib/h.263/swfvideo.c swf_SetVideoStreamDefine(tag, s, 10, 256, 256); s 1410 lib/h.263/swfvideo.c rgb2yuv(s->current, pic, s->linex, s->olinex, s->owidth, s->oheight); s 1415 lib/h.263/swfvideo.c diff1 = compare_pic_pic(s, s->current, s->current, bx, by); s 1418 lib/h.263/swfvideo.c getregion(&fb, s->current, bx, by, s->linex); s 1419 lib/h.263/swfvideo.c copy_block_pic(s, s->oldpic, &fb, bx, by); s 1420 lib/h.263/swfvideo.c diff1 = compare_pic_block(s, &fb, s->oldpic, bx, by); s 1423 lib/h.263/swfvideo.c getregion(&fb, s->current, 15-bx, 15-by, s->linex); s 1424 lib/h.263/swfvideo.c copy_block_pic(s, s->oldpic, &fb, bx, by); s 1425 lib/h.263/swfvideo.c diff1 = compare_pic_block(s, &fb, s->current, bx, by); s 1426 lib/h.263/swfvideo.c diff2 = compare_pic_pic(s, s->current, s->oldpic, bx, by); s 375 lib/modules/swfaction.c int s = 0; s 378 lib/modules/swfaction.c while(data[s++]); //name s 379 lib/modules/swfaction.c num = (data[s++]); //num s 380 lib/modules/swfaction.c num += (data[s++])*256; s 382 lib/modules/swfaction.c printf("%s",data+s); // 10/22/04 MD: added +s to s 385 lib/modules/swfaction.c while(data[s++]); //param s 388 lib/modules/swfaction.c codesize = (data[s++]); //num s 389 lib/modules/swfaction.c codesize += (data[s++])*256; s 54 lib/modules/swfalignzones.c int s; s 56 lib/modules/swfalignzones.c for(s=-filter_size;s<=filter_size;s++) { s 57 lib/modules/swfalignzones.c if(t+s<0) continue; s 58 lib/modules/swfalignzones.c if(t+s>width) continue; s 59 lib/modules/swfalignzones.c sum += _row[t+s]*filter[s+filter_size]; s 94 lib/modules/swfalignzones.c double s = d2/d1; s 97 lib/modules/swfalignzones.c double add1 = ext1*s - ext1; s 98 lib/modules/swfalignzones.c double add2 = ext2*s - ext2; s 134 lib/modules/swfalignzones.c SHAPE2*s = swf_ShapeToShape2(g->shape); s 135 lib/modules/swfalignzones.c SHAPELINE*l = s->lines; s 159 lib/modules/swfalignzones.c swf_Shape2Free(s); s 160 lib/modules/swfalignzones.c free(s); s 238 lib/modules/swfalignzones.c int s; s 240 lib/modules/swfalignzones.c for(s=0;s<f->use->num_neighbors;s++) { s 241 lib/modules/swfalignzones.c int char1 = f->use->neighbors[s].char1; s 242 lib/modules/swfalignzones.c int char2 = f->use->neighbors[s].char2; s 250 lib/modules/swfalignzones.c for(s=0;s<=height;s++) { s 160 lib/modules/swfbits.c int s; s 163 lib/modules/swfbits.c for(s=0;s<csize;s++) s 164 lib/modules/swfbits.c palette[i++] = *(RGBA*)(&cpal[s]); s 38 lib/modules/swfcgi.c c = s[0]; s 42 lib/modules/swfcgi.c c = s[1]; s 50 lib/modules/swfcgi.c { unsigned char *dest = s; s 52 lib/modules/swfcgi.c while (s[0]) s 53 lib/modules/swfcgi.c { if (s[0] == '+') dest[0] = ' '; s 55 lib/modules/swfcgi.c { if (s[0] == '%' && ishex(s[1]) && ishex(s[2])) s 56 lib/modules/swfcgi.c { dest[0] = (unsigned char) swf_htoi(s + 1); s 57 lib/modules/swfcgi.c s += 2; s 59 lib/modules/swfcgi.c else dest[0] = s[0]; s 61 lib/modules/swfcgi.c s++;dest++; s 67 lib/modules/swfcgi.c { unsigned char *buf, *c, *s, *t, *oldval = NULL, *newval; s 93 lib/modules/swfcgi.c { for (s = c+1; s[0] && isspace(s[0]); s++); s 95 lib/modules/swfcgi.c while (s[0]) s 96 lib/modules/swfcgi.c { if (s[0] == '\r') s 98 lib/modules/swfcgi.c s++; s 102 lib/modules/swfcgi.c { if (s[0] != '\n') s 106 lib/modules/swfcgi.c *t++ = *s++; s 31 lib/modules/swffilter.c int s; s 32 lib/modules/swffilter.c for(s=0;s<f->gradient->num;s++) s 33 lib/modules/swffilter.c swf_SetRGBA(tag, &f->gradient->rgba[s]); s 34 lib/modules/swffilter.c for(s=0;s<f->gradient->num;s++) s 35 lib/modules/swffilter.c swf_SetU8(tag, f->gradient->ratios[s]); s 92 lib/modules/swffilter.c int s; s 93 lib/modules/swffilter.c for(s=0;s<f->gradient->num;s++) s 94 lib/modules/swffilter.c swf_GetRGBA(tag, &f->gradient->rgba[s]); s 95 lib/modules/swffilter.c for(s=0;s<f->gradient->num;s++) s 96 lib/modules/swffilter.c f->gradient->ratios[s] = swf_GetU8(tag); s 406 lib/modules/swffont.c int s,num; s 142 lib/modules/swfobject.c int s; s 143 lib/modules/swfobject.c for(s=0;s<obj->filters->num;s++) s 144 lib/modules/swfobject.c swf_SetFilter(t,obj->filters->filter[s]); s 40 lib/modules/swfrender.c SHAPE2*s; s 232 lib/modules/swfrender.c double s = sin(t*PI/segments); s 234 lib/modules/swfrender.c xx = (x2 + vx*c - vy*s); s 235 lib/modules/swfrender.c yy = (y2 + vx*s + vy*c); s 252 lib/modules/swfrender.c double s = sin(t*PI/segments); s 254 lib/modules/swfrender.c xx = (x1 - vx*c + vy*s); s 255 lib/modules/swfrender.c yy = (y1 - vx*s - vy*c); s 386 lib/modules/swfrender.c SHAPE2*s = (SHAPE2*)rfx_calloc(sizeof(SHAPE2)); s 388 lib/modules/swfrender.c s->numfillstyles = shape->numlinestyles; s 389 lib/modules/swfrender.c s->fillstyles = (FILLSTYLE*)rfx_calloc(sizeof(FILLSTYLE)*shape->numlinestyles); s 390 lib/modules/swfrender.c s->lines = (SHAPELINE*)rfx_calloc(sizeof(SHAPELINE)*shape->numlinestyles); s 392 lib/modules/swfrender.c s->lines[t].fillstyle0 = t+1; s 393 lib/modules/swfrender.c s->fillstyles[t].type = FILL_SOLID; s 394 lib/modules/swfrender.c s->fillstyles[t].color = shape->linestyles[t].color; s 396 lib/modules/swfrender.c return s; s 434 lib/modules/swfrender.c p.s = s2; s 452 lib/modules/swfrender.c lp.s = lshape; s 664 lib/modules/swfrender.c int s; s 739 lib/modules/swfrender.c } else if(l->fillid > l->p->s->numfillstyles) { s 740 lib/modules/swfrender.c fprintf(stderr, "Fill style out of bounds (%d>%d)", l->fillid, l->p->s->numlinestyles); s 749 lib/modules/swfrender.c f = &l->p->s->fillstyles[l->fillid-1]; s 34 lib/modules/swfshape.c if(!s) s 36 lib/modules/swfshape.c if (s->linestyle.data) rfx_free(s->linestyle.data); s 37 lib/modules/swfshape.c s->linestyle.data = NULL; s 38 lib/modules/swfshape.c s->linestyle.n = 0; s 39 lib/modules/swfshape.c if (s->fillstyle.data) rfx_free(s->fillstyle.data); s 40 lib/modules/swfshape.c s->fillstyle.data = NULL; s 41 lib/modules/swfshape.c s->fillstyle.n = 0; s 42 lib/modules/swfshape.c if (s->data) rfx_free(s->data); s 43 lib/modules/swfshape.c s->data = NULL; s 44 lib/modules/swfshape.c rfx_free(s); s 50 lib/modules/swfshape.c if (!s) return -1; s 52 lib/modules/swfshape.c *s = sh; s 62 lib/modules/swfshape.c if (FAILED(swf_ShapeNew(s))) return -1; s 63 lib/modules/swfshape.c sh = s[0]; s 151 lib/modules/swfshape.c if (!s) return -1; s 152 lib/modules/swfshape.c l = (s->bitlen+7)/8; s 157 lib/modules/swfshape.c swf_SetBits(t,s->bits.fill,4); s 158 lib/modules/swfshape.c swf_SetBits(t,s->bits.line,4); s 159 lib/modules/swfshape.c swf_SetBlock(t,s->data,l); s 215 lib/modules/swfshape.c if (!s) return -1; s 218 lib/modules/swfshape.c l += swf_SetShapeStyleCount(t,s->fillstyle.n); s 220 lib/modules/swfshape.c for (i=0;i<s->fillstyle.n;i++) s 221 lib/modules/swfshape.c l+=swf_SetFillStyle(t,&s->fillstyle.data[i]); s 223 lib/modules/swfshape.c l += swf_SetShapeStyleCount(t,s->linestyle.n); s 225 lib/modules/swfshape.c for (i=0;i<s->linestyle.n;i++) s 226 lib/modules/swfshape.c l+=swf_SetLineStyle(t,&s->linestyle.data[i]); s 232 lib/modules/swfshape.c { if (!s) return -1; s 233 lib/modules/swfshape.c s->bits.fill = swf_CountUBits(s->fillstyle.n, 0); s 234 lib/modules/swfshape.c s->bits.line = swf_CountUBits(s->linestyle.n, 0); s 235 lib/modules/swfshape.c if (fbits) fbits[0] = s->bits.fill; s 236 lib/modules/swfshape.c if (lbits) lbits[0] = s->bits.line; s 241 lib/modules/swfshape.c { if ((!t)||(!s)) return -1; s 243 lib/modules/swfshape.c swf_SetBits(t,s->bits.fill,4); s 244 lib/modules/swfshape.c swf_SetBits(t,s->bits.line,4); s 250 lib/modules/swfshape.c res = swf_SetShapeStyles(t,s); s 251 lib/modules/swfshape.c if (res>=0) res = swf_ShapeCountBits(s,NULL,NULL); s 252 lib/modules/swfshape.c if (res>=0) res = swf_SetShapeBits(t,s); s 263 lib/modules/swfshape.c if (!s) return -1; s 281 lib/modules/swfshape.c if (s->fillstyle.data) s 282 lib/modules/swfshape.c { FILLSTYLE * xnew = (FILLSTYLE *)rfx_realloc(s->fillstyle.data,(s->fillstyle.n+1)*sizeof(FILLSTYLE)); s 284 lib/modules/swfshape.c s->fillstyle.data = xnew; s 287 lib/modules/swfshape.c { s->fillstyle.data = (FILLSTYLE *)rfx_alloc(sizeof(FILLSTYLE)); s 288 lib/modules/swfshape.c s->fillstyle.n = 0; s 289 lib/modules/swfshape.c if (!s->fillstyle.data) return -1; s 294 lib/modules/swfshape.c s->fillstyle.data[s->fillstyle.n].type = type; s 295 lib/modules/swfshape.c s->fillstyle.data[s->fillstyle.n].id_bitmap = id_bitmap; s 296 lib/modules/swfshape.c memcpy(&s->fillstyle.data[s->fillstyle.n].m,m,sizeof(MATRIX)); s 297 lib/modules/swfshape.c memcpy(&s->fillstyle.data[s->fillstyle.n].color,color,sizeof(RGBA)); s 298 lib/modules/swfshape.c memcpy(&s->fillstyle.data[s->fillstyle.n].gradient,gradient,sizeof(GRADIENT)); s 300 lib/modules/swfshape.c return (++s->fillstyle.n); s 304 lib/modules/swfshape.c return swf_ShapeAddFillStyle(s, fs->type, &fs->m, &fs->color, fs->id_bitmap, &fs->gradient); s 308 lib/modules/swfshape.c { return swf_ShapeAddFillStyle(s,FILL_SOLID,NULL,color,0,0); s 312 lib/modules/swfshape.c { return swf_ShapeAddFillStyle(s,clip?FILL_CLIPPED:FILL_TILED,m,NULL,id_bitmap,0); s 316 lib/modules/swfshape.c { return swf_ShapeAddFillStyle(s,radial?FILL_RADIAL:FILL_LINEAR,m,NULL,0,gradient); s 321 lib/modules/swfshape.c if (!s) return -1; s 327 lib/modules/swfshape.c if (s->linestyle.data) s 328 lib/modules/swfshape.c { LINESTYLE * xnew = (LINESTYLE *)rfx_realloc(s->linestyle.data,(s->linestyle.n+1)*sizeof(LINESTYLE)); s 330 lib/modules/swfshape.c s->linestyle.data = xnew; s 333 lib/modules/swfshape.c { s->linestyle.data = (LINESTYLE *)rfx_alloc(sizeof(LINESTYLE)); s 334 lib/modules/swfshape.c s->linestyle.n = 0; s 335 lib/modules/swfshape.c if (!s->linestyle.data) return -1; s 338 lib/modules/swfshape.c s->linestyle.data[s->linestyle.n].width = width; s 339 lib/modules/swfshape.c memcpy(&s->linestyle.data[s->linestyle.n].color,color,sizeof(RGBA)); s 341 lib/modules/swfshape.c return (++s->linestyle.n); s 366 lib/modules/swfshape.c { if ((!t)||(!s)) return -1; s 371 lib/modules/swfshape.c if (fill0) swf_SetBits(t,fill0,s->bits.fill); s 372 lib/modules/swfshape.c if (fill1) swf_SetBits(t,fill1,s->bits.fill); s 373 lib/modules/swfshape.c if (line) swf_SetBits(t,line ,s->bits.line); s 389 lib/modules/swfshape.c if ((!t)||(!s)) return -1; s 405 lib/modules/swfshape.c if (fill0) swf_SetBits(t,fill0,s->bits.fill); s 406 lib/modules/swfshape.c if (fill1) swf_SetBits(t,fill1,s->bits.fill); s 407 lib/modules/swfshape.c if (line) swf_SetBits(t,line ,s->bits.line); s 439 lib/modules/swfshape.c swf_ShapeSetLine(t, s, x1,y1); s 440 lib/modules/swfshape.c swf_ShapeSetLine(t, s, x2,y2); s 477 lib/modules/swfshape.c return swf_ShapeSetLine(t, s, x+ax, y+ay); s 496 lib/modules/swfshape.c swf_ShapeSetMove(t,s,x+begin*rx,y+begin*ry); s 497 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, -C1*rx, C1*ry, -C2*rx, 0); s 498 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, -C2*rx, 0, -C1*rx, -C1*ry); s 499 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, -C1*rx, -C1*ry, 0, -C2*ry); s 500 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, 0, -C2*ry, C1*rx, -C1*ry); s 501 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, C1*rx, -C1*ry, C2*rx, 0); s 502 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, C2*rx, 0, C1*rx, C1*ry); s 503 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, C1*rx, C1*ry, 0, C2*ry); s 504 lib/modules/swfshape.c swf_ShapeSetCurve(t,s, 0, C2*ry, -C1*rx, C1*ry); s 621 lib/modules/swfshape.c if(!s || !s->data) return 1; s 625 lib/modules/swfshape.c tag->data = s->data; s 626 lib/modules/swfshape.c tag->len = tag->memsize = (s->bitlen+7)/8; s 638 lib/modules/swfshape.c if(flags&2) swf_GetBits(tag, s->bits.fill); s 639 lib/modules/swfshape.c if(flags&4) swf_GetBits(tag, s->bits.fill); s 640 lib/modules/swfshape.c if(flags&8) swf_GetBits(tag, s->bits.line); s 810 lib/modules/swfshape.c SHAPELINE*line = s->lines; s 811 lib/modules/swfshape.c s->lines = 0; s 819 lib/modules/swfshape.c if(s->linestyles) { s 820 lib/modules/swfshape.c rfx_free(s->linestyles); s 821 lib/modules/swfshape.c s->linestyles = 0; s 823 lib/modules/swfshape.c if(s->fillstyles) { s 824 lib/modules/swfshape.c rfx_free(s->fillstyles); s 825 lib/modules/swfshape.c s->fillstyles = 0; s 827 lib/modules/swfshape.c if(s->bbox) { s 828 lib/modules/swfshape.c rfx_free(s->bbox); s 829 lib/modules/swfshape.c s->bbox = 0; s 835 lib/modules/swfshape.c SHAPELINE*line = s->lines; s 838 lib/modules/swfshape.c memcpy(s2,s,sizeof(SHAPE2)); s 839 lib/modules/swfshape.c s2->linestyles = (LINESTYLE*)rfx_alloc(sizeof(LINESTYLE)*s->numlinestyles); s 840 lib/modules/swfshape.c memcpy(s2->linestyles, s->linestyles, sizeof(LINESTYLE)*s->numlinestyles); s 841 lib/modules/swfshape.c s2->fillstyles = (FILLSTYLE*)rfx_alloc(sizeof(FILLSTYLE)*s->numfillstyles); s 842 lib/modules/swfshape.c memcpy(s2->fillstyles, s->fillstyles, sizeof(FILLSTYLE)*s->numfillstyles); s 855 lib/modules/swfshape.c if(s->bbox) { s 857 lib/modules/swfshape.c memcpy(s2->bbox, s->bbox, sizeof(SRECT)); s 926 lib/modules/swfshape.c SHAPE* s; s 927 lib/modules/swfshape.c swf_ShapeNew(&s); s 928 lib/modules/swfshape.c int fs = swf_ShapeAddSolidFillStyle(s, rgba); s 936 lib/modules/swfshape.c swf_SetShapeHeader(tag,s); s 937 lib/modules/swfshape.c swf_ShapeSetAll(tag,s,0,0,0,fs,0); s 938 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,width,0); s 939 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,0,height); s 940 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,-width,0); s 941 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,0,-height); s 943 lib/modules/swfshape.c swf_ShapeFree(s); s 952 lib/modules/swfshape.c SHAPE* s; s 953 lib/modules/swfshape.c swf_ShapeNew(&s); s 954 lib/modules/swfshape.c int fs = swf_ShapeAddSolidFillStyle(s, rgba); s 955 lib/modules/swfshape.c int ls = swf_ShapeAddLineStyle(s, linewidth, linecolor); s 963 lib/modules/swfshape.c swf_SetShapeHeader(tag,s); s 964 lib/modules/swfshape.c swf_ShapeSetAll(tag,s,0,0,ls,fs,0); s 965 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,width,0); s 966 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,0,height); s 967 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,-width,0); s 968 lib/modules/swfshape.c swf_ShapeSetLine(tag,s,0,-height); s 970 lib/modules/swfshape.c swf_ShapeFree(s); s 1097 lib/modules/swfshape.c SHAPE s; s 1114 lib/modules/swfshape.c swf_Shape2ToShape(&s2,&s); s 1119 lib/modules/swfshape.c free(s.fillstyle.data); s 1120 lib/modules/swfshape.c free(s.linestyle.data); s 1121 lib/modules/swfshape.c *destdata = s.data; s 1122 lib/modules/swfshape.c *destbitlen = s.bitlen; s 238 lib/modules/swfsound.c int s; s 121 lib/modules/swftext.c U8 s[257]; s 122 lib/modules/swftext.c s[0] = 0; s 129 lib/modules/swftext.c swf_GetBlock(t, s, l); s 130 lib/modules/swftext.c s[l] = 0; s 133 lib/modules/swftext.c (FontCallback) (self, id, s); s 942 lib/modules/swftext.c if( (!s)) s 944 lib/modules/swftext.c while (*s) { s 945 lib/modules/swftext.c if(*s < f->maxascii && f->ascii2glyph[*s]>=0) s 946 lib/modules/swftext.c swf_FontUseGlyph(f, f->ascii2glyph[*s], /*FIXME*/0xffff); s 947 lib/modules/swftext.c s++; s 954 lib/modules/swftext.c if( (!s)) s 957 lib/modules/swftext.c while (*s) s 959 lib/modules/swftext.c ascii = readUTF8char((U8**)&s); s 1388 lib/modules/swftext.c if ((!s) || (!font) || ((!gbits) && (!abits)) || (!font->ascii2glyph)) s 1399 lib/modules/swftext.c while (*s) { s 1403 lib/modules/swftext.c c = *s++; s 1405 lib/modules/swftext.c c = readUTF8char(&s); s 1427 lib/modules/swftext.c if ((!t) || (!font) || (!s) || (!font->ascii2glyph)) s 1440 lib/modules/swftext.c while (*s) { s 1444 lib/modules/swftext.c c = *s++; s 1446 lib/modules/swftext.c c = readUTF8char(&s); s 1472 lib/modules/swftext.c return swf_TextCountBits2(font, s, scale, gbits, abits, "iso-8859-1"); s 1477 lib/modules/swftext.c return swf_TextSetCharRecord2(t, font, s, scale, gbits, abits, "iso-8859-1"); s 1482 lib/modules/swftext.c return swf_TextCountBits2(font, s, scale, gbits, abits, "UTF8"); s 1487 lib/modules/swftext.c return swf_TextSetCharRecord2(t, font, s, scale, gbits, abits, "UTF8"); s 1494 lib/modules/swftext.c if (font && s) { s 1495 lib/modules/swftext.c while (s[0]) { s 1497 lib/modules/swftext.c if (*s < font->maxascii) s 1498 lib/modules/swftext.c g = font->ascii2glyph[*s]; s 1501 lib/modules/swftext.c s++; s 1515 lib/modules/swftext.c while (*s) { s 1516 lib/modules/swftext.c int c = readUTF8char(&s); s 1518 lib/modules/swftext.c if(s[0] == 10) { s 1519 lib/modules/swftext.c s++; s 1731 lib/modules/swftext.c U8 *s = (U8 *) text; s 1733 lib/modules/swftext.c while (*s) { s 1737 lib/modules/swftext.c U32 c = readUTF8char(&s); s 1860 lib/modules/swftext.c SHAPE*s = font->glyph[t].shape; s 1861 lib/modules/swftext.c SHAPE2*s2 = swf_ShapeToShape2(s); s 1936 lib/modules/swftext.c SHAPE* s; s 1937 lib/modules/swftext.c swf_ShapeNew(&s); s 1938 lib/modules/swftext.c int ls = swf_ShapeAddLineStyle(s,20,&white); s 1947 lib/modules/swftext.c swf_SetShapeHeader(tag,s); s 1948 lib/modules/swftext.c swf_ShapeSetAll(tag,s,0,0,ls,0,0); s 1954 lib/modules/swftext.c swf_ShapeSetMove(tag,s,0,y1); s 1955 lib/modules/swftext.c swf_ShapeSetLine(tag,s,width,0); s 1956 lib/modules/swftext.c swf_ShapeSetMove(tag,s,0,y2); s 1957 lib/modules/swftext.c swf_ShapeSetLine(tag,s,width,0); s 1960 lib/modules/swftext.c swf_ShapeFree(s); s 1969 lib/modules/swftext.c SHAPE* s; s 1970 lib/modules/swftext.c swf_ShapeNew(&s); s 1971 lib/modules/swftext.c int ls = swf_ShapeAddLineStyle(s,20*2,&black); s 1972 lib/modules/swftext.c int ls2 = swf_ShapeAddLineStyle(s,20*2,&green); s 1973 lib/modules/swftext.c int fs = swf_ShapeAddSolidFillStyle(s, &gray50); s 1982 lib/modules/swftext.c swf_SetShapeHeader(tag,s); s 1983 lib/modules/swftext.c swf_ShapeSetAll(tag,s,0,0,ls,fs,0); s 1999 lib/modules/swftext.c swf_ShapeSetMove(tag,s,lx,ly); s 2001 lib/modules/swftext.c swf_ShapeSetLine(tag,s,lx-lastx,ly-lasty); s 2003 lib/modules/swftext.c swf_ShapeSetCurve(tag,s,sx-lastx,sy-lasty,lx-sx,ly-sy); s 2012 lib/modules/swftext.c swf_ShapeSetAll(tag,s,0,0,ls2,SET_TO_ZERO,SET_TO_ZERO); s 2016 lib/modules/swftext.c swf_ShapeSetMove(tag,s,x,0); s 2017 lib/modules/swftext.c swf_ShapeSetLine(tag,s,0,1024*20); s 2018 lib/modules/swftext.c swf_ShapeSetMove(tag,s,dx,0); s 2019 lib/modules/swftext.c swf_ShapeSetLine(tag,s,0,1024*20); s 2024 lib/modules/swftext.c swf_ShapeSetMove(tag,s,0,y); s 2025 lib/modules/swftext.c swf_ShapeSetLine(tag,s,1024*20,0); s 2026 lib/modules/swftext.c swf_ShapeSetMove(tag,s,0,dy); s 2027 lib/modules/swftext.c swf_ShapeSetLine(tag,s,1024*20,0); s 2032 lib/modules/swftext.c swf_ShapeFree(s); s 604 lib/modules/swftools.c int s; s 605 lib/modules/swftools.c for(s=0;s<npoints;s++) s 1312 lib/pdf/BitmapOutputDev.cc int s; s 1313 lib/pdf/BitmapOutputDev.cc for(s=0;s<subnum;s++) { s 1315 lib/pdf/BitmapOutputDev.cc state->transform(subpath->getX(s),subpath->getY(s),&x,&y); s 1486 lib/pdf/BitmapOutputDev.cc clip0dev->beginString(state, s); s 1487 lib/pdf/BitmapOutputDev.cc clip1dev->beginString(state, s); s 1488 lib/pdf/BitmapOutputDev.cc booltextdev->beginString(state, s); s 1489 lib/pdf/BitmapOutputDev.cc gfxdev->beginString(state, s); s 139 lib/pdf/BitmapOutputDev.h virtual void beginString(GfxState *state, GString *s); s 145 lib/pdf/BitmapOutputDev.h virtual void drawString(GfxState *state, GString *s); s 465 lib/pdf/FullBitmapOutputDev.cc rgbdev->beginString(state, s); s 483 lib/pdf/FullBitmapOutputDev.cc rgbdev->drawString(state, s); s 128 lib/pdf/FullBitmapOutputDev.h virtual void beginString(GfxState *state, GString *s); s 134 lib/pdf/FullBitmapOutputDev.h virtual void drawString(GfxState *state, GString *s); s 859 lib/pdf/GFXOutputDev.cc int s; s 860 lib/pdf/GFXOutputDev.cc for(s=0;s<subnum;s++) { s 861 lib/pdf/GFXOutputDev.cc double x=subpath->getX(s); s 862 lib/pdf/GFXOutputDev.cc double y=subpath->getY(s); s 863 lib/pdf/GFXOutputDev.cc if(s==0 && !subpath->getCurve(s)) { s 865 lib/pdf/GFXOutputDev.cc } else if(s==0 && subpath->getCurve(s)) { s 867 lib/pdf/GFXOutputDev.cc } else if(subpath->getCurve(s)) { s 879 lib/pdf/GFXOutputDev.cc int s,t; s 895 lib/pdf/GFXOutputDev.cc for(s=0;s<subnum;s++) { s 898 lib/pdf/GFXOutputDev.cc this->transformXY(state, subpath->getX(s),subpath->getY(s),&x,&y); s 900 lib/pdf/GFXOutputDev.cc if(s==0) { s 909 lib/pdf/GFXOutputDev.cc } else if(subpath->getCurve(s) && cpos==0) { s 913 lib/pdf/GFXOutputDev.cc } else if(subpath->getCurve(s) && cpos==1) { s 1422 lib/pdf/GFXOutputDev.cc msg("<trace> beginString(%s) render=%d", makeStringPrintable(s->getCString()), render); s 1746 lib/pdf/GFXOutputDev.cc char*s = 0; s 1768 lib/pdf/GFXOutputDev.cc s = strdup(buf); s 1778 lib/pdf/GFXOutputDev.cc s = strdup(g->getCString()); s 1779 lib/pdf/GFXOutputDev.cc if(!s) { s 1785 lib/pdf/GFXOutputDev.cc s = strdup(g->getCString()); s 1794 lib/pdf/GFXOutputDev.cc s = strdup(name->lowerCase()->getCString()); s 1796 lib/pdf/GFXOutputDev.cc if(!strchr(s,':')) s 1798 lib/pdf/GFXOutputDev.cc if(strstr(s, "next") || strstr(s, "forward")) s 1802 lib/pdf/GFXOutputDev.cc else if(strstr(s, "prev") || strstr(s, "back")) s 1806 lib/pdf/GFXOutputDev.cc else if(strstr(s, "last") || strstr(s, "end")) s 1812 lib/pdf/GFXOutputDev.cc else if(strstr(s, "first") || strstr(s, "top")) s 1827 lib/pdf/GFXOutputDev.cc s = strdup(str->getCString()); s 1838 lib/pdf/GFXOutputDev.cc s = strdup(url); s 1845 lib/pdf/GFXOutputDev.cc s = strdup(""); s 1854 lib/pdf/GFXOutputDev.cc if(!s) s = strdup("-?-"); s 1856 lib/pdf/GFXOutputDev.cc msg("<trace> drawlink s=%s", s); s 1858 lib/pdf/GFXOutputDev.cc if(!gfxglobals->linkinfo && (page || s)) s 1881 lib/pdf/GFXOutputDev.cc else if(s) s 1883 lib/pdf/GFXOutputDev.cc device->drawlink(device, points, s); s 1886 lib/pdf/GFXOutputDev.cc fprintf(fi, "%s\n", s); s 1891 lib/pdf/GFXOutputDev.cc msg("<verbose> \"%s\" link to \"%s\" (%d)", type, FIXNULL(s), page); s 1892 lib/pdf/GFXOutputDev.cc free(s);s=0; s 158 lib/pdf/GFXOutputDev.h virtual void beginString(GfxState *state, GString *s) ; s 123 lib/pdf/InfoOutputDev.cc int s; s 124 lib/pdf/InfoOutputDev.cc for(s=0;s<font->num_glyphs;s++) { s 125 lib/pdf/InfoOutputDev.cc if(s!=t && font->glyphs[s].unicode==32) s 126 lib/pdf/InfoOutputDev.cc font->glyphs[s].unicode=0; s 183 lib/pdf/InfoOutputDev.cc int s; s 186 lib/pdf/InfoOutputDev.cc for(s=0;s<len;s++) { s 189 lib/pdf/InfoOutputDev.cc path->getPoint(s, &x, &y, &f); s 190 lib/pdf/InfoOutputDev.cc if(!s || x > xmax) s 197 lib/pdf/InfoOutputDev.cc path->getPoint(++s, &x2, &y2, &f); s 200 lib/pdf/InfoOutputDev.cc path->getPoint(++s, &x3, &y3, &f); s 131 lib/pdf/XMLOutputDev.cc char*s = word->getText()->getCString(); s 132 lib/pdf/XMLOutputDev.cc while(*s) { s 133 lib/pdf/XMLOutputDev.cc switch(*s) { s 137 lib/pdf/XMLOutputDev.cc default: fwrite(s, 1, 1, out); s 139 lib/pdf/XMLOutputDev.cc s++; s 307 lib/pdf/bbox.c int s; s 308 lib/pdf/bbox.c for(s=0;s<4;s++) { s 309 lib/pdf/bbox.c int x=h->x+xx*signx[s]; s 310 lib/pdf/bbox.c int y=h->y+yy*signy[s]; s 324 lib/pdf/pdf.cc char *s; s 327 lib/pdf/pdf.cc s = obj.getString()->getCString(); s 328 lib/pdf/pdf.cc if (s[0] == 'D' && s[1] == ':') { s 329 lib/pdf/pdf.cc s += 2; s 331 lib/pdf/pdf.cc char*ret = strdup(s); s 340 lib/pdf/xpdf/CMap.cc return ((s[0] & 0xff) << 8) + (s[1] & 0xff); s 348 lib/pdf/xpdf/CMap.cc i = s[n++] & 0xff; s 54 lib/pdf/xpdf/CMap.h CID getCID(char *s, int len, int *nUsed); s 159 lib/pdf/xpdf/Catalog.cc GString *s; s 173 lib/pdf/xpdf/Catalog.cc s = new GString(); s 176 lib/pdf/xpdf/Catalog.cc s->append(c); s 179 lib/pdf/xpdf/Catalog.cc return s; s 453 lib/pdf/xpdf/Decrypt.cc s2 = (s & 0x80) ? ((s << 1) ^ 0x1b) : (s << 1); s 456 lib/pdf/xpdf/Decrypt.cc return s ^ s8; s 463 lib/pdf/xpdf/Decrypt.cc s2 = (s & 0x80) ? ((s << 1) ^ 0x1b) : (s << 1); s 466 lib/pdf/xpdf/Decrypt.cc return s ^ s2 ^ s8; s 473 lib/pdf/xpdf/Decrypt.cc s2 = (s & 0x80) ? ((s << 1) ^ 0x1b) : (s << 1); s 476 lib/pdf/xpdf/Decrypt.cc return s ^ s4 ^ s8; s 483 lib/pdf/xpdf/Decrypt.cc s2 = (s & 0x80) ? ((s << 1) ^ 0x1b) : (s << 1); s 540 lib/pdf/xpdf/Decrypt.cc s->w[i] = (objKey[4*i] << 24) + (objKey[4*i+1] << 16) + s 544 lib/pdf/xpdf/Decrypt.cc temp = s->w[i-1]; s 548 lib/pdf/xpdf/Decrypt.cc s->w[i] = s->w[i-4] ^ temp; s 551 lib/pdf/xpdf/Decrypt.cc invMixColumnsW(&s->w[round * 4]); s 560 lib/pdf/xpdf/Decrypt.cc s->state[c] = in[4*c]; s 561 lib/pdf/xpdf/Decrypt.cc s->state[4+c] = in[4*c+1]; s 562 lib/pdf/xpdf/Decrypt.cc s->state[8+c] = in[4*c+2]; s 563 lib/pdf/xpdf/Decrypt.cc s->state[12+c] = in[4*c+3]; s 567 lib/pdf/xpdf/Decrypt.cc addRoundKey(s->state, &s->w[10 * 4]); s 571 lib/pdf/xpdf/Decrypt.cc invSubBytes(s->state); s 572 lib/pdf/xpdf/Decrypt.cc invShiftRows(s->state); s 573 lib/pdf/xpdf/Decrypt.cc invMixColumns(s->state); s 574 lib/pdf/xpdf/Decrypt.cc addRoundKey(s->state, &s->w[round * 4]); s 578 lib/pdf/xpdf/Decrypt.cc invSubBytes(s->state); s 579 lib/pdf/xpdf/Decrypt.cc invShiftRows(s->state); s 580 lib/pdf/xpdf/Decrypt.cc addRoundKey(s->state, &s->w[0]); s 584 lib/pdf/xpdf/Decrypt.cc s->buf[4*c] = s->state[c] ^ s->cbc[4*c]; s 585 lib/pdf/xpdf/Decrypt.cc s->buf[4*c+1] = s->state[4+c] ^ s->cbc[4*c+1]; s 586 lib/pdf/xpdf/Decrypt.cc s->buf[4*c+2] = s->state[8+c] ^ s->cbc[4*c+2]; s 587 lib/pdf/xpdf/Decrypt.cc s->buf[4*c+3] = s->state[12+c] ^ s->cbc[4*c+3]; s 592 lib/pdf/xpdf/Decrypt.cc s->cbc[i] = in[i]; s 596 lib/pdf/xpdf/Decrypt.cc s->bufIdx = 0; s 598 lib/pdf/xpdf/Decrypt.cc n = s->buf[15]; s 601 lib/pdf/xpdf/Decrypt.cc s->buf[i] = s->buf[i-n]; s 603 lib/pdf/xpdf/Decrypt.cc s->bufIdx = n; s 619 lib/pdf/xpdf/Decrypt.cc return b + rotateLeft((a + ((b & c) | (~b & d)) + Xk + Ti), s); s 624 lib/pdf/xpdf/Decrypt.cc return b + rotateLeft((a + ((b & d) | (c & ~d)) + Xk + Ti), s); s 629 lib/pdf/xpdf/Decrypt.cc return b + rotateLeft((a + (b ^ c ^ d) + Xk + Ti), s); s 634 lib/pdf/xpdf/Decrypt.cc return b + rotateLeft((a + (c ^ (b | ~d)) + Xk + Ti), s); s 1750 lib/pdf/xpdf/FoFiTrueType.cc buf = GString::format("{0:02x}", s[i+j] & 0xff); s 153 lib/pdf/xpdf/FoFiTrueType.h void dumpString(Guchar *s, int length, s 1799 lib/pdf/xpdf/FoFiType1C.cc for (p = (Guchar *)s; *p; ++p) { s 1823 lib/pdf/xpdf/FoFiType1C.cc x = s[i] ^ (eb->r1 >> 8); s 190 lib/pdf/xpdf/FoFiType1C.h void eexecWrite(Type1CEexecBuf *eb, char *s); s 191 lib/pdf/xpdf/FoFiType1C.h void eexecWriteCharstring(Type1CEexecBuf *eb, Guchar *s, int n); s 193 lib/pdf/xpdf/Function.cc Guint s; s 323 lib/pdf/xpdf/Function.cc s = str->getChar(); s 325 lib/pdf/xpdf/Function.cc s = str->getChar(); s 326 lib/pdf/xpdf/Function.cc s = (s << 8) + str->getChar(); s 328 lib/pdf/xpdf/Function.cc s = str->getChar(); s 329 lib/pdf/xpdf/Function.cc s = (s << 8) + str->getChar(); s 330 lib/pdf/xpdf/Function.cc s = (s << 8) + str->getChar(); s 331 lib/pdf/xpdf/Function.cc s = (s << 8) + str->getChar(); s 337 lib/pdf/xpdf/Function.cc s = (buf >> (bits - sampleBits)) & bitMask; s 340 lib/pdf/xpdf/Function.cc samples[i] = (double)s * sampleMul; s 1208 lib/pdf/xpdf/Function.cc GString *s; s 1212 lib/pdf/xpdf/Function.cc s = new GString(); s 1230 lib/pdf/xpdf/Function.cc s->append((char)c); s 1233 lib/pdf/xpdf/Function.cc s->append((char)c); s 1243 lib/pdf/xpdf/Function.cc s->append((char)c); s 1252 lib/pdf/xpdf/Function.cc return s; s 34 lib/pdf/xpdf/GString.cc char *s; s 86 lib/pdf/xpdf/GString.cc if (!s) { s 87 lib/pdf/xpdf/GString.cc s = new char[size(length1)]; s 91 lib/pdf/xpdf/GString.cc memcpy(s1, s, length1); s 94 lib/pdf/xpdf/GString.cc memcpy(s1, s, length + 1); s 96 lib/pdf/xpdf/GString.cc delete[] s; s 97 lib/pdf/xpdf/GString.cc s = s1; s 102 lib/pdf/xpdf/GString.cc s = NULL; s 104 lib/pdf/xpdf/GString.cc s[0] = '\0'; s 110 lib/pdf/xpdf/GString.cc s = NULL; s 112 lib/pdf/xpdf/GString.cc memcpy(s, sA, n + 1); s 116 lib/pdf/xpdf/GString.cc s = NULL; s 118 lib/pdf/xpdf/GString.cc memcpy(s, sA, length * sizeof(char)); s 119 lib/pdf/xpdf/GString.cc s[length] = '\0'; s 123 lib/pdf/xpdf/GString.cc s = NULL; s 125 lib/pdf/xpdf/GString.cc memcpy(s, str->getCString() + idx, length); s 126 lib/pdf/xpdf/GString.cc s[length] = '\0'; s 130 lib/pdf/xpdf/GString.cc s = NULL; s 132 lib/pdf/xpdf/GString.cc memcpy(s, str->getCString(), length + 1); s 139 lib/pdf/xpdf/GString.cc s = NULL; s 141 lib/pdf/xpdf/GString.cc memcpy(s, str1->getCString(), n1); s 142 lib/pdf/xpdf/GString.cc memcpy(s + n1, str2->getCString(), n2 + 1); s 156 lib/pdf/xpdf/GString.cc GString *s; s 158 lib/pdf/xpdf/GString.cc s = new GString(); s 160 lib/pdf/xpdf/GString.cc s->appendfv(fmt, argList); s 162 lib/pdf/xpdf/GString.cc return s; s 166 lib/pdf/xpdf/GString.cc GString *s; s 168 lib/pdf/xpdf/GString.cc s = new GString(); s 169 lib/pdf/xpdf/GString.cc s->appendfv(fmt, argList); s 170 lib/pdf/xpdf/GString.cc return s; s 174 lib/pdf/xpdf/GString.cc delete[] s; s 178 lib/pdf/xpdf/GString.cc s[length = 0] = '\0'; s 185 lib/pdf/xpdf/GString.cc s[length++] = c; s 186 lib/pdf/xpdf/GString.cc s[length] = '\0'; s 194 lib/pdf/xpdf/GString.cc memcpy(s + length, str->getCString(), n + 1); s 203 lib/pdf/xpdf/GString.cc memcpy(s + length, str, n + 1); s 210 lib/pdf/xpdf/GString.cc memcpy(s + length, str, lengthA); s 212 lib/pdf/xpdf/GString.cc s[length] = '\0'; s 341 lib/pdf/xpdf/GString.cc args[argsLen].s = va_arg(argList, char *); s 418 lib/pdf/xpdf/GString.cc str = arg.s; s 566 lib/pdf/xpdf/GString.cc s[j] = s[j-1]; s 567 lib/pdf/xpdf/GString.cc s[i] = c; s 578 lib/pdf/xpdf/GString.cc s[j+n] = s[j]; s 579 lib/pdf/xpdf/GString.cc memcpy(s+i, str->getCString(), n); s 590 lib/pdf/xpdf/GString.cc s[j+n] = s[j]; s 591 lib/pdf/xpdf/GString.cc memcpy(s+i, str, n); s 601 lib/pdf/xpdf/GString.cc s[j+lengthA] = s[j]; s 602 lib/pdf/xpdf/GString.cc memcpy(s+i, str, lengthA); s 615 lib/pdf/xpdf/GString.cc s[j] = s[j + n]; s 626 lib/pdf/xpdf/GString.cc if (islower(s[i])) s 627 lib/pdf/xpdf/GString.cc s[i] = toupper(s[i]); s 636 lib/pdf/xpdf/GString.cc if (isupper(s[i])) s 637 lib/pdf/xpdf/GString.cc s[i] = tolower(s[i]); s 648 lib/pdf/xpdf/GString.cc for (i = 0, p1 = s, p2 = str->s; i < n1 && i < n2; ++i, ++p1, ++p2) { s 663 lib/pdf/xpdf/GString.cc for (i = 0, p1 = s, p2 = str->s; s 682 lib/pdf/xpdf/GString.cc for (i = 0, p1 = s, p2 = sA; i < n1 && *p2; ++i, ++p1, ++p2) { s 702 lib/pdf/xpdf/GString.cc for (i = 0, p1 = s, p2 = sA; i < n1 && *p2 && i < n; ++i, ++p1, ++p2) { s 80 lib/pdf/xpdf/GString.h char *getCString() { return s; } s 83 lib/pdf/xpdf/GString.h char getChar(int i) { return s[i]; } s 86 lib/pdf/xpdf/GString.h void setChar(int i, char c) { s[i] = c; } s 123 lib/pdf/xpdf/GString.h char *s; s 2111 lib/pdf/xpdf/Gfx.cc double s[4], sMin, sMax, tmp; s 2234 lib/pdf/xpdf/Gfx.cc s[0] = (yMin - ty) / dx; s 2235 lib/pdf/xpdf/Gfx.cc s[1] = (yMax - ty) / dx; s 2236 lib/pdf/xpdf/Gfx.cc s[2] = (xMin - tx) / -dy; s 2237 lib/pdf/xpdf/Gfx.cc s[3] = (xMax - tx) / -dy; s 2241 lib/pdf/xpdf/Gfx.cc if (s[k] < s[kk]) { s 2245 lib/pdf/xpdf/Gfx.cc tmp = s[j]; s[j] = s[kk]; s[kk] = tmp; s 2247 lib/pdf/xpdf/Gfx.cc sMin = s[1]; s 2248 lib/pdf/xpdf/Gfx.cc sMax = s[2]; s 2306 lib/pdf/xpdf/Gfx.cc s[0] = (yMin - ty) / dx; s 2307 lib/pdf/xpdf/Gfx.cc s[1] = (yMax - ty) / dx; s 2308 lib/pdf/xpdf/Gfx.cc s[2] = (xMin - tx) / -dy; s 2309 lib/pdf/xpdf/Gfx.cc s[3] = (xMax - tx) / -dy; s 2313 lib/pdf/xpdf/Gfx.cc if (s[k] < s[kk]) { s 2317 lib/pdf/xpdf/Gfx.cc tmp = s[j]; s[j] = s[kk]; s[kk] = tmp; s 2319 lib/pdf/xpdf/Gfx.cc sMin = s[1]; s 2320 lib/pdf/xpdf/Gfx.cc sMax = s[2]; s 3153 lib/pdf/xpdf/Gfx.cc out->beginString(state, s); s 3184 lib/pdf/xpdf/Gfx.cc p = s->getCString(); s 3185 lib/pdf/xpdf/Gfx.cc len = s->getLength(); s 3236 lib/pdf/xpdf/Gfx.cc p = s->getCString(); s 3237 lib/pdf/xpdf/Gfx.cc len = s->getLength(); s 3269 lib/pdf/xpdf/Gfx.cc p = s->getCString(); s 3270 lib/pdf/xpdf/Gfx.cc len = s->getLength(); s 3298 lib/pdf/xpdf/Gfx.cc out->drawString(state, s); s 3306 lib/pdf/xpdf/Gfx.cc updateLevel += 10 * s->getLength(); s 276 lib/pdf/xpdf/Gfx.h void doShowText(GString *s); s 915 lib/pdf/xpdf/GfxFont.cc *code = c = (CharCode)(*s & 0xff); s 1436 lib/pdf/xpdf/GfxFont.cc *code = (CharCode)(cid = cMap->getCID(s, len, &n)); s 164 lib/pdf/xpdf/GfxFont.h virtual int getNextChar(char *s, int len, CharCode *code, s 205 lib/pdf/xpdf/GfxFont.h virtual int getNextChar(char *s, int len, CharCode *code, s 268 lib/pdf/xpdf/GfxFont.h virtual int getNextChar(char *s, int len, CharCode *code, s 982 lib/pdf/xpdf/GfxState.cc char *s; s 1031 lib/pdf/xpdf/GfxState.cc s = obj1.getString()->getCString(); s 1034 lib/pdf/xpdf/GfxState.cc cs->lookup[i*n + j] = (Guchar)*s++; s 1161 lib/pdf/xpdf/GlobalParams.cc char*s = strchr(filename->getCString()+strlen(prefix), '/'); s 1162 lib/pdf/xpdf/GlobalParams.cc if(s) { s 1164 lib/pdf/xpdf/GlobalParams.cc fullpath->append(s+1); s 2010 lib/pdf/xpdf/GlobalParams.cc GString *s; s 2013 lib/pdf/xpdf/GlobalParams.cc s = baseDir->copy(); s 2015 lib/pdf/xpdf/GlobalParams.cc return s; s 2123 lib/pdf/xpdf/GlobalParams.cc GString *s; s 2126 lib/pdf/xpdf/GlobalParams.cc s = psFile ? psFile->copy() : (GString *)NULL; s 2128 lib/pdf/xpdf/GlobalParams.cc return s; s 2316 lib/pdf/xpdf/GlobalParams.cc GString *s; s 2319 lib/pdf/xpdf/GlobalParams.cc s = textEncoding->copy(); s 2321 lib/pdf/xpdf/GlobalParams.cc return s; s 2376 lib/pdf/xpdf/GlobalParams.cc GString *s; s 2379 lib/pdf/xpdf/GlobalParams.cc s = initialZoom->copy(); s 2381 lib/pdf/xpdf/GlobalParams.cc return s; s 2786 lib/pdf/xpdf/GlobalParams.cc if (!strcmp(s, "unix")) { s 2788 lib/pdf/xpdf/GlobalParams.cc } else if (!strcmp(s, "dos")) { s 2790 lib/pdf/xpdf/GlobalParams.cc } else if (!strcmp(s, "mac")) { s 2815 lib/pdf/xpdf/GlobalParams.cc initialZoom = new GString(s); s 2829 lib/pdf/xpdf/GlobalParams.cc ok = parseYesNo2(s, &enableT1lib); s 2838 lib/pdf/xpdf/GlobalParams.cc ok = parseYesNo2(s, &enableFreeType); s 2848 lib/pdf/xpdf/GlobalParams.cc ok = parseYesNo2(s, &antialias); s 2857 lib/pdf/xpdf/GlobalParams.cc ok = parseYesNo2(s, &vectorAntialias); s 291 lib/pdf/xpdf/GlobalParams.h GBool setTextEOL(char *s); s 294 lib/pdf/xpdf/GlobalParams.h void setInitialZoom(char *s); s 296 lib/pdf/xpdf/GlobalParams.h GBool setEnableT1lib(char *s); s 297 lib/pdf/xpdf/GlobalParams.h GBool setEnableFreeType(char *s); s 298 lib/pdf/xpdf/GlobalParams.h GBool setAntialias(char *s); s 299 lib/pdf/xpdf/GlobalParams.h GBool setVectorAntialias(char *s); s 221 lib/pdf/xpdf/JArithmeticDecoder.cc int s; s 226 lib/pdf/xpdf/JArithmeticDecoder.cc s = decodeIntBit(stats); s 270 lib/pdf/xpdf/JArithmeticDecoder.cc if (s) { s 2234 lib/pdf/xpdf/JBIG2Stream.cc int t, dt, tt, s, ds, sFirst, j; s 2279 lib/pdf/xpdf/JBIG2Stream.cc s = sFirst; s 2363 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, tt, s, combOp); s 2366 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, tt, s, combOp); s 2369 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, tt - bw, s, combOp); s 2372 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, tt - bw, s, combOp); s 2375 lib/pdf/xpdf/JBIG2Stream.cc s += bh; s 2379 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, s, tt - bh, combOp); s 2382 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, s, tt, combOp); s 2385 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, s, tt - bh, combOp); s 2388 lib/pdf/xpdf/JBIG2Stream.cc bitmap->combine(symbolBitmap, s, tt, combOp); s 2391 lib/pdf/xpdf/JBIG2Stream.cc s += bw; s 2416 lib/pdf/xpdf/JBIG2Stream.cc s += sOffset + ds; s 122 lib/pdf/xpdf/Lexer.cc GString *s; s 203 lib/pdf/xpdf/Lexer.cc s = NULL; s 292 lib/pdf/xpdf/Lexer.cc if (!s) s 293 lib/pdf/xpdf/Lexer.cc s = new GString(tokBuf, tokBufSize); s 295 lib/pdf/xpdf/Lexer.cc s->append(tokBuf, tokBufSize); s 303 lib/pdf/xpdf/Lexer.cc if (!s) s 304 lib/pdf/xpdf/Lexer.cc s = new GString(tokBuf, n); s 306 lib/pdf/xpdf/Lexer.cc s->append(tokBuf, n); s 307 lib/pdf/xpdf/Lexer.cc obj->initString(s); s 376 lib/pdf/xpdf/Lexer.cc s = NULL; s 398 lib/pdf/xpdf/Lexer.cc if (!s) s 399 lib/pdf/xpdf/Lexer.cc s = new GString(tokBuf, tokBufSize); s 401 lib/pdf/xpdf/Lexer.cc s->append(tokBuf, tokBufSize); s 412 lib/pdf/xpdf/Lexer.cc if (!s) s 413 lib/pdf/xpdf/Lexer.cc s = new GString(tokBuf, n); s 415 lib/pdf/xpdf/Lexer.cc s->append(tokBuf, n); s 417 lib/pdf/xpdf/Lexer.cc s->append((char)(c2 << 4)); s 418 lib/pdf/xpdf/Lexer.cc obj->initString(s); s 48 lib/pdf/xpdf/Outline.cc GString *s; s 57 lib/pdf/xpdf/Outline.cc s = obj1.getString(); s 58 lib/pdf/xpdf/Outline.cc if ((s->getChar(0) & 0xff) == 0xfe && s 59 lib/pdf/xpdf/Outline.cc (s->getChar(1) & 0xff) == 0xff) { s 60 lib/pdf/xpdf/Outline.cc titleLen = (s->getLength() - 2) / 2; s 63 lib/pdf/xpdf/Outline.cc title[i] = ((s->getChar(2 + 2*i) & 0xff) << 8) | s 64 lib/pdf/xpdf/Outline.cc (s->getChar(3 + 2*i) & 0xff); s 67 lib/pdf/xpdf/Outline.cc titleLen = s->getLength(); s 70 lib/pdf/xpdf/Outline.cc title[i] = pdfDocEncoding[s->getChar(i) & 0xff]; s 177 lib/pdf/xpdf/OutputDev.h virtual void beginString(GfxState *state, GString *s) {} s 183 lib/pdf/xpdf/OutputDev.h virtual void drawString(GfxState *state, GString *s) {} s 47 lib/pdf/xpdf/Parser.cc GString *s, *s2; s 119 lib/pdf/xpdf/Parser.cc s = buf1.getString(); s 122 lib/pdf/xpdf/Parser.cc decrypt = new DecryptStream(new MemStream(s->getCString(), 0, s 123 lib/pdf/xpdf/Parser.cc s->getLength(), &obj2), s 197 lib/pdf/xpdf/SplashOutputDev.cc *h = *s = 0; s 205 lib/pdf/xpdf/SplashOutputDev.cc *s = (255 * (cmax - cmin)) / cmax; s 213 lib/pdf/xpdf/SplashOutputDev.cc if (s == 0) { s 220 lib/pdf/xpdf/SplashOutputDev.cc cmid = div255(v * 255 - ((s * f) / 60)); s 222 lib/pdf/xpdf/SplashOutputDev.cc cmid = div255(v * (255 - ((s * (60 - f)) / 60))); s 224 lib/pdf/xpdf/SplashOutputDev.cc cmin = div255(v * (255 - s)); s 884 lib/pdf/xpdf/Stream.cc GString *s; s 889 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 892 lib/pdf/xpdf/Stream.cc s->append(indent)->append("/ASCIIHexDecode filter\n"); s 893 lib/pdf/xpdf/Stream.cc return s; s 965 lib/pdf/xpdf/Stream.cc GString *s; s 970 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 973 lib/pdf/xpdf/Stream.cc s->append(indent)->append("/ASCII85Decode filter\n"); s 974 lib/pdf/xpdf/Stream.cc return s; s 1151 lib/pdf/xpdf/Stream.cc GString *s; s 1156 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 1159 lib/pdf/xpdf/Stream.cc s->append(indent)->append("<< "); s 1161 lib/pdf/xpdf/Stream.cc s->append("/EarlyChange 0 "); s 1163 lib/pdf/xpdf/Stream.cc s->append(">> /LZWDecode filter\n"); s 1164 lib/pdf/xpdf/Stream.cc return s; s 1192 lib/pdf/xpdf/Stream.cc GString *s; s 1197 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 1200 lib/pdf/xpdf/Stream.cc s->append(indent)->append("/RunLengthDecode filter\n"); s 1201 lib/pdf/xpdf/Stream.cc return s; s 1840 lib/pdf/xpdf/Stream.cc GString *s; s 1846 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 1849 lib/pdf/xpdf/Stream.cc s->append(indent)->append("<< "); s 1852 lib/pdf/xpdf/Stream.cc s->append(s1); s 1855 lib/pdf/xpdf/Stream.cc s->append("/EndOfLine true "); s 1858 lib/pdf/xpdf/Stream.cc s->append("/EncodedByteAlign true "); s 1861 lib/pdf/xpdf/Stream.cc s->append(s1); s 1864 lib/pdf/xpdf/Stream.cc s->append(s1); s 1867 lib/pdf/xpdf/Stream.cc s->append("/EndOfBlock false "); s 1870 lib/pdf/xpdf/Stream.cc s->append("/BlackIs1 true "); s 1872 lib/pdf/xpdf/Stream.cc s->append(">> /CCITTFaxDecode filter\n"); s 1873 lib/pdf/xpdf/Stream.cc return s; s 3295 lib/pdf/xpdf/Stream.cc GString *s; s 3300 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 3303 lib/pdf/xpdf/Stream.cc s->append(indent)->append("<< >> /DCTDecode filter\n"); s 3304 lib/pdf/xpdf/Stream.cc return s; s 4057 lib/pdf/xpdf/Stream.cc GString *s; s 4062 lib/pdf/xpdf/Stream.cc if (!(s = str->getPSFilter(psLevel, indent))) { s 4065 lib/pdf/xpdf/Stream.cc s->append(indent)->append("<< >> /FlateDecode filter\n"); s 4066 lib/pdf/xpdf/Stream.cc return s; s 419 lib/pdf/xpdf/TextOutputDev.cc GString *s; s 424 lib/pdf/xpdf/TextOutputDev.cc s = new GString(); s 426 lib/pdf/xpdf/TextOutputDev.cc return s; s 430 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 433 lib/pdf/xpdf/TextOutputDev.cc return s; s 2957 lib/pdf/xpdf/TextOutputDev.cc s2[i] = unicodeToUpper(s[i]); s 2960 lib/pdf/xpdf/TextOutputDev.cc s2 = s; s 3131 lib/pdf/xpdf/TextOutputDev.cc GString *s; s 3146 lib/pdf/xpdf/TextOutputDev.cc s = new GString(); s 3149 lib/pdf/xpdf/TextOutputDev.cc return s; s 3154 lib/pdf/xpdf/TextOutputDev.cc return s; s 3330 lib/pdf/xpdf/TextOutputDev.cc s->append(eol, eolLen); s 3337 lib/pdf/xpdf/TextOutputDev.cc s->append(space, spaceLen); s 3341 lib/pdf/xpdf/TextOutputDev.cc col += dumpFragment(frag->line->text + frag->start, frag->len, uMap, s); s 3345 lib/pdf/xpdf/TextOutputDev.cc s->append(eol, eolLen); s 3352 lib/pdf/xpdf/TextOutputDev.cc return s; s 3457 lib/pdf/xpdf/TextOutputDev.cc GString *s; s 3488 lib/pdf/xpdf/TextOutputDev.cc s = new GString(); s 3489 lib/pdf/xpdf/TextOutputDev.cc dumpFragment(word->text, word->len, uMap, s); s 3490 lib/pdf/xpdf/TextOutputDev.cc (*outputFunc)(outputStream, s->getCString(), s->getLength()); s 3491 lib/pdf/xpdf/TextOutputDev.cc delete s; s 3560 lib/pdf/xpdf/TextOutputDev.cc s = new GString(); s 3561 lib/pdf/xpdf/TextOutputDev.cc col += dumpFragment(frag->line->text + frag->start, frag->len, uMap, s); s 3562 lib/pdf/xpdf/TextOutputDev.cc (*outputFunc)(outputStream, s->getCString(), s->getLength()); s 3563 lib/pdf/xpdf/TextOutputDev.cc delete s; s 3599 lib/pdf/xpdf/TextOutputDev.cc s = new GString(); s 3600 lib/pdf/xpdf/TextOutputDev.cc dumpFragment(line->text, n, uMap, s); s 3601 lib/pdf/xpdf/TextOutputDev.cc (*outputFunc)(outputStream, s->getCString(), s->getLength()); s 3602 lib/pdf/xpdf/TextOutputDev.cc delete s; s 3750 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 3757 lib/pdf/xpdf/TextOutputDev.cc s->append(rle, rleLen); s 3760 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 3763 lib/pdf/xpdf/TextOutputDev.cc s->append(popdf, popdfLen); s 3770 lib/pdf/xpdf/TextOutputDev.cc s->append(rle, rleLen); s 3777 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 3784 lib/pdf/xpdf/TextOutputDev.cc s->append(lre, lreLen); s 3787 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 3790 lib/pdf/xpdf/TextOutputDev.cc s->append(popdf, popdfLen); s 3794 lib/pdf/xpdf/TextOutputDev.cc s->append(popdf, popdfLen); s 3801 lib/pdf/xpdf/TextOutputDev.cc s->append(buf, n); s 4062 lib/pdf/xpdf/TextOutputDev.cc return text->findText(s, len, startAtTop, stopAtBottom, s 455 lib/pdf/xpdf/TextOutputDev.h GBool findText(Unicode *s, int len, s 492 lib/pdf/xpdf/TextOutputDev.h int dumpFragment(Unicode *text, int len, UnicodeMap *uMap, GString *s); s 591 lib/pdf/xpdf/TextOutputDev.h virtual void beginString(GfxState *state, GString *s); s 615 lib/pdf/xpdf/TextOutputDev.h GBool findText(Unicode *s, int len, s 892 lib/pdf/xpdf/XRef.cc for (p = s, i = 0; *p && isdigit(*p) && i < 10; ++p, ++i) { s 130 lib/pdf/xpdf/XRef.h Guint strToUnsigned(char *s); s 50 lib/pdf/xpdf/gfile.cc char *s; s 53 lib/pdf/xpdf/gfile.cc if ((s = getenv("HOME"))) s 54 lib/pdf/xpdf/gfile.cc ret = new GString(s); s 69 lib/pdf/xpdf/gfile.cc char *s; s 73 lib/pdf/xpdf/gfile.cc if ((s = getenv("HOME"))) { s 74 lib/pdf/xpdf/gfile.cc ret = new GString(s); s 76 lib/pdf/xpdf/gfile.cc if ((s = getenv("USER"))) s 77 lib/pdf/xpdf/gfile.cc pw = getpwnam(s); s 386 lib/pdf/xpdf/gfile.cc GString *s; s 397 lib/pdf/xpdf/gfile.cc s = getHomeDir(); s 398 lib/pdf/xpdf/gfile.cc path->insert(0, s); s 399 lib/pdf/xpdf/gfile.cc delete s; s 492 lib/pdf/xpdf/gfile.cc GString *s, *s2; s 501 lib/pdf/xpdf/gfile.cc s = new GString(tempDir); s 502 lib/pdf/xpdf/gfile.cc s->append('\\'); s 504 lib/pdf/xpdf/gfile.cc s = new GString(); s 506 lib/pdf/xpdf/gfile.cc s->append("x"); s 510 lib/pdf/xpdf/gfile.cc s2 = s->copy()->append(buf); s 521 lib/pdf/xpdf/gfile.cc delete s; s 528 lib/pdf/xpdf/gfile.cc delete s; s 532 lib/pdf/xpdf/gfile.cc char *s; s 538 lib/pdf/xpdf/gfile.cc if (!(s = mktmpname(NULL))) { s 541 lib/pdf/xpdf/gfile.cc *name = new GString(s); s 552 lib/pdf/xpdf/gfile.cc char *s; s 557 lib/pdf/xpdf/gfile.cc if ((s = getenv("TMPDIR"))) { s 558 lib/pdf/xpdf/gfile.cc *name = new GString(s); s 565 lib/pdf/xpdf/gfile.cc if (!(s = mktmpname(NULL))) { s 568 lib/pdf/xpdf/gfile.cc *name = new GString(s); s 574 lib/pdf/xpdf/gfile.cc if ((s = getenv("TMPDIR"))) { s 575 lib/pdf/xpdf/gfile.cc *name = new GString(s); s 582 lib/pdf/xpdf/gfile.cc if (!(s = mktmpname(NULL))) { s 585 lib/pdf/xpdf/gfile.cc *name = new GString(s); s 643 lib/pdf/xpdf/gfile.cc GString *s; s 647 lib/pdf/xpdf/gfile.cc GString *s; s 659 lib/pdf/xpdf/gfile.cc s = new GString(dirPath); s 660 lib/pdf/xpdf/gfile.cc appendToPath(s, nameA); s 662 lib/pdf/xpdf/gfile.cc fa = GetFileAttributes(s->getCString()); s 665 lib/pdf/xpdf/gfile.cc if (stat(s->getCString(), &st) == 0) s 668 lib/pdf/xpdf/gfile.cc delete s; s 293 lib/pdf/xpdf/gmem.cc s1 = (char *)gmalloc(strlen(s) + 1); s 294 lib/pdf/xpdf/gmem.cc strcpy(s1, s); s 73 lib/pdf/xpdf/gmem.h extern char *copyString(char *s); s 580 lib/png.c int i,s=0; s 619 lib/png.c int i,s=0; s 729 lib/png.c int x,s=0; s 733 lib/png.c u32 r = src[s/8]<<8 | s 734 lib/png.c src[s/8+1]; s 736 lib/png.c tmpline[x] = (r>>(16-header.bpp-(s&7)))&v; s 737 lib/png.c s+=header.bpp; s 878 lib/png.c int s,t; s 879 lib/png.c for(s=0;s<palettesize;s++) { s 880 lib/png.c centers[s].num = 0; s 885 lib/png.c for(s=0;s<palettesize;s++) { s 887 lib/png.c distance += abs((centers[s].color>>0&0xff) - (colors[t].color>>0&0xff)); s 888 lib/png.c distance += abs((centers[s].color>>8&0xff) - (colors[t].color>>8&0xff)); s 889 lib/png.c distance += abs((centers[s].color>>16&0xff) - (colors[t].color>>16&0xff)); s 893 lib/png.c bestpos = s; s 900 lib/png.c for(s=0;s<palettesize;s++) { s 906 lib/png.c if(belongsto[t]==s) { s 915 lib/png.c centers[s].color = colors[random].color; s 916 lib/png.c centers[s].num = 0; s 922 lib/png.c centers[s].color = r|g<<8|b<<16; s 923 lib/png.c centers[s].num = count; s 949 lib/png.c int s; s 950 lib/png.c for(s=0;s<numcolors;s++) { s 952 lib/png.c distance += sqr((palette[s].r) - (image[t].r))*5; s 953 lib/png.c distance += sqr((palette[s].g) - (image[t].g))*6; s 954 lib/png.c distance += sqr((palette[s].b) - (image[t].b))*4; s 957 lib/png.c bestcol = s; s 976 lib/png.c int s; s 977 lib/png.c for (s = 0; s < 8; s++) { s 1212 lib/png.c int s; s 1216 lib/png.c for(s=0;s<csize;s++) { s 1217 lib/png.c occurences[i] = ccount[s]; s 1218 lib/png.c palette[i++] = *(COL*)(&cpal[s]); s 318 lib/python/SWF.c int s = swf->swf.fileSize; s 319 lib/python/SWF.c return Py_BuildValue("i", s); s 79 lib/python/gfx.c #define PY_ERROR(s,args...) (PyErr_SetString(PyExc_Exception, strf(s, ## args)),(void*)NULL) s 168 lib/python/gfx.c int s; s 170 lib/python/gfx.c for(s=1;s<size;s++) { s 171 lib/python/gfx.c if(!PyFloat_Check(PyTuple_GetItem(p,s))) { s 450 lib/python/gfx.c char*s = va_arg(ap, char*); s 451 lib/python/gfx.c PyTuple_SetItem(tuple, pos, PyString_FromString(s)); s 789 lib/python/gfx.c int s,t; s 790 lib/python/gfx.c for(t=0,s=0;t<l;s+=3,t++) { s 791 lib/python/gfx.c data[s+0] = img->data[t].r; s 792 lib/python/gfx.c data[s+1] = img->data[t].g; s 793 lib/python/gfx.c data[s+2] = img->data[t].b; s 902 lib/python/gfx.c char*s = self->doc->getinfo(self->doc, key); s 903 lib/python/gfx.c return PyString_FromString(s); s 51 lib/python/primitives.c char*s= 0; s 55 lib/python/primitives.c if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|i", kwlist, &s, &mya)) s 58 lib/python/primitives.c sscanf(s, "%02x%02x%02x%02x",&r,&g,&b,&a); s 20 lib/python/pyutils.h #define PY_ERROR(s,args...) (PyErr_SetString(PyExc_Exception, setError(s, ## args)),NULL) s 725 lib/python/tags.c draw_string(&draw, s); s 749 lib/python/tags.c char*s = 0; s 752 lib/python/tags.c if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|OO", kwlist, &s,&fillstyle,&linestyle)) s 786 lib/python/tags.c ti->shape2 = swf_StringToShape2(s,f,l); s 345 lib/q.c int s; s 346 lib/q.c for(s=0;s<=t;s=(s+1)*2-1) { s 347 lib/q.c if(s==t) fprintf(fi,"\n"); s 567 lib/q.c int s; s 568 lib/q.c for (s = 0; s < 8; s++) { s 592 lib/q.c string_t s; s 593 lib/q.c s.len = len; s 594 lib/q.c s.str = text; s 595 lib/q.c return s; s 599 lib/q.c string_t s; s 601 lib/q.c s.len = strlen(text); s 603 lib/q.c s.len = 0; s 605 lib/q.c s.str = text; s 606 lib/q.c return s; s 611 lib/q.c string_t*s = malloc(sizeof(string_t)); s 612 lib/q.c s->len = 0; s 613 lib/q.c s->str = 0; s 614 lib/q.c return s; s 616 lib/q.c string_t*s = malloc(sizeof(string_t)+len+1); s 617 lib/q.c s->len = len; s 618 lib/q.c s->str = (const char*)(s+1); s 619 lib/q.c memcpy((char*)s->str, text, len); s 620 lib/q.c ((char*)s->str)[len]=0; s 621 lib/q.c return s; s 632 lib/q.c if(!s) s 634 lib/q.c s->len = 0; s 635 lib/q.c if((string_t*)(s->str) == s+1) { s 636 lib/q.c s->str = 0; s 637 lib/q.c rfx_free(s); s 639 lib/q.c rfx_free((char*)(s->str)); s 640 lib/q.c s->str = 0; s 641 lib/q.c rfx_free(s); s 658 lib/q.c char*s = malloc(len+1); s 659 lib/q.c char*p=s; s 671 lib/q.c assert(p == &s[len+1]); s 672 lib/q.c return s; s 683 lib/q.c if(!s) s 685 lib/q.c while(*s) { s 686 lib/q.c checksum = checksum>>8 ^ crc32[(*s^checksum)&0xff]; s 687 lib/q.c s++; s 693 lib/q.c unsigned char*s = (unsigned char*)_s; s 695 lib/q.c if(!s || !len) s 698 lib/q.c checksum = checksum>>8 ^ crc32[(*s^checksum)&0xff]; s 699 lib/q.c s++; s 727 lib/q.c string_t s; s 728 lib/q.c s.str = str; s 729 lib/q.c s.len = len; s 730 lib/q.c return string_hash(&s); s 773 lib/q.c stringarray_internal_t*s; s 776 lib/q.c s = (stringarray_internal_t*)sa->internal; s 777 lib/q.c mem_init(&s->pos); s 778 lib/q.c s->hash = rfx_calloc(sizeof(stringlist_t*)*hashsize); s 779 lib/q.c s->hashsize = hashsize; s 783 lib/q.c stringarray_internal_t*s = (stringarray_internal_t*)sa->internal; s 785 lib/q.c int hash = string_hash(&str) % s->hashsize; s 788 lib/q.c mem_put(&s->pos, &ss, sizeof(char*)); s 791 lib/q.c l->index = s->num; s 792 lib/q.c l->next = s->hash[hash]; s 793 lib/q.c s->hash[hash] = l; s 795 lib/q.c s->num++; s 799 lib/q.c stringarray_internal_t*s = (stringarray_internal_t*)sa->internal; s 801 lib/q.c if(pos<0 || pos>=s->num) s 803 lib/q.c p = *(char**)&s->pos.buffer[pos*sizeof(char*)]; s 810 lib/q.c string_t s; s 811 lib/q.c s.str = stringarray_at(sa, pos); s 812 lib/q.c s.len = s.str?strlen(s.str):0; s 813 lib/q.c return s; s 838 lib/q.c stringarray_internal_t*s = (stringarray_internal_t*)sa->internal; s 840 lib/q.c int hash = string_hash(&str) % s->hashsize; s 841 lib/q.c s->hash[hash] = stringlist_del(sa, s->hash[hash], pos); s 842 lib/q.c *(char**)&s->pos.buffer[pos*sizeof(char*)] = 0; s 846 lib/q.c stringarray_internal_t*s = (stringarray_internal_t*)sa->internal; s 847 lib/q.c int hash = string_hash(str) % s->hashsize; s 849 lib/q.c stringlist_t*l = s->hash[hash]; s 852 lib/q.c string_t s = stringarray_at2(sa, l->index); s 853 lib/q.c if(string_equals2(str, &s)) { s 862 lib/q.c stringarray_internal_t*s = (stringarray_internal_t*)sa->internal; s 863 lib/q.c mem_clear(&s->pos); s 865 lib/q.c for(t=0;t<s->hashsize;t++) { s 866 lib/q.c stringlist_t*l = s->hash[t]; s 874 lib/q.c rfx_free(s->hash);s->hash=0; s 875 lib/q.c rfx_free(s); s 966 lib/q.c string_t*s = malloc(sizeof(string_t)); s 967 lib/q.c s->str=0; s 968 lib/q.c s->len=0; s 969 lib/q.c return s; s 971 lib/q.c string_t*s = rfx_alloc(sizeof(string_t)+o->len+1); s 972 lib/q.c s->len = o->len; s 973 lib/q.c s->str = (const char*)(s+1); s 974 lib/q.c memcpy((char*)s->str, o->str, s->len); s 975 lib/q.c ((char*)s->str)[s->len]=0; s 976 lib/q.c return s; s 1113 lib/q.c dict_put(h, s, data); s 1403 lib/q.c string_t s; s 154 lib/q.h unsigned int crc32_add_string(unsigned int crc32, const char*s); s 155 lib/q.h unsigned int crc32_add_bytes(unsigned int checksum, const void*s, int len); s 179 lib/q.h void string_free(string_t*s); s 185 lib/q.h string_t*string_dup3(string_t*s); s 202 lib/q.h void dict_put2(dict_t*h, const char*s, void*data); s 206 lib/q.h char dict_contains(dict_t*h, const void*s); s 207 lib/q.h void* dict_lookup(dict_t*h, const void*s); s 208 lib/q.h char dict_del(dict_t*h, const void*s); s 325 lib/readers/swf.c sprite_t*s = rfx_calloc(sizeof(sprite_t)); s 328 lib/readers/swf.c s->frameCount = swf_GetU16(tag); //frameno s 331 lib/readers/swf.c c->data = s; s 566 lib/readers/swf.c sprite_t* s = (sprite_t*)c->data; s 568 lib/readers/swf.c map16_t* depths = extractFrame(c->tag->next, s->frameCount>0? p->age % s->frameCount : 0); s 293 lib/rfxswf.c U32 s = 0; s 298 lib/rfxswf.c s|=(b&127)<<shift; s 307 lib/rfxswf.c return s; s 350 lib/rfxswf.c printf("write S32: %d\n", s); s 351 lib/rfxswf.c S32 neg = s<0?-1:0; s 352 lib/rfxswf.c U8 sign = s<0?0x40:0; s 354 lib/rfxswf.c U8 val = s&0x7f; s 355 lib/rfxswf.c U8 vsign = s&0x40; s 356 lib/rfxswf.c s>>=7; s 358 lib/rfxswf.c if(s==neg && vsign==sign) { s 374 lib/rfxswf.c U32 s = 0; s 384 lib/rfxswf.c s|=(b&127)<<shift; s 389 lib/rfxswf.c s|=0xffffffff<<shift; s 400 lib/rfxswf.c return s; s 1055 lib/rfxswf.c if(!s) { s 1058 lib/rfxswf.c swf_SetBlock(t,(U8*)s,strlen(s)+1); s 1868 lib/rfxswf.c char s[1024]; s 1874 lib/rfxswf.c sprintf(s,"Content-type: application/x-shockwave-flash\n" s 1880 lib/rfxswf.c write(fileno(stdout),s,strlen(s)); s 246 lib/rfxswf.h void swf_SetString(TAG*t,const char*s); s 450 lib/rfxswf.h int swf_ShapeNew(SHAPE ** s); s 451 lib/rfxswf.h void swf_ShapeFree(SHAPE * s); s 452 lib/rfxswf.h char swf_ShapeIsEmpty(SHAPE*s); s 454 lib/rfxswf.h int swf_GetSimpleShape(TAG * t,SHAPE ** s); // without Linestyle/Fillstyle Record s 455 lib/rfxswf.h int swf_SetSimpleShape(TAG * t,SHAPE * s); // without Linestyle/Fillstyle Record s 457 lib/rfxswf.h int swf_ShapeAddLineStyle(SHAPE * s,U16 width,RGBA * color); s 458 lib/rfxswf.h int swf_ShapeAddSolidFillStyle(SHAPE * s,RGBA * color); s 459 lib/rfxswf.h int swf_ShapeAddBitmapFillStyle(SHAPE * s,MATRIX * m,U16 id_bitmap,int clip); s 460 lib/rfxswf.h int swf_ShapeAddGradientFillStyle(SHAPE * s,MATRIX * m,GRADIENT* gradient,int radial); s 461 lib/rfxswf.h int swf_ShapeAddFillStyle2(SHAPE * s,FILLSTYLE*fs); s 463 lib/rfxswf.h int swf_SetShapeStyles(TAG * t,SHAPE * s); s 464 lib/rfxswf.h int swf_ShapeCountBits(SHAPE * s,U8 * fbits,U8 * lbits); s 465 lib/rfxswf.h int swf_SetShapeBits(TAG * t,SHAPE * s); s 466 lib/rfxswf.h int swf_SetShapeHeader(TAG * t,SHAPE * s); // one call for upper three functions s 468 lib/rfxswf.h int swf_ShapeSetMove(TAG * t,SHAPE * s,S32 x,S32 y); s 469 lib/rfxswf.h int swf_ShapeSetStyle(TAG * t,SHAPE * s,int line,int fill0,int fill1); s 471 lib/rfxswf.h int swf_ShapeSetAll(TAG * t,SHAPE * s,S32 x,S32 y,int line,int fill0,int fill1); s 473 lib/rfxswf.h int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y); s 474 lib/rfxswf.h int swf_ShapeSetCurve(TAG * t,SHAPE * s,S32 x,S32 y,S32 ax,S32 ay); s 475 lib/rfxswf.h int swf_ShapeSetCircle(TAG * t,SHAPE * s,S32 x,S32 y,S32 rx,S32 ry); s 491 lib/rfxswf.h SHAPE2* swf_Shape2Clone(SHAPE2 * s); s 492 lib/rfxswf.h void swf_Shape2Free(SHAPE2 * s); s 652 lib/rfxswf.h int swf_FontUseUTF8(SWFFONT * f, const U8 * s, U16 size); s 653 lib/rfxswf.h int swf_FontUse(SWFFONT* f,U8 * s); s 673 lib/rfxswf.h U32 swf_TextGetWidth(SWFFONT * font,U8 * s,int scale); s 674 lib/rfxswf.h int swf_TextCountBits(SWFFONT * font,U8 * s,int scale,U8 * gbits,U8 * abits); s 678 lib/rfxswf.h int swf_TextSetCharRecord(TAG * t,SWFFONT * font,U8 * s,int scale,U8 gbits,U8 abits); s 1021 lib/rfxswf.h void swf_SetVideoStreamIFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/); s 1022 lib/rfxswf.h void swf_SetVideoStreamBlackFrame(TAG*tag, VIDEOSTREAM*s); s 1023 lib/rfxswf.h void swf_SetVideoStreamPFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/); s 1024 lib/rfxswf.h void swf_SetVideoStreamMover(TAG*tag, VIDEOSTREAM*s, signed char* movex, signed char* movey, void** image, int quant); s 262 lib/ttf.c int s,p=((t)&15)+1; s 264 lib/ttf.c for(s=p-1;s<16;s++) { s 627 lib/ttf.c int s; s 628 lib/ttf.c for(s=0;s<ttf->glyphs[t].num_points;s++) { s 629 lib/ttf.c if(ttf->glyphs[t].points[s].flags&GLYPH_CONTOUR_END) s 935 lib/ttf.c int s; s 937 lib/ttf.c for(s=0;s<num_contours;s++) { s 938 lib/ttf.c int pos = endpoints[s] = readU16(r); s 940 lib/ttf.c msg("<warning> Unsorted endpoints array (len:%d) last=%d now=%d", s, pos, lastpos); s 1067 lib/ttf.c int s; s 1068 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1069 lib/ttf.c if(g->points[s].flags&GLYPH_CONTOUR_END) s 1070 lib/ttf.c writeU16(w, s); s 1083 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1084 lib/ttf.c ttfpoint_t*p = &g->points[s]; s 1130 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1131 lib/ttf.c ttfpoint_t*p = &g->points[s]; s 1143 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1144 lib/ttf.c ttfpoint_t*p = &g->points[s]; s 1162 lib/ttf.c int s; s 1164 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1165 lib/ttf.c if(g->points[s].flags&GLYPH_CONTOUR_END) s 1200 lib/ttf.c int s; s 1201 lib/ttf.c for(s=0;s<g->num_points;s++) { s 1202 lib/ttf.c if(s) printf(","); s 1203 lib/ttf.c printf("%d/%d/0x%02x", g->points[s].x, g->points[s].y, g->points[s].flags); s 1282 lib/ttf.c int s; s 1284 lib/ttf.c for(s=0;s<num;s++) { s 1285 lib/ttf.c ttf->unicode[s] = readU8(&t); s 1303 lib/ttf.c int s; s 1304 lib/ttf.c for(s=0;s<segment_count;s++) { s 1341 lib/ttf.c int s; s 1343 lib/ttf.c for(s=pos;s<size;s++) { s 1344 lib/ttf.c if(!unicode[s]) s 1353 lib/ttf.c s -= count; // go to the last filled in entry s 1354 lib/ttf.c if(s==size) s 1356 lib/ttf.c return s; s 1388 lib/ttf.c int s = segment_size(ttf->unicode, pos, ttf->unicode_size); s 1389 lib/ttf.c pos = s+1; s 1443 lib/ttf.c int s; s 1446 lib/ttf.c for(s=pos+1;s<=end;s++) { s 1447 lib/ttf.c U16 delta2 = ttf->unicode[s]-s; s 1459 lib/ttf.c for(s=pos;s<=end;s++) { s 1460 lib/ttf.c writeU16(w, ttf->unicode[s]); s 1495 lib/ttf.c char*s = malloc(len+1); s 1496 lib/ttf.c readBlock(r, s, len); s 1497 lib/ttf.c s[len] = 0; s 1498 lib/ttf.c return s; s 1521 lib/ttf.c INIT_READ(s, r->mem, r->size, offset+offset_2); s 1535 lib/ttf.c *read_name = readString(&s, len); s 1596 lib/ttf.c int s; s 1598 lib/ttf.c for(s=0;s<len;s++) { s 1600 lib/ttf.c writeU8(table, strings[t][s]); s 21 lib/types.h #define SWAP16(s) ((((s)>>8)&0x00ff)|(((s)<<8)&0xff00)) s 22 lib/types.h #define SWAP32(s) (SWAP16(((s)>>16)&0x0000ffff)|((SWAP16(s)<<16)&0xffff0000)) s 25 lib/types.h #define LE_16_TO_NATIVE(s) SWAP16(s) s 26 lib/types.h #define LE_32_TO_NATIVE(s) SWAP32(s) s 32 lib/types.h #define BE_16_TO_NATIVE(s) SWAP16(s) s 33 lib/types.h #define BE_32_TO_NATIVE(s) SWAP32(s) s 142 lib/xml.c assert(!s->current); s 143 lib/xml.c s->start = &buffer[pos]; s 144 lib/xml.c s->len = 0; s 145 lib/xml.c s->result = 0; s 149 lib/xml.c if(!s->start) s 151 lib/xml.c int add = &buffer[pos] - s->start; s 152 lib/xml.c if(!s->current) { s 153 lib/xml.c assert(!s->len); s 154 lib/xml.c s->current = malloc(add+1); s 155 lib/xml.c memcpy(s->current, s->start, add); s 157 lib/xml.c s->current = realloc(s->current, s->len + add + 1); s 158 lib/xml.c memcpy(s->current+s->len, s->start, add); s 160 lib/xml.c s->len += add; s 161 lib/xml.c s->current[s->len] = 0; s 162 lib/xml.c s->start = buffer; s 166 lib/xml.c stringstate_save(s, buffer, pos); s 167 lib/xml.c s->result = s->current; s 168 lib/xml.c s->current = 0; s 169 lib/xml.c s->start = 0; s 173 lib/xml.c if(s->result) free(s->result); s 174 lib/xml.c if(s->current) free(s->current); s 175 lib/xml.c memset(s, 0, sizeof(stringstate_t)); s 199 src/gif2swf.c SHAPE *s; s 356 src/gif2swf.c swf_ShapeNew(&s); s 360 src/gif2swf.c fs = swf_ShapeAddBitmapFillStyle(s, &m, id, 0); s 369 src/gif2swf.c swf_SetShapeHeader(t, s); s 371 src/gif2swf.c swf_ShapeSetAll(t, s, 0, 0, 0, fs, 0); s 372 src/gif2swf.c swf_ShapeSetLine(t, s, r.xmax, 0); s 373 src/gif2swf.c swf_ShapeSetLine(t, s, 0, r.ymax); s 374 src/gif2swf.c swf_ShapeSetLine(t, s, -r.xmax, 0); s 375 src/gif2swf.c swf_ShapeSetLine(t, s, 0, -r.ymax); s 466 src/gif2swf.c char *s = malloc(strlen(fname) + 5); s 469 src/gif2swf.c if (!s) s 471 src/gif2swf.c (*realname) = s; s 472 src/gif2swf.c strcpy(s, fname); s 476 src/gif2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 477 src/gif2swf.c sprintf(s, "%s.gif", fname); s 478 src/gif2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 479 src/gif2swf.c sprintf(s, "%s.GIF", fname); s 480 src/gif2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 481 src/gif2swf.c sprintf(s, "%s.Gif", fname); s 482 src/gif2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 491 src/gif2swf.c if ((gft = DGifOpenFileName(s)) == NULL) { s 622 src/gif2swf.c char *s; s 623 src/gif2swf.c if (CheckInputFile(arg, &s) < 0) { s 626 src/gif2swf.c free(s); s 629 src/gif2swf.c image[global.nfiles].filename = s; s 235 src/jpeg2swf.c SHAPE *s; s 281 src/jpeg2swf.c swf_ShapeNew(&s); s 294 src/jpeg2swf.c fs = swf_ShapeAddBitmapFillStyle(s, &m, global.next_id, 1); s 302 src/jpeg2swf.c swf_SetShapeHeader(t, s); s 303 src/jpeg2swf.c swf_ShapeSetAll(t, s, r.xmin, r.ymin, 0, fs, 0); s 304 src/jpeg2swf.c swf_ShapeSetLine(t, s, r.xmax - r.xmin, 0); s 305 src/jpeg2swf.c swf_ShapeSetLine(t, s, 0, r.ymax - r.ymin); s 306 src/jpeg2swf.c swf_ShapeSetLine(t, s, -r.xmax + r.xmin, 0); s 307 src/jpeg2swf.c swf_ShapeSetLine(t, s, 0, -r.ymax + r.ymin); s 341 src/jpeg2swf.c char *s = malloc(strlen(fname) + 5); s 344 src/jpeg2swf.c if (!s) s 346 src/jpeg2swf.c (*realname) = s; s 347 src/jpeg2swf.c strcpy(s, fname); s 351 src/jpeg2swf.c if ((f = fopen(s, "rb")) == NULL) { s 352 src/jpeg2swf.c sprintf(s, "%s.jpg", fname); s 353 src/jpeg2swf.c if ((f = fopen(s, "rb")) == NULL) { s 354 src/jpeg2swf.c sprintf(s, "%s.jpeg", fname); s 355 src/jpeg2swf.c if ((f = fopen(s, "rb")) == NULL) { s 356 src/jpeg2swf.c sprintf(s, "%s.JPG", fname); s 357 src/jpeg2swf.c if ((f = fopen(s, "rb")) == NULL) { s 358 src/jpeg2swf.c sprintf(s, "%s.JPEG", fname); s 359 src/jpeg2swf.c if ((f = fopen(s, "rb")) == NULL) s 476 src/jpeg2swf.c char*s = strdup(val); s 477 src/jpeg2swf.c char*x1 = strtok(s, ":"); s 490 src/jpeg2swf.c free(s); s 503 src/jpeg2swf.c char*s = strdup(val); s 504 src/jpeg2swf.c char*c = strchr(s, ':'); s 513 src/jpeg2swf.c free(s); s 564 src/jpeg2swf.c char *s; s 566 src/jpeg2swf.c if (CheckInputFile(i, arg, &s) < 0) { s 569 src/jpeg2swf.c free(s); s 571 src/jpeg2swf.c i->filename = s; s 1078 src/parser.yy.c {s(TWIP);c();BEGIN(0);} s 1087 src/parser.yy.c {s(NUMBER);c();BEGIN(0);} s 1104 src/parser.yy.c {s(STRING);c();BEGIN(0);} s 1118 src/parser.yy.c {s(ASSIGNMENT);prefix="<plus>";c();BEGIN(R);} s 1124 src/parser.yy.c {s(ASSIGNMENT);prefix="<minus>";c();BEGIN(R);} s 1130 src/parser.yy.c {s(ASSIGNMENT);c();BEGIN(R);} s 1136 src/parser.yy.c {s(IDENTIFIER);c();BEGIN(0);} s 1148 src/parser.yy.c {s(COMMAND);c();} s 1154 src/parser.yy.c {s(RAWDATA);c();} s 1159 src/parser.yy.c {s(IDENTIFIER);c();} s 1196 src/parser.yy.c s(END); s 2190 src/parser.yy.c for ( n = 0; s[n]; ++n ) s 93 src/pdf2pdf.c char*s = strdup(val); s 94 src/pdf2pdf.c char*c = strchr(s, '='); s 98 src/pdf2pdf.c driver->setparameter(driver, s,c); s 100 src/pdf2pdf.c driver->setparameter(driver, s,"1"); s 102 src/pdf2pdf.c free(s); s 229 src/pdf2swf.c char*s = strdup(val); s 230 src/pdf2swf.c char*x1 = strtok(s, ":"); s 243 src/pdf2swf.c free(s); s 248 src/pdf2swf.c char*s = strdup(val); s 249 src/pdf2swf.c char*c = strchr(s, ':'); s 258 src/pdf2swf.c free(s); s 263 src/pdf2swf.c char*s = val; s 264 src/pdf2swf.c char*c = strchr(s, '='); s 268 src/pdf2swf.c store_parameter(s,c); s 269 src/pdf2swf.c } else if(!strcmp(s,"help")) { s 279 src/pdf2swf.c store_parameter(s,"1"); s 383 src/pdf2swf.c char *s = strdup(val); s 384 src/pdf2swf.c int l = strlen(s); s 385 src/pdf2swf.c while(l && s[l-1]=='/') { s 386 src/pdf2swf.c s[l-1] = 0; s 389 src/pdf2swf.c fontpaths[fontpathpos++] = s; s 571 src/png2swf.c int i,s=0; s 714 src/png2swf.c int x,s=0; s 718 src/png2swf.c U32 r = src[s/8]<<8 | s 719 src/png2swf.c src[s/8+1]; s 721 src/png2swf.c tmpline[x] = (r>>(16-header.bpp-(s&7)))&v; s 722 src/png2swf.c s+=header.bpp; s 747 src/png2swf.c SHAPE *s; s 791 src/png2swf.c swf_ShapeNew(&s); s 797 src/png2swf.c fs = swf_ShapeAddBitmapFillStyle(s, &m, id, 1); s 806 src/png2swf.c swf_SetShapeHeader(t, s); s 808 src/png2swf.c swf_ShapeSetAll(t, s, 0, 0, 0, fs, 0); s 809 src/png2swf.c swf_ShapeSetLine(t, s, r.xmax, 0); s 810 src/png2swf.c swf_ShapeSetLine(t, s, 0, r.ymax); s 811 src/png2swf.c swf_ShapeSetLine(t, s, -r.xmax, 0); s 812 src/png2swf.c swf_ShapeSetLine(t, s, 0, -r.ymax); s 843 src/png2swf.c char *s = malloc(strlen(fname) + 5); s 846 src/png2swf.c if (!s) s 848 src/png2swf.c (*realname) = s; s 849 src/png2swf.c strcpy(s, fname); s 853 src/png2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 854 src/png2swf.c sprintf(s, "%s.png", fname); s 855 src/png2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 856 src/png2swf.c sprintf(s, "%s.PNG", fname); s 857 src/png2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 858 src/png2swf.c sprintf(s, "%s.Png", fname); s 859 src/png2swf.c if ((fi = fopen(s, "rb")) == NULL) { s 963 src/png2swf.c char*s = strdup(val); s 964 src/png2swf.c char*x1 = strtok(s, ":"); s 977 src/png2swf.c free(s); s 984 src/png2swf.c char*s = strdup(val); s 985 src/png2swf.c char*c = strchr(s, ':'); s 994 src/png2swf.c free(s); s 1037 src/png2swf.c char *s; s 1038 src/png2swf.c if (CheckInputFile(arg, &s) < 0) { s 1041 src/png2swf.c free(s); s 1043 src/png2swf.c image[global.nfiles].filename = s; s 431 src/swfbbox.c SHAPE2 s; s 433 src/swfbbox.c swf_ParseDefineShape(tag, &s); s 435 src/swfbbox.c swf_Shape2Optimize(&s); s 438 src/swfbbox.c if(!s.bbox) { s 443 src/swfbbox.c *s.bbox = clipBBox(tag, swf->movieSize, *s.bbox); s 445 src/swfbbox.c swf_SetShape2(tag, &s); s 184 src/swfbytes.c while(*s==32 || *s=='\t') s++; s 185 src/swfbytes.c sscanf(s, "%f%n", &x, &n); s 187 src/swfbytes.c fprintf(stderr, "Not a float: %s\n", s); s 194 src/swfbytes.c while(*s==32 || *s=='\t') s++; s 195 src/swfbytes.c sscanf(s, "%d%n", &i, &n); s 197 src/swfbytes.c fprintf(stderr, "Not an integer: %s\n", s); s 267 src/swfbytes.c char*s, *tagname; s 272 src/swfbytes.c s = strchr(line, ' '); s 277 src/swfbytes.c if(!s) { s 281 src/swfbytes.c tagname[s-line] = 0; s 138 src/swfc-history.c spline_t s = modification->spline; s 139 src/swfc-history.c return (((s.a * fraction) + s.b) * fraction + s.c) * fraction + s.d; s 718 src/swfc.c const char*o = as,*s = as; s 738 src/swfc.c if(*s==',' || *s==0) { s 739 src/swfc.c if(!strncmp(o,"idle",s-o)) {mybutton.records[0]=r;o=s+1;} s 740 src/swfc.c else if(!strncmp(o,"shape",s-o)) {mybutton.records[0]=r;o=s+1;} s 741 src/swfc.c else if(!strncmp(o,"hover",s-o)) {mybutton.records[1]=r;o=s+1;} s 742 src/swfc.c else if(!strncmp(o,"pressed",s-o)) {mybutton.records[2]=r;o=s+1;} s 743 src/swfc.c else if(!strncmp(o,"area",s-o)) {mybutton.records[3]=r;o=s+1;} s 744 src/swfc.c else syntaxerror("unknown \"as\" argument: \"%s\"", strdup_n(o,s-o)); s 746 src/swfc.c if(!*s) s 748 src/swfc.c s++; s 1176 src/swfc.c return swf_ShapeAddSolidFillStyle(s, &color); s 1178 src/swfc.c return swf_ShapeAddFillStyle2(s, &texture->fs); s 1186 src/swfc.c return swf_ShapeAddBitmapFillStyle(s, &m, image->id, 0); s 1206 src/swfc.c return swf_ShapeAddGradientFillStyle(s, &m, &gradient->gradient, gradient->radial); s 1208 src/swfc.c return swf_ShapeAddSolidFillStyle(s, &color); s 1219 src/swfc.c SHAPE* s; s 1226 src/swfc.c swf_ShapeNew(&s); s 1229 src/swfc.c ls1 = swf_ShapeAddLineStyle(s,linewidth,&color); s 1232 src/swfc.c fs1 = addFillStyle(s, &r2, texture); s 1240 src/swfc.c swf_SetShapeHeader(tag,s); s 1241 src/swfc.c swf_ShapeSetAll(tag,s,0,0,ls1,fs1,0); s 1242 src/swfc.c swf_ShapeSetLine(tag,s,width,0); s 1243 src/swfc.c swf_ShapeSetLine(tag,s,0,height); s 1244 src/swfc.c swf_ShapeSetLine(tag,s,-width,0); s 1245 src/swfc.c swf_ShapeSetLine(tag,s,0,-height); s 1247 src/swfc.c swf_ShapeFree(s); s 1256 src/swfc.c SHAPE* s; s 1266 src/swfc.c swf_ShapeNew(&s); s 1269 src/swfc.c ls1 = swf_ShapeAddLineStyle(s,linewidth,&color); s 1272 src/swfc.c fs1 = addFillStyle(s, &r2, texture); s 1281 src/swfc.c swf_SetShapeStyles(tag, s); s 1282 src/swfc.c swf_ShapeCountBits(s,0,0); s 1284 src/swfc.c &s->data, &s->bitlen, s->bits.fill, s->bits.line); s 1285 src/swfc.c swf_SetShapeBits(tag, s); s 1286 src/swfc.c swf_SetBlock(tag, s->data, (s->bitlen+7)/8); s 1287 src/swfc.c swf_ShapeFree(s); s 1296 src/swfc.c SHAPE* s; s 1303 src/swfc.c swf_ShapeNew(&s); s 1306 src/swfc.c ls1 = swf_ShapeAddLineStyle(s,linewidth,&color); s 1309 src/swfc.c fs1 = addFillStyle(s, &r2, texture); s 1317 src/swfc.c swf_SetShapeHeader(tag,s); s 1318 src/swfc.c swf_ShapeSetAll(tag,s,0,0,ls1,fs1,0); s 1319 src/swfc.c swf_ShapeSetCircle(tag, s, r,r,r,r); s 1321 src/swfc.c swf_ShapeFree(s); s 2067 src/swfc.c TAG* s; s 2090 src/swfc.c s = tag = swf_InsertTag(tag, ST_DEFINESPRITE); s 2430 src/swfc.c int s=0; s 2432 src/swfc.c s++; s 2434 src/swfc.c for(t=s;t<l;t++) s 2456 src/swfc.c const char*s; s 2458 src/swfc.c for(s=str;s<dot-1;s++) { s 2459 src/swfc.c if(*s<'0' || *s>'9') s 2465 src/swfc.c for(s=dot;*s;s++) { s 2466 src/swfc.c if(*s<'0' || *s>'9') s 2498 src/swfc.c l = (int)dict_lookup(&defines, s); s 2503 src/swfc.c return parseRawTwip(s); s 2548 src/swfc.c char*p = s; s 4385 src/swfc.c int s; s 4386 src/swfc.c for(s=0;s<len;s++) { s 4387 src/swfc.c if(value[s].len == value[t].len-1 && s 4388 src/swfc.c !strncmp(&value[t].str[1], value[s].str, value[s].len)) s 4389 src/swfc.c value[t].str = value[s].str; s 942 src/swfdump.c int s,p=((t)&15)+1; s 944 src/swfdump.c for(s=p-1;s<16;s++) { s 1024 src/swfdump.c int s; s 1025 src/swfdump.c for(s=0;s<nr-1;s++) { s 1332 src/swfdump.c char*s = swf_GetString(tag); s 1336 src/swfdump.c if(*s) { s 1337 src/swfdump.c printf(" \"%s\"", s); s 1476 src/swfdump.c char*s = swf_GetString(tag); s 1477 src/swfdump.c printf(" URL: %s\n", s); s 787 src/swfextract.c int s; s 788 src/swfextract.c for (s = 0; s < 8; s++) { s 61 src/swfrender.c char*s = strdup(val); s 62 src/swfrender.c char*c = strchr(s, '='); s 69 src/swfrender.c p->name = s; s 70 src/swfrender.c p->value = s; s 72 src/swfrender.c p->name = s; s 304 src/wav2swf.c int s; s 327 src/wav2swf.c for(s=oldframepos;s<newframepos;s++) { s 34 swfs/PreLoaderTemplate.c SHAPE* s; s 40 swfs/keyboard_viewer.c SHAPE* s; s 112 swfs/keyboard_viewer.c swf_ShapeNew(&s); // create new shape instance s 114 swfs/keyboard_viewer.c ls1 = swf_ShapeAddLineStyle(s,40,&rgb); s 115 swfs/keyboard_viewer.c fs1 = swf_ShapeAddSolidFillStyle(s,&rgb); s 122 swfs/keyboard_viewer.c swf_SetShapeHeader(tag,s); // write all styles to tag s 124 swfs/keyboard_viewer.c swf_ShapeSetAll(tag,s,0,0,ls1,fs1,0); // move to (0,0), select linestyle ls1 and no fillstyle s 128 swfs/keyboard_viewer.c swf_ShapeSetLine(tag,s,20*width,0*height); s 129 swfs/keyboard_viewer.c swf_ShapeSetLine(tag,s,0*width,20*height); s 130 swfs/keyboard_viewer.c swf_ShapeSetLine(tag,s,-20*width,0*height); s 131 swfs/keyboard_viewer.c swf_ShapeSetLine(tag,s,0*width,-20*height); s 134 swfs/keyboard_viewer.c swf_ShapeFree(s); // clean shape structure (which isn't needed anymore after writing the tag) s 54 swfs/simple_viewer.c SHAPE* s; s 105 swfs/simple_viewer.c swf_ShapeNew(&s); s 108 swfs/simple_viewer.c fs1 = swf_ShapeAddSolidFillStyle(s,&rgb); s 114 swfs/simple_viewer.c swf_SetShapeHeader(tag,s); s 115 swfs/simple_viewer.c swf_ShapeSetAll(tag,s,0,0,0,fs1,0); s 116 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,20*width,0); s 117 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,0,20*height); s 118 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,-20*width,0); s 119 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,0,-20*height); s 121 swfs/simple_viewer.c swf_ShapeFree(s); s 128 swfs/simple_viewer.c swf_ShapeNew(&s); // create new shape instance s 130 swfs/simple_viewer.c ls1 = swf_ShapeAddLineStyle(s,40,&rgb); s 132 swfs/simple_viewer.c fs1 = swf_ShapeAddSolidFillStyle(s,&rgb); s 139 swfs/simple_viewer.c swf_SetShapeHeader(tag,s); // write all styles to tag s 142 swfs/simple_viewer.c swf_ShapeSetAll(tag,s,0,0,ls1,fs1,0); // move to (0,0), select linestyle ls1 and no fillstyle s 146 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,20*button_sizex,20*button_sizey); s 147 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,-20*button_sizex,20*button_sizey); s 148 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,0,-40*button_sizey); s 150 swfs/simple_viewer.c swf_ShapeSetAll(tag,s,20*button_sizex,0,ls1,fs1,0); s 151 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,-20*button_sizex,20*button_sizey); s 152 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,20*button_sizex,20*button_sizey); s 153 swfs/simple_viewer.c swf_ShapeSetLine(tag,s,0,-40*button_sizey); s 156 swfs/simple_viewer.c swf_ShapeFree(s); // clean shape structure (which isn't needed anymore after writing the tag)