1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #22226 from ocpalo:libspng

[GSoC 2022] spng encoder/decoder added as optional png codec
This commit is contained in:
Alexander Smorkalov
2022-09-05 13:25:41 +03:00
committed by GitHub
18 changed files with 8708 additions and 13 deletions
+2 -2
View File
@@ -2156,7 +2156,7 @@ static void showSaveDialog(CvWindow& window)
#endif
ofn.hwndOwner = window.hwnd;
ofn.lpstrFilter =
#ifdef HAVE_PNG
#if defined(HAVE_PNG) || defined(HAVE_SPNG)
"Portable Network Graphics files (*.png)\0*.png\0"
#endif
"Windows bitmap (*.bmp;*.dib)\0*.bmp;*.dib\0"
@@ -2182,7 +2182,7 @@ static void showSaveDialog(CvWindow& window)
ofn.lpstrFile = szFileName;
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | OFN_NOREADONLYRETURN | OFN_NOCHANGEDIR;
#ifdef HAVE_PNG
#if defined(HAVE_PNG) || defined(HAVE_SPNG)
ofn.lpstrDefExt = "png";
#else
ofn.lpstrDefExt = "bmp";