Lines Matching defs:tag
78 #define TIFFWriteRational(tif, type, tag, dir, v) \
79 TIFFWriteRationalArray((tif), (type), (tag), (dir), 1, &(v))
96 ttag_t tag;
179 * Write out ExtraSamples tag only if
222 tag = isTiled(tif) ?
224 if (tag != fip->field_tag)
226 if (!TIFFWriteLongArray(tif, TIFF_LONG, tag, dir,
237 tag = isTiled(tif) ?
239 if (tag != fip->field_tag)
241 if (!TIFFWriteLongArray(tif, TIFF_LONG, tag, dir,
326 * tag then force the next <n> directories to be
368 * other tag construction routines assume that
642 TIFFSetupShortLong(TIFF* tif, ttag_t tag, TIFFDirEntry* dir, uint32 v)
644 dir->tdir_tag = (uint16) tag;
659 TIFFSetupShort(TIFF* tif, ttag_t tag, TIFFDirEntry* dir, uint16 v)
661 dir->tdir_tag = (uint16) tag;
675 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, float v)
677 return (TIFFWriteRationalArray(tif, type, tag, dir, 1, &v));
689 TIFFWritePerSampleShorts(TIFF* tif, ttag_t tag, TIFFDirEntry* dir)
703 TIFFGetField(tif, tag, &v);
706 status = TIFFWriteShortArray(tif, TIFF_SHORT, tag, dir, samples, w);
715 * data from TIFFGetField() for the specified tag must be returned as double.
719 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir)
734 TIFFGetField(tif, tag, &v);
737 status = TIFFWriteAnyArray(tif, type, tag, dir, samples, w);
749 TIFFSetupShortPair(TIFF* tif, ttag_t tag, TIFFDirEntry* dir)
753 TIFFGetField(tif, tag, &v[0], &v[1]);
754 return (TIFFWriteShortArray(tif, TIFF_SHORT, tag, dir, 2, v));
764 ttag_t tag, TIFFDirEntry* dir, uint32 n, uint16** table)
768 dir->tdir_tag = (uint16) tag;
782 * Write/copy data associated with an ASCII or opaque tag value.
801 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, uint16* v)
803 dir->tdir_tag = (uint16) tag;
827 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, uint32* v)
829 dir->tdir_tag = (uint16) tag;
845 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, float* v)
851 dir->tdir_tag = (uint16) tag;
869 _TIFFFieldWithTag(tif,tag)->field_name, fv);
889 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, float* v)
891 dir->tdir_tag = (uint16) tag;
904 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, double* v)
906 dir->tdir_tag = (uint16) tag;
914 * Write an array of ``type'' values for a specified tag (i.e. this is a tag
917 * hold any of the TIFF tag types (yes, this should really be an abstract
924 TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, double* v)
943 dir->tdir_tag = (uint16) tag;
954 dir->tdir_tag = (uint16) tag;
965 if (!TIFFWriteShortArray(tif, type, tag, dir, n, (uint16*)bp))
973 if (!TIFFWriteShortArray(tif, type, tag, dir, n, (uint16*)bp))
981 if (!TIFFWriteLongArray(tif, type, tag, dir, n, bp))
989 if (!TIFFWriteLongArray(tif, type, tag, dir, n, (uint32*) bp))
997 if (!TIFFWriteFloatArray(tif, type, tag, dir, n, bp))
1002 return (TIFFWriteDoubleArray(tif, type, tag, dir, n, v));
1030 * write a 3-column tag if there are 2 samples/pixel and