Lines Matching refs:ofp

59     FILE *ofp;  in createtgafile()  local
66 ofp = fopen(name, "w+b"); in createtgafile()
67 if (ofp == nullptr) { in createtgafile()
75 fputc(0, ofp); /* IdLength */ in createtgafile()
76 fputc(0, ofp); /* ColorMapType */ in createtgafile()
77 fputc(2, ofp); /* ImageTypeCode */ in createtgafile()
78 fputc(0, ofp); /* ColorMapOrigin, low byte */ in createtgafile()
79 fputc(0, ofp); /* ColorMapOrigin, high byte */ in createtgafile()
80 fputc(0, ofp); /* ColorMapLength, low byte */ in createtgafile()
81 fputc(0, ofp); /* ColorMapLength, high byte */ in createtgafile()
82 fputc(0, ofp); /* ColorMapEntrySize */ in createtgafile()
83 fputc(0, ofp); /* XOrigin, low byte */ in createtgafile()
84 fputc(0, ofp); /* XOrigin, high byte */ in createtgafile()
85 fputc(0, ofp); /* YOrigin, low byte */ in createtgafile()
86 fputc(0, ofp); /* YOrigin, high byte */ in createtgafile()
87 fputc((width & 0xff), ofp); /* Width, low byte */ in createtgafile()
88 fputc(((width >> 8) & 0xff), ofp); /* Width, high byte */ in createtgafile()
89 fputc((height & 0xff), ofp); /* Height, low byte */ in createtgafile()
90 fputc(((height >> 8) & 0xff), ofp); /* Height, high byte */ in createtgafile()
91 fputc(24, ofp); /* ImagePixelSize */ in createtgafile()
92 fputc(0x20, ofp); /* ImageDescriptorByte 0x20 == flip vertically */ in createtgafile()
94 fseek(ofp, filesize, 0); in createtgafile()
95 fprintf(ofp, "9876543210"); in createtgafile()
97 fclose(ofp); in createtgafile()
102 FILE *ofp; in opentgafile() local
104 ofp = fopen(filename, "r+b"); in opentgafile()
105 if (ofp == nullptr) { in opentgafile()
113 return ofp; in opentgafile()
128 FILE *ofp = (FILE *)voidofp; in writetgaregion() local
138 fseek(ofp, filepos, 0); in writetgaregion()
139 numbytes = fwrite(bufpos, 3, totalx, ofp); in writetgaregion()