Home | History | Annotate | Download | only in encoder

Lines Matching full:ithread

56     int ithread = ((ENCODETHREAD_DATA *)p_data)->ithread;
62 //printf("Started thread %d\n", ithread);
69 //if(WaitForSingleObject(cpi->h_event_mbrencoding[ithread], INFINITE) == WAIT_OBJECT_0)
70 if (sem_wait(&cpi->h_event_start_encoding[ithread]) == 0)
84 for (mb_row = ithread + 1; mb_row < cm->mb_rows; mb_row += (cpi->encoding_thread_count + 1))
277 //printf("exit thread %d\n", ithread);
466 int ithread;
501 for (ithread = 0; ithread < th_count; ithread++)
503 ENCODETHREAD_DATA * ethd = &cpi->en_thread_data[ithread];
505 sem_init(&cpi->h_event_start_encoding[ithread], 0, 0);
506 ethd->ithread = ithread;
508 ethd->ptr2 = (void *)&cpi->mb_row_ei[ithread];
510 pthread_create(&cpi->h_encoding_thread[ithread], 0, thread_encoding_proc, ethd);