Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/source/fitz/context-imp.h @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 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 FITZ_CONTEXT_IMP_H | |
| 24 #define FITZ_CONTEXT_IMP_H | |
| 25 | |
| 26 #include "mupdf/fitz.h" | |
| 27 | |
| 28 extern fz_alloc_context fz_alloc_default; | |
| 29 extern fz_locks_context fz_locks_default; | |
| 30 | |
| 31 /* FIXME: Make all these static? */ | |
| 32 double fz_drand48(fz_context *ctx); | |
| 33 int32_t fz_lrand48(fz_context *ctx); | |
| 34 int32_t fz_mrand48(fz_context *ctx); | |
| 35 double fz_erand48(fz_context *ctx, uint16_t xsubi[3]); | |
| 36 int32_t fz_jrand48(fz_context *ctx, uint16_t xsubi[3]); | |
| 37 int32_t fz_nrand48(fz_context *ctx, uint16_t xsubi[3]); | |
| 38 void fz_lcong48(fz_context *ctx, uint16_t param[7]); | |
| 39 uint16_t *fz_seed48(fz_context *ctx, uint16_t seed16v[3]); | |
| 40 void fz_srand48(fz_context *ctx, int32_t seedval); | |
| 41 | |
| 42 void fz_new_colorspace_context(fz_context *ctx); | |
| 43 fz_colorspace_context *fz_keep_colorspace_context(fz_context *ctx); | |
| 44 void fz_drop_colorspace_context(fz_context *ctx); | |
| 45 | |
| 46 void fz_new_font_context(fz_context *ctx); | |
| 47 | |
| 48 fz_font_context *fz_keep_font_context(fz_context *ctx); | |
| 49 void fz_drop_font_context(fz_context *ctx); | |
| 50 | |
| 51 struct fz_tuning_context | |
| 52 { | |
| 53 int refs; | |
| 54 fz_tune_image_decode_fn *image_decode; | |
| 55 void *image_decode_arg; | |
| 56 fz_tune_image_scale_fn *image_scale; | |
| 57 void *image_scale_arg; | |
| 58 }; | |
| 59 | |
| 60 void fz_default_image_decode(void *arg, int w, int h, int l2factor, fz_irect *subarea); | |
| 61 int fz_default_image_scale(void *arg, int dst_w, int dst_h, int src_w, int src_h); | |
| 62 | |
| 63 void fz_init_aa_context(fz_context *ctx); | |
| 64 | |
| 65 void fz_new_glyph_cache_context(fz_context *ctx); | |
| 66 fz_glyph_cache *fz_keep_glyph_cache(fz_context *ctx); | |
| 67 void fz_drop_glyph_cache_context(fz_context *ctx); | |
| 68 | |
| 69 void fz_new_document_handler_context(fz_context *ctx); | |
| 70 void fz_drop_document_handler_context(fz_context *ctx); | |
| 71 fz_document_handler_context *fz_keep_document_handler_context(fz_context *ctx); | |
| 72 | |
| 73 void fz_new_archive_handler_context(fz_context *ctx); | |
| 74 void fz_drop_archive_handler_context(fz_context *ctx); | |
| 75 fz_archive_handler_context *fz_keep_archive_handler_context(fz_context *ctx); | |
| 76 | |
| 77 void fz_log_activity(fz_context *ctx, fz_activity_reason reason, void *arg); | |
| 78 | |
| 79 int fz_new_document_id(fz_context *ctx); | |
| 80 | |
| 81 #endif |
