Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-11-26 20:02:10 +0300
committerJames Almer <jamrial@gmail.com>2018-11-26 20:03:21 +0300
commite5e3cabeb94d2104d2229384498ad323d7c7656c (patch)
tree8ea6c6ec11572e68d00167a42cfb99a5748517c9 /include/dav1d/dav1d.h
parent197a19ad702d5e7472852efcde98feeb07f373e0 (diff)
dav1d: add public defines for max amount of tile and frame threads
Otherwise the library user will have to guess and find out the limit the hard way.
Diffstat (limited to 'include/dav1d/dav1d.h')
-rw-r--r--include/dav1d/dav1d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dav1d/dav1d.h b/include/dav1d/dav1d.h
index 8297b52..2ea7a18 100644
--- a/include/dav1d/dav1d.h
+++ b/include/dav1d/dav1d.h
@@ -41,6 +41,9 @@ extern "C" {
typedef struct Dav1dContext Dav1dContext;
typedef struct Dav1dRef Dav1dRef;
+#define DAV1D_MAX_FRAME_THREADS 256
+#define DAV1D_MAX_TILE_THREADS 64
+
typedef struct Dav1dSettings {
int n_frame_threads;
int n_tile_threads;