1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavcodec
Muhammad Faiz b505f15b15 avcodec/pthread_slice: use slice threading from avutil
Also remove pthread_cond_broadcast(progress_cond) on uninit.
Broadcasting it is not required because workers are always
parked when they are not in thread_execute. So it is imposible
that a worker is waiting on progress_cond when uninitialized.

Benchmark:
./ffmpeg -threads $threads -thread_type slice -i 10slices.mp4 -f null null
threads=2:
  old: 70.212s 70.525s 70.877s
  new: 65.219s 65.377s 65.484s
threads=3:
  old: 65.086s 66.306s 66.409s
  new: 63.229s 65.026s 65.116s
threads=4:
  old: 60.993s 61.482s 62.123s
  new: 59.224s 59.441s 59.667s
threads=5:
  old: 57.576s 57.860s 58.832s
  new: 53.032s 53.948s 54.086s

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-07-19 15:51:32 +07:00
..
2017-07-11 13:22:02 +07:00
2017-07-14 02:30:37 +02:00
2017-07-16 16:53:02 +02:00
2017-07-07 15:23:58 -04:00
2017-07-07 15:29:57 -04:00
2017-06-11 10:00:16 +02:00
2017-07-07 03:48:56 +02:00
2017-06-18 14:05:57 +02:00
2017-07-12 20:36:13 +02:00
2017-07-12 20:36:13 +02:00
2017-07-11 13:22:02 +07:00
2017-06-21 09:01:32 -04:00
2017-07-07 15:26:35 -04:00
2017-07-11 13:22:02 +07:00
2017-07-11 13:22:02 +07:00
2017-07-01 12:03:34 -03:00
2017-07-07 15:25:46 -04:00
2017-06-23 03:03:04 +02:00
2017-07-14 02:30:37 +02:00
2017-07-14 02:30:37 +02:00
2017-07-05 03:19:27 +02:00
2017-07-08 23:45:47 +02:00