Home | History | Annotate | Download | only in src

Lines Matching refs:sd

1761     SAVESTREAM sd;
1765 memset(&sd, 0, sizeof(sd));
1767 sd.stream = fopen(cFileName, "wt");
1768 if (!sd.stream) return FALSE;
1773 WriteHeader(it8, &sd);
1774 WriteDataFormat(&sd, it8);
1775 WriteData(&sd, it8);
1778 if (fclose(sd.stream) != 0) return FALSE;
1787 SAVESTREAM sd;
1791 memset(&sd, 0, sizeof(sd));
1793 sd.stream = NULL;
1794 sd.Base = (cmsUInt8Number*) MemPtr;
1795 sd.Ptr = sd.Base;
1797 sd.Used = 0;
1799 if (sd.Base)
1800 sd.Max = *BytesNeeded; // Write to memory?
1802 sd.Max = 0; // Just counting the needed bytes
1807 WriteHeader(it8, &sd);
1808 WriteDataFormat(&sd, it8);
1809 WriteData(&sd, it8);
1812 sd.Used++; // The \0 at the very end
1814 if (sd.Base)
1815 *sd.Ptr = 0;
1817 *BytesNeeded = sd.Used;