[Bug 673939] New: vp8enc and vp8dec: rename threads option to max-treads.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Apr 11 11:59:05 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=673939
  GStreamer | gst-plugins-bad | git

           Summary: vp8enc and vp8dec: rename threads option to
                    max-treads.
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: bug-track at fisher-privat.net
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


at least current libvpx code makes it's own decision haw many threads to
allocate. The threads options provided by ABI is just maximal restriction.
At least for me it makes difference.

IMHO if we can force count of threads, it should be called "force-threads",
if we can only suggest max count of threads, then it should be called
"max-threads".

If you have other suggestions for names, or other ideas. you are welcome.
The part of this bug is also here:
https://bugzilla.gnome.org/show_bug.cgi?id=673891

here are snips of code form libvpx, responsible for threading decision.
libvpx/vp8/encoder/ethreading.c:
void vp8cx_create_encoder_threads(VP8_COMP *cpi)
...
  /* don't allocate more threads than cores available */
   if (cpi->oxcf.multi_threaded > cm->processor_core_count)
       th_count = cm->processor_core_count - 1;

  /* we have th_count + 1 (main) threads processing one row each */
  /* no point to have more threads than the sync range allows */
    if(th_count > ((cm->mb_cols / cpi->mt_sync_range) - 1))
     {
        th_count = (cm->mb_cols / cpi->mt_sync_range) - 1;
     }


libvpx/vp8/decoder/threading.c:
void vp8_decoder_create_threads(VP8D_COMP *pbi)
  /* limit decoding threads to the max number of token partitions */
   core_count = (pbi->max_threads > 8) ? 8 : pbi->max_threads;

  /* limit decoding threads to the available cores */
  if (core_count > pbi->common.processor_core_count)
     core_count = pbi->common.processor_core_count;

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list