Lines Matching refs:tdir_count
239 TIFFSwabArrayOfLong(&dp->tdir_count, 2);
341 if (dp->tdir_count == 1) {
438 if (dp->tdir_count == 1) {
478 dp->tdir_count != (uint32) v) {
483 cp = CheckMalloc(tif, dp->tdir_count, sizeof (uint16),
493 if (dp->tdir_count == c)
672 cc = cc * dp->tdir_count;
724 if (count != dir->tdir_count) {
728 dir->tdir_count, count);
741 tsize_t cc = dir->tdir_count * w;
757 TIFFSwabArrayOfShort((uint16*) cp, dir->tdir_count);
762 TIFFSwabArrayOfLong((uint32*) cp, dir->tdir_count);
766 TIFFSwabArrayOfLong((uint32*) cp, 2*dir->tdir_count);
769 TIFFSwabArrayOfDouble((double*) cp, dir->tdir_count);
786 if (dir->tdir_count <= 4) {
790 _TIFFmemcpy(cp, &l, dir->tdir_count);
851 if (dir->tdir_count <= 4) {
857 switch (dir->tdir_count) {
864 switch (dir->tdir_count) {
872 switch (dir->tdir_count) {
879 switch (dir->tdir_count) {
897 if (dir->tdir_count <= 2) {
899 switch (dir->tdir_count) {
904 switch (dir->tdir_count) {
944 if (dir->tdir_count == 1) {
961 dir->tdir_count, TIFFDataWidth((TIFFDataType) dir->tdir_type),
966 for (i = 0; i < dir->tdir_count; i++) {
985 if (dir->tdir_count == 1) {
987 TIFFCvtIEEEFloatToNative(tif, dir->tdir_count, v);
990 TIFFCvtIEEEFloatToNative(tif, dir->tdir_count, v);
1003 TIFFCvtIEEEDoubleToNative(tif, dir->tdir_count, v);
1032 for (i = dir->tdir_count-1; i >= 0; i--)
1036 for (i = dir->tdir_count-1; i >= 0; i--)
1046 for (i = dir->tdir_count-1; i >= 0; i--)
1050 for (i = dir->tdir_count-1; i >= 0; i--)
1060 for (i = dir->tdir_count-1; i >= 0; i--)
1064 for (i = dir->tdir_count-1; i >= 0; i--)
1073 for (i = dir->tdir_count-1; i >= 0; i--)
1081 for (i = dir->tdir_count-1; i >= 0; i--)
1109 if (dp->tdir_count > 1) { /* array of values */
1117 dp->tdir_count, sizeof (uint16), mesg);
1123 dp->tdir_count, sizeof (uint16), mesg);
1129 dp->tdir_count, sizeof (uint32), mesg);
1135 dp->tdir_count, sizeof (float), mesg);
1140 dp->tdir_count, sizeof (float), mesg);
1145 dp->tdir_count, sizeof (double), mesg);
1154 cp = CheckMalloc(tif, dp->tdir_count+1, 1, mesg);
1156 cp[dp->tdir_count] = '\0'; /* XXX */
1161 TIFFSetField(tif, dp->tdir_tag, dp->tdir_count, cp)
1343 dir->tdir_count, sizeof (uint16), "to fetch strip tag");
1349 for( i = 0; i < nstrips && i < (int) dir->tdir_count; i++ )
1356 } else if( nstrips != (int) dir->tdir_count ) {
1360 dir->tdir_count, sizeof (uint32), "to fetch strip tag");
1368 for( i = 0; i < nstrips && i < (int) dir->tdir_count; i++ )
1392 if (dir->tdir_count > NITEMS(buf)) {
1393 v = (uint16*) CheckMalloc(tif, dir->tdir_count, sizeof (uint16),
1403 status = TIFFSetField(tif, dir->tdir_tag, dir->tdir_count, v);
1426 cp = CheckMalloc(tif, dir->tdir_count, sizeof (uint32), mesg);
1429 CheckMalloc(tif, dir->tdir_count, sizeof (float), mesg);
1432 for (i = 0; i < dir->tdir_count; i++)