Lines Matching defs:fld
301 TIFFField *fld = tif->tif_fields[i];
302 if (fld->field_bit == FIELD_CUSTOM &&
303 strncmp("Tag ", fld->field_name, 4) == 0) {
304 _TIFFfree(fld->field_name);
305 _TIFFfree(fld);
563 const TIFFField *fld;
565 fld = TIFFFindField(tif, tag, dt);
566 if (fld == NULL) {
567 fld = _TIFFCreateAnonField(tif, tag, dt);
568 if (!_TIFFMergeFields(tif, fld, 1))
572 return fld;
578 TIFFField *fld;
581 fld = (TIFFField *) _TIFFmalloc(sizeof (TIFFField));
582 if (fld == NULL)
584 _TIFFmemset(fld, 0, sizeof(TIFFField));
586 fld->field_tag = tag;
587 fld->field_readcount = TIFF_VARIABLE2;
588 fld->field_writecount = TIFF_VARIABLE2;
589 fld->field_type = field_type;
590 fld->reserved = 0;
595 fld->set_field_type = TIFF_SETGET_C32_UINT8;
596 fld->get_field_type = TIFF_SETGET_C32_UINT8;
599 fld->set_field_type = TIFF_SETGET_C32_ASCII;
600 fld->get_field_type = TIFF_SETGET_C32_ASCII;
603 fld->set_field_type = TIFF_SETGET_C32_UINT16;
604 fld->get_field_type = TIFF_SETGET_C32_UINT16;
607 fld->set_field_type = TIFF_SETGET_C32_UINT32;
608 fld->get_field_type = TIFF_SETGET_C32_UINT32;
613 fld->set_field_type = TIFF_SETGET_C32_FLOAT;
614 fld->get_field_type = TIFF_SETGET_C32_FLOAT;
617 fld->set_field_type = TIFF_SETGET_C32_SINT8;
618 fld->get_field_type = TIFF_SETGET_C32_SINT8;
621 fld->set_field_type = TIFF_SETGET_C32_SINT16;
622 fld->get_field_type = TIFF_SETGET_C32_SINT16;
625 fld->set_field_type = TIFF_SETGET_C32_SINT32;
626 fld->get_field_type = TIFF_SETGET_C32_SINT32;
629 fld->set_field_type = TIFF_SETGET_C32_DOUBLE;
630 fld->get_field_type = TIFF_SETGET_C32_DOUBLE;
634 fld->set_field_type = TIFF_SETGET_C32_IFD8;
635 fld->get_field_type = TIFF_SETGET_C32_IFD8;
638 fld->set_field_type = TIFF_SETGET_C32_UINT64;
639 fld->get_field_type = TIFF_SETGET_C32_UINT64;
642 fld->set_field_type = TIFF_SETGET_C32_SINT64;
643 fld->get_field_type = TIFF_SETGET_C32_SINT64;
646 fld->set_field_type = TIFF_SETGET_UNDEFINED;
647 fld->get_field_type = TIFF_SETGET_UNDEFINED;
650 fld->field_bit = FIELD_CUSTOM;
651 fld->field_oktochange = TRUE;
652 fld->field_passcount = TRUE;
653 fld->field_name = (char *) _TIFFmalloc(32);
654 if (fld->field_name == NULL) {
655 _TIFFfree(fld);
658 fld->field_subfields = NULL;
664 sprintf(fld->field_name, "Tag %d", (int) tag);
666 return fld;