diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-12 11:19:09 -0500 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-22 12:07:26 +0100 |
commit | cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (patch) | |
tree | 8d8d06c9e2c880611a3c8cc025d8c35fe38d59ba /source/fitz/bitmap.c | |
parent | 3832d0c7ab87aa1f2b3a3dbebe43a37e4055d121 (diff) | |
download | mupdf-cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c.tar.xz |
Rename fz_putc/puts/printf to fz_write_*.
Rename fz_write to fz_write_data.
Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*.
Be consistent in naming:
fz_write_* calls write to fz_output.
fz_append_* calls append to fz_buffer.
Update documentation.
Diffstat (limited to 'source/fitz/bitmap.c')
-rw-r--r-- | source/fitz/bitmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/fitz/bitmap.c b/source/fitz/bitmap.c index 2a7a9142..9db6a1df 100644 --- a/source/fitz/bitmap.c +++ b/source/fitz/bitmap.c @@ -310,7 +310,7 @@ pbm_write_header(fz_context *ctx, fz_band_writer *writer) int w = writer->w; int h = writer->h; - fz_printf(ctx, out, "P4\n%d %d\n", w, h); + fz_write_printf(ctx, out, "P4\n%d %d\n", w, h); } static void @@ -320,7 +320,7 @@ pkm_write_header(fz_context *ctx, fz_band_writer *writer) int w = writer->w; int h = writer->h; - fz_printf(ctx, out, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 4\nMAXVAL 255\nTUPLTYPE CMYK\nENDHDR\n", w, h); + fz_write_printf(ctx, out, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 4\nMAXVAL 255\nTUPLTYPE CMYK\nENDHDR\n", w, h); } void @@ -363,7 +363,7 @@ pbm_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_sta bytestride = (w + 7) >> 3; while (end--) { - fz_write(ctx, out, p, bytestride); + fz_write_data(ctx, out, p, bytestride); p += stride; } } @@ -391,11 +391,11 @@ pkm_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_sta int ww = w-1; while (ww > 0) { - fz_write(ctx, out, &pkm[8 * *p++], 8); + fz_write_data(ctx, out, &pkm[8 * *p++], 8); ww -= 2; } if (ww == 0) - fz_write(ctx, out, &pkm[8 * *p], 4); + fz_write_data(ctx, out, &pkm[8 * *p], 4); p += bytestride; } } |