Lines Matching defs:fld
317 TIFFField *fld = tif->tif_fields[i];
318 if (fld->field_bit == FIELD_CUSTOM &&
319 strncmp("Tag ", fld->field_name, 4) == 0) {
320 _TIFFfree(fld->field_name);
321 _TIFFfree(fld);
615 const TIFFField *fld;
617 fld = TIFFFindField(tif, tag, dt);
618 if (fld == NULL) {
619 fld = _TIFFCreateAnonField(tif, tag, dt);
620 if (!_TIFFMergeFields(tif, fld, 1))
624 return fld;
630 TIFFField *fld;
633 fld = (TIFFField *) _TIFFmalloc(sizeof (TIFFField));
634 if (fld == NULL)
636 _TIFFmemset(fld, 0, sizeof(TIFFField));
638 fld->field_tag = tag;
639 fld->field_readcount = TIFF_VARIABLE2;
640 fld->field_writecount = TIFF_VARIABLE2;
641 fld->field_type = field_type;
642 fld->reserved = 0;
647 fld->set_field_type = TIFF_SETGET_C32_UINT8;
648 fld->get_field_type = TIFF_SETGET_C32_UINT8;
651 fld->set_field_type = TIFF_SETGET_C32_ASCII;
652 fld->get_field_type = TIFF_SETGET_C32_ASCII;
655 fld->set_field_type = TIFF_SETGET_C32_UINT16;
656 fld->get_field_type = TIFF_SETGET_C32_UINT16;
659 fld->set_field_type = TIFF_SETGET_C32_UINT32;
660 fld->get_field_type = TIFF_SETGET_C32_UINT32;
665 fld->set_field_type = TIFF_SETGET_C32_FLOAT;
666 fld->get_field_type = TIFF_SETGET_C32_FLOAT;
669 fld->set_field_type = TIFF_SETGET_C32_SINT8;
670 fld->get_field_type = TIFF_SETGET_C32_SINT8;
673 fld->set_field_type = TIFF_SETGET_C32_SINT16;
674 fld->get_field_type = TIFF_SETGET_C32_SINT16;
677 fld->set_field_type = TIFF_SETGET_C32_SINT32;
678 fld->get_field_type = TIFF_SETGET_C32_SINT32;
681 fld->set_field_type = TIFF_SETGET_C32_DOUBLE;
682 fld->get_field_type = TIFF_SETGET_C32_DOUBLE;
686 fld->set_field_type = TIFF_SETGET_C32_IFD8;
687 fld->get_field_type = TIFF_SETGET_C32_IFD8;
690 fld->set_field_type = TIFF_SETGET_C32_UINT64;
691 fld->get_field_type = TIFF_SETGET_C32_UINT64;
694 fld->set_field_type = TIFF_SETGET_C32_SINT64;
695 fld->get_field_type = TIFF_SETGET_C32_SINT64;
698 fld->set_field_type = TIFF_SETGET_UNDEFINED;
699 fld->get_field_type = TIFF_SETGET_UNDEFINED;
702 fld->field_bit = FIELD_CUSTOM;
703 fld->field_oktochange = TRUE;
704 fld->field_passcount = TRUE;
705 fld->field_name = (char *) _TIFFmalloc(32);
706 if (fld->field_name == NULL) {
707 _TIFFfree(fld);
710 fld->field_subfields = NULL;
716 snprintf(fld->field_name, 32, "Tag %d", (int) tag);
718 return fld;