GNOME Bugzilla – Bug 778974
video-converter: Implement multi-threaded scaling/conversion
Last modified: 2017-02-23 19:56:26 UTC
See commit message. This has currently commented out code for setting thread-affinity. Needs more testing how useful that is, and the magic number for the maximum number of threads should also be tested a bit more.
Created attachment 346282 [details] [review] video-converter: Implement multi-threaded scaling/conversion This adds a property to select the maximum number of threads to use for conversion and scaling. During processing, each plane is split into an equal number of consecutive lines that are then processed by each thread. During tests, this gave up to 1.8x speedup with 2 threads and up to 3.2x speedup with 4 threads when converting e.g. 1080p to 4k in v210.
Created attachment 346560 [details] [review] video-converter: Implement multi-threaded scaling/conversion This adds a property to select the maximum number of threads to use for conversion and scaling. During processing, each plane is split into an equal number of consecutive lines that are then processed by each thread. During tests, this gave up to 1.8x speedup with 2 threads and up to 3.2x speedup with 4 threads when converting e.g. 1080p to 4k in v210.
Attachment 346560 [details] pushed as 49ac382 - video-converter: Implement multi-threaded scaling/conversion