Searched refs:td (Results 1 - 25 of 99) sorted by relevance

1234

/haiku-fatelf/src/libs/pdflib/libs/tiff/
H A Dtif_strip.c40 TIFFDirectory *td = &tif->tif_dir; local
43 strip = row / td->td_rowsperstrip;
44 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) {
45 if (sample >= td->td_samplesperpixel) {
48 sample, td->td_samplesperpixel);
51 strip += sample*td->td_stripsperimage;
62 TIFFDirectory *td = &tif->tif_dir; local
65 nstrips = (td->td_rowsperstrip == (uint32) -1 ?
66 (td->td_imagelength != 0 ? 1 : 0) :
67 TIFFhowmany(td
79 TIFFDirectory *td = &tif->tif_dir; local
120 TIFFDirectory* td = &tif->tif_dir; local
164 TIFFDirectory *td = &tif->tif_dir; local
182 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_auxx.c38 TIFFDefaultTransferFunction(TIFF* tif, TIFFDirectory* td) argument
40 uint16 **tf = td->td_transferfunction;
41 long i, n = 1<<td->td_bitspersample;
49 if (td->td_samplesperpixel - td->td_extrasamples > 1) {
58 TIFFDefaultRefBlackWhite(TIFF* tif, TIFFDirectory* td) argument
62 td->td_refblackwhite = (float *)_TIFFmalloc(tif, 6*sizeof (float));
64 td->td_refblackwhite[2*i+0] = 0;
65 td->td_refblackwhite[2*i+1] =(float)((1L<<td
81 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_tile.c40 TIFFDirectory *td = &tif->tif_dir; local
41 uint32 dx = td->td_tilewidth;
42 uint32 dy = td->td_tilelength;
43 uint32 dz = td->td_tiledepth;
46 if (td->td_imagedepth == 1)
49 dx = td->td_imagewidth;
51 dy = td->td_imagelength;
53 dz = td->td_imagedepth;
55 uint32 xpt = TIFFhowmany(td->td_imagewidth, dx);
56 uint32 ypt = TIFFhowmany(td
77 TIFFDirectory *td = &tif->tif_dir; local
109 TIFFDirectory *td = &tif->tif_dir; local
136 TIFFDirectory *td = &tif->tif_dir; local
153 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_dir.c70 setExtraSamples(TIFF* tif, TIFFDirectory* td, va_list ap, int* v) argument
76 if ((uint16) *v > td->td_samplesperpixel)
84 td->td_extrasamples = (uint16) *v;
85 _TIFFsetShortArray(tif, &td->td_sampleinfo, va, td->td_extrasamples);
93 TIFFDirectory* td = &tif->tif_dir; local
94 int i = td->td_samplesperpixel;
111 td->td_samplesperpixel,
112 td->td_samplesperpixel-i);
120 TIFFDirectory* td local
598 TIFFDirectory* td = &tif->tif_dir; local
915 register TIFFDirectory *td = &tif->tif_dir; local
1010 register TIFFDirectory* td = &tif->tif_dir; local
[all...]
/haiku-fatelf/src/libs/tiff/
H A Dtif_tile.c70 TIFFDirectory *td = &tif->tif_dir; local
71 uint32 dx = td->td_tilewidth;
72 uint32 dy = td->td_tilelength;
73 uint32 dz = td->td_tiledepth;
76 if (td->td_imagedepth == 1)
79 dx = td->td_imagewidth;
81 dy = td->td_imagelength;
83 dz = td->td_imagedepth;
85 uint32 xpt = TIFFhowmany(td->td_imagewidth, dx);
86 uint32 ypt = TIFFhowmany(td
107 TIFFDirectory *td = &tif->tif_dir; local
147 TIFFDirectory *td = &tif->tif_dir; local
176 TIFFDirectory *td = &tif->tif_dir; local
195 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_strip.c70 TIFFDirectory *td = &tif->tif_dir; local
73 strip = row / td->td_rowsperstrip;
74 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) {
75 if (sample >= td->td_samplesperpixel) {
78 (unsigned long) sample, (unsigned long) td->td_samplesperpixel);
81 strip += sample*td->td_stripsperimage;
92 TIFFDirectory *td = &tif->tif_dir; local
95 nstrips = (td->td_rowsperstrip == (uint32) -1 ? 1 :
96 TIFFhowmany(td->td_imagelength, td
109 TIFFDirectory *td = &tif->tif_dir; local
160 TIFFDirectory* td = &tif->tif_dir; local
184 TIFFDirectory* td = &tif->tif_dir; local
229 TIFFDirectory *td = &tif->tif_dir; local
277 TIFFDirectory *td = &tif->tif_dir; local
303 TIFFDirectory *td = &tif->tif_dir; local
348 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_aux.c65 TIFFDefaultTransferFunction(TIFFDirectory* td) argument
67 uint16 **tf = td->td_transferfunction;
71 if (td->td_bitspersample >= sizeof(tsize_t) * 8 - 2)
74 n = 1<<td->td_bitspersample;
84 if (td->td_samplesperpixel - td->td_extrasamples > 1) {
106 TIFFDefaultRefBlackWhite(TIFFDirectory* td) argument
110 if (!(td->td_refblackwhite = (float *)_TIFFmalloc(6*sizeof (float))))
112 if (td->td_photometric == PHOTOMETRIC_YCBCR) {
117 td
145 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_write.c52 register TIFFDirectory *td; local
65 td = &tif->tif_dir;
70 if (row >= td->td_imagelength) { /* extend image */
71 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) {
76 td->td_imagelength = row+1;
82 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) {
83 if (sample >= td->td_samplesperpixel) {
86 sample, td->td_samplesperpixel);
89 strip = sample*td->td_stripsperimage + row/td
185 TIFFDirectory *td = &tif->tif_dir; local
267 TIFFDirectory *td = &tif->tif_dir; local
339 TIFFDirectory *td; local
445 TIFFDirectory* td = &tif->tif_dir; local
591 TIFFDirectory *td = &tif->tif_dir; local
626 TIFFDirectory *td = &tif->tif_dir; local
[all...]
H A Dtif_print.c118 TIFFDirectory *td = &tif->tif_dir; local
197 TIFFDirectory *td = &tif->tif_dir; local
207 if (td->td_subfiletype & FILETYPE_REDUCEDIMAGE) {
211 if (td->td_subfiletype & FILETYPE_PAGE) {
215 if (td->td_subfiletype & FILETYPE_MASK)
218 (long) td->td_subfiletype, (long) td->td_subfiletype);
222 (unsigned long) td->td_imagewidth, (unsigned long) td->td_imagelength);
225 (unsigned long) td
[all...]
H A Dtif_dir.c75 setExtraSamples(TIFFDirectory* td, va_list ap, uint32* v) argument
84 if ((uint16) *v > td->td_samplesperpixel)
103 td->td_extrasamples = (uint16) *v;
104 _TIFFsetShortArray(&td->td_sampleinfo, va, td->td_extrasamples);
113 TIFFDirectory* td = &tif->tif_dir; local
114 uint16 i = td->td_samplesperpixel;
131 td->td_samplesperpixel,
132 td->td_samplesperpixel-i);
141 TIFFDirectory* td local
676 TIFFDirectory* td = &tif->tif_dir; local
989 TIFFDirectory *td = &tif->tif_dir; local
1058 register TIFFDirectory* td = &tif->tif_dir; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_destroy/
H A D2-1.c79 if (td->fork) \
88 if (td->fork) \
181 testdata_t * td; variable
192 ret = pthread_mutex_lock(&td->mtx1);
196 td->count1++;
198 timed=td->count1 & 1;
203 ret = clock_gettime(td->cid, &ts);
211 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts);
213 ret = pthread_cond_wait(&td
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-4.c158 testdata_t * td = (testdata_t *)arg; local
161 ret = pthread_mutex_lock(&(td->mtx));
164 td->status = ret;
169 td->ctrl = 1;
172 ret = clock_gettime(td->cid, &ts);
175 td->status = ret;
187 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts);
188 td->ctrl = 2;
189 } while ((ret == 0) && (td
254 testdata_t * td; local
[all...]
H A D2-7.c159 testdata_t * td = (testdata_t *)arg; local
162 ret = pthread_mutex_lock(&(td->mtx));
165 td->status = ret;
170 td->ctrl = 1;
173 ret = clock_gettime(td->cid, &ts);
176 td->status = ret;
194 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts);
195 td->ctrl = 2;
196 } while ((ret == 0) && (td
261 testdata_t * td; local
[all...]
H A D2-1.c36 } td; variable in typeref:struct:testdata
47 if (pthread_mutex_lock(&td.mutex) != 0) {
62 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
80 if (pthread_mutex_trylock(&td.mutex) == 0) {
87 if (pthread_mutex_unlock(&td.mutex) != 0) {
100 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
104 if (pthread_cond_init(&td.cond, NULL) != 0) {
117 if (pthread_mutex_lock(&td.mutex) != 0) {
121 if (pthread_mutex_unlock(&td
[all...]
H A D1-1.c29 } td; variable in typeref:struct:testdata
40 if (pthread_mutex_lock(&td.mutex) != 0) {
56 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
74 pthread_mutex_unlock(&td.mutex);
82 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
86 if (pthread_cond_init(&td.cond, NULL) != 0) {
99 if (pthread_mutex_lock(&td.mutex) != 0) {
103 if (pthread_mutex_unlock(&td.mutex) != 0) {
111 if (pthread_cond_signal(&td
[all...]
H A D3-1.c29 } td; variable in typeref:struct:testdata
40 if (pthread_mutex_lock(&td.mutex) != 0) {
55 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
74 if (pthread_mutex_unlock(&td.mutex) != 0) {
86 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
90 if (pthread_cond_init(&td.cond, NULL) != 0) {
103 if (pthread_mutex_lock(&td.mutex) != 0) {
107 if (pthread_mutex_unlock(&td.mutex) != 0) {
115 if (pthread_cond_signal(&td
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_wait/
H A D2-2.c156 testdata_t * td = (testdata_t *)arg; local
159 ret = pthread_mutex_lock(&(td->mtx));
162 td->status = ret;
167 td->ctrl = 1;
172 ret = pthread_cond_wait(&(td->cnd), &(td->mtx));
173 td->ctrl = 2;
174 } while ((ret == 0) && (td->bool == 0));
176 td->ctrl = 3;
180 td
239 testdata_t * td; local
[all...]
H A D2-1.c26 } td; variable in typeref:struct:testdata
45 if (pthread_mutex_lock(&td.mutex) != 0) {
53 rc = pthread_cond_wait(&td.cond, &td.mutex);
65 if (pthread_mutex_trylock(&td.mutex) == 0) {
72 if (pthread_mutex_unlock(&td.mutex) != 0) {
86 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
90 if (pthread_cond_init(&td.cond, NULL) != 0) {
103 if (pthread_mutex_lock(&td.mutex) != 0) {
107 if (pthread_mutex_unlock(&td
[all...]
H A D1-1.c26 } td; variable in typeref:struct:testdata
45 if (pthread_mutex_lock(&td.mutex) != 0) {
53 rc = pthread_cond_wait(&td.cond, &td.mutex);
65 pthread_mutex_unlock(&td.mutex);
73 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
77 if (pthread_cond_init(&td.cond, NULL) != 0) {
90 if (pthread_mutex_lock(&td.mutex) != 0) {
94 if (pthread_mutex_unlock(&td.mutex) != 0) {
109 if (pthread_cond_signal(&td
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/bonnie++-1.03d/
H A Dforkit.cpp28 THREAD_DATA *td = (THREAD_DATA *)param; local
29 td->f = new Fork;
30 td->f->startit(td);
34 void Fork::startit(THREAD_DATA *td) argument
36 m_read = td->child_read;
37 m_write = td->child_write;
38 td->func(this, td->param, td
59 THREAD_DATA *td = new THREAD_DATA; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_broadcast/
H A D2-1.c28 } td; variable in typeref:struct:testdata
38 if (pthread_mutex_lock(&td.mutex) != 0) {
46 rc = pthread_cond_wait(&td.cond, &td.mutex);
52 if (pthread_mutex_trylock(&td.mutex) == 0) {
61 if (pthread_mutex_unlock(&td.mutex) != 0) {
75 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
79 if (pthread_cond_init(&td.cond, NULL) != 0) {
95 if (pthread_mutex_lock(&td.mutex) != 0) {
99 if (pthread_mutex_unlock(&td
[all...]
H A D1-1.c27 } td; variable in typeref:struct:testdata
37 if (pthread_mutex_lock(&td.mutex) != 0) {
45 rc = pthread_cond_wait(&td.cond, &td.mutex);
53 if (pthread_mutex_unlock(&td.mutex) != 0) {
66 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
70 if (pthread_cond_init(&td.cond, NULL) != 0) {
86 if (pthread_mutex_lock(&td.mutex) != 0) {
90 if (pthread_mutex_unlock(&td.mutex) != 0) {
97 rc = pthread_cond_broadcast(&td
[all...]
H A D4-1.c27 } td; variable in typeref:struct:testdata
37 if (pthread_mutex_lock(&td.mutex) != 0) {
45 rc = pthread_cond_wait(&td.cond, &td.mutex);
53 if (pthread_mutex_unlock(&td.mutex) != 0) {
65 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
69 if (pthread_cond_init(&td.cond, NULL) != 0) {
85 if (pthread_mutex_lock(&td.mutex) != 0) {
89 if (pthread_mutex_unlock(&td.mutex) != 0) {
97 rc = pthread_cond_broadcast(&td
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_getschedparam/
H A Dstress.c106 testdata_t td[ 4 ]; variable
121 ret = pthread_getschedparam( td[ i ].thread, &pol, &sp );
128 if ( pol != td[ i ].policy )
133 if ( sp.sched_priority != td[ i ].prio )
214 td[ 0 ].policy = td[ 1 ].policy = SCHED_FIFO;
216 td[ 2 ].policy = td[ 3 ].policy = SCHED_RR;
218 td[ 0 ].prio = sched_get_priority_min( SCHED_FIFO );
220 if ( td[
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_create/
H A D1-4.c112 struct testdata * td=(struct testdata *) arg; local
120 output(" Main pid: %i thread pid: %i\n", td->pid, mypid);
123 if (mypid != td->pid)
132 output(" Main tid: %p thread tid: %p\n", td->tid, mytid);
135 if (pthread_equal(mytid, td->tid) != 0)
144 do { ret = sem_post(td->sem); }
154 struct testdata td; local
161 td.tid=pthread_self();
162 td.pid=getpid();
173 td
[all...]

Completed in 191 milliseconds

1234