MeshLib C Docs
Loading...
Searching...
No Matches
MRJpeg.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Image MR_Image; // Defined in `#include <MRCMesh/MRImage.h>`.
13typedef struct MR_expected_MR_Image_std_string MR_expected_MR_Image_std_string; // Defined in `#include <MRCMisc/expected_MR_Image_std_string.h>`.
14typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
15typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
16
17
24MRC_API MR_expected_MR_Image_std_string *MR_ImageLoad_fromJpeg_2_std_filesystem_path(const char *path, const char *path_end, const bool *ignoreDecompressErrors);
25
31
35MRC_API MR_expected_MR_Image_std_string *MR_ImageLoad_fromJpeg_3(const char *data, MR_uint64_t size, const bool *ignoreDecompressErrors);
36
42MRC_API MR_expected_void_std_string *MR_ImageSave_toJpeg(const MR_Image *image, const char *path, const char *path_end);
43
44#ifdef __cplusplus
45} // extern "C"
46#endif
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:26
struct MR_std_istream MR_std_istream
Definition MRCtm.h:28
MRC_API MR_expected_MR_Image_std_string * MR_ImageLoad_fromJpeg_2_std_filesystem_path(const char *path, const char *path_end, const bool *ignoreDecompressErrors)
struct MR_expected_MR_Image_std_string MR_expected_MR_Image_std_string
Definition MRJpeg.h:13
MRC_API MR_expected_void_std_string * MR_ImageSave_toJpeg(const MR_Image *image, const char *path, const char *path_end)
struct MR_Image MR_Image
Definition MRJpeg.h:12
MRC_API MR_expected_MR_Image_std_string * MR_ImageLoad_fromJpeg_3(const char *data, MR_uint64_t size, const bool *ignoreDecompressErrors)
MRC_API MR_expected_MR_Image_std_string * MR_ImageLoad_fromJpeg_2_std_istream(MR_std_istream *in, const bool *ignoreDecompressErrors)