De fleste virksomheder har efterhånden bevist, at AI virker.
Pilotprojekter leverer resultater. Medarbejdere bruger generative AI-værktøjer. Nye use cases dukker op på tværs af organisationen.
/* received on jan 29, 1991 from Bob Boag BITNET: boag@marshall Senior Software Systems Analyst Internet: boag@marshall.wvnet.edu Marshall University Computer Center Phone: (304)696-2624 Huntington, WV 25755-5320 FAX: (304)696-3601 */
/********************************************* * * * January 31, 1991 (not much) by John Gay * * * * rehacked so that either giftops or * * giftoeps could be compiled. giftops is * * the default unless the symbol EPS is * * defined. * * * ********************************************* * GIFtoEPS Converter * * * * July 10, 1990 by David S. Joerg * * * * cc -DEPS -O -s -o giftoeps \ * * giftoeps.c -lsys_s * * will give you a nice little 16K binary. * ********************************************* * If giftoeps does something wrong, you can * * email me at... joerg@alliant.mcs.anl.gov * * but I probably won't be much help, I have * * no idea whatsoever how this beast really * * works, beacause it's just an overly * * simpleminded kludge of... * ********************************************* * GIFtoPS Converter * * * * May 16, 1988 by Scott Hemphill * * * * I wrote this program, and hereby place it * * in the public domain, i.e. there are no * * copying restrictions of any kind. * *********************************************/
FILE *infile; unsigned int screenwidth; /* The dimensions of the screen */ unsigned int screenheight; /* (not those of the image) */ bool global; /* Is there a global color map? */ int globalbits; /* Number of bits of global colors */ unsigned char globalmap[256][3]; /* RGB values for global color map */ char colortable[256][3]; /* Hex intensity strings for an image */ unsigned char *raster; /* Decoded image data */ codetype *codetable; /* LZW compression code data */ int datasize,codesize,codemask; /* Decoder working variables */ int clear,eoi; /* Special code values */
/* Convert a color map (local or global) to an array of two character hexadecimal strings, stored in colortable. RGB is converted to 8-bit grayscale using integer arithmetic. */
for (i = 0; i < ncolors; i++) { color = 77*colormap[i][0] + 150*colormap[i][1] + 29*colormap[i][2]; color >>= 8; colortable[i][0] = hextab[color >> 4]; colortable[i][1] = hextab[color & 15]; colortable[i][2] = '\0'; } }
/* Write a postscript header to the standard output. Standard paper size (8.5 by 11) is hard-coded, as is the whole initialization sequence. */ /* (DSJ) - Write an EPS header, try not to hardcode anything. */
scanline = raster + row*width; for (i = 0; i < width; i++) { if (i % 40 == 0) printf("\n"); /* break line every 80 chars */ fputs(colortable[*scanline++],stdout); } printf("\n"); }
/* write image trailer to standard output */
void writetrailer() { printf("showpage\n"); }
/* Read image information (position, size, local color map, etc.) and convert to postscript. */
void readimage() { unsigned char buf[9]; unsigned left,top,width,height; bool local,interleaved; char localmap[256][3]; int localbits; int *interleavetable; register row; register i;
fread(buf,1,9,infile); left = buf[0] + (buf[1] << 8); top = buf[2] + (buf[3] << 8); width = buf[4] + (buf[5] << 8); height = buf[6] + (buf[7] << 8); local = buf[8] & 0x80; interleaved = buf[8] & 0x40; if (local) { localbits = (buf[8] & 0x7) + 1; fread(localmap,3,1<<localbits,infile); initcolors(colortable,localmap,1<<localbits); } else if (global) { initcolors(colortable,globalmap,1<<globalbits); } else { fatal("no colormap present for image"); } writeheader(left,top,width,height); raster = (unsigned char*)malloc(width*height); if (!raster) fatal("not enough memory for image"); readraster(width,height); if (interleaved) { interleavetable = (int*)malloc(height*sizeof(int)); if (!interleavetable) fatal("not enough memory for interleave table"); row = 0; for (i = top; i < top+height; i += 8) interleavetable[i] = row++; for (i = top+4; i < top+height; i += 8) interleavetable[i] = row++; for (i = top+2; i < top+height; i += 4) interleavetable[i] = row++; for (i = top+1; i < top+height; i += 2) interleavetable[i] = row++; for (row = top; row < top+height; row++) rasterize(interleavetable[row],width); free(interleavetable); } else { for (row = top; row < top+height; row++) rasterize(row,width); } free(raster); writetrailer(); }
/* Read a GIF extension block (and do nothing with it). */
Tak skal du have - der blot et lille problem jeg ikke lige lod mærke til : Jeg kunne vel ikke lige få dig til at skrive "89a" istedetfor "87a" i funktionen void checksignature() og så komp. og sende den igen.
Endnu engang : Tusind tak - latex er noget værre noget ;-)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.