constants_c.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #ifndef OPENCV_IMGCODECS_LEGACY_CONSTANTS_H
  5. #define OPENCV_IMGCODECS_LEGACY_CONSTANTS_H
  6. /* duplicate of "ImreadModes" enumeration for better compatibility with OpenCV 3.x */
  7. enum
  8. {
  9. /* 8bit, color or not */
  10. CV_LOAD_IMAGE_UNCHANGED =-1,
  11. /* 8bit, gray */
  12. CV_LOAD_IMAGE_GRAYSCALE =0,
  13. /* ?, color */
  14. CV_LOAD_IMAGE_COLOR =1,
  15. /* any depth, ? */
  16. CV_LOAD_IMAGE_ANYDEPTH =2,
  17. /* ?, any color */
  18. CV_LOAD_IMAGE_ANYCOLOR =4,
  19. /* ?, no rotate */
  20. CV_LOAD_IMAGE_IGNORE_ORIENTATION =128
  21. };
  22. /* duplicate of "ImwriteFlags" enumeration for better compatibility with OpenCV 3.x */
  23. enum
  24. {
  25. CV_IMWRITE_JPEG_QUALITY =1,
  26. CV_IMWRITE_JPEG_PROGRESSIVE =2,
  27. CV_IMWRITE_JPEG_OPTIMIZE =3,
  28. CV_IMWRITE_JPEG_RST_INTERVAL =4,
  29. CV_IMWRITE_JPEG_LUMA_QUALITY =5,
  30. CV_IMWRITE_JPEG_CHROMA_QUALITY =6,
  31. CV_IMWRITE_PNG_COMPRESSION =16,
  32. CV_IMWRITE_PNG_STRATEGY =17,
  33. CV_IMWRITE_PNG_BILEVEL =18,
  34. CV_IMWRITE_PNG_STRATEGY_DEFAULT =0,
  35. CV_IMWRITE_PNG_STRATEGY_FILTERED =1,
  36. CV_IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY =2,
  37. CV_IMWRITE_PNG_STRATEGY_RLE =3,
  38. CV_IMWRITE_PNG_STRATEGY_FIXED =4,
  39. CV_IMWRITE_PXM_BINARY =32,
  40. CV_IMWRITE_EXR_TYPE = 48,
  41. CV_IMWRITE_WEBP_QUALITY =64,
  42. CV_IMWRITE_PAM_TUPLETYPE = 128,
  43. CV_IMWRITE_PAM_FORMAT_NULL = 0,
  44. CV_IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1,
  45. CV_IMWRITE_PAM_FORMAT_GRAYSCALE = 2,
  46. CV_IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3,
  47. CV_IMWRITE_PAM_FORMAT_RGB = 4,
  48. CV_IMWRITE_PAM_FORMAT_RGB_ALPHA = 5,
  49. };
  50. #endif // OPENCV_IMGCODECS_LEGACY_CONSTANTS_H