Home | History | Annotate | Download | only in jhead

Lines Matching defs:Data

2 //  Process IPTC data and XMP data.
45 // - IPTC Data which consists of a number of entries, each of which has the following format:
49 // - entry data 'entry length' bytes
52 void show_IPTC (unsigned char* Data, unsigned int itemlen)
58 unsigned char * pos = Data + sizeof(short); // position data pointer after length field
59 unsigned char * maxpos = Data+itemlen;
66 pos += sizeof(IptcSig1); // move data pointer to the next field
69 pos += sizeof(IptcSig2)-1; // move data pointer to the next field
78 pos += sizeof(IptcSig3); // move data pointer to the next field
85 headerLen = *pos++; // get header length and move data pointer to the next field
86 pos += headerLen + 1 - (headerLen % 2); // move data pointer to the next field (Header is padded to even length, counting the length byte)
93 pos += 4; // move data pointer to the next field
95 printf("======= IPTC data: =======\n");
97 // Now read IPTC data
98 while (pos < (Data + itemlen-5)) {
177 unsigned char * Data;
183 Data = XmpSection.Data;
188 if (Data[a] >= 32 && Data[a] < 128){
189 OutLine[OutLineChars++] = Data[a];
190 if (Data[a] != ' ') NonBlank |= 1;
192 if (Data[a] != '\n'){
196 if (Data[a] == '\n' || OutLineChars >= 100){