mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Use anonymous enumerations instead of constants
This commit is contained in:
parent
e77abeef16
commit
c8398c9fdc
@ -183,13 +183,14 @@ namespace cv
|
|||||||
// cached onto local disk automatically, which may accelerate subsequent runs.
|
// cached onto local disk automatically, which may accelerate subsequent runs.
|
||||||
// Caching mode is controlled by the following enum
|
// Caching mode is controlled by the following enum
|
||||||
// Note, the feature is by default enabled when OpenCV is built in release mode.
|
// Note, the feature is by default enabled when OpenCV is built in release mode.
|
||||||
// enum BinaryDiskCacheMode
|
enum
|
||||||
const int CACHE_NONE = 0;
|
{
|
||||||
const int CACHE_DEBUG = 0x1 << 0;
|
CACHE_NONE = 0,
|
||||||
const int CACHE_RELEASE = 0x1 << 1;
|
CACHE_DEBUG = 0x1 << 0,
|
||||||
const int CACHE_ALL = CACHE_DEBUG | CACHE_RELEASE;
|
CACHE_RELEASE = 0x1 << 1,
|
||||||
const int CACHE_UPDATE = 0x1 << 2; // if the binary cache file with the same name is already on the disk, it will be updated.
|
CACHE_ALL = CACHE_DEBUG | CACHE_RELEASE,
|
||||||
|
CACHE_UPDATE = 0x1 << 2 // if the binary cache file with the same name is already on the disk, it will be updated.
|
||||||
|
};
|
||||||
CV_EXPORTS void setBinaryDiskCache(int mode = CACHE_RELEASE, cv::String path = "./");
|
CV_EXPORTS void setBinaryDiskCache(int mode = CACHE_RELEASE, cv::String path = "./");
|
||||||
|
|
||||||
//! set where binary cache to be saved to
|
//! set where binary cache to be saved to
|
||||||
|
Loading…
Reference in New Issue
Block a user