LIBEUNOMIA
読み取り中…
検索中…
一致する文字列を見つけられません
jpegio.h
[詳解]
1/*
2 * Copyright 2002-2021 oZ/acy (名賀月晃嗣)
3 * Redistribution and use in source and binary forms,
4 * with or without modification,
5 * are permitted provided that the following conditions are met:
6 *
7 * 1. Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.
9 *
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 */
35#ifndef INCLUDE_GUARD_EUNOMIA_JPEG_INPUT_OUTPUT_H
36#define INCLUDE_GUARD_EUNOMIA_JPEG_INPUT_OUTPUT_H
37
38#include <filesystem>
39#include "picture.h"
40
41
42namespace eunomia
43{
54std::unique_ptr<Picture> loadJpeg(const std::filesystem::path& path) noexcept;
55
66bool
68 const Picture& pict, const std::filesystem::path& path,
69 bool prog = false, int quality = 75) noexcept;
70
71
72}// end of namespace eunomia
73
74
75
76
77#endif // INCLUDE_GUARD_EUNOMIA_JPEG_INPUT_OUTPUT_H
Definition colour.h:49
bool saveJpeg(const Picture &pict, const std::filesystem::path &path, bool prog=false, int quality=75) noexcept
JPEGファイルの保存
Definition jpegout.cpp:61
std::unique_ptr< Picture > loadJpeg(const std::filesystem::path &path) noexcept
JPEGファイルの讀み込み
Definition jpegin.cpp:59
RGB24bitの畫像バッファクラス