Lines Matching defs:Data
174 cmsSignalError(iohandler ->ContextID, cmsERROR_SEEK, "Too few data; probably corrupted profile");
193 // Writes data to memory, also keeps used space for further reference.
346 // Writes data to stream, also keeps used space for further reference. Returns TRUE on success, FALSE on error
1137 cmsUInt8Number* Data;
1157 Data = (cmsUInt8Number*) Icc -> TagPtrs[i];
1159 if (!Data) {
1162 // In this case a blind copy of the block data is performed
1193 if (io -> Write(io, Icc ->TagSizes[i], Data) != 1) return FALSE;
1203 Type = TagDescriptor ->DecideType(Version, Data);
1224 if (!LocalTypeHandler.WritePtr(&LocalTypeHandler, io, Data, TagDescriptor ->ElemCount)) {
1273 // no data is written--only sizes are calculated
1548 // Return the data
1553 // Return error and unlock tha data
1560 // Get true type of data
1579 cmsBool CMSEXPORT cmsWriteTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data)
1593 if (data == NULL) {
1631 // the data. This is useful for example on parametric curves, where
1635 Type = TagDescriptor ->DecideType(Version, data);
1673 Icc ->TagPtrs[i] = LocalTypeHandler.DupPtr(&LocalTypeHandler, data, TagDescriptor ->ElemCount);
1693 // Read and write raw data. The only way those function would work and keep consistence with normal read and write
1695 // data to raw bytes by using the "write" serialization logic. And vice-versa. I know this may end in situations where
1696 // raw data written does not exactly correspond with the raw data proposed to cmsWriteRaw data, but this approach allows
1697 // to write a tag as raw data and the read it as handled.
1699 cmsInt32Number CMSEXPORT cmsReadRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, void* data, cmsUInt32Number BufferSize)
1724 // read the data directly, don't keep copy
1725 if (data != NULL) {
1731 if (!Icc ->IOhandler ->Read(Icc ->IOhandler, data, 1, TagSize)) goto Error;
1741 // The data has been already read, or written. But wait!, maybe the user choosed to save as
1742 // raw data. In this case, return the raw data directly
1745 if (data != NULL) {
1751 memmove(data, Icc ->TagPtrs[i], TagSize);
1762 // data to raw in order to maintain consistency.
1772 if (data == NULL) {
1775 MemIO = cmsOpenIOhandlerFromMem(cmsGetProfileContextID(hProfile), data, BufferSize, "w");
1816 // Similar to the anterior. This function allows to write directly to the ICC profile any data, without
1820 cmsBool CMSEXPORT cmsWriteRawTag(cmsHPROFILE hProfile, cmsTagSignature sig, const void* data, cmsUInt32Number Size)
1838 Icc ->TagPtrs[i] = _cmsDupMem(Icc ->ContextID, data, Size);