[svn] / branches / release-1_3-branch / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2098, Tue Nov 25 23:13:32 2014 UTC revision 2099, Tue Nov 25 23:17:01 2014 UTC
# Line 452  Line 452 
452  #ifndef HAVE_PTHREAD  #ifndef HAVE_PTHREAD
453                  int t = MAX(1, create->num_threads);                  int t = MAX(1, create->num_threads);
454  #else  #else
455                  int t = MIN(create->num_threads, (int) (pEnc->mbParam.mb_height>>1)); /* at least two rows per thread */                  int t = MAX(1, MIN(create->num_threads, (int) (pEnc->mbParam.mb_height>>1))); /* at least two rows per thread */
456  #endif  #endif
457                  int threads_per_slice = MAX(1, (t / pEnc->num_slices));                  int threads_per_slice = MAX(1, (t / pEnc->num_slices));
458                  int rows_per_thread = (pEnc->mbParam.mb_height + threads_per_slice - 1) / threads_per_slice;                  int rows_per_thread = (pEnc->mbParam.mb_height + threads_per_slice - 1) / threads_per_slice;

Legend:
Removed from v.2098  
changed lines
  Added in v.2099

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4