├── bin └── Test │ ├── Folder │ └── a │ │ ├── file1.txt │ │ └── file2.txt │ ├── Codecs │ ├── GIF │ │ ├── empty.gif │ │ ├── aim-dot.gif │ │ └── aim-dot.png │ ├── JPEG │ │ ├── empty.jpg │ │ ├── bl_gray_sheeps1.jpg │ │ ├── bl_gray_sheeps1.tga │ │ ├── bl_rgb_sheeps1.jpg │ │ ├── bl_rgb_sheeps1.tga │ │ ├── op_rgb_sheeps1.jpg │ │ ├── op_rgb_sheeps1.tga │ │ ├── pr_rgb_sheeps1.jpg │ │ └── pr_rgb_sheeps1.tga │ ├── PNG │ │ ├── z.tga │ │ ├── s01.tga │ │ ├── s02.tga │ │ ├── s03.tga │ │ ├── s04.tga │ │ ├── s05.tga │ │ ├── s06.tga │ │ ├── s07.tga │ │ ├── s08.tga │ │ ├── s09.tga │ │ ├── s32.tga │ │ ├── s33.tga │ │ ├── s34.tga │ │ ├── s35.tga │ │ ├── s36.tga │ │ ├── s37.tga │ │ ├── s38.tga │ │ ├── s39.tga │ │ ├── s40.tga │ │ ├── aim-dot.png │ │ ├── aim-dot.tga │ │ ├── s01i3p01.png │ │ ├── s01n3p01.png │ │ ├── s02i3p01.png │ │ ├── s02n3p01.png │ │ ├── s03i3p01.png │ │ ├── s03n3p01.png │ │ ├── s04i3p01.png │ │ ├── s04n3p01.png │ │ ├── s05i3p02.png │ │ ├── s05n3p02.png │ │ ├── s06i3p02.png │ │ ├── s06n3p02.png │ │ ├── s07i3p02.png │ │ ├── s07n3p02.png │ │ ├── s08i3p02.png │ │ ├── s08n3p02.png │ │ ├── s09i3p02.png │ │ ├── s09n3p02.png │ │ ├── s32i3p04.png │ │ ├── s32n3p04.png │ │ ├── s33i3p04.png │ │ ├── s33n3p04.png │ │ ├── s34i3p04.png │ │ ├── s34n3p04.png │ │ ├── s35i3p04.png │ │ ├── s35n3p04.png │ │ ├── s36i3p04.png │ │ ├── s36n3p04.png │ │ ├── s37i3p04.png │ │ ├── s37n3p04.png │ │ ├── s38i3p04.png │ │ ├── s38n3p04.png │ │ ├── s39i3p04.png │ │ ├── s39n3p04.png │ │ ├── s40i3p04.png │ │ ├── s40n3p04.png │ │ ├── x00n0g01.png │ │ ├── xcrn0g04.png │ │ ├── xlfn0g04.png │ │ ├── z00n2c08.png │ │ ├── z03n2c08.png │ │ ├── z06n2c08.png │ │ └── z09n2c08.png │ ├── TGA │ │ ├── bw.png │ │ ├── bw.tga │ │ ├── aim-dot.png │ │ ├── aim-dot.tga │ │ ├── test1.png │ │ ├── test1.tga │ │ ├── test2.png │ │ ├── test2.tga │ │ ├── test3.png │ │ ├── test3.tga │ │ ├── test4.png │ │ ├── test4.tga │ │ ├── test5.png │ │ ├── test5.tga │ │ ├── rgbnoise.png │ │ └── rgbnoise.tga │ ├── BMP │ │ ├── pal1.bmp │ │ ├── pal1.png │ │ ├── pal4.bmp │ │ ├── pal4.png │ │ ├── pal8.bmp │ │ ├── pal8.png │ │ ├── pal1bg.bmp │ │ ├── pal1bg.png │ │ ├── pal1p1.bmp │ │ ├── pal1p1.png │ │ ├── pal1wb.bmp │ │ ├── pal4rle.bmp │ │ ├── pal8-0.bmp │ │ ├── pal8os2.bmp │ │ ├── pal8rle.bmp │ │ ├── pal8v4.bmp │ │ ├── pal8v5.bmp │ │ ├── rgb16.bmp │ │ ├── rgb16.png │ │ ├── rgb24.bmp │ │ ├── rgb24.png │ │ ├── rgb32.bmp │ │ ├── rgb32bf.bmp │ │ ├── pal8offs.bmp │ │ ├── pal8os2sp.bmp │ │ ├── pal8w124.bmp │ │ ├── pal8w124.png │ │ ├── pal8w125.bmp │ │ ├── pal8w125.png │ │ ├── pal8w126.bmp │ │ ├── pal8w126.png │ │ ├── rgb16-565.bmp │ │ ├── rgb16-565.png │ │ ├── rgb24pal.bmp │ │ ├── badbitcount.bmp │ │ ├── pal4rletrns.bmp │ │ ├── pal8topdown.bmp │ │ ├── rgb16-4444.bmp │ │ ├── rgb16-4444.png │ │ ├── rgb16-565pal.bmp │ │ └── badheadersize.bmp │ ├── PCX │ │ ├── b01.pcx │ │ ├── b01.tga │ │ ├── b04.pcx │ │ ├── b04.tga │ │ ├── b08.pcx │ │ ├── b08.tga │ │ ├── b24.pcx │ │ ├── b24.tga │ │ ├── rgbtest.pcx │ │ ├── rgbtest.tga │ │ ├── uc_b01.pcx │ │ ├── uc_b04.pcx │ │ ├── uc_b08.pcx │ │ ├── uc_b24.pcx │ │ └── uc_rgbtest.pcx │ ├── TIFF │ │ ├── bw.png │ │ ├── bw.tiff │ │ ├── g3.tiff │ │ ├── g4.tiff │ │ ├── lzma.tiff │ │ ├── lzw.tiff │ │ ├── mono.png │ │ ├── simple.png │ │ ├── ycbcr.tiff │ │ ├── zip.tiff │ │ ├── jpegrgb.png │ │ ├── jpegrgb.tiff │ │ ├── simple.tiff │ │ ├── jpegycbcr.png │ │ ├── jpegycbcr.tiff │ │ └── packbits.tiff │ ├── PSD │ │ ├── bitmap.png │ │ ├── bitmap.psd │ │ ├── indexed.psd │ │ ├── test2.png │ │ ├── test2.psd │ │ ├── uneven.png │ │ ├── uneven.psd │ │ ├── grayscale.png │ │ └── grayscale.psd │ ├── PSP │ │ ├── 01g124.tga │ │ ├── 01g125.tga │ │ ├── 01g126.tga │ │ ├── 04w124.tga │ │ ├── 04w125.tga │ │ ├── 04w126.tga │ │ ├── 08g124.tga │ │ ├── 24w124.tga │ │ ├── 24w125.tga │ │ ├── 24w126.tga │ │ ├── 01g124.pspimage │ │ ├── 01g125.pspimage │ │ ├── 01g126.pspimage │ │ ├── 04w124.pspimage │ │ ├── 04w125.pspimage │ │ ├── 04w126.pspimage │ │ ├── 08g124.pspimage │ │ ├── 08w124.pspimage │ │ ├── 08w125.pspimage │ │ ├── 08w126.pspimage │ │ ├── 24w124.pspimage │ │ ├── 24w125.pspimage │ │ ├── 24w126.pspimage │ │ ├── 01g124_rle.pspimage │ │ ├── 01g125_rle.pspimage │ │ ├── 01g126_rle.pspimage │ │ ├── 04w124_rle.pspimage │ │ ├── 04w125_rle.pspimage │ │ ├── 04w126_rle.pspimage │ │ ├── 08g124_rle.pspimage │ │ ├── 08w124_rle.pspimage │ │ ├── 08w125_rle.pspimage │ │ ├── 08w126_rle.pspimage │ │ ├── 24w124_rle.pspimage │ │ ├── 24w125_rle.pspimage │ │ └── 24w126_rle.pspimage │ ├── WBMP │ │ ├── simple.png │ │ └── simple.wbmp │ └── WEBP │ │ ├── aim-dot.png │ │ ├── aim-dot-lossy.webp │ │ └── aim-dot-lossless.webp │ ├── ascii.txt │ ├── data.raw │ ├── simple.tga │ └── Metadata │ └── P8290215.exif ├── source ├── illaTest │ ├── main.h │ ├── test_bilinear.cpp │ ├── CMakeLists.txt │ └── main.cpp ├── pictustest │ ├── main.h │ ├── test_wintypes.cpp │ ├── test_geom.cpp │ └── main.cpp ├── PictThumbsTest │ ├── main.h │ └── main.cpp ├── orzTest │ ├── main.h │ ├── test_matrix.cpp │ ├── CMakeLists.txt │ └── test_stopwatch.cpp ├── MetadataTest │ ├── main.h │ ├── CMakeLists.txt │ └── main.cpp ├── Pictus │ ├── res_viewer.h │ ├── version.rc │ ├── license_en.txt │ ├── license_sv.txt │ ├── Res │ │ ├── document.ico │ │ ├── document.png │ │ ├── document.psp │ │ ├── icon_app1.ico │ │ ├── icon_app1.psp │ │ ├── cursor_app_pan1.cur │ │ ├── cursor_app_pan2.cur │ │ └── bitmap_about_logo.psp │ ├── winres.h │ ├── main.h │ ├── config_path.h │ ├── hw3d_device.cpp │ ├── filemanager.h │ ├── hw3d_vertex2d.h │ ├── clipboard.h │ ├── config.h │ ├── ipc_client.cpp │ ├── builder_viewport.h │ ├── registry.h │ ├── hw3d_types.h │ ├── getevent.h │ ├── hw3d_texture.cpp │ ├── factory_renderer.h │ ├── hw3d_staging_texture.cpp │ ├── hw3d_opengl_common.h │ ├── ipc_client.h │ ├── hw3d_opengl_staging_texture.cpp │ ├── version.h │ ├── filterstring.h │ ├── hw3d_direct3d9_texture.cpp │ ├── hw3d_opengl_texture.h │ ├── viewer_droptarget.h │ ├── wallpaper.h │ ├── imagecache_event.h │ ├── render_geometry.h │ ├── viewer_keyboard.h │ ├── viewer_droptarget.cpp │ ├── ctrl_keypress.h │ ├── hw3d_opengl_staging_texture.h │ ├── timer.h │ ├── hw3d_direct3d9_texture.h │ ├── timer.cpp │ ├── ipc_server.h │ ├── ipc_openfile_connection.h │ ├── cnt_colorpreview.h │ ├── ic_queue.h │ ├── dlg_about.h │ ├── dlg_advanced.h │ ├── version.cpp │ ├── rename.h │ ├── imagecache_workrequest.cpp │ ├── imagecache_workrequest.h │ ├── ipc_server.cpp │ ├── settings_layout.h │ ├── ipc_openfile_connection.cpp │ ├── dlg_interface.h │ ├── ic_workpackage.h │ ├── dlg_language.h │ ├── w32_redrawstrategy.h │ ├── res_version.h │ ├── hw3d_direct3d9_staging_texture.h │ ├── resize_position_method.cpp │ ├── cnt_colorpreview.cpp │ ├── hw3d_direct3d9_common.h │ ├── hw3d_texture.h │ ├── reg_mouse_action_translator.cpp │ ├── hw3d_staging_texture.h │ ├── cnt_color_hls.h │ ├── hw3d_opengl_staging_texture_simple.h │ ├── cnt_color_rgb.h │ ├── hw3d_opengl_staging_texture_pbo.h │ ├── reg_zoom_mode_translator.cpp │ ├── ic_queue.cpp │ ├── settings_page.h │ ├── viewer_contextmenu.h │ └── reg_color_translator.h ├── 3rdparty │ ├── wxWidgets │ │ └── src │ │ │ └── custom_build │ │ │ ├── osx │ │ │ ├── wxrelease.xcconfig │ │ │ ├── wxdebug.xcconfig │ │ │ ├── wxvers.xcconfig │ │ │ ├── wxiphone.xcconfig │ │ │ ├── wxcocoa_ml3rd.xcconfig │ │ │ ├── wxcocoa_mlbase.xcconfig │ │ │ ├── wxcocoa_ml.xcconfig │ │ │ ├── wxcocoa_mlgui.xcconfig │ │ │ ├── wxcocoa.xcodeproj │ │ │ │ └── project.xcworkspace │ │ │ │ │ └── contents.xcworkspacedata │ │ │ └── wxcocoa.xcconfig │ │ │ ├── buildbot │ │ │ └── tools │ │ │ │ └── bot.xsd │ │ │ ├── bakefiles │ │ │ ├── common_samples.bkl │ │ │ ├── wxpresets │ │ │ │ ├── presets │ │ │ │ │ └── wx_presets.py │ │ │ │ └── sample │ │ │ │ │ └── minimal.bkl │ │ │ ├── plugins.bkl │ │ │ └── plugins_deps.bkl │ │ │ ├── tools │ │ │ └── before_install.sh │ │ │ ├── aclocal │ │ │ └── gst-element-check.m4 │ │ │ └── msw │ │ │ ├── wx_custom_build.vcxproj.filters │ │ │ └── wx_config.props │ └── libjpeg │ │ └── src │ │ └── jconfigint.h ├── PictThumbs │ ├── res_version.rc2 │ ├── res_pictthumbs.h │ ├── res_pictthumbs.rc │ ├── codecsetup.h │ ├── DllRef.h │ ├── PictThumbs.def │ ├── DllRef.cpp │ ├── res_version.h │ ├── regutils.h │ ├── dllmain.h │ └── regsetup.h ├── Stresser │ ├── main.h │ ├── Helper.h │ ├── Logger.h │ ├── FolderUser.h │ ├── Logger.cpp │ ├── FolderManipulator.h │ ├── Helper.cpp │ ├── ThreadRunner.h │ └── BasicThread.h ├── deps │ ├── Metadata │ │ ├── Exif.h │ │ ├── Exif_Parser.h │ │ ├── Metadata_Document.cpp │ │ ├── Exif_ReadIfd.h │ │ ├── CMakeLists.txt │ │ ├── Metadata_Document.h │ │ └── Exif_IO.h │ ├── UnitTest++ │ │ ├── TestReporter.cpp │ │ ├── TimeHelpers.h │ │ ├── tests │ │ │ ├── Main.cpp │ │ │ └── TestTestSuite.cpp │ │ ├── ReportAssert.h │ │ ├── TestSuite.h │ │ ├── ReportAssert.cpp │ │ ├── CurrentTest.h │ │ ├── CurrentTest.cpp │ │ ├── UnitTest++.h │ │ ├── Posix │ │ │ ├── TimeHelpers.h │ │ │ └── TimeHelpers.cpp │ │ ├── TestList.h │ │ ├── DeferredTestResult.cpp │ │ ├── CMakeLists.txt │ │ ├── TestDetails.cpp │ │ ├── TestReporter.h │ │ ├── TestReporterStdout.h │ │ ├── AssertException.h │ │ ├── TestList.cpp │ │ ├── TestDetails.h │ │ ├── DeferredTestResult.h │ │ ├── Test.h │ │ ├── AssertException.cpp │ │ ├── DeferredTestReporter.h │ │ └── TimeConstraint.cpp │ ├── orz │ │ ├── folder.h │ │ ├── orz_math.h │ │ ├── intl_table_entry.h │ │ ├── ByteOrder.h │ │ ├── folder_monitor.cpp │ │ ├── sysinfo.h │ │ ├── folder_types.cpp │ │ ├── orz_math.cpp │ │ ├── Linux │ │ │ ├── linux_folder_monitor.h │ │ │ └── linux_folder_monitor.cpp │ │ ├── folder_monitor_imp.cpp │ │ ├── file_writer.h │ │ ├── stopwatch.h │ │ ├── ByteOrder.cpp │ │ ├── bitconvert.h │ │ ├── folder_monitor_imp.h │ │ ├── matrix.h │ │ ├── w32_folder_iterator.h │ │ ├── folder_monitor.h │ │ ├── boost_folder.h │ │ ├── w32_folder.h │ │ ├── file_cache.h │ │ ├── intl.h │ │ ├── fileops.h │ │ └── stream_mem.h │ ├── CMakeLists.txt │ └── illa │ │ ├── f_gif.h │ │ ├── f_bmp.h │ │ ├── f_pcx.h │ │ ├── f_png.h │ │ ├── f_psd.h │ │ ├── f_psp.h │ │ ├── f_tga.h │ │ ├── f_xyz.h │ │ ├── f_jpeg.h │ │ ├── f_tiff.h │ │ ├── f_wbmp.h │ │ ├── f_webp.h │ │ ├── f_pcx.cpp │ │ ├── f_psd.cpp │ │ ├── f_tga.cpp │ │ ├── f_xyz.cpp │ │ ├── f_bmp.cpp │ │ ├── f_gif.cpp │ │ ├── f_webp.cpp │ │ ├── gif_io.h │ │ ├── render.h │ │ ├── psd_shared.h │ │ ├── f_png.cpp │ │ ├── f_psp.cpp │ │ ├── f_wbmp.cpp │ │ ├── f_tiff.cpp │ │ ├── c_tga_raw.h │ │ ├── surface_lock.cpp │ │ ├── surfacefactory.h │ │ ├── f_jpeg.cpp │ │ ├── bmp_fileheader.h │ │ ├── c_factory.cpp │ │ ├── tiff_loader.cpp │ │ ├── psd_shared.cpp │ │ ├── palette.h │ │ ├── surfacemgr.h │ │ ├── filter_bilinear.h │ │ ├── c_bmp_rle_8.h │ │ ├── psp_chunkskipper.h │ │ ├── c_bmp_rle_4.h │ │ ├── tiff_rawconverter.h │ │ ├── tiff_tileloader.h │ │ ├── c_tga.h │ │ ├── c_wbmp.h │ │ ├── c_bmp_raw_4.h │ │ ├── c_bmp_raw_24.h │ │ ├── tiff_cieconverter.h │ │ ├── surface_lock_exclusive.h │ │ ├── tiff_striploader.h │ │ ├── c_bmp_rle.cpp │ │ ├── surface_lock_exclusive.cpp │ │ ├── surface_lock_swmr.h │ │ ├── gif_io.cpp │ │ ├── pcx_header.h │ │ ├── surface_lock.h │ │ ├── tiff_ycbcrconverter.h │ │ ├── bmp_fileheader.cpp │ │ ├── c_bmp_raw_8.h │ │ ├── c_tga_rle.h │ │ ├── psp_chunkskipper.cpp │ │ ├── codec_static.h │ │ ├── c_bmp_decoder.h │ │ ├── imagecomposer_static.h │ │ ├── imagecomposer_static.cpp │ │ ├── c_bmp_raw_16.h │ │ ├── psd_header.h │ │ ├── surface_locked_area.h │ │ ├── CMakeLists.txt │ │ ├── color_io.h │ │ ├── c_tiff.h │ │ ├── color_io.cpp │ │ ├── c_bmp.h │ │ ├── c_bmp_decoder.cpp │ │ ├── c_factory.h │ │ ├── c_bmp_raw_8.cpp │ │ ├── tiff_loader.h │ │ └── tiff_converter.cpp ├── FilterTest │ ├── CMakeLists.txt │ └── FilterTest.vcxproj.filters └── LoadTest │ ├── CMakeLists.txt │ └── LoadTest.vcxproj.filters ├── readme.txt ├── CMakeLists.txt ├── .gitattributes └── Readme.md /bin/Test/Folder/a/file1.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/Test/Folder/a/file2.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/Test/Codecs/GIF/empty.gif: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/empty.jpg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/Test/ascii.txt: -------------------------------------------------------------------------------- 1 | This is a simple text file. -------------------------------------------------------------------------------- /source/illaTest/main.h: -------------------------------------------------------------------------------- 1 | 2 | extern std::string g_datapath; 3 | -------------------------------------------------------------------------------- /source/pictustest/main.h: -------------------------------------------------------------------------------- 1 | 2 | extern std::wstring g_datapath; 3 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/readme.txt -------------------------------------------------------------------------------- /source/PictThumbsTest/main.h: -------------------------------------------------------------------------------- 1 | 2 | extern std::wstring g_datapath; 3 | -------------------------------------------------------------------------------- /source/orzTest/main.h: -------------------------------------------------------------------------------- 1 | #include 2 | extern std::string g_datapath; 3 | -------------------------------------------------------------------------------- /bin/Test/data.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/data.raw -------------------------------------------------------------------------------- /source/MetadataTest/main.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern std::string g_datapath; 4 | -------------------------------------------------------------------------------- /source/Pictus/res_viewer.h: -------------------------------------------------------------------------------- 1 | #define IDI_APP_MAIN 100 2 | #define IDI_DOCUMENT 101 3 | -------------------------------------------------------------------------------- /bin/Test/simple.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/simple.tga -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxrelease.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_OPTIMIZATION_LEVEL = 2 2 | -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/z.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/z.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/bw.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/bw.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/bw.tga -------------------------------------------------------------------------------- /source/Pictus/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/version.rc -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal4.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal4.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b01.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b01.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b01.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b01.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b04.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b04.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b04.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b04.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b08.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b08.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b08.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b08.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b24.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b24.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/b24.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/b24.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s01.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s01.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s02.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s02.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s03.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s03.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s04.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s04.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s05.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s05.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s06.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s06.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s07.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s07.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s08.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s08.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s09.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s09.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s32.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s32.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s33.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s33.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s34.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s34.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s35.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s35.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s36.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s36.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s37.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s37.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s38.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s38.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s39.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s39.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s40.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s40.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/bw.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/bw.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/bw.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/g3.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/g3.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/g4.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/g4.tiff -------------------------------------------------------------------------------- /source/Pictus/license_en.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/license_en.txt -------------------------------------------------------------------------------- /source/Pictus/license_sv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/license_sv.txt -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1bg.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1bg.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1bg.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1p1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1p1.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1p1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1p1.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal1wb.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal1wb.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal4rle.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal4rle.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8-0.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8-0.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8os2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8os2.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8rle.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8rle.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8v4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8v4.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8v5.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8v5.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb24.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb24.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb32.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb32.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb32bf.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb32bf.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/GIF/aim-dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/GIF/aim-dot.gif -------------------------------------------------------------------------------- /bin/Test/Codecs/GIF/aim-dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/GIF/aim-dot.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/rgbtest.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/rgbtest.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/rgbtest.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/rgbtest.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/uc_b01.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/uc_b01.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/uc_b04.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/uc_b04.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/uc_b08.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/uc_b08.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/uc_b24.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/uc_b24.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/aim-dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/aim-dot.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/aim-dot.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/aim-dot.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/bitmap.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/bitmap.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/bitmap.psd -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/indexed.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/indexed.psd -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/test2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/test2.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/test2.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/test2.psd -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/uneven.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/uneven.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/uneven.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/uneven.psd -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g124.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g124.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g125.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g125.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g126.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g126.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w124.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w124.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w125.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w125.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w126.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w126.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08g124.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08g124.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w124.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w124.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w125.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w125.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w126.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w126.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/aim-dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/aim-dot.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/aim-dot.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/aim-dot.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test1.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test1.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test2.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test2.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test2.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test3.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test3.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test3.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test4.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test4.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test4.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test5.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/test5.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/test5.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/lzma.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/lzma.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/lzw.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/lzw.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/mono.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/mono.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/simple.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/ycbcr.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/ycbcr.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/zip.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/zip.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/WBMP/simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/WBMP/simple.png -------------------------------------------------------------------------------- /bin/Test/Metadata/P8290215.exif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Metadata/P8290215.exif -------------------------------------------------------------------------------- /source/Pictus/Res/document.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/document.ico -------------------------------------------------------------------------------- /source/Pictus/Res/document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/document.png -------------------------------------------------------------------------------- /source/Pictus/Res/document.psp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/document.psp -------------------------------------------------------------------------------- /source/Pictus/Res/icon_app1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/icon_app1.ico -------------------------------------------------------------------------------- /source/Pictus/Res/icon_app1.psp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/icon_app1.psp -------------------------------------------------------------------------------- /source/Pictus/winres.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _MSC_VER 3 | #include 4 | #define IDC_STATIC -1 5 | #endif 6 | -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8offs.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8offs.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8os2sp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8os2sp.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w124.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w124.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w124.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w124.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w125.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w125.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w125.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w126.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w126.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8w126.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8w126.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16-565.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16-565.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16-565.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16-565.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb24pal.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb24pal.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s01i3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s01i3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s01n3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s01n3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s02i3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s02i3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s02n3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s02n3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s03i3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s03i3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s03n3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s03n3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s04i3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s04i3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s04n3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s04n3p01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s05i3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s05i3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s05n3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s05n3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s06i3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s06i3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s06n3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s06n3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s07i3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s07i3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s07n3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s07n3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s08i3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s08i3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s08n3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s08n3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s09i3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s09i3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s09n3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s09n3p02.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s32i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s32i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s32n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s32n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s33i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s33i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s33n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s33n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s34i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s34i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s34n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s34n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s35i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s35i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s35n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s35n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s36i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s36i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s36n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s36n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s37i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s37i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s37n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s37n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s38i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s38i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s38n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s38n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s39i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s39i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s39n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s39n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s40i3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s40i3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/s40n3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/s40n3p04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/x00n0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/x00n0g01.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/xcrn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/xcrn0g04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/xlfn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/xlfn0g04.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/z00n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/z00n2c08.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/z03n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/z03n2c08.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/z06n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/z06n2c08.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PNG/z09n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PNG/z09n2c08.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/grayscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/grayscale.png -------------------------------------------------------------------------------- /bin/Test/Codecs/PSD/grayscale.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSD/grayscale.psd -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/rgbnoise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/rgbnoise.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TGA/rgbnoise.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TGA/rgbnoise.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/jpegrgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/jpegrgb.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/jpegrgb.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/jpegrgb.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/simple.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/simple.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/WBMP/simple.wbmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/WBMP/simple.wbmp -------------------------------------------------------------------------------- /bin/Test/Codecs/WEBP/aim-dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/WEBP/aim-dot.png -------------------------------------------------------------------------------- /source/PictThumbs/res_version.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/PictThumbs/res_version.rc2 -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/badbitcount.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/badbitcount.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal4rletrns.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal4rletrns.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/pal8topdown.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/pal8topdown.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16-4444.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16-4444.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16-4444.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16-4444.png -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/rgb16-565pal.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/rgb16-565pal.bmp -------------------------------------------------------------------------------- /bin/Test/Codecs/PCX/uc_rgbtest.pcx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PCX/uc_rgbtest.pcx -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g124.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g124.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g125.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g125.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g126.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g126.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w124.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w124.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w125.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w125.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w126.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w126.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08g124.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08g124.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w124.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w124.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w125.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w125.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w126.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w126.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w124.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w124.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w125.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w125.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w126.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w126.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/jpegycbcr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/jpegycbcr.png -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/jpegycbcr.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/jpegycbcr.tiff -------------------------------------------------------------------------------- /bin/Test/Codecs/TIFF/packbits.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/TIFF/packbits.tiff -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxdebug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_OPTIMIZATION_LEVEL = 0 2 | ONLY_ACTIVE_ARCH = YES 3 | -------------------------------------------------------------------------------- /source/PictThumbs/res_pictthumbs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/PictThumbs/res_pictthumbs.h -------------------------------------------------------------------------------- /source/PictThumbs/res_pictthumbs.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/PictThumbs/res_pictthumbs.rc -------------------------------------------------------------------------------- /bin/Test/Codecs/BMP/badheadersize.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/BMP/badheadersize.bmp -------------------------------------------------------------------------------- /source/PictThumbs/codecsetup.h: -------------------------------------------------------------------------------- 1 | 2 | #include "illa/codecmgr.h" 3 | 4 | void CodecManagerSetup(Img::CodecFactoryStore* cfs); 5 | -------------------------------------------------------------------------------- /source/Pictus/Res/cursor_app_pan1.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/cursor_app_pan1.cur -------------------------------------------------------------------------------- /source/Pictus/Res/cursor_app_pan2.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/cursor_app_pan2.cur -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/bl_gray_sheeps1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/bl_gray_sheeps1.jpg -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/bl_gray_sheeps1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/bl_gray_sheeps1.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/bl_rgb_sheeps1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/bl_rgb_sheeps1.jpg -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/bl_rgb_sheeps1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/bl_rgb_sheeps1.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/op_rgb_sheeps1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/op_rgb_sheeps1.jpg -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/op_rgb_sheeps1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/op_rgb_sheeps1.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/pr_rgb_sheeps1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/pr_rgb_sheeps1.jpg -------------------------------------------------------------------------------- /bin/Test/Codecs/JPEG/pr_rgb_sheeps1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/JPEG/pr_rgb_sheeps1.tga -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g124_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g124_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g125_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g125_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/01g126_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/01g126_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w124_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w124_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w125_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w125_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/04w126_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/04w126_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08g124_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08g124_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w124_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w124_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w125_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w125_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/08w126_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/08w126_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w124_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w124_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w125_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w125_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/PSP/24w126_rle.pspimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/PSP/24w126_rle.pspimage -------------------------------------------------------------------------------- /bin/Test/Codecs/WEBP/aim-dot-lossy.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/WEBP/aim-dot-lossy.webp -------------------------------------------------------------------------------- /source/Pictus/Res/bitmap_about_logo.psp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/source/Pictus/Res/bitmap_about_logo.psp -------------------------------------------------------------------------------- /bin/Test/Codecs/WEBP/aim-dot-lossless.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/poppeman/Pictus/HEAD/bin/Test/Codecs/WEBP/aim-dot-lossless.webp -------------------------------------------------------------------------------- /source/Pictus/main.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_MAIN_H 2 | #define PICTUS_MAIN_H 3 | 4 | #include 5 | int start_app(const std::string& params); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /source/Stresser/main.h: -------------------------------------------------------------------------------- 1 | #ifndef MAIN_H 2 | #define MAIN_H 3 | 4 | #include "ThreadRunner.h" 5 | 6 | void SignalError(const std::string& err); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /source/deps/Metadata/Exif.h: -------------------------------------------------------------------------------- 1 | #ifndef METADATA_EXIF_H 2 | #define METADATA_EXIF_H 3 | 4 | #include "Exif_Parser.h" 5 | #include "Exif_Types.h" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestReporter.cpp: -------------------------------------------------------------------------------- 1 | #include "TestReporter.h" 2 | 3 | namespace UnitTest { 4 | 5 | 6 | TestReporter::~TestReporter() 7 | { 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /source/PictThumbs/DllRef.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTTHUMBS_DLL_REF_H 2 | #define PICTTHUMBS_DLL_REF_H 3 | 4 | void DllAddRef(); 5 | void DllRelease(); 6 | long DllRefCount(); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxvers.xcconfig: -------------------------------------------------------------------------------- 1 | // update this file with new version numbers 2 | 3 | DYLIB_COMPATIBILITY_VERSION = 3.1 4 | DYLIB_CURRENT_VERSION = 3.1.0 5 | -------------------------------------------------------------------------------- /source/Pictus/config_path.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_W32_ASSURE_FOLDER_H 2 | #define PICTUS_W32_ASSURE_FOLDER_H 3 | 4 | #include 5 | std::string ConfigPath(std::string filename); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_device.cpp: -------------------------------------------------------------------------------- 1 | #include "hw3d_device.h" 2 | 3 | namespace Hw3D 4 | { 5 | Device::Device() 6 | { 7 | 8 | } 9 | 10 | Device::~Device() 11 | { 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /source/Stresser/Helper.h: -------------------------------------------------------------------------------- 1 | #ifndef STRESSER_HELPER_H 2 | #define STRESSER_HELPER_H 3 | 4 | #include 5 | void copyFiles(const std::string& source, const std::string dest); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TimeHelpers.h: -------------------------------------------------------------------------------- 1 | #include "Config.h" 2 | 3 | #if defined UNITTEST_POSIX 4 | #include "Posix/TimeHelpers.h" 5 | #else 6 | #include "Win32/TimeHelpers.h" 7 | #endif 8 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/tests/Main.cpp: -------------------------------------------------------------------------------- 1 | #include "../UnitTest++.h" 2 | #include "../TestReporterStdout.h" 3 | 4 | 5 | int main(int, char const *[]) 6 | { 7 | return UnitTest::RunAllTests(); 8 | } 9 | -------------------------------------------------------------------------------- /source/deps/orz/folder.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FOLDER_H 2 | #define ORZ_FOLDER_H 3 | 4 | #ifdef _WIN32 5 | #include "w32_folder.h" 6 | #else 7 | #include "boost_folder.h" 8 | #endif 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /source/PictThumbs/PictThumbs.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | DllGetClassObject PRIVATE 3 | DllCanUnloadNow PRIVATE 4 | DllRegisterServer PRIVATE 5 | DllUnregisterServer PRIVATE 6 | -------------------------------------------------------------------------------- /source/Stresser/Logger.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Logger_h__ 3 | #define Logger_h__ 4 | 5 | #include 6 | 7 | void OutputString(const std::string& toOutput, bool important = false); 8 | 9 | #endif // Logger_h__ 10 | -------------------------------------------------------------------------------- /source/Pictus/filemanager.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_FILEMANAGER_H 2 | #define PICTUS_FILEMANAGER_H 3 | 4 | #include 5 | 6 | namespace App 7 | { 8 | void ShowInFileManager(std::string path); 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxiphone.xcconfig: -------------------------------------------------------------------------------- 1 | WXTOOLKIT = iphone 2 | WXTOOLKITUPPER = IPHONE 3 | 4 | #include "wx.xcconfig" 5 | 6 | ARCHS = $(ARCHS_STANDARD_32_BIT) 7 | SDKROOT = iphoneos 8 | TARGETED_DEVICE_FAMILY = 1,2 9 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa_ml3rd.xcconfig: -------------------------------------------------------------------------------- 1 | #include "wxcocoa.xcconfig" 2 | 3 | // make symbols visible by default 4 | 5 | OTHER_CFLAGS = -Wall -Wundef -fno-strict-aliasing -fno-common 6 | PRODUCT_NAME = $(TARGET_NAME) 7 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa_mlbase.xcconfig: -------------------------------------------------------------------------------- 1 | #include "wxcocoa.xcconfig" 2 | 3 | PRODUCT_NAME = wx_baseu_$(TARGET_NAME) 4 | GCC_PREPROCESSOR_DEFINITIONS = $(WX_PREPROCESSOR_DEFINITIONS) WXMAKINGDLL_$(TARGET_NAME:upper) 5 | -------------------------------------------------------------------------------- /source/FilterTest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | project (FilterTest) 3 | 4 | include_directories(${DEPS_DIRECTORY}) 5 | add_executable(FilterTest main.cpp) 6 | target_link_libraries(FilterTest illa orz ${Boost_LIBRARIES}) 7 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa_ml.xcconfig: -------------------------------------------------------------------------------- 1 | #include "wxcocoa.xcconfig" 2 | 3 | PRODUCT_NAME = wx_baseu 4 | GCC_PREPROCESSOR_DEFINITIONS = $(WX_PREPROCESSOR_DEFINITIONS) WXMAKINGDLL_$(TARGET_NAME:upper) wxUSE_BASE=1 wxUSE_GUI=0 5 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/ReportAssert.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_ASSERT_H 2 | #define UNITTEST_ASSERT_H 3 | 4 | namespace UnitTest { 5 | 6 | void ReportAssert(char const* description, char const* filename, int lineNumber); 7 | 8 | } 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_vertex2d.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_VERTEX2D_H 2 | #define PICTUS_HW3D_VERTEX2D_H 3 | 4 | namespace Hw3D 5 | { 6 | struct Vertex2D 7 | { 8 | Geom::PointFloat Position; 9 | Geom::PointFloat TexCoord; 10 | }; 11 | } 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa_mlgui.xcconfig: -------------------------------------------------------------------------------- 1 | #include "wxcocoa.xcconfig" 2 | 3 | PRODUCT_NAME = wx_osx_$(WXTOOLKIT)u_$(TARGET_NAME) 4 | GCC_PREPROCESSOR_DEFINITIONS = $(WX_PREPROCESSOR_DEFINITIONS) WXUSINGDLL WXMAKINGDLL_$(TARGET_NAME:upper) 5 | -------------------------------------------------------------------------------- /source/deps/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(DEPS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) 2 | set(DEPS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE) 3 | 4 | add_subdirectory (orz) 5 | add_subdirectory (Metadata) 6 | add_subdirectory (illa) 7 | add_subdirectory (UnitTest++) 8 | -------------------------------------------------------------------------------- /source/deps/orz/orz_math.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_ORZ_MATH_H 2 | #define ORZ_ORZ_MATH_H 3 | 4 | #include 5 | 6 | namespace Math { 7 | namespace Bit { 8 | int CountSet(uint32_t u); 9 | } 10 | 11 | int Lerp(float t, int a, int b); 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_gif.h: -------------------------------------------------------------------------------- 1 | #ifndef F_GIF_H 2 | #define F_GIF_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryGIF:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryGIF(); 11 | }; 12 | } 13 | 14 | #endif -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestSuite.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TESTSUITE_H 2 | #define UNITTEST_TESTSUITE_H 3 | 4 | namespace UnitTestSuite { 5 | 6 | inline char const* GetSuiteName () 7 | { 8 | return "DefaultSuite"; 9 | } 10 | 11 | } 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /source/Pictus/clipboard.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_CLIPBOARD_H 2 | #define PICTUS_CLIPBOARD_H 3 | 4 | #include 5 | #include "illa/image.h" 6 | 7 | namespace App 8 | { 9 | bool ImageToClipboard(std::shared_ptr source, Img::Properties props); 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/ReportAssert.cpp: -------------------------------------------------------------------------------- 1 | #include "AssertException.h" 2 | 3 | namespace UnitTest { 4 | 5 | void ReportAssert(char const* description, char const* filename, int lineNumber) 6 | { 7 | throw AssertException(description, filename, lineNumber); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /source/deps/illa/f_bmp.h: -------------------------------------------------------------------------------- 1 | #ifndef F_BMP_H 2 | #define F_BMP_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryBMP:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryBMP(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_pcx.h: -------------------------------------------------------------------------------- 1 | #ifndef F_PCX_H 2 | #define F_PCX_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryPCX:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryPCX(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_png.h: -------------------------------------------------------------------------------- 1 | #ifndef F_PNG_H 2 | #define F_PNG_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryPNG:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryPNG(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_psd.h: -------------------------------------------------------------------------------- 1 | #ifndef F_PSD_H 2 | #define F_PSD_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryPSD:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryPSD(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_psp.h: -------------------------------------------------------------------------------- 1 | #ifndef F_PSP_H 2 | #define F_PSP_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryPSP:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryPSP(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_tga.h: -------------------------------------------------------------------------------- 1 | #ifndef F_TGA_H 2 | #define F_TGA_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryTGA:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryTGA(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_xyz.h: -------------------------------------------------------------------------------- 1 | #ifndef F_XYZ_H 2 | #define F_XYZ_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryXYZ:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryXYZ(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/Pictus/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | 4 | #include "app_types.h" 5 | 6 | namespace App { 7 | static const char* cg_SettingsLocation = "Pictus.ini"; 8 | //static const char* cg_RunLogLocation = "\\Poppeman\\Pictus\\runlog.txt"; 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /source/deps/illa/f_jpeg.h: -------------------------------------------------------------------------------- 1 | #ifndef F_JPEG_H 2 | #define F_JPEG_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryJPEG:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryJPEG(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_tiff.h: -------------------------------------------------------------------------------- 1 | #ifndef F_TIFF_H 2 | #define F_TIFF_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryTIFF:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryTIFF(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_wbmp.h: -------------------------------------------------------------------------------- 1 | #ifndef F_WBMP_H 2 | #define F_WBMP_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryWBMP:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryWBMP(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/illa/f_webp.h: -------------------------------------------------------------------------------- 1 | #ifndef F_WEBP_H 2 | #define F_WEBP_H 3 | 4 | #include "c_factory.h" 5 | 6 | namespace Img { 7 | class FactoryWebp:public ICodecFactory { 8 | public: 9 | AbstractCodec* CreateCodec() override; 10 | FactoryWebp(); 11 | }; 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/orz/intl_table_entry.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_INTL_TABLE_ENTRY_H 2 | #define ORZ_INTL_TABLE_ENTRY_H 3 | 4 | #include "intl_language.h" 5 | 6 | namespace Intl{ 7 | struct TableEntry { 8 | const char* langs[static_cast(Language::Undefined)]; 9 | }; 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_pcx.cpp: -------------------------------------------------------------------------------- 1 | #include "f_pcx.h" 2 | #include "c_pcx.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryPCX::CreateCodec() { 6 | return new CodecPCX(); 7 | } 8 | 9 | FactoryPCX::FactoryPCX():ICodecFactory(u8"Z-soft PCX"){ 10 | AddExtension(u8"PCX"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_psd.cpp: -------------------------------------------------------------------------------- 1 | #include "f_psd.h" 2 | #include "c_psd.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryPSD::CreateCodec() { 6 | return new CodecPSD(); 7 | } 8 | 9 | FactoryPSD::FactoryPSD():ICodecFactory(u8"Adobe Photoshop") { 10 | AddExtension(u8"PSD"); 11 | } 12 | } -------------------------------------------------------------------------------- /source/deps/illa/f_tga.cpp: -------------------------------------------------------------------------------- 1 | #include "f_tga.h" 2 | #include "c_tga.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryTGA::CreateCodec() { 6 | return new CodecTGA(); 7 | } 8 | 9 | FactoryTGA::FactoryTGA():ICodecFactory(u8"Targa TGA") { 10 | AddExtension(u8"TGA"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_xyz.cpp: -------------------------------------------------------------------------------- 1 | #include "f_xyz.h" 2 | #include "c_xyz.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryXYZ::CreateCodec() { 6 | return new CodecXYZ(); 7 | } 8 | 9 | FactoryXYZ::FactoryXYZ():ICodecFactory(u8"RPG Maker") { 10 | AddExtension(u8"XYZ"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/Metadata/Exif_Parser.h: -------------------------------------------------------------------------------- 1 | #ifndef IMAGE_EXIF_PARSER_H 2 | #define IMAGE_EXIF_PARSER_H 3 | 4 | #include "Metadata_Document.h" 5 | 6 | namespace Metadata { 7 | namespace Exif { 8 | std::shared_ptr Decode(unsigned char* data, size_t length); 9 | } 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_bmp.cpp: -------------------------------------------------------------------------------- 1 | #include "f_bmp.h" 2 | #include "c_bmp.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryBMP::CreateCodec() { 6 | return new CodecBMP(); 7 | } 8 | 9 | FactoryBMP::FactoryBMP():ICodecFactory(u8"Windows Bitmap") { 10 | AddExtension(u8"BMP"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_gif.cpp: -------------------------------------------------------------------------------- 1 | #include "f_gif.h" 2 | #include "c_gif.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryGIF::CreateCodec() { 6 | return new CodecGIF(); 7 | } 8 | 9 | FactoryGIF::FactoryGIF():ICodecFactory(u8"Compuserve GIF") { 10 | AddExtension(u8"GIF"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_webp.cpp: -------------------------------------------------------------------------------- 1 | #include "f_webp.h" 2 | #include "c_webp.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryWebp::CreateCodec() { 6 | return new CodecWebp(); 7 | } 8 | 9 | FactoryWebp::FactoryWebp():ICodecFactory(u8"WebP") { 10 | AddExtension(u8"WEBP"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/Pictus/ipc_client.cpp: -------------------------------------------------------------------------------- 1 | #include "ipc_client.h" 2 | #include "ipc_openfile_connection.h" 3 | 4 | namespace IPC 5 | { 6 | wxConnectionBase * OpenFileClient::OnMakeConnection() 7 | { 8 | m_connection = std::make_shared(); 9 | return m_connection.get(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /source/deps/illa/gif_io.h: -------------------------------------------------------------------------------- 1 | #ifndef GIF_IO_H 2 | #define GIF_IO_H 3 | 4 | #include "color_io.h" 5 | 6 | namespace Img { 7 | void ReadPalette(Img::Palette& pal, int colors, IO::FileReader::Ptr file); 8 | void ReadSizeWord(Geom::SizeInt* pSize, IO::FileReader::Ptr file); 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /source/deps/illa/render.h: -------------------------------------------------------------------------------- 1 | #ifndef RENDER_H 2 | #define RENDER_H 3 | 4 | #include "types.h" 5 | 6 | namespace Img { 7 | void RenderToBuffer(Filter::FilterBuffer& dest, const Filter::FilterBuffer& source, Format fmt, const Geom::RectInt& region, const Properties& props); 8 | } 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /source/deps/illa/psd_shared.h: -------------------------------------------------------------------------------- 1 | #ifndef PSD_SHARED_H 2 | #define PSD_SHARED_H 3 | 4 | #include "orz/file_reader.h" 5 | 6 | namespace Img { 7 | namespace Internal { 8 | uint16_t ReadWordBE(IO::FileReader::Ptr file); 9 | uint32_t ReadDWordBE(IO::FileReader::Ptr file); 10 | } 11 | } 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /source/deps/illa/f_png.cpp: -------------------------------------------------------------------------------- 1 | #include "f_png.h" 2 | #include "c_png.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryPNG::CreateCodec() { 6 | return new CodecPNG(); 7 | } 8 | 9 | FactoryPNG::FactoryPNG():ICodecFactory(u8"PNG (Portable Network Graphics)") { 10 | AddExtension(u8"PNG"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /source/deps/Metadata/Metadata_Document.cpp: -------------------------------------------------------------------------------- 1 | #include "Metadata_Document.h" 2 | 3 | namespace Metadata { 4 | void Merge(std::shared_ptr lhs, const std::shared_ptr rhs) { 5 | if(lhs == 0 || rhs == 0) 6 | return; 7 | 8 | lhs->Field.insert(rhs->Field.begin(), rhs->Field.end()); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /source/Pictus/builder_viewport.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_BUILDER_VIEWPORT_H 2 | #define PICTUS_BUILDER_VIEWPORT_H 3 | 4 | #include "viewport.h" 5 | 6 | namespace App { 7 | class ViewportBuilder { 8 | public: 9 | void BuildViewport(App::ViewPort& port, wxWindow* parent, const Reg::Settings& settings); 10 | }; 11 | } 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /source/deps/Metadata/Exif_ReadIfd.h: -------------------------------------------------------------------------------- 1 | #ifndef METADATA_EXIF_READIFD_H 2 | #define METADATA_EXIF_READIFD_H 3 | 4 | #include "../orz/file_reader.h" 5 | #include "Exif_Types.h" 6 | 7 | namespace Metadata { 8 | namespace Exif { 9 | void ReadIfd(IO::FileReader::Ptr ms, ByteOrder o, ExifDocument& doc); 10 | } 11 | } 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /source/deps/illa/f_psp.cpp: -------------------------------------------------------------------------------- 1 | #include "f_psp.h" 2 | #include "c_psp.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryPSP::CreateCodec() { 6 | return new CodecPSP(); 7 | } 8 | 9 | FactoryPSP::FactoryPSP():ICodecFactory(u8"Corel Paint Shop Pro") { 10 | AddExtension(u8"PSP"); 11 | AddExtension(u8"PSPIMAGE"); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/deps/illa/f_wbmp.cpp: -------------------------------------------------------------------------------- 1 | #include "f_wbmp.h" 2 | #include "c_wbmp.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryWBMP::CreateCodec() { 6 | return new CodecWBMP(); 7 | } 8 | 9 | FactoryWBMP::FactoryWBMP():ICodecFactory(u8"Wireless Bitmap") { 10 | AddExtension(u8"WBMP"); 11 | AddExtension(u8"WBM"); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/Pictus/registry.h: -------------------------------------------------------------------------------- 1 | #ifndef REGISTRY_H 2 | #define REGISTRY_H 3 | 4 | #include "app_types.h" 5 | 6 | // Place your registry keys in this file 7 | #include "appreg.h" 8 | 9 | namespace Reg { 10 | Settings Load(const std::string& name); 11 | void Save(const std::string& name, const Settings& settings); 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/PictThumbs/DllRef.cpp: -------------------------------------------------------------------------------- 1 | #include "DllRef.h" 2 | 3 | #include 4 | 5 | long g_cRefModule = 0; 6 | 7 | void DllRelease() 8 | { 9 | InterlockedDecrement(&g_cRefModule); 10 | } 11 | 12 | void DllAddRef() 13 | { 14 | InterlockedIncrement(&g_cRefModule); 15 | } 16 | 17 | long DllRefCount() { 18 | return g_cRefModule; 19 | } 20 | -------------------------------------------------------------------------------- /source/deps/Metadata/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | 3 | set(Meta_SOURCES 4 | Exif_Converter.cpp 5 | Exif_IO.cpp 6 | Exif_Parser.cpp 7 | Exif_ReadIfd.cpp 8 | Metadata_Document.cpp 9 | Metadata_Value.cpp) 10 | 11 | add_library(Metadata STATIC ${Meta_SOURCES}) 12 | target_link_libraries(Metadata orz ${Boost_LIBRARIES}) -------------------------------------------------------------------------------- /source/deps/UnitTest++/CurrentTest.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_CURRENTTESTRESULTS_H 2 | #define UNITTEST_CURRENTTESTRESULTS_H 3 | 4 | namespace UnitTest { 5 | 6 | class TestResults; 7 | class TestDetails; 8 | 9 | namespace CurrentTest 10 | { 11 | TestResults*& Results(); 12 | const TestDetails*& Details(); 13 | } 14 | 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /source/deps/orz/ByteOrder.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_SHARED_BYTEORDER_H 2 | #define ORZ_SHARED_BYTEORDER_H 3 | 4 | #include 5 | 6 | namespace Util { 7 | uint16_t HToNs(uint16_t host); 8 | uint16_t NToHs(uint16_t networkShort); 9 | 10 | uint32_t HToNl(uint32_t hostShort); 11 | uint32_t NToHl(uint32_t networkShort); 12 | } 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/deps/orz/folder_monitor.cpp: -------------------------------------------------------------------------------- 1 | #include "folder_monitor.h" 2 | 3 | namespace IO { 4 | FolderMonitor::~FolderMonitor() { 5 | Close(); 6 | } 7 | 8 | void FolderMonitor::Close() { 9 | m_imp.reset(); 10 | } 11 | 12 | void FolderMonitor::Start(const std::string& path) { 13 | m_imp.reset(doCreateImp(path, OnEvent)); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_types.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_TYPES_H 2 | #define PICTUS_HW3D_TYPES_H 3 | 4 | namespace Hw3D 5 | { 6 | enum class TransformState 7 | { 8 | Projection 9 | }; 10 | 11 | enum class Format 12 | { 13 | X8R8G8B8 14 | }; 15 | 16 | enum class Pool 17 | { 18 | Default, 19 | SystemMemory 20 | }; 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /source/deps/orz/sysinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_SYSINFO_H 2 | #define ORZ_SYSINFO_H 3 | 4 | #include "intl.h" 5 | 6 | namespace Sys { 7 | namespace Info { 8 | uint64_t TotalPhysicalMemory(); 9 | Intl::Language SystemLanguage(); 10 | const std::string ExePath(); 11 | 12 | std::string InvalidFilenameCharacters(); 13 | } 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /source/Pictus/getevent.h: -------------------------------------------------------------------------------- 1 | #ifndef GETEVENT_H 2 | #define GETEVENT_H 3 | 4 | #include "appreg.h" 5 | #include "wintypes.h" 6 | 7 | namespace App { 8 | App::MouseAction MouseStandardEvent(const Win::MouseEvent& e, Reg::MouseSettings cfg); 9 | App::MouseAction MouseDblEvent(const Win::MouseEvent& e, Reg::MouseSettings cfg); 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_tiff.cpp: -------------------------------------------------------------------------------- 1 | #include "f_tiff.h" 2 | #include "c_tiff.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryTIFF::CreateCodec() { 6 | return new CodecTIFF(); 7 | } 8 | 9 | FactoryTIFF::FactoryTIFF():ICodecFactory(u8"TIFF") { 10 | AddExtension(u8"TIF"); 11 | AddExtension(u8"TIFF"); 12 | AddExtension(u8"XIF"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /source/3rdparty/libjpeg/src/jconfigint.h: -------------------------------------------------------------------------------- 1 | #define VERSION "1.5.0" 2 | #define BUILD "20160908" 3 | #define PACKAGE_NAME "libjpeg-turbo" 4 | 5 | #ifndef INLINE 6 | #if defined(__GNUC__) 7 | #define INLINE inline __attribute__((always_inline)) 8 | #elif defined(_MSC_VER) 9 | #define INLINE __forceinline 10 | #else 11 | #define INLINE 12 | #endif 13 | #endif 14 | -------------------------------------------------------------------------------- /source/pictustest/test_wintypes.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Pictus/wintypes.h" 3 | 4 | SUITE(SuiteWinTypes) { 5 | using namespace Win; 6 | 7 | TEST(KeyEventLessThanOperator) { 8 | KeyEvent a(WXK_SPACE, false, false, false); 9 | KeyEvent b(WXK_SPACE, false, true, false); 10 | CHECK(a < b); 11 | CHECK(!(b < a)); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/deps/illa/c_tga_raw.h: -------------------------------------------------------------------------------- 1 | #ifndef C_TGA_RAW_H 2 | #define C_TGA_RAW_H 3 | 4 | #include "orz/file_cache.h" 5 | #include "c_tga_decoder.h" 6 | 7 | namespace Img { 8 | class CodecTgaRawDecoder:public CodecTgaDecoder { 9 | void OnSource(); 10 | bool OnProcess(Batch* batch); 11 | 12 | IO::FileReaderByteStreamer m_fileStream; 13 | }; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /source/deps/illa/surface_lock.cpp: -------------------------------------------------------------------------------- 1 | #include "surface_lock.h" 2 | 3 | namespace Img { 4 | void LockStrategy::AquireLock( LockMethod method ) { 5 | onAcquireLock(method); 6 | } 7 | 8 | void LockStrategy::ReleaseLock( LockMethod method ) { 9 | onReleaseLock(method); 10 | } 11 | 12 | LockStrategy::LockStrategy() {} 13 | LockStrategy::~LockStrategy() {} 14 | } 15 | -------------------------------------------------------------------------------- /source/illaTest/test_bilinear.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "illa/filter_bilinear.h" 3 | 4 | using namespace Filter; 5 | using namespace Filter::Scale::Internal; 6 | 7 | SUITE(Bilinear) { 8 | TEST(CalcContribsSmallRect) { 9 | std::vector cs(2); 10 | set_contrib(cs, 0, 2, 1, 0); 11 | CHECK_EQUAL(0u, cs[0].floor); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /source/MetadataTest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | 3 | SET( 4 | CPP_SRCS 5 | main.cpp 6 | test_exif_parser.cpp) 7 | SET( 8 | H_SRCS 9 | main.h) 10 | 11 | include_directories(${DEPS_DIRECTORY}) 12 | 13 | add_executable(MetadataTest ${CPP_SRCS} ${H_SRCS}) 14 | target_link_libraries(MetadataTest orz UnitTestPP Metadata ${Boost_LIBRARIES}) 15 | -------------------------------------------------------------------------------- /source/deps/orz/folder_types.cpp: -------------------------------------------------------------------------------- 1 | #include "folder_types.h" 2 | 3 | namespace IO { 4 | bool operator==(const FileEvent& lhs, const FileEvent& rhs) { 5 | return (lhs.Entry == rhs.Entry) && (lhs.Type == rhs.Type); 6 | } 7 | 8 | bool operator ==(const FolderEntry& a, const FolderEntry& b) { 9 | return (a.Name == b.Name) && (a.Type == b.Type); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /source/PictThumbs/res_version.h: -------------------------------------------------------------------------------- 1 | #define PICTTHUMB_VER_MAJOR 1 2 | #define PICTTHUMB_VER_MINOR 7 3 | #define PICTTHUMB_VER_REVISION 0 4 | #define PICTTHUMB_VER_BUILD 0 5 | 6 | #define LOC_TX_(t) L#t 7 | 8 | #define RC_FILE_VERSION PICTTHUMB_VER_MAJOR,PICTTHUMB_VER_MINOR,PICTTHUMB_VER_REVISION,PICTTHUMB_VER_BUILD 9 | #define STR_RC_FILE_VERSION LOC_TX_(RC_FILE_VERSION) 10 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_texture.cpp: -------------------------------------------------------------------------------- 1 | #include "hw3d_texture.h" 2 | 3 | namespace Hw3D 4 | { 5 | 6 | Geom::SizeInt Texture::GetSize() 7 | { 8 | return m_size; 9 | } 10 | 11 | Format Texture::D3DFormat() 12 | { 13 | return m_format; 14 | } 15 | 16 | Texture::Texture(Geom::SizeInt dimensions, Format fmt): 17 | m_size(dimensions), 18 | m_format(fmt) 19 | { 20 | } 21 | } -------------------------------------------------------------------------------- /source/pictustest/test_geom.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | SUITE(Geometry) { 4 | /*using namespace Geom; 5 | using namespace Filter; 6 | 7 | TEST(TestRotateRect) { 8 | RectInt rect(PointInt(0, 0), SizeInt(781, 1114)); 9 | SizeInt dims(781, 1114); 10 | 11 | RectInt result = RotateRect(rect, dims, FlipY); 12 | CHECK(result == rect); 13 | }*/ 14 | } 15 | -------------------------------------------------------------------------------- /source/deps/illa/surfacefactory.h: -------------------------------------------------------------------------------- 1 | #ifndef SURFACEFACTORY_H 2 | #define SURFACEFACTORY_H 3 | 4 | #include "surface.h" 5 | #include "types.h" 6 | 7 | namespace Img { 8 | class Surface; 9 | 10 | class ISurfaceFactory { 11 | public: 12 | virtual Surface::Ptr CreateSurface()=0; 13 | 14 | ISurfaceFactory() {} 15 | virtual ~ISurfaceFactory() {} 16 | }; 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /source/PictThumbsTest/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "illa/surfacemgr.h" 4 | #include "illa/swsurface.h" 5 | 6 | std::wstring g_datapath; 7 | 8 | int wmain(int argc, wchar_t* argv[]) { 9 | if(argc < 2) return 1; 10 | g_datapath = argv[1]; 11 | 12 | Img::SurfaceFactory(new Img::FactorySurfaceSoftware); 13 | 14 | return UnitTest::RunAllTests(); 15 | } 16 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/tests/TestTestSuite.cpp: -------------------------------------------------------------------------------- 1 | #include "../UnitTest++.h" 2 | 3 | // We're really testing if it's possible to use the same suite in two files 4 | // to compile and link successfuly (TestTestSuite.cpp has suite with the same name) 5 | // Note: we are outside of the anonymous namespace 6 | SUITE(SameTestSuite) 7 | { 8 | TEST(DummyTest2) 9 | { 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /source/deps/illa/f_jpeg.cpp: -------------------------------------------------------------------------------- 1 | #include "f_jpeg.h" 2 | #include "c_jpeg.h" 3 | 4 | namespace Img { 5 | AbstractCodec* FactoryJPEG::CreateCodec() { 6 | return new CodecJPEG(); 7 | } 8 | 9 | FactoryJPEG::FactoryJPEG():ICodecFactory(u8"JPEG (lossy)") { 10 | AddExtension(u8"JPG"); 11 | AddExtension(u8"JPEG"); 12 | AddExtension(u8"JFIF"); 13 | AddExtension(u8"JPE"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/osx/wxcocoa.xcconfig: -------------------------------------------------------------------------------- 1 | WXTOOLKIT = cocoa 2 | WXTOOLKITUPPER = COCOA 3 | 4 | #include "wx.xcconfig" 5 | 6 | MACOSX_DEPLOYMENT_TARGET = 10.5 7 | 8 | GCC_VERSION = 9 | 10 | ARCHS = ppc i386 x86_64 11 | 12 | OTHER_LDFLAGS = -framework WebKit -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework OpenGL -framework QTKit 13 | -------------------------------------------------------------------------------- /source/PictThumbs/regutils.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTTHUMBS_REGUTILS_H 2 | #define PICTTHUMBS_REGUTILS_H 3 | 4 | #include 5 | 6 | #include 7 | 8 | HRESULT SetHkcrRegistryKeyAndValue(const std::string& subKey, const char* valueName, const char* data); 9 | std::tuple GetHkcrRegistryKeyAndValue(const std::string& subKey, const char* valueName); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/CurrentTest.cpp: -------------------------------------------------------------------------------- 1 | #include "CurrentTest.h" 2 | #include 3 | 4 | namespace UnitTest { 5 | 6 | TestResults*& CurrentTest::Results() 7 | { 8 | static TestResults* testResults = NULL; 9 | return testResults; 10 | } 11 | 12 | const TestDetails*& CurrentTest::Details() 13 | { 14 | static const TestDetails* testDetails = NULL; 15 | return testDetails; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /source/deps/orz/orz_math.cpp: -------------------------------------------------------------------------------- 1 | #include "orz_math.h" 2 | 3 | namespace Math { 4 | int Lerp(float t, int a, int b ) 5 | { 6 | int size = b - a; 7 | return static_cast(a + size * t); 8 | } 9 | 10 | int Bit::CountSet(uint32_t u) { 11 | uint32_t uCount = u - (((u >> 1) & 033333333333) + ((u >> 2) & 011111111111)); 12 | return ((uCount + (uCount >> 3)) & 030707070707) % 63; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /source/Pictus/factory_renderer.h: -------------------------------------------------------------------------------- 1 | #ifndef FACTORY_RENDERER_H 2 | #define FACTORY_RENDERER_H 3 | 4 | #include "w32_renderer.h" 5 | #include "app_types.h" 6 | 7 | namespace App { 8 | class RendererFactory { 9 | public: 10 | Win::Renderer::Ptr CreateRenderer(); 11 | 12 | std::shared_ptr CreateDevice(); 13 | wxWindow* CreateCanvas(wxWindow* parent); 14 | }; 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/UnitTest++.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTESTCPP_H 2 | #define UNITTESTCPP_H 3 | 4 | //lint -esym(1509,*Fixture) 5 | 6 | #include "Config.h" 7 | #include "Test.h" 8 | #include "TestList.h" 9 | #include "TestSuite.h" 10 | #include "TestResults.h" 11 | 12 | #include "TestMacros.h" 13 | 14 | #include "CheckMacros.h" 15 | #include "TestRunner.h" 16 | #include "TimeConstraint.h" 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /source/LoadTest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8) 2 | 3 | FIND_PACKAGE(wxWidgets COMPONENTS core base gl net REQUIRED) 4 | 5 | INCLUDE_DIRECTORIES(${DEPS_DIRECTORY}) 6 | INCLUDE(${wxWidgets_USE_FILE}) 7 | LINK_DIRECTORIES(${illa_BINARY_DIR}/illa ${orz_BINARY_DIR}/orz ${wxWidgets_INCLUDE_DIRS}) 8 | 9 | ADD_EXECUTABLE(LoadTest main.cpp) 10 | TARGET_LINK_LIBRARIES(LoadTest illa orz ${Boost_LIBRARIES}) 11 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_staging_texture.cpp: -------------------------------------------------------------------------------- 1 | #include "hw3d_staging_texture.h" 2 | 3 | namespace Hw3D 4 | { 5 | Geom::SizeInt StagingTexture::GetSize() 6 | { 7 | return m_size; 8 | } 9 | 10 | Format StagingTexture::D3DFormat() 11 | { 12 | return m_format; 13 | } 14 | 15 | StagingTexture::StagingTexture(Geom::SizeInt dimensions, Format fmt): 16 | m_size(dimensions), 17 | m_format(fmt) 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /source/deps/illa/bmp_fileheader.h: -------------------------------------------------------------------------------- 1 | #ifndef BMP_FILEHEADER_H 2 | #define BMP_FILEHEADER_H 3 | 4 | #include "orz/file_reader.h" 5 | 6 | namespace Img { 7 | namespace Internal { 8 | class BMPFileHeader { 9 | public: 10 | void Load(IO::FileReader::Ptr file); 11 | BMPFileHeader(); 12 | 13 | uint16_t type = 0; 14 | uint32_t size = 0; 15 | uint32_t offset = 0; 16 | }; 17 | } 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /source/Stresser/FolderUser.h: -------------------------------------------------------------------------------- 1 | #ifndef STRESSER_FOLDERUSER_H 2 | #define STRESSER_FOLDERUSER_H 3 | 4 | #include "BasicThread.h" 5 | 6 | class FolderUser:public BasicThread 7 | { 8 | public: 9 | FolderUser(const std::string& folder); 10 | ~FolderUser(); 11 | 12 | typedef std::shared_ptr Ptr; 13 | 14 | private: 15 | void ThreadMain(); 16 | 17 | private: 18 | std::string m_folder; 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/deps/illa/c_factory.cpp: -------------------------------------------------------------------------------- 1 | #include "c_factory.h" 2 | 3 | namespace Img { 4 | const ICodecFactory::ExtensionList& ICodecFactory::SupportedExtensions() const { 5 | return m_extensions; 6 | } 7 | 8 | const std::string& ICodecFactory::GetFormatName() const { 9 | return m_name; 10 | } 11 | 12 | void ICodecFactory::AddExtension(const std::string& extension) { 13 | m_extensions.push_back(extension); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /source/deps/orz/Linux/linux_folder_monitor.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_LINUX_FOLDER_MONITOR_H 2 | #define ORZ_LINUX_FOLDER_MONITOR_H 3 | 4 | #include "../folder_monitor_imp.h" 5 | #include "../folder.h" 6 | 7 | namespace IO { 8 | class FolderMonitorLinux:public FolderMonitorImplementation { 9 | public: 10 | FolderMonitorLinux(const std::string& path, ChangeEventCallback& ev); 11 | ~FolderMonitorLinux(); 12 | }; 13 | } 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /source/deps/orz/folder_monitor_imp.cpp: -------------------------------------------------------------------------------- 1 | #include "folder_monitor_imp.h" 2 | 3 | namespace IO { 4 | FolderMonitorImplementation::FolderMonitorImplementation(const std::string& path, ChangeEventCallback& c): 5 | OnEvent(c), 6 | m_path(path) 7 | {} 8 | 9 | const std::string& FolderMonitorImplementation::Path() { 10 | return m_path; 11 | } 12 | 13 | FolderMonitorImplementation::~FolderMonitorImplementation() {} 14 | } 15 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_common.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_OPENGL_COMMON_H 2 | #define PICTUS_HW3D_OPENGL_COMMON_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "hw3d_types.h" 8 | 9 | namespace Hw3D 10 | { 11 | GLint GetGlInternalFormat(Format); 12 | GLenum GetGlFormat(Format); 13 | GLenum GetGlDataType(Format); 14 | 15 | ::std::string GetGlErrorString(GLenum); 16 | } 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_loader.cpp: -------------------------------------------------------------------------------- 1 | #include "tiff_loader.h" 2 | 3 | namespace Img { 4 | void TiffLoader::Create( TIFF* tiff, Surface::Ptr surface, TiffDataConverter::Ptr converter ) { 5 | m_tiff = tiff; 6 | m_surface = surface; 7 | m_converter = converter; 8 | 9 | PerformOnCreate(); 10 | } 11 | 12 | TiffChunkStatus TiffLoader::LoadChunk() { 13 | return PerformLoadChunk(); 14 | } 15 | 16 | TiffLoader::~TiffLoader() {} 17 | } 18 | -------------------------------------------------------------------------------- /source/deps/orz/file_writer.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FILE_WRITER_H 2 | #define ORZ_FILE_WRITER_H 3 | 4 | #include 5 | 6 | namespace IO { 7 | class FileWriter { 8 | public: 9 | bool Open(std::string name, bool append = false); 10 | void Close(); 11 | 12 | size_t Write(const void* buf, size_t size, size_t items); 13 | 14 | ~FileWriter(); 15 | 16 | private: 17 | std::FILE* m_file = nullptr; 18 | }; 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/Pictus/ipc_client.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_IPC_CLIENT_H 2 | #define PICTUS_IPC_CLIENT_H 3 | 4 | #include 5 | #include 6 | 7 | #include "ipc_openfile_connection.h" 8 | 9 | namespace IPC 10 | { 11 | class OpenFileClient : public wxClient 12 | { 13 | public: 14 | wxConnectionBase* OnMakeConnection() override; 15 | 16 | private: 17 | std::shared_ptr m_connection; 18 | }; 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_staging_texture.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "hw3d_opengl_staging_texture.h" 5 | #include "hw3d_opengl_common.h" 6 | 7 | namespace Hw3D 8 | { 9 | OpenGlStagingTexture::OpenGlStagingTexture(Geom::SizeInt dimensions, Format fmt): 10 | StagingTexture(dimensions, fmt) 11 | { 12 | } 13 | 14 | OpenGlStagingTexture::~OpenGlStagingTexture() 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /source/Pictus/version.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_VERSION_H 2 | #define PICTUS_VERSION_H 3 | 4 | #include "res_version.h" 5 | #include 6 | 7 | namespace App { 8 | struct Version { 9 | int Major, Minor, Revision; 10 | bool operator >(const Version& rhs); 11 | }; 12 | 13 | const Version CurrentVersion = {PICTUS_VER_MAJOR, PICTUS_VER_MINOR, PICTUS_VER_REVISION}; 14 | } 15 | 16 | std::string ToAString(const App::Version ver); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /source/Pictus/filterstring.h: -------------------------------------------------------------------------------- 1 | #ifndef FILTERSTRING_H 2 | #define FILTERSTRING_H 3 | 4 | #include 5 | 6 | namespace Img { 7 | class CodecFactoryStore; 8 | } 9 | 10 | namespace App { 11 | class FilterString { 12 | public: 13 | FilterString(Img::CodecFactoryStore* store); 14 | 15 | const std::string GetFilterString(); 16 | size_t FilterCount(); 17 | 18 | private: 19 | Img::CodecFactoryStore* m_store; 20 | }; 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /source/Stresser/Logger.cpp: -------------------------------------------------------------------------------- 1 | #include "Logger.h" 2 | #include "orz/types.h" 3 | #include 4 | #include 5 | 6 | std::mutex g_mutexOutput; 7 | 8 | #define DISABLEOUTPUT 9 | 10 | void OutputString( const std::string& toOutput, bool important ) 11 | { 12 | #ifdef DISABLEOUTPUT 13 | if(!important) return; 14 | #endif 15 | 16 | std::lock_guard l(g_mutexOutput); 17 | std::wcout << UTF8ToWString(toOutput + "\n").c_str(); 18 | } 19 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_direct3d9_texture.cpp: -------------------------------------------------------------------------------- 1 | #include "hw3d_direct3d9_texture.h" 2 | #include "hw3d_direct3d9_common.h" 3 | 4 | namespace Hw3D 5 | { 6 | IDirect3DTexture9* Direct3D9Texture::D3DObject() 7 | { 8 | return m_texture.get(); 9 | } 10 | 11 | Direct3D9Texture::Direct3D9Texture(IDirect3DTexture9* tex, Geom::SizeInt dimensions, Format fmt): 12 | Texture{ dimensions, fmt }, 13 | m_texture{ tex, ComRelease } 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_OPENGL_TEXTURE_H 2 | #define PICTUS_HW3D_OPENGL_TEXTURE_H 3 | 4 | #include "hw3d_texture.h" 5 | 6 | namespace Hw3D 7 | { 8 | class OpenGlTexture:public Texture 9 | { 10 | public: 11 | GLuint GetTextureName(); 12 | 13 | OpenGlTexture(Geom::SizeInt dimensions, Format fmt, Pool pool); 14 | virtual ~OpenGlTexture(); 15 | 16 | protected: 17 | GLuint m_textureName; 18 | }; 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/Pictus/viewer_droptarget.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_VIEWER_DROPTARGET_H 2 | #define PICTUS_VIEWER_DROPTARGET_H 3 | 4 | #include 5 | 6 | namespace App 7 | { 8 | class Viewer; 9 | 10 | class DropTarget:public wxFileDropTarget 11 | { 12 | public: 13 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &filenames) override; 14 | 15 | DropTarget(Viewer* v); 16 | 17 | private: 18 | Viewer* m_viewer; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/Pictus/wallpaper.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_WALLPAPER_H 2 | #define PICTUS_WALLPAPER_H 3 | 4 | #include 5 | 6 | namespace Win 7 | { 8 | namespace Wallpaper 9 | { 10 | enum class Mode 11 | { 12 | Stretch, 13 | Tile, 14 | Center, 15 | FillCrop, // Windows 7+ only 16 | FillPad, // Windows 7+ only 17 | Span // Windows 8+ only 18 | }; 19 | 20 | bool ApplyWallpaper(const std::string& file, Mode m); 21 | } 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/Posix/TimeHelpers.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TIMEHELPERS_H 2 | #define UNITTEST_TIMEHELPERS_H 3 | 4 | #include 5 | 6 | namespace UnitTest { 7 | 8 | class Timer 9 | { 10 | public: 11 | Timer(); 12 | void Start(); 13 | int GetTimeInMs() const; 14 | 15 | private: 16 | struct timeval m_startTime; 17 | }; 18 | 19 | 20 | namespace TimeHelpers 21 | { 22 | void SleepMs (int ms); 23 | } 24 | 25 | 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/buildbot/tools/bot.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /source/Pictus/imagecache_event.h: -------------------------------------------------------------------------------- 1 | #ifndef IMAGECACHE_EVENT_H 2 | #define IMAGECACHE_EVENT_H 3 | 4 | #include "illa/image.h" 5 | 6 | namespace Img { 7 | class MessageReceiver { 8 | public: 9 | enum LoadMessage { 10 | LoadHeader, 11 | LoadAllocated, 12 | LoadDone, 13 | LoadErrorImage, 14 | LoadErrorCritical 15 | }; 16 | 17 | public: 18 | virtual void OnLoadMessage(LoadMessage s, Img::Image* image, const std::string& desc)=0; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/Pictus/render_geometry.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_RENDER_GEOMETRY_H 2 | #define PICTUS_RENDER_GEOMETRY_H 3 | 4 | #include "orz/geom.h" 5 | #include "illa/types.h" 6 | #include "hw3d_vertex2d.h" 7 | 8 | namespace App 9 | { 10 | void GenerateQuad(Geom::RectFloat position, Geom::RectFloat texCoords, Geom::SizeFloat adjustment, Geom::SizeInt targetSize, Filter::RotationAngle angle, Hw3D::Vertex2D& a, Hw3D::Vertex2D& b, Hw3D::Vertex2D& c, Hw3D::Vertex2D& d); 11 | } 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /source/Stresser/FolderManipulator.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef STRESSER_FOLDERMANIPULATOR_H 3 | #define STRESSER_FOLDERMANIPULATOR_H 4 | 5 | #include "BasicThread.h" 6 | 7 | class FolderManipulator:public BasicThread 8 | { 9 | public: 10 | FolderManipulator(const std::string& folder, const std::string& sourceFolder); 11 | ~FolderManipulator(); 12 | 13 | private: 14 | void ThreadMain(); 15 | 16 | private: 17 | std::string m_folder; 18 | std::string m_sourceFolder; 19 | }; 20 | 21 | 22 | #endif; -------------------------------------------------------------------------------- /source/deps/illa/psd_shared.cpp: -------------------------------------------------------------------------------- 1 | #include "psd_shared.h" 2 | 3 | namespace Img { 4 | namespace Internal { 5 | uint16_t ReadWordBE(IO::FileReader::Ptr file) { 6 | uint8_t data[2]; 7 | file->ReadFull(data, 2); 8 | return (data[0] << 8) + data[1]; 9 | } 10 | 11 | uint32_t ReadDWordBE(IO::FileReader::Ptr file) { 12 | uint8_t data[4]; 13 | file->ReadFull(data, 4); 14 | return (data[0] << 24) + (data[1] << 16) + (data[2] << 8) + data[3]; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /source/deps/orz/stopwatch.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_STOPWATCH_H 2 | #define ORZ_STOPWATCH_H 3 | 4 | #include 5 | 6 | namespace Util { 7 | class StopWatch { 8 | public: 9 | void Start(); 10 | int Stop(); 11 | int Reset(); 12 | 13 | private: 14 | enum State { 15 | Default, 16 | Stopped, 17 | Running, 18 | }; 19 | 20 | std::chrono::time_point m_start, m_pause; 21 | State m_state = Default; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/Pictus/viewer_keyboard.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_VIEWER_KEYBOARD_H 2 | #define PICTUS_VIEWER_KEYBOARD_H 3 | 4 | #include "actionmap.h" 5 | #include "wintypes.h" 6 | #include "appreg.h" 7 | 8 | namespace App { 9 | class Viewer; 10 | 11 | class ViewerKeyboard { 12 | public: 13 | void Construct(Viewer* owner); 14 | void SetBindings(Reg::KeyboardSettings cfg); 15 | 16 | private: 17 | Reg::KeyboardSettings m_cfg; 18 | Viewer* m_owner = nullptr; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/Pictus/viewer_droptarget.cpp: -------------------------------------------------------------------------------- 1 | #include "viewer_droptarget.h" 2 | #include "viewer.h" 3 | 4 | namespace App 5 | { 6 | bool DropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &filenames) 7 | { 8 | //SetImageLocation(WStringToUTF8(reinterpret_cast(pcds->lpData))); 9 | m_viewer->SetImageLocation(WStringToUTF8(filenames[0].c_str().AsWChar())); 10 | return true; 11 | } 12 | 13 | DropTarget::DropTarget(Viewer *v): 14 | m_viewer(v) 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /source/deps/Metadata/Metadata_Document.h: -------------------------------------------------------------------------------- 1 | #ifndef IMAGE_METADATA_DOCUMENT_H 2 | #define IMAGE_METADATA_DOCUMENT_H 3 | 4 | #include "Metadata_Types.h" 5 | #include "Metadata_Value.h" 6 | #include 7 | #include 8 | 9 | namespace Metadata { 10 | class Document { 11 | public: 12 | std::map> Field; 13 | }; 14 | 15 | void Merge(std::shared_ptr lhs, const std::shared_ptr rhs); 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /source/deps/illa/palette.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_PALETTE_H 2 | #define ILLA_PALETTE_H 3 | 4 | #include "color.h" 5 | 6 | namespace Img { 7 | class Palette { 8 | public: 9 | void Color(int index, const Color& col); 10 | 11 | const Img::Color& Color(int index) const; 12 | 13 | private: 14 | Img::Color m_colors[256]; 15 | }; 16 | 17 | Img::Palette Grayscale(int minEntry = 0, int maxEntry = 255); 18 | 19 | bool operator==(const Palette& lhs, const Palette& rhs); 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestList.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TESTLIST_H 2 | #define UNITTEST_TESTLIST_H 3 | 4 | 5 | namespace UnitTest { 6 | 7 | class Test; 8 | 9 | class TestList 10 | { 11 | public: 12 | TestList(); 13 | void Add (Test* test); 14 | 15 | Test* GetHead() const; 16 | 17 | private: 18 | Test* m_head; 19 | Test* m_tail; 20 | }; 21 | 22 | 23 | class ListAdder 24 | { 25 | public: 26 | ListAdder(TestList& list, Test* test); 27 | }; 28 | 29 | } 30 | 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /source/deps/orz/ByteOrder.cpp: -------------------------------------------------------------------------------- 1 | #include "ByteOrder.h" 2 | 3 | #ifdef _WIN32 4 | #include 5 | #else 6 | #include 7 | #endif 8 | 9 | namespace Util { 10 | uint16_t HToNs(uint16_t host) { 11 | return htons(host); 12 | } 13 | 14 | uint16_t NToHs(uint16_t network) { 15 | return ntohs(network); 16 | } 17 | 18 | uint32_t HToNl(uint32_t host) { 19 | return htonl(host); 20 | } 21 | 22 | uint32_t NToHl(uint32_t network) { 23 | return ntohl(network); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /source/deps/illa/surfacemgr.h: -------------------------------------------------------------------------------- 1 | #ifndef SURFACEMGR_H 2 | #define SURFACEMGR_H 3 | 4 | #include "surface.h" 5 | #include "types.h" 6 | #include "surfacefactory.h" 7 | 8 | namespace Img { 9 | struct FactoryNotSet:public std::runtime_error { 10 | FactoryNotSet(const std::string&); 11 | }; 12 | 13 | void SurfaceFactory(ISurfaceFactory* pSurfaceFactory); 14 | 15 | Surface::Ptr CreateNewSurface(); 16 | Surface::Ptr CreateNewSurface(const Geom::SizeInt& dimensions, Format fmt); 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /source/Pictus/ctrl_keypress.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_APP_CTRL_KEYPRESS_H 2 | #define PICTUS_APP_CTRL_KEYPRESS_H 3 | 4 | #include "app_types.h" 5 | 6 | #include 7 | #include 8 | 9 | namespace App 10 | { 11 | class Keypress:public wxPanel 12 | { 13 | public: 14 | std::function OnNewCombo; 15 | void SetCombo(App::KeyboardPress kp); 16 | 17 | Keypress(wxWindow* parent); 18 | 19 | private: 20 | wxTextCtrl* m_edit; 21 | }; 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/deps/illa/filter_bilinear.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_FILTER_BILINEAR 2 | #define ILLA_FILTER_BILINEAR 3 | 4 | #include 5 | #include 6 | 7 | namespace Filter { 8 | namespace Scale { 9 | namespace Internal { 10 | struct Contrib { 11 | uint32_t floor; 12 | uint32_t frac; 13 | uint32_t frac_inv; 14 | }; 15 | 16 | void set_contrib(std::vector& contrib, uint32_t i, uint32_t max_i, uint32_t max_coord, uint32_t ofs); 17 | } 18 | } 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/bakefiles/common_samples.bkl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 0 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_staging_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_OPENGL_STAGING_TEXTURE_H 2 | #define PICTUS_HW3D_OPENGL_STAGING_TEXTURE_H 3 | 4 | #include "hw3d_staging_texture.h" 5 | 6 | namespace Hw3D 7 | { 8 | class OpenGlStagingTexture:public StagingTexture 9 | { 10 | public: 11 | virtual void Transfer(Geom::RectInt sourceRect, Geom::PointInt destTopLeft)=0; 12 | 13 | OpenGlStagingTexture(Geom::SizeInt dimensions, Format fmt); 14 | virtual ~OpenGlStagingTexture(); 15 | }; 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /source/Pictus/timer.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMER_H 2 | #define TIMER_H 3 | 4 | #include 5 | 6 | #include 7 | 8 | namespace Win { 9 | class Timer:private wxTimer { 10 | public: 11 | boost::signals2::signal OnTick; 12 | 13 | void Create(int delay); 14 | void Destroy(); 15 | 16 | Timer(); 17 | ~Timer(); 18 | 19 | Timer(const Timer&) = delete; 20 | Timer& operator=(const Timer&) = delete; 21 | 22 | private: 23 | void Notify() override; 24 | }; 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /source/deps/orz/bitconvert.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_BITCONVERT_H 2 | #define ORZ_BITCONVERT_H 3 | 4 | #include 5 | 6 | namespace Util { 7 | void BitsToBytes(uint8_t* dest, const uint8_t* source, uint32_t numBits); 8 | void CrumbsToBytes(uint8_t* dest, const uint8_t* source, uint32_t numCrumbs); 9 | void NibblesToBytes(uint8_t* dest, const uint8_t* source, uint32_t numNibbles); 10 | void ConvertToBytes(uint8_t* dest, const uint8_t* source, uint32_t sourceBitDepth, uint32_t numSourceWords); 11 | } 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_direct3d9_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef HW3D_DIRECT3D9_TEXTURE_H 2 | #define HW3D_DIRECT3D9_TEXTURE_H 3 | 4 | #include "hw3d_texture.h" 5 | #include 6 | #include 7 | 8 | namespace Hw3D 9 | { 10 | class Direct3D9Texture : public Texture 11 | { 12 | public: 13 | IDirect3DTexture9* D3DObject(); 14 | 15 | Direct3D9Texture(IDirect3DTexture9* tex, Geom::SizeInt dimensions, Format fmt); 16 | 17 | private: 18 | std::shared_ptr m_texture; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/Pictus/timer.cpp: -------------------------------------------------------------------------------- 1 | #include "timer.h" 2 | #include "orz/exception.h" 3 | 4 | namespace Win { 5 | void Timer::Notify() { 6 | OnTick(); 7 | } 8 | 9 | void Timer::Create(int delay) { 10 | delay = std::max(1, delay); // Things pretty much hang if delay=0 11 | if (!Start(delay)) 12 | { 13 | DO_THROW(Err::CriticalError, "SetTimer Failed"); 14 | } 15 | } 16 | 17 | void Timer::Destroy() { 18 | Stop(); 19 | } 20 | 21 | Timer::Timer() {} 22 | 23 | Timer::~Timer() { 24 | Destroy(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_rle_8.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RLE_8_H 2 | #define ILLA_C_BMP_RLE_8_H 3 | 4 | #include "c_bmp_rle.h" 5 | 6 | namespace Img 7 | { 8 | namespace Internal 9 | { 10 | class BmpRleDecoder8 :public BmpRleDecoder { 11 | public: 12 | BmpRleDecoder8(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 13 | 14 | private: 15 | bool OnProcess() override; 16 | std::shared_ptr m_reader; 17 | }; 18 | } 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/Pictus/ipc_server.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_IPC_SERVER_H 2 | #define PICTUS_IPC_SERVER_H 3 | 4 | #include 5 | #include 6 | #include "ipc_openfile_connection.h" 7 | 8 | namespace App 9 | { 10 | class Viewer; 11 | } 12 | 13 | namespace IPC 14 | { 15 | class OpenFileServer:public wxServer 16 | { 17 | public: 18 | wxConnectionBase* OnAcceptConnection(const wxString &topic) override; 19 | OpenFileServer(App::Viewer* viewer); 20 | 21 | private: 22 | App::Viewer* m_viewer; 23 | }; 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/deps/illa/psp_chunkskipper.h: -------------------------------------------------------------------------------- 1 | #ifndef PSP_CHUNKSKIPPER_H 2 | #define PSP_CHUNKSKIPPER_H 3 | 4 | #include "orz/file_reader.h" 5 | 6 | namespace Img { 7 | namespace Internal { 8 | class ChunkSkipper { 9 | public: 10 | explicit ChunkSkipper(IO::FileReader::Ptr reader); 11 | ~ChunkSkipper(); 12 | 13 | private: 14 | ChunkSkipper(ChunkSkipper& rhs); 15 | ChunkSkipper& operator= (const ChunkSkipper& rhs); 16 | 17 | FileInt m_end; 18 | IO::FileReader::Ptr m_reader; 19 | }; 20 | } 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/DeferredTestResult.cpp: -------------------------------------------------------------------------------- 1 | #include "DeferredTestResult.h" 2 | #include "Config.h" 3 | 4 | namespace UnitTest 5 | { 6 | 7 | DeferredTestResult::DeferredTestResult() 8 | : suiteName("") 9 | , testName("") 10 | , failureFile("") 11 | , timeElapsed(0.0f) 12 | , failed(false) 13 | { 14 | } 15 | 16 | DeferredTestResult::DeferredTestResult(char const* suite, char const* test) 17 | : suiteName(suite) 18 | , testName(test) 19 | , failureFile("") 20 | , timeElapsed(0.0f) 21 | , failed(false) 22 | { 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_rle_4.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RLE4_H 2 | #define ILLA_C_BMP_RLE4_H 3 | 4 | #include "c_bmp_rle.h" 5 | 6 | namespace Img 7 | { 8 | namespace Internal 9 | { 10 | class BmpRleDecoder4 :public BmpRleDecoder { 11 | public: 12 | BmpRleDecoder4(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 13 | 14 | private: 15 | bool OnProcess() override; 16 | std::shared_ptr m_reader; 17 | }; 18 | } 19 | } 20 | 21 | #endif 22 | #pragma once 23 | -------------------------------------------------------------------------------- /source/PictThumbs/dllmain.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTTHUMBS_DLLMAIN_H 2 | #define PICTTHUMBS_DLLMAIN_H 3 | 4 | #include 5 | 6 | // {36FCD09A-A906-4cd0-8EC9-52EB6E097DFB} 7 | // TODO: Don't let these be defines. 8 | #define SZ_CLSID_PICTTHUMBSPROVIDER "{36FCD09A-A906-4cd0-8EC9-52EB6E097DFB}" 9 | #define SZ_THUMBNAILPROVIDERNAME "Pictus Thumbnail Provider" 10 | 11 | static const CLSID CLSID_PictusThumbnailProvider = { 0x36fcd09a, 0xa906, 0x4cd0, { 0x8e, 0xc9, 0x52, 0xeb, 0x6e, 0x9, 0x7d, 0xfb } }; 12 | extern HMODULE g_hInst; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /source/Pictus/ipc_openfile_connection.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_IPC_OPENFILE_CONNECTION_H 2 | #define PICTUS_IPC_OPENFILE_CONNECTION_H 3 | 4 | #include 5 | #include 6 | 7 | namespace IPC 8 | { 9 | class OpenFileConnection :public wxConnection 10 | { 11 | public: 12 | bool OnPoke(const wxString& topic, const wxString& item, const void* data, size_t size, wxIPCFormat format) override; 13 | 14 | void SendOpenFile(std::string path); 15 | 16 | std::function HandleOpenFile; 17 | }; 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /source/deps/orz/folder_monitor_imp.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FOLDER_MONITOR_IMP_H 2 | #define ORZ_FOLDER_MONITOR_IMP_H 3 | 4 | #include "folder_types.h" 5 | 6 | namespace IO { 7 | class FolderMonitorImplementation:boost::noncopyable { 8 | public: 9 | ChangeEventCallback& OnEvent; 10 | 11 | FolderMonitorImplementation(const std::string& path, ChangeEventCallback& ev); 12 | virtual ~FolderMonitorImplementation(); 13 | 14 | protected: 15 | const std::string& Path(); 16 | 17 | private: 18 | std::string m_path; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/deps/orz/matrix.h: -------------------------------------------------------------------------------- 1 | #ifndef D3DWRAP_D3D_MATH_H 2 | #define D3DWRAP_D3D_MATH_H 3 | 4 | #include "geom.h" 5 | 6 | namespace Hw3D { 7 | struct Matrix { 8 | float m[4][4] = { { 0.0f } }; 9 | }; 10 | 11 | Matrix OrthographicProjection(Geom::RectFloat zoomedArea); 12 | 13 | Matrix Identity(); 14 | 15 | Matrix Rotate(float angle); 16 | Matrix Scale(float x, float y, float z); 17 | Matrix Translate(float x, float y, float z); 18 | } 19 | 20 | Hw3D::Matrix operator*(const Hw3D::Matrix& lhs, const Hw3D::Matrix& rhs); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/orzTest/test_matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "orz/matrix.h" 2 | #include 3 | 4 | SUITE(MAtrix) 5 | { 6 | TEST(DefaultState) 7 | { 8 | Hw3D::Matrix m; 9 | for (auto y = 0; y < 4; y++) { 10 | for (auto x = 0; x < 4; x++) { 11 | CHECK_EQUAL(0.0f, m.m[y][x]); 12 | } 13 | } 14 | } 15 | 16 | TEST(Identity) 17 | { 18 | auto m = Hw3D::Identity(); 19 | for (auto y = 0; y < 4; y++) { 20 | for (auto x = 0; x < 4; x++) { 21 | CHECK_EQUAL((x == y)?1.0f:0.0f, m.m[y][x]); 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /source/PictThumbs/regsetup.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTTHUMBS_REGSETUP_H 2 | #define PICTTHUMBS_REGSETUP_H 3 | 4 | #include "illa/codecmgr.h" 5 | 6 | #include 7 | 8 | #include 9 | 10 | HRESULT RegisterInprocServer(const std::string& clsid, const std::string& friendlyName); 11 | HRESULT RegisterThumbnailProvider(const std::string& clsId, const std::string& extension); 12 | 13 | HRESULT UnregisterInprocServer(const std::string& clsid); 14 | HRESULT UnRegisterThumbnailProvider(const std::string& clsid, const std::string& extension); 15 | 16 | #endif -------------------------------------------------------------------------------- /source/Pictus/cnt_colorpreview.h: -------------------------------------------------------------------------------- 1 | #ifndef CNT_COLORPREVIEW_H 2 | #define CNT_COLORPREVIEW_H 3 | 4 | #include 5 | #include 6 | 7 | namespace App 8 | { 9 | class ControlColorPreview:public wxPanel 10 | { 11 | public: 12 | void OnSysColor(wxSysColourChangedEvent& evt); 13 | 14 | void SetColor(Img::Color color); 15 | ControlColorPreview(wxWindow *parent, wxWindowID winid, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); 16 | 17 | DECLARE_EVENT_TABLE() 18 | }; 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /source/Pictus/ic_queue.h: -------------------------------------------------------------------------------- 1 | #ifndef IMAGECACHE_QUEUE_H 2 | #define IMAGECACHE_QUEUE_H 3 | 4 | #include "ic_imageloader.h" 5 | #include "imagecache_workrequest.h" 6 | 7 | namespace Img { 8 | class ImageQueue { 9 | public: 10 | void CacheImage(const ImageList& newImagesToProcess); 11 | void RemoveImage(Image* image); 12 | 13 | ImageList GetImageList(); 14 | 15 | void Reset(); 16 | 17 | typedef std::shared_ptr Ptr; 18 | 19 | private: 20 | std::mutex m_mxPackageList; 21 | ImageList m_workPackages; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/Stresser/Helper.cpp: -------------------------------------------------------------------------------- 1 | #include "Helper.h" 2 | #include "orz/fileops.h" 3 | #include "orz/folder.h" 4 | #include "orz/types.h" 5 | 6 | #include 7 | 8 | void copyFiles( const std::string& source, const std::string dest ) { 9 | IO::Folder f; 10 | f.Path(source.c_str()); 11 | auto files = f.CurrentContents(); 12 | 13 | for (const auto& i : files) { 14 | if (i.Type == IO::TypeFile) { 15 | CopyFileW( 16 | UTF8ToWString(source + i.Name).c_str(), 17 | UTF8ToWString(dest + i.Name).c_str(), 18 | false); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_rawconverter.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_RAWCONVERTER_H 2 | #define TIFF_RAWCONVERTER_H 3 | 4 | #include "tiff_converter.h" 5 | #include 6 | 7 | namespace Img { 8 | class TiffRawConverter:public TiffDataConverter { 9 | uint8_t* PerformRequestDestinationBuffer(size_t bytes) override; 10 | uint8_t* PerformReleaseDestinationBuffer(unsigned int widthInPixels, size_t bytesUsed, size_t* expandedSize) override; 11 | 12 | typedef std::vector ByteArray; 13 | ByteArray m_buffer; 14 | }; 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_tileloader.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_TILELOADER_H 2 | #define TIFF_TILELOADER_H 3 | 4 | #include "tiff_loader.h" 5 | 6 | namespace Img { 7 | class TiffTileLoader:public TiffLoader { 8 | private: 9 | TiffChunkStatus PerformLoadChunk() override; 10 | void PerformOnCreate() override; 11 | 12 | void transferTileToBuffer(uint8_t* tileData, size_t bytes); 13 | 14 | ttile_t m_currentTile = 0; 15 | ttile_t m_numberOfTiles = 0; 16 | 17 | int m_positionCurrentX = 0; 18 | size_t m_positionCurrentY = 0; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/Pictus/dlg_about.h: -------------------------------------------------------------------------------- 1 | #ifndef DLG_ABOUT_H 2 | #define DLG_ABOUT_H 3 | 4 | #include "settings_page.h" 5 | 6 | namespace App 7 | { 8 | class SetAbout : public SettingsPage 9 | { 10 | public: 11 | std::string Caption() override; 12 | SetAbout(wxWindow* parent); 13 | ~SetAbout(); 14 | 15 | private: 16 | //bool PerformOnInitPage() override; 17 | void PerformUpdateFromSettings(const Reg::Settings &settings) override; 18 | void onWriteSettings(Reg::Settings &settings) override; 19 | 20 | //HFONT m_headerFont; 21 | }; 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/Pictus/dlg_advanced.h: -------------------------------------------------------------------------------- 1 | #ifndef DLG_ADVANCED_H 2 | #define DLG_ADVANCED_H 3 | 4 | #include "settings_page.h" 5 | #include 6 | 7 | namespace App 8 | { 9 | class SetAdvanced : public App::SettingsPage 10 | { 11 | public: 12 | std::string Caption() override; 13 | SetAdvanced(wxWindow* parent); 14 | 15 | private: 16 | void PerformUpdateFromSettings(const Reg::Settings &settings) override; 17 | void onWriteSettings(Reg::Settings &settings) override; 18 | 19 | wxCheckBox* m_allowMultipleInstances; 20 | }; 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /source/Pictus/version.cpp: -------------------------------------------------------------------------------- 1 | #include "version.h" 2 | #include "orz/types.h" 3 | 4 | std::string ToAString(const App::Version ver) { 5 | return ToAString(ver.Major) + "." + ToAString(ver.Minor) + "." + ToAString(ver.Revision); 6 | } 7 | 8 | namespace App { 9 | bool Version::operator>(const Version& rhs) { 10 | if (Major > rhs.Major) return true; 11 | if (Major < rhs.Major) return false; 12 | if (Minor > rhs.Minor) return true; 13 | if (Minor < rhs.Minor) return false; 14 | if (Revision > rhs.Revision) return true; 15 | return false; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /source/deps/illa/c_tga.h: -------------------------------------------------------------------------------- 1 | #ifndef C_TGA_H 2 | #define C_TGA_H 3 | 4 | #include "codec_static.h" 5 | #include "c_tga_decoder.h" 6 | 7 | namespace Img { 8 | class CodecTGA:public StaticCodec { 9 | bool PerformLoadHeader(IO::FileReader::Ptr file, ImageInfo& info) override; 10 | 11 | AllocationStatus PerformAllocate() override; 12 | LoadStatus PerformLoadImageData(IO::FileReader::Ptr file) override; 13 | 14 | CodecTgaDecoder::Ptr m_decoder; 15 | 16 | // Image data 17 | TGAHeader m_header; 18 | Palette m_palette; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/deps/illa/c_wbmp.h: -------------------------------------------------------------------------------- 1 | #ifndef C_WBMP_H 2 | #define C_WBMP_H 3 | 4 | #include "codec_static.h" 5 | 6 | namespace Img { 7 | class CodecWBMP:public StaticCodec { 8 | bool PerformLoadHeader(IO::FileReader::Ptr file, ImageInfo& info) override; 9 | AllocationStatus PerformAllocate() override; 10 | LoadStatus PerformLoadImageData(IO::FileReader::Ptr file) override; 11 | Surface::Ptr PerformGetSurface(); 12 | uint32_t ReadUIntVar(IO::FileReader::Ptr file); 13 | 14 | int m_currScan = 0; 15 | FileInt m_imageStart = 0; 16 | }; 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /source/deps/orz/Linux/linux_folder_monitor.cpp: -------------------------------------------------------------------------------- 1 | #include "linux_folder_monitor.h" 2 | #include "../folder_monitor.h" 3 | 4 | namespace IO 5 | { 6 | FolderMonitorImplementation* FolderMonitor::doCreateImp(const std::string& path, ChangeEventCallback& ev) { 7 | return new FolderMonitorLinux(path, ev); 8 | } 9 | 10 | FolderMonitorLinux::FolderMonitorLinux(const std::string &path, ChangeEventCallback &ev): 11 | FolderMonitorImplementation{ path, ev } 12 | { 13 | 14 | } 15 | 16 | FolderMonitorLinux::~FolderMonitorLinux() 17 | { 18 | 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | project (Pictus) 3 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 4 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules/") 5 | enable_testing() 6 | 7 | add_subdirectory (source) 8 | add_test(NAME OrzTest COMMAND orzTest ${CMAKE_SOURCE_DIR}/bin/Test) 9 | add_test(NAME IllaTest COMMAND illaTest ${CMAKE_SOURCE_DIR}/bin/Test) 10 | add_test(NAME MetadataTest COMMAND MetadataTest ${CMAKE_SOURCE_DIR}/bin/Test) 11 | add_test(NAME PictusTest COMMAND pictusTest ${CMAKE_SOURCE_DIR}/bin/Test) -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_raw_4.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RAW_4_H 2 | #define ILLA_C_BMP_RAW_4_H 3 | 4 | #include "c_bmp_decoder.h" 5 | 6 | namespace Img 7 | { 8 | namespace Internal 9 | { 10 | class BmpRawDecoder4 :public BmpDataDecoder 11 | { 12 | public: 13 | BmpRawDecoder4(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 14 | 15 | private: 16 | bool OnProcess() override; 17 | 18 | std::shared_ptr m_reader; 19 | int m_row; 20 | }; 21 | } 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_raw_24.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RAW_24_H 2 | #define ILLA_C_BMP_RAW_24_H 3 | 4 | #include "c_bmp_decoder.h" 5 | 6 | namespace Img 7 | { 8 | namespace Internal 9 | { 10 | class BmpRawDecoder24 :public BmpDataDecoder 11 | { 12 | public: 13 | explicit BmpRawDecoder24(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 14 | 15 | private: 16 | bool OnProcess() override; 17 | 18 | int m_row; 19 | std::shared_ptr m_reader; 20 | }; 21 | } 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/Pictus/rename.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_DIALOGS_RENAME_H 2 | #define PICTUS_DIALOGS_RENAME_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace App 9 | { 10 | class Rename:public wxDialog 11 | { 12 | public: 13 | const std::string& Name(); 14 | 15 | Rename(wxWindow* parent, const std::string& currname); 16 | 17 | private: 18 | wxTextCtrl* m_filename; 19 | 20 | private: 21 | void OnOk(); 22 | void OnCancel(); 23 | 24 | std::string m_name; 25 | wxTextValidator* m_validator; 26 | }; 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | 3 | FILE(GLOB ALL_HEADER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) 4 | FILE(GLOB ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) 5 | 6 | if(WIN32) 7 | list(APPEND ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Win32/TimeHelpers.cpp) 8 | else() 9 | list(APPEND ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Posix/SignalTranslator.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Posix/TimeHelpers.cpp) 10 | endif() 11 | 12 | include_directories(${DEPS_DIRECTORY}) 13 | add_library(UnitTestPP STATIC ${ALL_CPP_SRCS} ${ALL_HEADER_SRCS}) 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/bakefiles/wxpresets/presets/wx_presets.py: -------------------------------------------------------------------------------- 1 | 2 | # We use 'COMPILER_PREFIX' option in places where bakefile doesn't like it, so 3 | # we must register a substitution function for it that provides additional 4 | # knowledge about the option (in this case that it does not contain dir 5 | # separators and so utils.nativePaths() doesn't have to do anything with it): 6 | 7 | from utils import addSubstituteCallback 8 | 9 | def __noopSubst(name, func, caller): 10 | return '$(%s)' % name 11 | addSubstituteCallback('COMPILER_PREFIX', __noopSubst) 12 | -------------------------------------------------------------------------------- /source/Pictus/imagecache_workrequest.cpp: -------------------------------------------------------------------------------- 1 | #include "imagecache_workrequest.h" 2 | 3 | namespace Img { 4 | WorkRequest::WorkRequest(Image* i, std::string s) : 5 | image(i), 6 | filename(s) 7 | {} 8 | 9 | bool operator==(const WorkRequest& a, const WorkRequest& b) 10 | { 11 | return (a.image == b.image) && (a.filename == b.filename); 12 | } 13 | 14 | bool operator==(const WorkRequest& a, const Image* b) 15 | { 16 | return (a.image == b); 17 | } 18 | 19 | bool operator<(const WorkRequest& a, const WorkRequest& b) 20 | { 21 | return a.image < b.image; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_cieconverter.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_CIECONVERTER_H 2 | #define TIFF_CIECONVERTER_H 3 | 4 | #include "tiff_converter.h" 5 | #include 6 | 7 | namespace Img { 8 | class TiffCieConverter:public TiffDataConverter { 9 | void PerformCreate(); 10 | uint8_t* PerformRequestDestinationBuffer(size_t bytes); 11 | uint8_t* PerformReleaseDestinationBuffer(int widthInPixels, size_t bytesUsed, size_t* expandedSize); 12 | 13 | typedef std::vector ByteArray; 14 | ByteArray m_buffer; 15 | TIFFCIELabToRGB* m_cieToRgb; 16 | }; 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/bakefiles/plugins.bkl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | $(UNIX_SOUND_SRC_SDL) 11 | $(EXTRALIBS_SDL) 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /source/Pictus/imagecache_workrequest.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_IMAGECACHE_SHARED_H 2 | #define PICTUS_IMAGECACHE_SHARED_H 3 | 4 | #include "illa/image.h" 5 | 6 | namespace Img { 7 | struct WorkRequest { 8 | Image* image; 9 | std::string filename; 10 | 11 | WorkRequest(Image* i, std::string s); 12 | }; 13 | 14 | bool operator==(const WorkRequest& a, const WorkRequest& b); 15 | 16 | bool operator==(const WorkRequest& a, const Image* b); 17 | 18 | bool operator <(const WorkRequest& a, const WorkRequest& b); 19 | 20 | typedef std::vector ImageList; 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /source/deps/illa/surface_lock_exclusive.h: -------------------------------------------------------------------------------- 1 | #ifndef SURFACE_LOCK_EXCLUSIVE_H 2 | #define SURFACE_LOCK_EXCLUSIVE_H 3 | 4 | #include "surface_lock.h" 5 | 6 | #include 7 | #include 8 | 9 | namespace Img { 10 | class LockStrategyExclusive:public LockStrategy { 11 | public: 12 | LockStrategyExclusive(); 13 | 14 | private: 15 | void onAcquireLock(LockMethod method); 16 | void onReleaseLock(LockMethod method); 17 | 18 | std::mutex m_mutexLock; 19 | std::condition_variable m_conditionUnlock; 20 | 21 | bool m_isLocked; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_striploader.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_STRIPLOADER_H 2 | #define TIFF_STRIPLOADER_H 3 | 4 | #include "tiff_loader.h" 5 | 6 | namespace Img { 7 | class TiffStripLoader:public TiffLoader { 8 | public: 9 | TiffStripLoader(); 10 | 11 | private: 12 | TiffChunkStatus PerformLoadChunk() override; 13 | void PerformOnCreate() override; 14 | 15 | void transferStripToBuffer(uint8_t* stripData, size_t bytes); 16 | 17 | tstrip_t m_numerOfStrips; 18 | tstrip_t m_currentStrip; 19 | 20 | size_t m_bufferPosition; 21 | size_t m_readScanlines; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/deps/orz/w32_folder_iterator.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_W32_FOLDER_ITERATOR_H 2 | #define ORZ_W32_FOLDER_ITERATOR_H 3 | 4 | #include 5 | #include 6 | #include "folder_types.h" 7 | 8 | namespace IO { 9 | class FolderFileIteratorWin32 { 10 | public: 11 | bool Step(); 12 | FolderEntry CurrentEntry(); 13 | 14 | FolderFileIteratorWin32(const std::string& path); 15 | ~FolderFileIteratorWin32(); 16 | 17 | private: 18 | void FindNext(); 19 | 20 | bool m_first; 21 | WIN32_FIND_DATAW m_currentEntry; 22 | 23 | HANDLE m_handle; 24 | }; 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_rle.cpp: -------------------------------------------------------------------------------- 1 | #include "c_bmp_rle.h" 2 | 3 | namespace Img 4 | { 5 | namespace Internal 6 | { 7 | BmpRleDecoder::BmpRleDecoder(std::shared_ptr destination, const BMPHeader& header): 8 | BmpDataDecoder{ destination, header }, 9 | m_currPix{ 0 }, 10 | m_row{ 0 } 11 | { 12 | 13 | } 14 | 15 | void BmpRleDecoder::AddPixelRLE(std::shared_ptr area, uint8_t val) { 16 | if (m_currPix >= m_header.Size.Width) 17 | { 18 | return; 19 | } 20 | 21 | area->Buffer()[m_currPix] = val; 22 | m_currPix++; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /source/deps/illa/surface_lock_exclusive.cpp: -------------------------------------------------------------------------------- 1 | #include "surface_lock_exclusive.h" 2 | 3 | namespace Img { 4 | LockStrategyExclusive::LockStrategyExclusive() 5 | :m_isLocked(false) 6 | {} 7 | 8 | void LockStrategyExclusive::onAcquireLock( LockMethod ) { 9 | std::unique_lock l(m_mutexLock); 10 | while(m_isLocked) 11 | m_conditionUnlock.wait(l); 12 | 13 | m_isLocked = true; 14 | } 15 | 16 | void LockStrategyExclusive::onReleaseLock( LockMethod ) { 17 | std::lock_guard l(m_mutexLock); 18 | m_isLocked = false; 19 | m_conditionUnlock.notify_all(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestDetails.cpp: -------------------------------------------------------------------------------- 1 | #include "TestDetails.h" 2 | 3 | namespace UnitTest { 4 | 5 | TestDetails::TestDetails(char const* testName_, char const* suiteName_, char const* filename_, int lineNumber_) 6 | : suiteName(suiteName_) 7 | , testName(testName_) 8 | , filename(filename_) 9 | , lineNumber(lineNumber_) 10 | { 11 | } 12 | 13 | TestDetails::TestDetails(const TestDetails& details, int lineNumber_) 14 | : suiteName(details.suiteName) 15 | , testName(details.testName) 16 | , filename(details.filename) 17 | , lineNumber(lineNumber_) 18 | { 19 | } 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/bakefiles/plugins_deps.bkl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | $(EXTRALIBS_SDL) 12 | 13 | 14 | 15 | 16 | 17 | 18 | $(PLUGIN_ADV_EXTRALIBS) 19 | 20 | 21 | -------------------------------------------------------------------------------- /source/deps/illa/surface_lock_swmr.h: -------------------------------------------------------------------------------- 1 | #ifndef SURFACE_LOCK_SWMR_H 2 | #define SURFACE_LOCK_SWMR_H 3 | 4 | #include "surface_lock.h" 5 | 6 | #include 7 | #include 8 | 9 | namespace Img { 10 | class LockStrategySingleWriterMultipleReaders:public LockStrategy { 11 | public: 12 | LockStrategySingleWriterMultipleReaders(); 13 | 14 | private: 15 | void onAcquireLock(LockMethod method); 16 | void onReleaseLock(LockMethod method); 17 | 18 | std::mutex m_mutexLocks; 19 | std::condition_variable m_conditionUnlock; 20 | 21 | bool m_isWriteLocked; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/deps/illa/gif_io.cpp: -------------------------------------------------------------------------------- 1 | #include "gif_io.h" 2 | 3 | namespace Img { 4 | void ReadPalette(Img::Palette& pal, int colors, IO::FileReader::Ptr file) { 5 | if (file == nullptr) { 6 | DO_THROW(Err::InvalidParam, "file was null"); 7 | } 8 | LoadPalette(pal, *file, 0, colors, Img::LoadRGB); 9 | } 10 | 11 | void ReadSizeWord(Geom::SizeInt* pSize, IO::FileReader::Ptr file) { 12 | if (file == nullptr) { 13 | DO_THROW(Err::InvalidParam, "file was null"); 14 | } 15 | 16 | uint16_t sizes[2]; 17 | file->ReadFull(sizes, 2 * 2); 18 | pSize->Width = sizes[0]; 19 | pSize->Height = sizes[1]; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /source/deps/illa/pcx_header.h: -------------------------------------------------------------------------------- 1 | #ifndef PCX_HEADER_H 2 | #define PCX_HEADER_H 3 | 4 | #include "orz/file_reader.h" 5 | #include "orz/geom.h" 6 | #include "types.h" 7 | 8 | namespace Img { 9 | namespace Internal { 10 | class PCXHeader { 11 | public: 12 | bool Load(IO::FileReader::Ptr file); 13 | 14 | uint8_t Version; 15 | uint8_t Compression; 16 | uint8_t PlaneDepth; 17 | Geom::SizeInt Size; 18 | uint8_t ColorPlanes; 19 | unsigned short BytesPerLine; 20 | uint16_t PaletteType; 21 | 22 | uint8_t TotColorDepth; 23 | 24 | Img::Palette Palette; 25 | }; 26 | } 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /source/deps/orz/folder_monitor.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FOLDER_MONITOR_H 2 | #define ORZ_FOLDER_MONITOR_H 3 | 4 | #include "folder_types.h" 5 | #include "folder_monitor_imp.h" 6 | #include "folder.h" 7 | 8 | namespace IO { 9 | class FolderMonitor:boost::noncopyable { 10 | public: 11 | ChangeEventCallback OnEvent; 12 | 13 | void Start(const std::string& path); 14 | void Close(); 15 | 16 | ~FolderMonitor(); 17 | 18 | private: 19 | FolderMonitorImplementation* doCreateImp(const std::string& path, ChangeEventCallback& c); 20 | 21 | std::unique_ptr m_imp; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/Pictus/ipc_server.cpp: -------------------------------------------------------------------------------- 1 | #include "ipc_server.h" 2 | #include "ipc_openfile_connection.h" 3 | #include "viewer.h" 4 | 5 | namespace IPC 6 | { 7 | wxConnectionBase * OpenFileServer::OnAcceptConnection(const wxString & topic) 8 | { 9 | if (topic == L"OPENFILE") 10 | { 11 | auto connection = new OpenFileConnection(); 12 | connection->HandleOpenFile = [=](std::string destination) { 13 | m_viewer->SetImageLocation(destination); 14 | }; 15 | return connection; 16 | } 17 | return nullptr; 18 | } 19 | OpenFileServer::OpenFileServer(App::Viewer * viewer): 20 | m_viewer{ viewer } 21 | { 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /source/Pictus/settings_layout.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_SETTINGS_LAYOUT_H 2 | #define PICTUS_SETTINGS_LAYOUT_H 3 | 4 | #include 5 | #include 6 | 7 | namespace App 8 | { 9 | int GetPadding(); 10 | 11 | wxSizerFlags StaticBoxInnerPadding(int ratio); 12 | wxSizerFlags StaticBoxOuterPadding(int ratio); 13 | 14 | wxSizerFlags ButtonToolbarPadding(); 15 | wxSizerFlags ButtonPadding(); 16 | 17 | wxSizerFlags HorizontalPaddingFirst(int ratio); 18 | wxSizerFlags HorizontalPadding(int ratio, bool extra=false); 19 | wxSizerFlags HorizontalPaddingLast(int ratio, bool extra = false); 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/deps/illa/surface_lock.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_SURFACE_LOCK_H 2 | #define ILLA_SURFACE_LOCK_H 3 | 4 | #include 5 | 6 | namespace Img { 7 | enum LockMethod { 8 | LockRead, 9 | LockReadWrite 10 | }; 11 | 12 | class LockStrategy { 13 | public: 14 | void AquireLock(LockMethod method); 15 | void ReleaseLock(LockMethod method); 16 | 17 | typedef std::shared_ptr Ptr; 18 | 19 | LockStrategy(); 20 | virtual ~LockStrategy()=0; 21 | 22 | private: 23 | virtual void onAcquireLock(LockMethod method)=0; 24 | virtual void onReleaseLock(LockMethod method)=0; 25 | }; 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/Pictus/ipc_openfile_connection.cpp: -------------------------------------------------------------------------------- 1 | #include "ipc_openfile_connection.h" 2 | #include "orz/types.h" 3 | 4 | namespace IPC 5 | { 6 | bool OpenFileConnection::OnPoke(const wxString & topic, const wxString & item, const void * data, size_t size, wxIPCFormat format) 7 | { 8 | const char* cData = reinterpret_cast(data); 9 | std::string wstr(cData, cData + size); 10 | HandleOpenFile(wstr); 11 | return true; 12 | } 13 | void OpenFileConnection::SendOpenFile(std::string path) 14 | { 15 | if (path == "") 16 | { 17 | path = " "; 18 | } 19 | Poke(L"OPEN", path.c_str(), path.size()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_ycbcrconverter.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_YCBCRCONVERTER_H 2 | #define TIFF_YCBCRCONVERTER_H 3 | 4 | #include "tiff_converter.h" 5 | 6 | namespace Img { 7 | class TiffYCbCrConverter:public TiffDataConverter { 8 | void PerformCreate(); 9 | uint8_t* PerformRequestDestinationBuffer(size_t bytes) override; 10 | uint8_t* PerformReleaseDestinationBuffer(unsigned int widthInPixels, size_t bytesUsed, size_t* expandedSize) override; 11 | 12 | typedef std::unique_ptr ByteArray; 13 | ByteArray m_buffer; 14 | TIFFYCbCrToRGB* m_ycbcrToRgb = nullptr; 15 | }; 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /source/illaTest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8) 2 | 3 | FIND_PACKAGE(wxWidgets COMPONENTS core base gl net REQUIRED) 4 | 5 | FILE(GLOB ALL_HEADER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) 6 | FILE(GLOB ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) 7 | FILE(GLOB ALL_C_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.c) 8 | 9 | INCLUDE(${wxWidgets_USE_FILE}) 10 | INCLUDE_DIRECTORIES(${DEPS_DIRECTORY} ${wxWidgets_INCLUDE_DIRS}) 11 | LINK_DIRECTORIES(${illa_BINARY_DIR}/illa) 12 | 13 | ADD_EXECUTABLE(illaTest ${ALL_CPP_SRCS} ${ALL_C_SRCS} ${DEPS_DIRECTORY}) 14 | TARGET_LINK_LIBRARIES(illaTest illa UnitTestPP ${Boost_LIBRARIES}) 15 | -------------------------------------------------------------------------------- /source/deps/illa/bmp_fileheader.cpp: -------------------------------------------------------------------------------- 1 | #include "bmp_fileheader.h" 2 | #include "types.h" 3 | 4 | namespace Img { 5 | namespace Internal { 6 | void BMPFileHeader::Load(IO::FileReader::Ptr file) { 7 | enum { 8 | BITMAP_SIGN = 0x4D42, 9 | }; 10 | 11 | file->ReadFull(&type, 2); 12 | file->ReadFull(&size, 4); 13 | file->Seek(4, IO::SeekMethod::Current); // Skip reserved bytes 14 | file->ReadFull(&offset, 4); 15 | 16 | // Validate 17 | if (type != BITMAP_SIGN) { 18 | DO_THROW(Err::InvalidHeader, "Magic bytes didn't match."); 19 | } 20 | } 21 | 22 | BMPFileHeader::BMPFileHeader() {} 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/bakefiles/wxpresets/sample/minimal.bkl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | on 12 | dynamic 13 | 14 | minimal.cpp 15 | 16 | core 17 | base 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /source/Pictus/dlg_interface.h: -------------------------------------------------------------------------------- 1 | #ifndef DLG_INTERFACE_H 2 | #define DLG_INTERFACE_H 3 | 4 | #include 5 | #include "settings_page.h" 6 | 7 | namespace App 8 | { 9 | class SetInterface : public App::SettingsPage 10 | { 11 | public: 12 | bool IsRootPage() const override; 13 | std::string Caption() override; 14 | 15 | SetInterface(wxWindow *parent); 16 | 17 | private: 18 | void PerformUpdateFromSettings(const Reg::Settings &settings) override; 19 | void onWriteSettings(Reg::Settings &settings) override; 20 | 21 | wxCheckBox *m_showStatusBar; 22 | wxCheckBox *m_alwaysOnTop; 23 | }; 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/Pictus/ic_workpackage.h: -------------------------------------------------------------------------------- 1 | #ifndef IC_WORKPACKAGE_H 2 | #define IC_WORKPACKAGE_H 3 | 4 | #include "ic_imageloader.h" 5 | 6 | namespace Img { 7 | class Image; 8 | 9 | enum WorkOperation { 10 | WOUndefined, 11 | WOLoadImage, 12 | WODone, 13 | }; 14 | 15 | class WorkPackage { 16 | public: 17 | WorkOperation Operation() const; 18 | bool FastPass() const; 19 | size_t MemoryUsage() const; 20 | ImageLoader::Ptr Loader; 21 | 22 | explicit WorkPackage(ImageLoader::Ptr l):Loader(l) {} 23 | explicit WorkPackage() {} 24 | ~WorkPackage(); 25 | 26 | bool operator==(const Image* b); 27 | }; 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /source/Stresser/ThreadRunner.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef ThreadRunner_h__ 3 | #define ThreadRunner_h__ 4 | 5 | #include 6 | #include "BasicThread.h" 7 | 8 | class ThreadRunner 9 | :public BasicThread 10 | { 11 | public: 12 | void AddThread(BasicThread::Ptr threadToAdd); 13 | 14 | void ThreadMain(); 15 | 16 | void Stop(); 17 | 18 | ThreadRunner(); 19 | ~ThreadRunner(); 20 | 21 | typedef std::shared_ptr Ptr; 22 | 23 | private: 24 | void stopThreads(); 25 | void startThreads(); 26 | 27 | bool m_error; 28 | std::deque m_threads; 29 | }; 30 | 31 | #endif // ThreadRunner_h__ 32 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_raw_8.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RAW_8_H 2 | #define ILLA_C_BMP_RAW_8_H 3 | 4 | #include "bmp_header.h" 5 | #include "c_bmp_decoder.h" 6 | 7 | #include "orz/file_reader.h" 8 | 9 | namespace Img 10 | { 11 | namespace Internal 12 | { 13 | class BmpRawDecoder8 :public BmpDataDecoder 14 | { 15 | public: 16 | BmpRawDecoder8(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 17 | 18 | private: 19 | bool OnProcess() override; 20 | 21 | std::shared_ptr m_reader; 22 | int m_row; 23 | }; 24 | } 25 | } 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /source/deps/orz/boost_folder.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_BOOST_FOLDER_H 2 | #define ORZ_BOOST_FOLDER_H 3 | 4 | #include "folder_types.h" 5 | #include 6 | #include 7 | 8 | namespace IO { 9 | class BoostFolder:boost::noncopyable { 10 | public: 11 | bool Path(const std::string& filename); 12 | std::string Path() const; 13 | 14 | boost::filesystem::directory_iterator CreateIterator() const; 15 | IO::FileList CurrentContents() const; 16 | 17 | private: 18 | mutable std::mutex m_mxCall; 19 | FileList m_content; 20 | std::string m_path; 21 | }; 22 | 23 | typedef BoostFolder Folder; 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/deps/orz/w32_folder.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_W32_FOLDER_H 2 | #define ORZ_W32_FOLDER_H 3 | 4 | #include "folder_types.h" 5 | #include "w32_folder_iterator.h" 6 | #include 7 | 8 | namespace IO { 9 | class Win32Folder :boost::noncopyable { 10 | public: 11 | bool Path(const std::string& filename); 12 | std::string Path() const; 13 | 14 | std::shared_ptr CreateIterator() const; 15 | IO::FileList CurrentContents() const; 16 | 17 | private: 18 | mutable std::mutex m_mxCall; 19 | FileList m_content; 20 | std::string m_path; 21 | }; 22 | 23 | typedef Win32Folder Folder; 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestReporter.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TESTREPORTER_H 2 | #define UNITTEST_TESTREPORTER_H 3 | 4 | namespace UnitTest { 5 | 6 | class TestDetails; 7 | 8 | class TestReporter 9 | { 10 | public: 11 | virtual ~TestReporter(); 12 | 13 | virtual void ReportTestStart(TestDetails const& test) = 0; 14 | virtual void ReportFailure(TestDetails const& test, char const* failure) = 0; 15 | virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed) = 0; 16 | virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed) = 0; 17 | }; 18 | 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /source/deps/orz/file_cache.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FILE_CACHE_H 2 | #define ORZ_FILE_CACHE_H 3 | 4 | #include "file_reader.h" 5 | 6 | namespace IO { 7 | class FileReaderByteStreamer { 8 | public: 9 | void SetFileReader(IO::FileReader::Ptr file); 10 | uint8_t& ReadByte(); 11 | FileInt BytesLeft(); 12 | void SkipBytes(int numToSkip); 13 | FileInt VirtualFilePosition(); 14 | 15 | private: 16 | enum { 17 | CacheSize = 4096 18 | }; 19 | 20 | uint8_t m_cache[CacheSize] = {}; 21 | size_t m_position = 0; 22 | size_t m_cacheSize = 0; 23 | FileInt m_bytesLeft = 0; 24 | IO::FileReader::Ptr m_reader; 25 | }; 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/orzTest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8) 2 | 3 | FIND_PACKAGE(wxWidgets COMPONENTS core base gl net REQUIRED) 4 | 5 | FILE(GLOB ALL_HEADER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) 6 | FILE(GLOB ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) 7 | FILE(GLOB ALL_C_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.c) 8 | 9 | INCLUDE(${wxWidgets_USE_FILE}) 10 | INCLUDE_DIRECTORIES(${DEPS_DIRECTORY} ${wxWidgets_INCLUDE_DIRS}) 11 | LINK_DIRECTORIES(${orz_BINARY_DIR}/orz) 12 | 13 | ADD_EXECUTABLE(orzTest ${ALL_CPP_SRCS} ${ALL_C_SRCS} ${DEPS_DIRECTORY}) 14 | TARGET_LINK_LIBRARIES(orzTest orz UnitTestPP ${Boost_LIBRARIES} ${wxWidgets_LIBRARIES}) 15 | -------------------------------------------------------------------------------- /source/orzTest/test_stopwatch.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "orz/stopwatch.h" 3 | #include 4 | #include 5 | 6 | 7 | TEST(StopWatch_Measure) 8 | { 9 | Util::StopWatch s; 10 | s.Start(); 11 | std::this_thread::sleep_for(std::chrono::duration(20)); 12 | int time=s.Stop(); 13 | CHECK(abs(time-20)<8); // Should be enough margin 14 | } 15 | 16 | TEST(StopWatch_Pause) 17 | { 18 | Util::StopWatch s; 19 | s.Start(); 20 | int time=s.Stop(); 21 | std::this_thread::sleep_for(std::chrono::duration(20)); 22 | CHECK(time==s.Stop()); // Should be enough margin 23 | 24 | } 25 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestReporterStdout.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TESTREPORTERSTDOUT_H 2 | #define UNITTEST_TESTREPORTERSTDOUT_H 3 | 4 | #include "TestReporter.h" 5 | 6 | namespace UnitTest { 7 | 8 | class TestReporterStdout : public TestReporter 9 | { 10 | private: 11 | virtual void ReportTestStart(TestDetails const& test); 12 | virtual void ReportFailure(TestDetails const& test, char const* failure); 13 | virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed); 14 | virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed); 15 | }; 16 | 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /source/deps/illa/c_tga_rle.h: -------------------------------------------------------------------------------- 1 | #ifndef C_TGA_RLE_H 2 | #define C_TGA_RLE_H 3 | 4 | #include "orz/file_cache.h" 5 | #include "c_tga_decoder.h" 6 | 7 | namespace Img { 8 | class CodecTgaRleDecoder:public CodecTgaDecoder { 9 | private: 10 | enum { 11 | RowsPerBatch = 64 12 | }; 13 | 14 | void OnSource(); 15 | bool OnProcess(Batch* batch); 16 | 17 | template 18 | bool PerformOnProcess(Batch* batch, T_Read rd); 19 | 20 | IO::FileReaderByteStreamer m_fileStream; 21 | 22 | int m_numRlePixels; 23 | uint8_t m_repField; 24 | uint32_t m_pix; 25 | bool m_isRleBlock; 26 | }; 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /source/deps/illa/psp_chunkskipper.cpp: -------------------------------------------------------------------------------- 1 | #include "psp_chunkskipper.h" 2 | #include "orz/logger.h" 3 | 4 | namespace Img { 5 | namespace Internal { 6 | ChunkSkipper::ChunkSkipper(IO::FileReader::Ptr reader) :m_reader(reader) { 7 | FileInt pos = reader->Position(); 8 | uint32_t chunkSize; 9 | reader->ReadFull(&chunkSize, 4); 10 | 11 | m_end = pos + chunkSize; 12 | } 13 | 14 | ChunkSkipper::~ChunkSkipper() { 15 | try 16 | { 17 | m_reader->Seek(m_end, IO::SeekMethod::Begin); 18 | } 19 | catch (std::exception& e) 20 | { 21 | Log << "(ChunkSkipper::~ChunkSkipper) " << e.what() << "\n"; 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /source/Pictus/dlg_language.h: -------------------------------------------------------------------------------- 1 | #ifndef DLG_LANGUAGE_H 2 | #define DLG_LANGUAGE_H 3 | 4 | #include "settings_page.h" 5 | #include "app_types.h" 6 | 7 | #include 8 | 9 | namespace App 10 | { 11 | class SetLanguage:public SettingsPage 12 | { 13 | public: 14 | std::string Caption() override; 15 | SetLanguage(wxWindow* parent); 16 | 17 | private: 18 | void PerformUpdateFromSettings(const Reg::Settings& settings) override; 19 | void onWriteSettings(Reg::Settings& settings) override; 20 | 21 | void SetSelection(Intl::Language lang); 22 | Intl::Language GetSelection(); 23 | 24 | wxChoice* m_cbLang; 25 | }; 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/deps/illa/codec_static.h: -------------------------------------------------------------------------------- 1 | #ifndef STATICCODEC_H 2 | #define STATICCODEC_H 3 | 4 | #include "codec.h" 5 | #include "imagecomposer_static.h" 6 | 7 | namespace Img { 8 | class StaticCodec:public AbstractCodec { 9 | public: 10 | ImageComposer::Ptr RequestImageComposer(); 11 | 12 | StaticCodec(); 13 | virtual ~StaticCodec(); 14 | 15 | protected: 16 | void UseFastSurface(bool doFastSurface); 17 | void FinalizeSurface(); 18 | 19 | Surface::Ptr GetSurface(); 20 | 21 | private: 22 | ImageComposerStatic::Ptr m_composer; 23 | Surface::Ptr m_surface; 24 | Surface::Ptr m_fastSurface; 25 | bool m_doFast; 26 | }; 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/AssertException.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_ASSERTEXCEPTION_H 2 | #define UNITTEST_ASSERTEXCEPTION_H 3 | 4 | #include 5 | 6 | 7 | namespace UnitTest { 8 | 9 | class AssertException : public std::exception 10 | { 11 | public: 12 | AssertException(char const* description, char const* filename, int lineNumber); 13 | virtual ~AssertException() throw(); 14 | 15 | virtual char const* what() const throw(); 16 | 17 | char const* Filename() const; 18 | int LineNumber() const; 19 | 20 | private: 21 | char m_description[512]; 22 | char m_filename[256]; 23 | int m_lineNumber; 24 | }; 25 | 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_decoder.h: -------------------------------------------------------------------------------- 1 | #ifndef C_BMP_DECODER_H 2 | #define C_BMP_DECODER_H 3 | 4 | #include "bmp_header.h" 5 | #include "surface.h" 6 | 7 | namespace Img 8 | { 9 | namespace Internal 10 | { 11 | class BmpDataDecoder 12 | { 13 | public: 14 | bool Process(); 15 | 16 | BmpDataDecoder(std::shared_ptr destination, const BMPHeader& header); 17 | 18 | protected: 19 | std::shared_ptr GetScanlinePtr(int row); 20 | 21 | BMPHeader m_header; 22 | 23 | private: 24 | virtual bool OnProcess() = 0; 25 | 26 | std::shared_ptr m_destination; 27 | }; 28 | } 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /source/Pictus/w32_redrawstrategy.h: -------------------------------------------------------------------------------- 1 | #ifndef W32_REDRAWSTRATEGY_H 2 | #define W32_REDRAWSTRATEGY_H 3 | 4 | #include "w32_renderer.h" 5 | 6 | namespace Win { 7 | class RedrawStrategy { 8 | public: 9 | void Render(Renderer::Ptr newRenderer, Img::Surface::Ptr surfaceToRender, const Geom::PointInt& pan, const Img::Properties& props); 10 | void Reset(); 11 | 12 | virtual ~RedrawStrategy(); 13 | 14 | typedef std::shared_ptr Ptr; 15 | 16 | private: 17 | virtual void OnRender(Renderer::Ptr renderer, Img::Surface::Ptr surfaceToRender, Geom::PointInt pan, Img::Properties props)=0; 18 | virtual void OnReset()=0; 19 | }; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /source/deps/orz/intl.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_INTL_H 2 | #define ORZ_INTL_H 3 | 4 | #include "intl_table_entry.h" 5 | #ifdef _MSC_VER 6 | #pragma warning(push) 7 | #pragma warning(disable: 4512) 8 | #endif 9 | #include 10 | 11 | namespace Intl { 12 | void LanguageTable(const TableEntry* pTable); 13 | void CurrentLanguage(const Language& lang); 14 | Language CurrentLanguage(); 15 | Language SystemLanguage(); 16 | const char* GetString(int id); 17 | const char* GetStringLang(int id, Language lang); 18 | 19 | extern boost::signals2::signal OnLanguageChanged; 20 | } 21 | 22 | #ifdef _MSC_VER 23 | #pragma warning(pop) 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/Pictus/res_version.h: -------------------------------------------------------------------------------- 1 | #define PICTUS_VER_MAJOR 1 2 | #define PICTUS_VER_MINOR 7 3 | #define PICTUS_VER_REVISION 0 4 | #define PICTUS_VER_BUILD 0 5 | 6 | #define LOC_TX_(a,b,c,d) L#a#b#c#d 7 | #define LOC_TX(a,b,c,d) LOC_TX_(a,b,c,d) 8 | 9 | #define STRINGIFY2(m) #m 10 | #define STRINGIFY(m) STRINGIFY2(m) 11 | 12 | #define _WIDEN(x) L ## x 13 | #define WIDEN(x) _WIDEN(x) 14 | 15 | #define RC_FILE_VERSION PICTUS_VER_MAJOR,PICTUS_VER_MINOR,PICTUS_VER_REVISION,PICTUS_VER_BUILD 16 | #define STR_RC_FILE_VERSION WIDEN(STRINGIFY(PICTUS_VER_MAJOR)) L"." WIDEN(STRINGIFY(PICTUS_VER_MINOR)) L"." WIDEN(STRINGIFY(PICTUS_VER_REVISION)) L"." WIDEN(STRINGIFY(PICTUS_VER_BUILD)) 17 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_direct3d9_staging_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef HW3D_DIRECT3D9_STAGING_TEXTURE_H 2 | #define HW3D_DIRECT3D9_STAGING_TEXTURE_H 3 | 4 | #include "hw3d_staging_texture.h" 5 | 6 | #include 7 | #include 8 | 9 | namespace Hw3D 10 | { 11 | class Direct3D9StagingTexture : public StagingTexture 12 | { 13 | public: 14 | Lock LockRegion(const Geom::RectInt& region, bool readOnly) override; 15 | void UnlockRegion() override; 16 | 17 | IDirect3DTexture9* D3DObject(); 18 | 19 | Direct3D9StagingTexture(IDirect3DTexture9* tex, Geom::SizeInt dimensions, Format fmt); 20 | 21 | private: 22 | std::shared_ptr m_texture; 23 | }; 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /source/Pictus/resize_position_method.cpp: -------------------------------------------------------------------------------- 1 | #include "resize_position_method.h" 2 | #include 3 | 4 | namespace App { 5 | std::basic_ostream &operator<<(std::basic_ostream& in, const App::ResizePositionMethod& fmt) { 6 | switch (fmt) { 7 | case App::ResizePositionMethod::PositionToScreen: 8 | in << "PositionToScreen"; 9 | break; 10 | case App::ResizePositionMethod::PositionToCurrent: 11 | in << "PositionToCurrent"; 12 | break; 13 | case App::ResizePositionMethod::PositionNothing: 14 | in << "PositionNothing"; 15 | break; 16 | default: 17 | in << "Unknown(" << static_cast(fmt) << ")"; 18 | break; 19 | } 20 | return in; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/tools/before_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script is used by Travis CI to install the dependencies before building 4 | # wxWidgets but can also be run by hand if necessary but currently it only 5 | # works for Ubuntu 12.04 and 14.04 and OS X used by Travis builds. 6 | 7 | SUDO=sudo 8 | 9 | case $(uname -s) in 10 | Linux) 11 | if [ -f /etc/apt/sources.list ]; then 12 | $SUDO apt-get update 13 | $SUDO apt-get install -y libcppunit-dev libgtk2.0-dev libnotify-dev 14 | fi 15 | ;; 16 | 17 | Darwin) 18 | brew update 19 | brew install cppunit --universal 20 | ;; 21 | esac 22 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestList.cpp: -------------------------------------------------------------------------------- 1 | #include "TestList.h" 2 | #include "Test.h" 3 | 4 | #include 5 | 6 | namespace UnitTest { 7 | 8 | TestList::TestList() 9 | : m_head(0) 10 | , m_tail(0) 11 | { 12 | } 13 | 14 | void TestList::Add(Test* test) 15 | { 16 | if (m_tail == 0) 17 | { 18 | assert(m_head == 0); 19 | m_head = test; 20 | m_tail = test; 21 | } 22 | else 23 | { 24 | m_tail->next = test; 25 | m_tail = test; 26 | } 27 | } 28 | 29 | Test* TestList::GetHead() const 30 | { 31 | return m_head; 32 | } 33 | 34 | ListAdder::ListAdder(TestList& list, Test* test) 35 | { 36 | list.Add(test); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /source/deps/illa/imagecomposer_static.h: -------------------------------------------------------------------------------- 1 | #ifndef IMAGECOMPOSER_STATIC_H 2 | #define IMAGECOMPOSER_STATIC_H 3 | 4 | #include "imagecomposer.h" 5 | 6 | namespace Img { 7 | class StaticCodec; 8 | 9 | class ImageComposerStatic:public ImageComposer { 10 | public: 11 | ImageComposerStatic(Surface::Ptr surface, Surface::Ptr fastSurface); 12 | 13 | void UseFastSurface(bool doFastSurface); 14 | 15 | typedef std::shared_ptr Ptr; 16 | 17 | private: 18 | Surface::Ptr ComposeCurrentSurface() override; 19 | void OnRestart() override; 20 | 21 | Surface::Ptr m_surface; 22 | Surface::Ptr m_fastSurface; 23 | 24 | bool m_useFastSurface; 25 | }; 26 | } 27 | 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TestDetails.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TESTDETAILS_H 2 | #define UNITTEST_TESTDETAILS_H 3 | 4 | namespace UnitTest { 5 | 6 | class TestDetails 7 | { 8 | public: 9 | TestDetails(char const* testName, char const* suiteName, char const* filename, int lineNumber); 10 | TestDetails(const TestDetails& details, int lineNumber); 11 | 12 | char const* const suiteName; 13 | char const* const testName; 14 | char const* const filename; 15 | int const lineNumber; 16 | 17 | TestDetails(TestDetails const&); // Why is it public? --> http://gcc.gnu.org/bugs.html#cxx_rvalbind 18 | private: 19 | TestDetails& operator=(TestDetails const&); 20 | }; 21 | 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/deps/illa/imagecomposer_static.cpp: -------------------------------------------------------------------------------- 1 | #include "imagecomposer_static.h" 2 | 3 | namespace Img { 4 | Surface::Ptr ImageComposerStatic::ComposeCurrentSurface() { 5 | if(m_useFastSurface) 6 | return m_fastSurface; 7 | 8 | m_fastSurface->Deallocate(); 9 | return m_surface; 10 | } 11 | 12 | ImageComposerStatic::ImageComposerStatic(Surface::Ptr surface, Surface::Ptr fastSurface) 13 | :m_surface(surface), m_fastSurface(fastSurface), m_useFastSurface(false) 14 | {} 15 | 16 | void ImageComposerStatic::UseFastSurface( bool doFastSurface ) { 17 | m_useFastSurface = doFastSurface; 18 | SurfaceUpdated(); 19 | } 20 | 21 | void ImageComposerStatic::OnRestart() { 22 | Advance(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/DeferredTestResult.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_DEFERREDTESTRESULT_H 2 | #define UNITTEST_DEFERREDTESTRESULT_H 3 | 4 | #include 5 | #include 6 | 7 | namespace UnitTest 8 | { 9 | 10 | struct DeferredTestResult 11 | { 12 | DeferredTestResult(); 13 | DeferredTestResult(char const* suite, char const* test); 14 | 15 | std::string suiteName; 16 | std::string testName; 17 | std::string failureFile; 18 | 19 | typedef std::pair< int, std::string > Failure; 20 | typedef std::vector< Failure > FailureVec; 21 | FailureVec failures; 22 | 23 | float timeElapsed; 24 | bool failed; 25 | }; 26 | 27 | } 28 | 29 | #endif //UNITTEST_DEFERREDTESTRESULT_H 30 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_raw_16.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_BMP_RAW_16_H 2 | #define ILLA_C_BMP_RAW_16_H 3 | 4 | #include "c_bmp_decoder.h" 5 | 6 | namespace Img 7 | { 8 | namespace Internal 9 | { 10 | class BmpRawDecoder16 :public BmpDataDecoder 11 | { 12 | public: 13 | explicit BmpRawDecoder16(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream); 14 | 15 | private: 16 | bool OnProcess() override; 17 | 18 | enum class Layout { 19 | Undefined, 20 | Pix565, 21 | Pix555, 22 | Pix444 23 | }; 24 | 25 | int m_row; 26 | Layout m_layout; 27 | std::shared_ptr m_reader; 28 | }; 29 | } 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /source/Pictus/cnt_colorpreview.cpp: -------------------------------------------------------------------------------- 1 | #include "cnt_colorpreview.h" 2 | #include "wintypes.h" 3 | 4 | namespace App 5 | { 6 | BEGIN_EVENT_TABLE(ControlColorPreview, wxPanel) 7 | EVT_SYS_COLOUR_CHANGED(ControlColorPreview::OnSysColor) 8 | END_EVENT_TABLE() 9 | 10 | void ControlColorPreview::SetColor(Img::Color color) 11 | { 12 | SetBackgroundColour(Win::ColorToWx(color)); 13 | Refresh(); 14 | Update(); 15 | } 16 | 17 | ControlColorPreview::ControlColorPreview(wxWindow *parent, wxWindowID winid, const wxPoint& pos, const wxSize& size): 18 | wxPanel{parent, winid, pos, size} 19 | {} 20 | 21 | void ControlColorPreview::OnSysColor(wxSysColourChangedEvent& evt) 22 | { 23 | evt.Skip(true); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /source/Stresser/BasicThread.h: -------------------------------------------------------------------------------- 1 | #ifndef STRESSTEST_BASICTHREAD_H 2 | #define STRESSTEST_BASICTHREAD_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class BasicThread { 9 | public: 10 | void Run(); 11 | void Terminate(); 12 | 13 | BasicThread(); 14 | virtual ~BasicThread(); 15 | 16 | typedef std::shared_ptr Ptr; 17 | 18 | protected: 19 | bool IsTerminating(); 20 | void Output(const std::string& s); 21 | 22 | private: 23 | void threadWrapper(); 24 | virtual void ThreadMain(); 25 | 26 | static size_t m_idThreadCounter; 27 | std::mutex m_mutexTerm; 28 | size_t m_id; 29 | bool m_isTerminating; 30 | std::shared_ptr m_thread; 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_direct3d9_common.h: -------------------------------------------------------------------------------- 1 | #ifndef HW3D_DIRECT3D9_COMMON_H 2 | #define HW3D_DIRECT3D9_COMMON_H 3 | 4 | #include "orz/geom.h" 5 | #include 6 | #include "hw3d_types.h" 7 | #include "orz/matrix.h" 8 | 9 | namespace Hw3D 10 | { 11 | Geom::RectInt RECTToRect(const RECT& rect); 12 | RECT RectToRECT(const Geom::RectInt& rect); 13 | POINT PointToPOINT(const Geom::PointInt& point); 14 | 15 | D3DMATRIX MatrixToD3DMATRIX(const Matrix& m); 16 | 17 | D3DFORMAT ConvertFormat(Hw3D::Format fmt); 18 | D3DPOOL ConvertPool(Hw3D::Pool pool); 19 | 20 | 21 | template void ComRelease(T* obj) 22 | { 23 | if (obj != nullptr) 24 | { 25 | obj->Release(); 26 | } 27 | } 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/Posix/TimeHelpers.cpp: -------------------------------------------------------------------------------- 1 | #include "TimeHelpers.h" 2 | #include 3 | 4 | namespace UnitTest { 5 | 6 | Timer::Timer() 7 | { 8 | m_startTime.tv_sec = 0; 9 | m_startTime.tv_usec = 0; 10 | } 11 | 12 | void Timer::Start() 13 | { 14 | gettimeofday(&m_startTime, 0); 15 | } 16 | 17 | 18 | int Timer::GetTimeInMs() const 19 | { 20 | struct timeval currentTime; 21 | gettimeofday(¤tTime, 0); 22 | int const dsecs = currentTime.tv_sec - m_startTime.tv_sec; 23 | int const dus = currentTime.tv_usec - m_startTime.tv_usec; 24 | return dsecs*1000 + dus/1000; 25 | } 26 | 27 | 28 | void TimeHelpers::SleepMs (int ms) 29 | { 30 | usleep(ms * 1000); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_TEXTURE_H 2 | #define PICTUS_HW3D_TEXTURE_H 3 | 4 | #include 5 | #include 6 | #include "hw3d_types.h" 7 | #include "orz/geom.h" 8 | 9 | namespace Hw3D { 10 | class Texture { 11 | public: 12 | /* struct Lock { 13 | uint8_t* Buffer; 14 | size_t Pitch; 15 | }; 16 | 17 | virtual Lock LockRegion(const Geom::RectInt& region, bool readOnly)=0; 18 | virtual void UnlockRegion()=0;*/ 19 | 20 | Geom::SizeInt GetSize(); 21 | 22 | Format D3DFormat(); 23 | 24 | Texture(Geom::SizeInt dimensions, Format fmt); 25 | virtual ~Texture()=default; 26 | 27 | private: 28 | Geom::SizeInt m_size; 29 | Format m_format; 30 | }; 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /source/Pictus/reg_mouse_action_translator.cpp: -------------------------------------------------------------------------------- 1 | #include "reg_mouse_action_translator.h" 2 | #include "orz/types.h" 3 | 4 | namespace Reg { 5 | namespace Internal { 6 | boost::optional MouseActionTranslator::get_value(internal_type const sval) { 7 | auto val = FromAString(sval); 8 | 9 | if (val < 0 || val > static_cast(App::MouseAction::MouseUndefined)) { 10 | return App::MouseAction::MouseDisable; 11 | } 12 | 13 | return static_cast(val); 14 | } 15 | 16 | boost::optional MouseActionTranslator::put_value(external_type const& val) { 17 | return ToAString(static_cast(val)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /source/deps/illa/psd_header.h: -------------------------------------------------------------------------------- 1 | #ifndef PSD_HEADER_H 2 | #define PSD_HEADER_H 3 | 4 | #include "orz/file_reader.h" 5 | 6 | namespace Img { 7 | namespace Internal { 8 | class PsdHeader { 9 | public: 10 | enum ColorModes { 11 | ColorModeBitmap = 0, 12 | ColorModeGrayscale = 1, 13 | ColorModeIndexed = 2, 14 | ColorModeRgb = 3, 15 | ColorModeCMYK = 4, 16 | ColorModeMultiChannel = 7, 17 | ColorModeDuotone = 8, 18 | ColorModeLab = 9 19 | }; 20 | 21 | char Signature[4]; 22 | ColorModes ColorMode; 23 | uint16_t Channels; 24 | uint16_t BitsPerChannel; 25 | uint32_t Height, Width; 26 | 27 | bool ReadHeader(IO::FileReader::Ptr file); 28 | }; 29 | } 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /source/deps/illa/surface_locked_area.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_SURFACE_LOCKED_AREA_H 2 | #define ILLA_SURFACE_LOCKED_AREA_H 3 | 4 | #include "surface.h" 5 | 6 | namespace Img { 7 | class Surface::LockedArea { 8 | public: 9 | size_t Stride() const; 10 | uint8_t* Buffer(); 11 | size_t Size() const; 12 | 13 | void Unlock(); 14 | 15 | LockedArea(Surface* surface, uint8_t* buffer, const Geom::RectInt& rect, LockMethod isReadOnly, size_t stride); 16 | ~LockedArea(); 17 | 18 | typedef std::shared_ptr Ptr; 19 | 20 | private: 21 | Geom::RectInt m_rectLocked; 22 | uint8_t* m_buffer; 23 | size_t m_stride; 24 | LockMethod m_method; 25 | Surface* m_surface; 26 | bool m_isLocked; 27 | }; 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_staging_texture.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_STAGING_TEXTURE_H 2 | #define PICTUS_HW3D_STAGING_TEXTURE_H 3 | 4 | #include 5 | #include 6 | #include "hw3d_types.h" 7 | #include "orz/geom.h" 8 | 9 | namespace Hw3D 10 | { 11 | class StagingTexture 12 | { 13 | public: 14 | struct Lock { 15 | uint8_t* Buffer; 16 | size_t Pitch; 17 | }; 18 | 19 | virtual Lock LockRegion(const Geom::RectInt& region, bool readOnly)=0; 20 | virtual void UnlockRegion()=0; 21 | 22 | Geom::SizeInt GetSize(); 23 | 24 | Format D3DFormat(); 25 | 26 | StagingTexture(Geom::SizeInt dimensions, Format fmt); 27 | 28 | private: 29 | Geom::SizeInt m_size; 30 | Format m_format; 31 | }; 32 | } 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/Test.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_TEST_H 2 | #define UNITTEST_TEST_H 3 | 4 | #include "TestDetails.h" 5 | 6 | namespace UnitTest { 7 | 8 | class TestResults; 9 | class TestList; 10 | 11 | class Test 12 | { 13 | public: 14 | explicit Test(char const* testName, char const* suiteName = "DefaultSuite", char const* filename = "", int lineNumber = 0); 15 | virtual ~Test(); 16 | void Run(); 17 | 18 | TestDetails const m_details; 19 | Test* next; 20 | mutable bool m_timeConstraintExempt; 21 | 22 | static TestList& GetTestList(); 23 | 24 | virtual void RunImpl() const; 25 | 26 | private: 27 | Test(Test const&); 28 | Test& operator =(Test const&); 29 | }; 30 | 31 | 32 | } 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /source/MetadataTest/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "main.h" 6 | #include "orz/types.h" 7 | 8 | std::string g_datapath; 9 | 10 | int realMain(std::string path) 11 | { 12 | std::locale::global(boost::locale::generator().generate("")); 13 | boost::filesystem::path::imbue(std::locale()); 14 | g_datapath = path; 15 | 16 | return UnitTest::RunAllTests(); 17 | } 18 | 19 | 20 | #ifdef _WIN32 21 | int wmain(int argc, wchar_t* argv[]) { 22 | if(argc < 2) return 1; 23 | return realMain(WStringToUTF8(argv[1])); 24 | } 25 | #else 26 | int main(int argc, char* argv[]) { 27 | if(argc < 2) return 1; 28 | return realMain(argv[1]);; 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /source/Pictus/cnt_color_hls.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_CNT_COLOR_HLS_H 2 | #define PICTUS_CNT_COLOR_HLS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | wxDECLARE_EVENT(COLOR_CHANGED_HLS, wxCommandEvent); 10 | 11 | namespace App 12 | { 13 | class ControlColorHls:public wxPanel 14 | { 15 | public: 16 | ControlColorHls(wxWindow *parent, wxWindowID winid); 17 | 18 | void SetHls(Img::HLSTriplet col); 19 | Img::HLSTriplet GetHls(); 20 | 21 | private: 22 | wxSpinCtrl *m_h, *m_l, *m_s; 23 | 24 | void OnChange(wxSpinEvent& evt); 25 | 26 | enum 27 | { 28 | HId, 29 | LId, 30 | SId 31 | }; 32 | 33 | DECLARE_EVENT_TABLE() 34 | }; 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_staging_texture_simple.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_OPENGL_STAGING_TEXTURE_SIMPLE_H 2 | #define PICTUS_HW3D_OPENGL_STAGING_TEXTURE_SIMPLE_H 3 | 4 | #include "hw3d_opengl_staging_texture.h" 5 | 6 | namespace Hw3D 7 | { 8 | class OpenGlStagingTextureSimple:public OpenGlStagingTexture 9 | { 10 | public: 11 | Lock LockRegion(const Geom::RectInt& region, bool readOnly) override; 12 | void UnlockRegion() override; 13 | 14 | void Transfer(Geom::RectInt sourceRect, Geom::PointInt targetTopLeft) override; 15 | 16 | OpenGlStagingTextureSimple(Geom::SizeInt dimensions, Format fmt); 17 | ~OpenGlStagingTextureSimple(); 18 | 19 | private: 20 | std::vector m_textureDataNonPBO; 21 | }; 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/Pictus/cnt_color_rgb.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_CNT_COLOR_RGB_H 2 | #define PICTUS_CNT_COLOR_RGB_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | wxDECLARE_EVENT(COLOR_CHANGED_RGB, wxCommandEvent); 10 | 11 | namespace App 12 | { 13 | class ControlColorRgb:public wxPanel 14 | { 15 | public: 16 | ControlColorRgb(wxWindow *parent, wxWindowID winid); 17 | 18 | void SetRGB(Img::Color col); 19 | Img::Color GetRGB(); 20 | 21 | private: 22 | wxSpinCtrl *m_r, *m_g, *m_b; 23 | 24 | void OnChange(wxSpinEvent& evt); 25 | 26 | enum 27 | { 28 | RId = wxID_HIGHEST + 1, 29 | GId, 30 | BId 31 | }; 32 | 33 | DECLARE_EVENT_TABLE() 34 | }; 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /source/deps/orz/fileops.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_FILEOPS_H 2 | #define ORZ_FILEOPS_H 3 | 4 | #include 5 | 6 | #include 7 | 8 | namespace IO { 9 | bool DoFileExist(const std::string& files); 10 | bool DoPathExist(const std::string& file); 11 | 12 | bool FileDelete(const std::string& file, wxWindow* parent); 13 | bool FileRecycle(const std::string& file, wxWindow* parent); 14 | std::string Rename(const std::string& old_name, const std::string& new_name, wxWindow* parent); 15 | 16 | bool SupportRecycle(); 17 | 18 | std::string GetPath(const std::string& s); 19 | std::string GetFile(const std::string& s); 20 | std::string GetTitle(const std::string& s); 21 | std::string GetExtension(const std::string& s); 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /source/Pictus/hw3d_opengl_staging_texture_pbo.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_HW3D_OPENGL_STAGING_TEXTURE_PBO_H 2 | #define PICTUS_HW3D_OPENGL_STAGING_TEXTURE_PBO_H 3 | 4 | #include "hw3d_opengl_staging_texture.h" 5 | 6 | namespace Hw3D 7 | { 8 | class OpenGlStagingTexturePbo:public OpenGlStagingTexture 9 | { 10 | public: 11 | StagingTexture::Lock LockRegion(const Geom::RectInt& region, bool readOnly) override; 12 | void UnlockRegion() override; 13 | 14 | void Transfer(Geom::RectInt sourceRect, Geom::PointInt destTopLeft) override; 15 | 16 | OpenGlStagingTexturePbo(Geom::SizeInt dimensions, Format fmt); 17 | ~OpenGlStagingTexturePbo(); 18 | 19 | private: 20 | GLuint m_bufferObject; 21 | Geom::RectInt m_lockedArea; 22 | }; 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/deps/Metadata/Exif_IO.h: -------------------------------------------------------------------------------- 1 | #ifndef METADATA_EXIF_IO_H 2 | #define METADATA_EXIF_IO_H 3 | 4 | #include 5 | #include "../orz/file_reader.h" 6 | #include "Exif_Types.h" 7 | 8 | namespace Metadata { 9 | namespace Exif { 10 | uint16_t ReadUint16(IO::FileReader::Ptr ms, ByteOrder o, size_t position); 11 | uint16_t ReadUint16(IO::FileReader::Ptr ms, ByteOrder o); 12 | uint32_t ReadUint32(IO::FileReader::Ptr ms, ByteOrder o); 13 | uint16_t FirstUint16(uint32_t data, ByteOrder o); 14 | uint16_t SecondUint16(uint32_t data, ByteOrder o); 15 | std::string ReadAscii(IO::FileReader::Ptr ms, size_t offset, size_t components); 16 | Metadata::Rational ReadRational(IO::FileReader::Ptr ms, ByteOrder o, size_t position); 17 | } 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /source/deps/illa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.8) 2 | 3 | find_package(PNG REQUIRED) 4 | find_package(TIFF REQUIRED) 5 | find_package(ZLIB REQUIRED) 6 | find_package(WebP REQUIRED) 7 | find_package(JPEG REQUIRED) 8 | 9 | FILE(GLOB ALL_HEADER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) 10 | FILE(GLOB ALL_CPP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) 11 | 12 | include_directories(${DEPS_DIRECTORY} ${PNG_INCLUDE_DIRS} ${TIFF_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${WEBP_INCLUDE_DIRS} ${JPEG_INCLUDE_DIRS}) 13 | 14 | add_library(illa STATIC ${ALL_CPP_SRCS} ${ALL_HEADER_SRCS}) 15 | target_link_libraries(illa orz tiff jpeg png webp webpdemux Metadata ${Boost_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} ${ZLIB_LIBRARIES} ${WEBP_LIBRARIES} ${JPEG_LIBRARIES}) 16 | -------------------------------------------------------------------------------- /source/deps/illa/color_io.h: -------------------------------------------------------------------------------- 1 | #ifndef COLOR_IO_H 2 | #define COLOR_IO_H 3 | 4 | #include "orz/file_reader.h" 5 | #include "types.h" 6 | 7 | namespace Img { 8 | Img::Color LoadRGB(IO::FileReader& file); 9 | Img::Color LoadBGR(IO::FileReader& file); 10 | Img::Color LoadBGRA(IO::FileReader& file); 11 | Img::Color LoadBGRX(IO::FileReader& file); 12 | 13 | template 14 | void LoadPalette(Img::Palette& pal, IO::FileReader& file, unsigned firstEntry, unsigned numEntries, Fn func) { 15 | if ((firstEntry + numEntries) > 256) { 16 | DO_THROW(Err::InvalidParam, "Color count out of bounds (> 255)"); 17 | } 18 | 19 | for(unsigned i = 0; i < numEntries; i++) { 20 | pal.Color(firstEntry + i, func(file)); 21 | } 22 | } 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/AssertException.cpp: -------------------------------------------------------------------------------- 1 | #include "AssertException.h" 2 | #include 3 | 4 | namespace UnitTest { 5 | 6 | AssertException::AssertException(char const* description, char const* filename, int lineNumber) 7 | : m_lineNumber(lineNumber) 8 | { 9 | using namespace std; 10 | 11 | strcpy(m_description, description); 12 | strcpy(m_filename, filename); 13 | } 14 | 15 | AssertException::~AssertException() throw() 16 | { 17 | } 18 | 19 | char const* AssertException::what() const throw() 20 | { 21 | return m_description; 22 | } 23 | 24 | char const* AssertException::Filename() const 25 | { 26 | return m_filename; 27 | } 28 | 29 | int AssertException::LineNumber() const 30 | { 31 | return m_lineNumber; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /source/deps/illa/c_tiff.h: -------------------------------------------------------------------------------- 1 | #ifndef C_TIFF_H 2 | #define C_TIFF_H 3 | 4 | #include "codec_static.h" 5 | #include "types.h" 6 | 7 | #include "tiff_loader.h" 8 | 9 | namespace Img { 10 | class CodecTIFF:public StaticCodec { 11 | public: 12 | ~CodecTIFF(); 13 | 14 | private: 15 | bool PerformLoadHeader(IO::FileReader::Ptr file, ImageInfo& info) override; 16 | AllocationStatus PerformAllocate() override; 17 | LoadStatus PerformLoadImageData(IO::FileReader::Ptr file) override; 18 | 19 | private: 20 | void endImageIO(); 21 | 22 | private: 23 | TIFF* m_tiff = nullptr; 24 | uint16_t m_photometric = 0; 25 | 26 | TiffLoader::Ptr m_loader; 27 | TiffDataConverter::Ptr m_converter; 28 | 29 | Img::Palette m_palette; 30 | }; 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /source/deps/illa/color_io.cpp: -------------------------------------------------------------------------------- 1 | #include "color_io.h" 2 | 3 | namespace Img { 4 | Color LoadRGB(IO::FileReader& file) { 5 | uint8_t chans[3]; 6 | file.ReadFull(chans, 3); 7 | return Img::Color(255, chans[0], chans[1], chans[2]); 8 | } 9 | 10 | Color LoadBGR(IO::FileReader& file) { 11 | uint8_t chans[3]; 12 | file.ReadFull(chans, 3); 13 | return Img::Color(255, chans[2], chans[1], chans[0]); 14 | } 15 | 16 | Color LoadBGRA(IO::FileReader& file) { 17 | uint8_t chans[4]; 18 | file.ReadFull(chans, 4); 19 | return Img::Color(chans[3], chans[2], chans[1], chans[0]); 20 | } 21 | 22 | Color LoadBGRX(IO::FileReader& file) { 23 | uint8_t chans[4]; 24 | file.ReadFull(chans, 4); 25 | return Img::Color(255, chans[2], chans[1], chans[0]); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/aclocal/gst-element-check.m4: -------------------------------------------------------------------------------- 1 | dnl Perform a check for a GStreamer element using gst-inspect 2 | dnl Thomas Vander Stichele 3 | dnl Last modification: 25/01/2005 4 | 5 | dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND) 6 | 7 | AC_DEFUN([AM_GST_ELEMENT_CHECK], 8 | [ 9 | if test "x$GST_INSPECT" == "x"; then 10 | AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, []) 11 | fi 12 | 13 | if test "x$GST_INSPECT" != "x"; then 14 | AC_MSG_CHECKING(GStreamer element $1) 15 | if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then 16 | AC_MSG_RESULT(found.) 17 | $2 18 | else 19 | AC_MSG_RESULT(not found.) 20 | $3 21 | fi 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /source/LoadTest/LoadTest.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | 14 | 15 | Source Files 16 | 17 | 18 | -------------------------------------------------------------------------------- /source/FilterTest/FilterTest.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | 14 | 15 | Source Files 16 | 17 | 18 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp.h: -------------------------------------------------------------------------------- 1 | #ifndef C_BMP_H 2 | #define C_BMP_H 3 | 4 | #include "codec_static.h" 5 | #include "types.h" 6 | #include "bmp_fileheader.h" 7 | #include "bmp_header.h" 8 | #include "c_bmp_decoder.h" 9 | 10 | #include 11 | 12 | namespace Img { 13 | class Surface; 14 | 15 | class CodecBMP:public StaticCodec { 16 | public: 17 | CodecBMP(); 18 | 19 | private: 20 | bool PerformLoadHeader(IO::FileReader::Ptr file, ImageInfo& info) override; 21 | AllocationStatus PerformAllocate() override; 22 | LoadStatus PerformLoadImageData(IO::FileReader::Ptr file) override; 23 | 24 | private: 25 | Internal::BMPFileHeader m_bfh; 26 | Internal::BMPHeader m_header; 27 | 28 | std::shared_ptr m_dec; 29 | }; 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_decoder.cpp: -------------------------------------------------------------------------------- 1 | #include "c_bmp_decoder.h" 2 | 3 | namespace Img 4 | { 5 | namespace Internal 6 | { 7 | using namespace Geom; 8 | 9 | bool BmpDataDecoder::Process() 10 | { 11 | return OnProcess(); 12 | } 13 | 14 | BmpDataDecoder::BmpDataDecoder(std::shared_ptr destination, const BMPHeader& header): 15 | m_header{ header }, 16 | m_destination{ destination } 17 | { 18 | 19 | } 20 | 21 | std::shared_ptr BmpDataDecoder::GetScanlinePtr(int row) 22 | { 23 | if (m_header.FlipVertical) 24 | { 25 | row = m_destination->Height() - row - 1; 26 | } 27 | return m_destination->LockSurface({ PointInt{0, row}, SizeInt{m_destination->Width(), 1} }, Img::LockReadWrite); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /source/deps/illa/c_factory.h: -------------------------------------------------------------------------------- 1 | #ifndef ILLA_C_FACTORY_H 2 | #define ILLA_C_FACTORY_H 3 | 4 | #include "types.h" 5 | #include 6 | #include 7 | 8 | namespace Img { 9 | class AbstractCodec; 10 | 11 | class ICodecFactory { 12 | public: 13 | typedef std::vector ExtensionList; 14 | 15 | public: 16 | const ExtensionList& SupportedExtensions() const; 17 | 18 | const std::string& GetFormatName() const; 19 | 20 | virtual AbstractCodec* CreateCodec()=0; 21 | 22 | ICodecFactory(const std::string& name):m_name(name) {} 23 | virtual ~ICodecFactory() {} 24 | 25 | protected: 26 | void AddExtension(const std::string& extension); 27 | 28 | private: 29 | ExtensionList m_extensions; 30 | std::string m_name; 31 | }; 32 | } 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /source/Pictus/reg_zoom_mode_translator.cpp: -------------------------------------------------------------------------------- 1 | #include "reg_zoom_mode_translator.h" 2 | 3 | namespace Reg { 4 | namespace Internal { 5 | boost::optional ZoomModeTranslator::get_value(internal_type const sval) { 6 | if (sval == "0") return App::ZoomFree; 7 | if (sval == "1") return App::ZoomFitImage; 8 | if (sval == "2") return App::ZoomFullSize; 9 | 10 | auto it = App::ZoomModeIdentifier.left.find(sval); 11 | if (it != App::ZoomModeIdentifier.left.end()) { 12 | return it->second; 13 | } 14 | return boost::none; 15 | } 16 | 17 | boost::optional ZoomModeTranslator::put_value(external_type const& val) { 18 | return App::ZoomModeIdentifier.right.find(val)->second; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /source/deps/illa/c_bmp_raw_8.cpp: -------------------------------------------------------------------------------- 1 | #include "c_bmp_raw_8.h" 2 | #include "illa/surface_locked_area.h" 3 | 4 | namespace Img 5 | { 6 | namespace Internal 7 | { 8 | 9 | BmpRawDecoder8::BmpRawDecoder8(std::shared_ptr destination, const BMPHeader& header, std::shared_ptr fileStream) : 10 | BmpDataDecoder{ destination, header }, 11 | m_reader{ fileStream }, 12 | m_row{ 0 } 13 | { 14 | 15 | } 16 | 17 | bool BmpRawDecoder8::OnProcess() 18 | { 19 | auto bytes = m_header.Size.Width * m_header.ColorDepth / 8; 20 | auto area = GetScanlinePtr(m_row++); 21 | m_reader->ReadFull(area->Buffer(), bytes); 22 | m_reader->Seek(m_header.ScanPadding, IO::SeekMethod::Current); 23 | return m_row == m_header.Size.Height; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source/Pictus/ic_queue.cpp: -------------------------------------------------------------------------------- 1 | #include "ic_queue.h" 2 | 3 | namespace Img { 4 | void ImageQueue::CacheImage(const ImageList& imagesToProcess) { 5 | std::lock_guard l(m_mxPackageList); 6 | m_workPackages = imagesToProcess; 7 | } 8 | 9 | void ImageQueue::RemoveImage(Image* image) { 10 | std::lock_guard l(m_mxPackageList); 11 | auto i = std::find(m_workPackages.begin(), m_workPackages.end(), image); 12 | if(i != m_workPackages.end()) 13 | m_workPackages.erase(i); 14 | } 15 | 16 | void ImageQueue::Reset() { 17 | std::lock_guard l(m_mxPackageList); 18 | m_workPackages.clear(); 19 | } 20 | 21 | Img::ImageList ImageQueue::GetImageList() { 22 | std::lock_guard l(m_mxPackageList); 23 | 24 | return m_workPackages; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source/Pictus/settings_page.h: -------------------------------------------------------------------------------- 1 | #ifndef SETTINGS_PAGE_H 2 | #define SETTINGS_PAGE_H 3 | 4 | #include "appreg.h" 5 | 6 | #include 7 | 8 | namespace App 9 | { 10 | class SettingsPage : public wxPanel 11 | { 12 | public: 13 | virtual std::string Caption()=0; 14 | virtual bool IsRootPage() const; 15 | 16 | void UpdateFromSettings(const Reg::Settings &settings); 17 | void WriteSettings(Reg::Settings &settings); 18 | 19 | SettingsPage(wxWindow* parent); 20 | virtual ~SettingsPage(); 21 | 22 | private: 23 | //bool PerformOnInitDialog() override; 24 | virtual void PerformUpdateFromSettings(const Reg::Settings &settings)=0; 25 | //virtual bool PerformOnInitPage() = 0; 26 | virtual void onWriteSettings(Reg::Settings &settings) = 0; 27 | }; 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Pictus 2 | 3 | **! Pictus is no longer developed. Consider looking for alternatives !** 4 | 5 | Pictus is a free image viewer. It is designed to be fast and simple to use while avoiding to waste precious screen space. 6 | 7 | [![Build Status](https://travis-ci.org/poppeman/Pictus.svg?branch=master)](https://travis-ci.org/poppeman/Pictus) 8 | [![Coverity Scan Build Status](https://scan.coverity.com/projects/10278/badge.svg)](https://scan.coverity.com/projects/poppeman-pictus) 9 | [![Codecov status](https://codecov.io/github/poppeman/Pictus/coverage.svg?branch=master)](https://codecov.io/gh/poppeman/Pictus) 10 | ## Install 11 | 12 | Pre-compiled releases are available for download on [GitHub](https://github.com/poppeman/Pictus/releases) and at [poppeman.se/pictus/](https://poppeman.se/pictus/). 13 | -------------------------------------------------------------------------------- /source/Pictus/viewer_contextmenu.h: -------------------------------------------------------------------------------- 1 | #ifndef VIEWER_CONTEXTMENU_H 2 | #define VIEWER_CONTEXTMENU_H 3 | 4 | #include "actionmap.h" 5 | #include "app_types.h" 6 | 7 | #include 8 | 9 | namespace App 10 | { 11 | class Viewer; 12 | 13 | class ViewerContextMenu:public wxMenu 14 | { 15 | public: 16 | void Zoomed(bool fullSize); 17 | void FitImage(); 18 | 19 | void Construct(Viewer*v); 20 | 21 | ViewerContextMenu(); 22 | ~ViewerContextMenu(); 23 | 24 | private: 25 | void OnMenu(wxCommandEvent &evt); 26 | 27 | wxMenu* DoAddSubMenu(StringID label); 28 | 29 | wxMenuItem *m_zoomFitImage = nullptr, *m_zoomFullSize = nullptr; 30 | 31 | typedef ActionMapNoParam MenuActionMap; 32 | MenuActionMap m_menuMap; 33 | 34 | DECLARE_EVENT_TABLE() 35 | }; 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/DeferredTestReporter.h: -------------------------------------------------------------------------------- 1 | #ifndef UNITTEST_DEFERREDTESTREPORTER_H 2 | #define UNITTEST_DEFERREDTESTREPORTER_H 3 | 4 | #include "TestReporter.h" 5 | #include "DeferredTestResult.h" 6 | 7 | #include 8 | 9 | namespace UnitTest 10 | { 11 | 12 | class DeferredTestReporter : public TestReporter 13 | { 14 | public: 15 | virtual void ReportTestStart(TestDetails const& details); 16 | virtual void ReportFailure(TestDetails const& details, char const* failure); 17 | virtual void ReportTestFinish(TestDetails const& details, float secondsElapsed); 18 | 19 | typedef std::vector< DeferredTestResult > DeferredTestResultList; 20 | DeferredTestResultList& GetResults(); 21 | 22 | private: 23 | DeferredTestResultList m_results; 24 | }; 25 | 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_loader.h: -------------------------------------------------------------------------------- 1 | #ifndef TIFF_LOADER_H 2 | #define TIFF_LOADER_H 3 | 4 | #include "surface.h" 5 | #include "tiff_converter.h" 6 | #include "types.h" 7 | 8 | namespace Img { 9 | enum class TiffChunkStatus { 10 | ChunksRemaining, 11 | Finished, 12 | Error 13 | }; 14 | 15 | class TiffLoader { 16 | public: 17 | void Create(TIFF* tiff, Surface::Ptr surface, TiffDataConverter::Ptr converter); 18 | TiffChunkStatus LoadChunk(); 19 | 20 | virtual ~TiffLoader()=0; 21 | 22 | typedef std::shared_ptr Ptr; 23 | 24 | protected: 25 | TIFF* m_tiff; 26 | TiffDataConverter::Ptr m_converter; 27 | Surface::Ptr m_surface; 28 | 29 | private: 30 | virtual void PerformOnCreate()=0; 31 | virtual TiffChunkStatus PerformLoadChunk() = 0; 32 | }; 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /source/deps/orz/stream_mem.h: -------------------------------------------------------------------------------- 1 | #ifndef ORZ_STREAM_MEM_H 2 | #define ORZ_STREAM_MEM_H 3 | 4 | #include "stream.h" 5 | #include 6 | 7 | namespace IO { 8 | class StreamMemory:public Stream { 9 | public: 10 | StreamMemory(uint8_t* buffer, size_t size); 11 | 12 | private: 13 | std::string performName() const; 14 | bool performOpen(); 15 | bool performIsOpen() const; 16 | void performClose(); 17 | size_t performRead(void* buf, size_t size, size_t items); 18 | void performSeek(FileInt position, SeekMethod m); 19 | FileInt performPosition() const; 20 | FileInt performSize(); 21 | 22 | mutable std::recursive_mutex m_mutexAccess; 23 | 24 | uint8_t* m_data = nullptr; 25 | FileInt m_size = 0; 26 | FileInt m_pos = 0; 27 | bool m_isOpen = false; 28 | }; 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /source/deps/illa/tiff_converter.cpp: -------------------------------------------------------------------------------- 1 | #include "tiff_converter.h" 2 | #include 3 | 4 | namespace Img { 5 | void TiffDataConverter::Create(TIFF* tiff, Format dataFormat) { 6 | m_tiff = tiff; 7 | m_format = dataFormat; 8 | PerformCreate(); 9 | } 10 | 11 | uint8_t* TiffDataConverter::RequestDestinationBuffer( size_t bytes ) { 12 | uint8_t* buffer = PerformRequestDestinationBuffer(bytes); 13 | memset(buffer, 0, bytes); 14 | return buffer; 15 | } 16 | 17 | uint8_t* TiffDataConverter::ReleaseDestinationBuffer( unsigned int widthInPixels, size_t bytesUsed, size_t* expandedSize ) { 18 | return PerformReleaseDestinationBuffer(widthInPixels, bytesUsed, expandedSize); 19 | } 20 | 21 | void TiffDataConverter::PerformCreate() {} 22 | 23 | TiffDataConverter::~TiffDataConverter() {} 24 | } 25 | -------------------------------------------------------------------------------- /source/illaTest/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "illa/surfacemgr.h" 4 | #include "illa/swsurface.h" 5 | 6 | #include 7 | #include 8 | 9 | std::string g_datapath; 10 | 11 | int realMain(std::string path) { 12 | std::locale::global(boost::locale::generator().generate("")); 13 | boost::filesystem::path::imbue(std::locale()); 14 | g_datapath = path; 15 | Img::SurfaceFactory(new Img::FactorySurfaceSoftware); 16 | 17 | return UnitTest::RunAllTests(); 18 | } 19 | 20 | #ifdef _WIN32 21 | int wmain(int argc, wchar_t* argv[]) { 22 | if(argc < 2) return 1; 23 | return realMain(WStringToUTF8(argv[1])); 24 | } 25 | #else 26 | int main(int argc, char* argv[]) { 27 | if(argc < 2) return 1; 28 | return realMain(argv[1]);; 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /source/pictustest/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "illa/surfacemgr.h" 6 | #include "illa/swsurface.h" 7 | 8 | std::string g_datapath; 9 | 10 | 11 | int realMain(std::string path) { 12 | std::locale::global(boost::locale::generator().generate("")); 13 | boost::filesystem::path::imbue(std::locale()); 14 | g_datapath = path; 15 | Img::SurfaceFactory(new Img::FactorySurfaceSoftware); 16 | 17 | return UnitTest::RunAllTests(); 18 | } 19 | 20 | #ifdef _WIN32 21 | int wmain(int argc, wchar_t* argv[]) { 22 | if(argc < 2) return 1; 23 | return realMain(WStringToUTF8(argv[1])); 24 | } 25 | #else 26 | int main(int argc, char* argv[]) { 27 | if(argc < 2) return 1; 28 | return realMain(argv[1]);; 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/msw/wx_custom_build.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {63537534-1833-5C1F-8DBD-359A84F294C8} 6 | 7 | 8 | {5AFFF20E-29F9-512B-B80A-7DC45976CDAC} 9 | 10 | 11 | 12 | 13 | MSW Headers 14 | 15 | 16 | Setup Headers 17 | 18 | 19 | -------------------------------------------------------------------------------- /source/Pictus/reg_color_translator.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTUS_REG_COLOR_TRANSLATOR_H 2 | #define PICTUS_REG_COLOR_TRANSLATOR_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "../deps/illa/types.h" 8 | 9 | namespace Reg { 10 | namespace Internal { 11 | struct ColorTranslator { 12 | typedef std::string internal_type; 13 | typedef Img::Color external_type; 14 | boost::optional get_value(internal_type const sval); 15 | boost::optional put_value(external_type const& val); 16 | }; 17 | } 18 | } 19 | 20 | namespace boost{ 21 | namespace property_tree{ 22 | template<> struct translator_between { typedef Reg::Internal::ColorTranslator type; }; 23 | } 24 | } 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /source/3rdparty/wxWidgets/src/custom_build/msw/wx_config.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | Unicode 6 | 10.0 7 | v100 8 | v110 9 | v120 10 | v140 11 | 12 | 13 | -------------------------------------------------------------------------------- /source/deps/UnitTest++/TimeConstraint.cpp: -------------------------------------------------------------------------------- 1 | #include "TimeConstraint.h" 2 | #include "TestResults.h" 3 | #include "MemoryOutStream.h" 4 | #include "CurrentTest.h" 5 | 6 | namespace UnitTest { 7 | 8 | 9 | TimeConstraint::TimeConstraint(int ms, TestDetails const& details) 10 | : m_details(details) 11 | , m_maxMs(ms) 12 | { 13 | m_timer.Start(); 14 | } 15 | 16 | TimeConstraint::~TimeConstraint() 17 | { 18 | int const totalTimeInMs = m_timer.GetTimeInMs(); 19 | if (totalTimeInMs > m_maxMs) 20 | { 21 | MemoryOutStream stream; 22 | stream << "Time constraint failed. Expected to run test under " << m_maxMs << 23 | "ms but took " << totalTimeInMs << "ms."; 24 | 25 | UnitTest::CurrentTest::Results()->OnTestFailure(m_details, stream.GetText()); 26 | } 27 | } 28 | 29 | } 30 | --------------------------------------------------------------------------------