diff options
author | James Almer <jamrial@gmail.com> | 2018-11-26 20:02:10 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-11-26 20:03:21 +0300 |
commit | e5e3cabeb94d2104d2229384498ad323d7c7656c (patch) | |
tree | 8ea6c6ec11572e68d00167a42cfb99a5748517c9 /include/dav1d/dav1d.h | |
parent | 197a19ad702d5e7472852efcde98feeb07f373e0 (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.h | 3 |
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; |