Lines 29-41
RefPtr<MediaDataDecoder::InitPromise> DA
Link Here
|
29 |
} else if (mInfo.mDisplay.width >= 1024) { |
29 |
} else if (mInfo.mDisplay.width >= 1024) { |
30 |
decoder_threads = 4; |
30 |
decoder_threads = 4; |
31 |
} |
31 |
} |
32 |
settings.n_frame_threads = |
32 |
settings.n_threads = |
33 |
static_cast<int>(std::min(decoder_threads, GetNumberOfProcessors())); |
33 |
static_cast<int>(std::min(decoder_threads, GetNumberOfProcessors())); |
34 |
// 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 |
36 |
// much the tile count of the content. Maybe dav1d can help to do that in the |
37 |
// future. |
38 |
settings.n_tile_threads = 2; |
39 |
|
34 |
|
40 |
int res = dav1d_open(&mContext, &settings); |
35 |
int res = dav1d_open(&mContext, &settings); |
41 |
if (res < 0) { |
36 |
if (res < 0) { |