161 |
pCurrent = ¤t->image; |
pCurrent = ¤t->image; |
162 |
pRef = &reference->image; |
pRef = &reference->image; |
163 |
|
|
164 |
// time = read_tsc(); |
// time = read_counter(); |
165 |
|
|
166 |
for (y = miny; y < maxy; y++) { |
for (y = miny; y < maxy; y++) { |
167 |
for (x = minx; x < maxx; x++) { |
for (x = minx; x < maxx; x++) { |
259 |
} |
} |
260 |
} /* end of x/y loop */ |
} /* end of x/y loop */ |
261 |
|
|
262 |
// fprintf(stderr,"[%d,%d] Full ME %lld ticks \n",arg->id,run,read_tsc()-time); |
// fprintf(stderr,"[%d,%d] Full ME %lld ticks \n",arg->id,run,read_counter()-time); |
263 |
|
|
264 |
pthread_mutex_lock(&me_mutex); |
pthread_mutex_lock(&me_mutex); |
265 |
|
|
279 |
|
|
280 |
// fprintf(stderr,"[%d,%d] wait corrqueue %d done\n",arg->id,run,me_corrqueue); |
// fprintf(stderr,"[%d,%d] wait corrqueue %d done\n",arg->id,run,me_corrqueue); |
281 |
|
|
282 |
// time = read_tsc(); |
// time = read_counter(); |
283 |
|
|
284 |
// if (me_iIntra <= iLimit) |
// if (me_iIntra <= iLimit) |
285 |
// { |
// { |
303 |
// pthread_mutex_lock(&me_mutex); |
// pthread_mutex_lock(&me_mutex); |
304 |
// } |
// } |
305 |
|
|
306 |
// fprintf(stderr,"[%d,%d] Full CORR %lld ticks \n",arg->id,run,read_tsc()-time); |
// fprintf(stderr,"[%d,%d] Full CORR %lld ticks \n",arg->id,run,read_counter()-time); |
307 |
|
|
308 |
me_outqueue--; |
me_outqueue--; |
309 |
|
|