Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 835828 | Differences between
and this patch

Collapse All | Expand All

(-)seamonkey-2.53.11.orig/dom/media/platforms/agnostic/DAV1DDecoder.cpp (-2 / +6 lines)
Lines 7-12 Link Here
7
#include "DAV1DDecoder.h"
7
#include "DAV1DDecoder.h"
8
8
9
#include "nsThreadUtils.h"
9
#include "nsThreadUtils.h"
10
#include "dav1d/version.h"
10
11
11
#undef LOG
12
#undef LOG
12
#define LOG(arg, ...)                                                  \
13
#define LOG(arg, ...)                                                  \
Lines 29-41 Link Here
29
  } else if (mInfo.mDisplay.width >= 1024) {
30
  } else if (mInfo.mDisplay.width >= 1024) {
30
    decoder_threads = 4;
31
    decoder_threads = 4;
31
  }
32
  }
32
  settings.n_frame_threads =
33
#if DAV1D_API_VERSION_MAJOR >= 6
33
      static_cast<int>(std::min(decoder_threads, GetNumberOfProcessors()));
34
  settings.n_threads = static_cast<int>(std::min(decoder_threads, GetNumberOfProcessors()));
35
#else
36
  settings.n_frame_threads = static_cast<int>(std::min(decoder_threads, GetNumberOfProcessors()));
34
  // There is not much improvement with more than 2 tile threads at least with
37
  // There is not much improvement with more than 2 tile threads at least with
35
  // the content being currently served. The ideal number of tile thread would
38
  // the content being currently served. The ideal number of tile thread would
36
  // much the tile count of the content. Maybe dav1d can help to do that in the
39
  // much the tile count of the content. Maybe dav1d can help to do that in the
37
  // future.
40
  // future.
38
  settings.n_tile_threads = 2;
41
  settings.n_tile_threads = 2;
42
#endif
39
43
40
  int res = dav1d_open(&mContext, &settings);
44
  int res = dav1d_open(&mContext, &settings);
41
  if (res < 0) {
45
  if (res < 0) {

Return to bug 835828