From 9338b588aa37d675595f1991f10b5b8564eaf3cb Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 6 Apr 2023 11:48:10 +0200 Subject: [PATCH] cmpto_j2k dec: increased tile limit to 2 This increases throughput by some 33 % at the expense of one frame increased latency. Using more than that improves the throughput only slightly so it is perhaps not worth adding latency (as a default value). --- src/video_decompress/cmpto_j2k.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_decompress/cmpto_j2k.cpp b/src/video_decompress/cmpto_j2k.cpp index a691628f7..3fe4df6a8 100644 --- a/src/video_decompress/cmpto_j2k.cpp +++ b/src/video_decompress/cmpto_j2k.cpp @@ -74,7 +74,7 @@ #include #include -constexpr const int DEFAULT_TILE_LIMIT = 1; +constexpr const int DEFAULT_TILE_LIMIT = 2; /// maximal size of queue for decompressed frames constexpr const int DEFAULT_MAX_QUEUE_SIZE = 2; /// maximal number of concurrently decompressed frames