digiKam
iccjpeg.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 1998-01-25
7  * Description : helper methods to handle ICC color profile with JPEG file.
8  *
9  * Copyright (C) 1998-2004 by Marti Maria <info at littlecms dot com>
10  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
43 #ifndef DIGIKAM_ICC_JPEG_H
44 #define DIGIKAM_ICC_JPEG_H
45 
46 #include <stdio.h> /* needed to define "FILE", "NULL" */
47 #include <jpeglib.h>
48 
49 #include "digikam_export.h"
50 
58 DIGIKAM_EXPORT extern void write_icc_profile JPP((j_compress_ptr cinfo,
59  const JOCTET* icc_data_ptr,
60  unsigned int icc_data_len));
61 
76 DIGIKAM_EXPORT extern void setup_read_icc_profile JPP((j_decompress_ptr cinfo));
77 
93 DIGIKAM_EXPORT extern boolean read_icc_profile JPP((j_decompress_ptr cinfo,
94  JOCTET** icc_data_ptr,
95  unsigned int* icc_data_len));
96 
97 #endif /* DIGIKAM_ICC_JPEG_H */
void setup_read_icc_profile(j_decompress_ptr cinfo)
Definition: iccjpeg.c:127
boolean read_icc_profile(j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned int *icc_data_len)
Definition: iccjpeg.c:177
void write_icc_profile(j_compress_ptr cinfo, const JOCTET *icc_data_ptr, unsigned int icc_data_len)
Definition: iccjpeg.c:55
DIGIKAM_EXPORT void write_icc_profile JPP((j_compress_ptr cinfo, const JOCTET *icc_data_ptr, unsigned int icc_data_len))