EstervQrCode 2.0.0
Library for qr code manipulation
Loading...
Searching...
No Matches
constants_c.h
1// This file is part of OpenCV project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://opencv.org/license.html.
4
5#ifndef OPENCV_IMGCODECS_LEGACY_CONSTANTS_H
6#define OPENCV_IMGCODECS_LEGACY_CONSTANTS_H
7
8/* duplicate of "ImreadModes" enumeration for better compatibility with OpenCV 3.x */
9enum
10{
11/* 8bit, color or not */
12 CV_LOAD_IMAGE_UNCHANGED =-1,
13/* 8bit, gray */
14 CV_LOAD_IMAGE_GRAYSCALE =0,
15/* ?, color */
16 CV_LOAD_IMAGE_COLOR =1,
17/* any depth, ? */
18 CV_LOAD_IMAGE_ANYDEPTH =2,
19/* ?, any color */
20 CV_LOAD_IMAGE_ANYCOLOR =4,
21/* ?, no rotate */
22 CV_LOAD_IMAGE_IGNORE_ORIENTATION =128
23};
24
25/* duplicate of "ImwriteFlags" enumeration for better compatibility with OpenCV 3.x */
26enum
27{
28 CV_IMWRITE_JPEG_QUALITY =1,
29 CV_IMWRITE_JPEG_PROGRESSIVE =2,
30 CV_IMWRITE_JPEG_OPTIMIZE =3,
31 CV_IMWRITE_JPEG_RST_INTERVAL =4,
32 CV_IMWRITE_JPEG_LUMA_QUALITY =5,
33 CV_IMWRITE_JPEG_CHROMA_QUALITY =6,
34 CV_IMWRITE_PNG_COMPRESSION =16,
35 CV_IMWRITE_PNG_STRATEGY =17,
36 CV_IMWRITE_PNG_BILEVEL =18,
37 CV_IMWRITE_PNG_STRATEGY_DEFAULT =0,
38 CV_IMWRITE_PNG_STRATEGY_FILTERED =1,
39 CV_IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY =2,
40 CV_IMWRITE_PNG_STRATEGY_RLE =3,
41 CV_IMWRITE_PNG_STRATEGY_FIXED =4,
42 CV_IMWRITE_PXM_BINARY =32,
43 CV_IMWRITE_EXR_TYPE = 48,
44 CV_IMWRITE_WEBP_QUALITY =64,
45 CV_IMWRITE_PAM_TUPLETYPE = 128,
46 CV_IMWRITE_PAM_FORMAT_NULL = 0,
47 CV_IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1,
48 CV_IMWRITE_PAM_FORMAT_GRAYSCALE = 2,
49 CV_IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3,
50 CV_IMWRITE_PAM_FORMAT_RGB = 4,
51 CV_IMWRITE_PAM_FORMAT_RGB_ALPHA = 5,
52};
53
54#endif // OPENCV_IMGCODECS_LEGACY_CONSTANTS_H