After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 778974 - video-converter: Implement multi-threaded scaling/conversion
video-converter: Implement multi-threaded scaling/conversion
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal enhancement
: 1.11.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-20 19:40 UTC by Sebastian Dröge (slomo)
Modified: 2017-02-23 19:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
video-converter: Implement multi-threaded scaling/conversion (152.80 KB, patch)
2017-02-20 19:40 UTC, Sebastian Dröge (slomo)
none Details | Review
video-converter: Implement multi-threaded scaling/conversion (152.85 KB, patch)
2017-02-23 11:43 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Sebastian Dröge (slomo) 2017-02-20 19:40:45 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.
Comment 1 Sebastian Dröge (slomo) 2017-02-20 19:40:50 UTC
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.
Comment 2 Sebastian Dröge (slomo) 2017-02-23 11:43:39 UTC
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.
Comment 3 Sebastian Dröge (slomo) 2017-02-23 19:56:14 UTC
Attachment 346560 [details] pushed as 49ac382 - video-converter: Implement multi-threaded scaling/conversion