Home | History | Annotate | Download | only in decoder

Lines Matching full:ithread

219     int ithread = ((DECODETHREAD_DATA *)p_data)->ithread;
229 /*if(WaitForSingleObject(pbi->h_event_start_decoding[ithread], INFINITE) == WAIT_OBJECT_0)*/
230 if (sem_wait(&pbi->h_event_start_decoding[ithread]) == 0)
244 for (mb_row = ithread+1; mb_row < pc->mb_rows; mb_row += (pbi->decoding_thread_count + 1))
259 pbi->mb_row_di[ithread].mb_row = mb_row;
260 pbi->mb_row_di[ithread].mbd.current_bc = &pbi->mbc[mb_row%num_part];
384 /*pbi->mb_row_di[ithread].current_mb_col = mb_col;*/
428 int ithread;
445 for (ithread = 0; ithread < pbi->decoding_thread_count; ithread++)
447 sem_init(&pbi->h_event_start_decoding[ithread], 0, 0);
449 pbi->de_thread_data[ithread].ithread = ithread;
450 pbi->de_thread_data[ithread].ptr1 = (void *)pbi;
451 pbi->de_thread_data[ithread].ptr2 = (void *) &pbi->mb_row_di[ithread];
453 pthread_create(&pbi->h_decoding_thread[ithread], 0, thread_decoding_proc, (&pbi->de_thread_data[ithread]));