Home | History | Annotate | Download | only in jhead

Lines Matching refs:components

514         int Tag, Format, Components;
522 Components = Get32u(DirEntry+4);
530 if ((unsigned)Components > 0x10000){
531 ErrNonfatal("Illegal number of components %d for tag %04x", Components, Tag);
535 ByteCount = Components * BytesPerFormat[Format];
627 // Extract useful components of tag
1087 long components,
1097 if (format == FMT_STRING && components == -1) {
1098 components = strlen((char*)value) + 1; // account for null terminator
1099 if (components & 1) ++components; // no odd lengths
1101 if (format == FMT_UNDEFINED && components == -1) {
1105 components = sizeof(ExifAsciiPrefix) +
1107 if (components & 1) ++components; // no odd lengths
1110 Put32u(Buffer+(*DirIndex) + 4, components); // Components
1111 componentsPosition = Buffer+(*DirIndex) + 4; // components # can change for lists
1112 printf("# components: %ld", components);
1116 if (components <= 4) {
1121 strncpy(Buffer+(*DataWriteIndex), (char*)value, components);
1122 (*DataWriteIndex) += components;
1128 if (components <= 4) {
1129 memcpy(Buffer+(*DirIndex) + 8, (char*)value, components);
1133 memcpy(Buffer+(*DataWriteIndex), (char*)value, components);
1134 (*DataWriteIndex) += components;
1143 // (components == -1) Need to handle lists with unknown length too
1144 for (i = 0; ((i < components) || (components == -1)) && curElement != NULL; i++) {
1167 } else if ((components == -1) && ((format == FMT_USHORT) || (format == FMT_SSHORT))) {
1168 // variable components need to go into data write area
1173 // TODO: doesn't handle multiple components yet -- if more than one, have to put in data write area.
1179 if (components == -1) Put32u(componentsPosition, i); // update component # for unknowns