mupdf
Loading...
Searching...
No Matches
separation.h
Go to the documentation of this file.
1// Copyright (C) 2004-2021 Artifex Software, Inc.
2//
3// This file is part of MuPDF.
4//
5// MuPDF is free software: you can redistribute it and/or modify it under the
6// terms of the GNU Affero General Public License as published by the Free
7// Software Foundation, either version 3 of the License, or (at your option)
8// any later version.
9//
10// MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
11// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13// details.
14//
15// You should have received a copy of the GNU Affero General Public License
16// along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
17//
18// Alternative licensing terms are available from the licensor.
19// For commercial licensing, see <https://www.artifex.com/> or contact
20// Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
21// CA 94129, USA, for further information.
22
23#ifndef MUPDF_FITZ_SEPARATION_H
24#define MUPDF_FITZ_SEPARATION_H
25
26#include "mupdf/fitz/system.h"
27#include "mupdf/fitz/context.h"
28#include "mupdf/fitz/color.h"
29
37
38enum
39{
41};
42
44
45typedef enum
46{
47 /* "Composite" separations are rendered using process
48 * colors using the equivalent colors */
50 /* Spot colors are rendered into their own spot plane. */
52 /* Disabled colors are not rendered at all in the final
53 * output. */
56
61
69
78
82void fz_add_separation(fz_context *ctx, fz_separations *sep, const char *name, fz_colorspace *cs, int cs_channel);
83
90void fz_add_separation_equivalents(fz_context *ctx, fz_separations *sep, uint32_t rgba, uint32_t cmyk, const char *name);
91
96
101
102const char *fz_separation_name(fz_context *ctx, const fz_separations *sep, int separation);
104
109
116
117
126
131void fz_convert_separation_colors(fz_context *ctx, fz_colorspace *src_cs, const float *src_color, fz_separations *dst_seps, fz_colorspace *dst_cs, float *dst_color, fz_color_params color_params);
132
136void fz_separation_equivalent(fz_context *ctx, const fz_separations *seps, int idx, fz_colorspace *dst_cs, float *dst_color, fz_colorspace *prf, fz_color_params color_params);
137
138#endif
fz_separations * fz_clone_separations_for_overprint(fz_context *ctx, fz_separations *seps)
int fz_count_separations(fz_context *ctx, const fz_separations *sep)
void fz_separation_equivalent(fz_context *ctx, const fz_separations *seps, int idx, fz_colorspace *dst_cs, float *dst_color, fz_colorspace *prf, fz_color_params color_params)
void fz_set_separation_behavior(fz_context *ctx, fz_separations *sep, int separation, fz_separation_behavior behavior)
int fz_compare_separations(fz_context *ctx, const fz_separations *sep1, const fz_separations *sep2)
fz_separation_behavior
Definition separation.h:46
@ FZ_SEPARATION_SPOT
Definition separation.h:51
@ FZ_SEPARATION_DISABLED
Definition separation.h:54
@ FZ_SEPARATION_COMPOSITE
Definition separation.h:49
void fz_add_separation_equivalents(fz_context *ctx, fz_separations *sep, uint32_t rgba, uint32_t cmyk, const char *name)
@ FZ_MAX_SEPARATIONS
Definition separation.h:40
fz_separations * fz_new_separations(fz_context *ctx, int controllable)
void fz_convert_separation_colors(fz_context *ctx, fz_colorspace *src_cs, const float *src_color, fz_separations *dst_seps, fz_colorspace *dst_cs, float *dst_color, fz_color_params color_params)
void fz_drop_separations(fz_context *ctx, fz_separations *sep)
void fz_add_separation(fz_context *ctx, fz_separations *sep, const char *name, fz_colorspace *cs, int cs_channel)
fz_separation_behavior fz_separation_current_behavior(fz_context *ctx, const fz_separations *sep, int separation)
fz_separations * fz_keep_separations(fz_context *ctx, fz_separations *sep)
int fz_count_active_separations(fz_context *ctx, const fz_separations *seps)
const char * fz_separation_name(fz_context *ctx, const fz_separations *sep, int separation)
struct fz_separations fz_separations
Definition separation.h:43
Definition color.h:72
Definition color.h:417
Definition context.h:886