Skip to content

Commit 1068305

Browse files
committed
tiny polish
1 parent fc2a69b commit 1068305

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

libvips/foreign/pdfiumload.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ vips_foreign_load_pdf_header(VipsForeignLoad *load)
503503
VipsForeignLoadPdf *pdf = (VipsForeignLoadPdf *) load;
504504

505505
int top;
506-
int i;
507506

508507
#ifdef DEBUG
509508
printf("vips_foreign_load_pdf_header: %p\n", pdf);
@@ -535,7 +534,7 @@ vips_foreign_load_pdf_header(VipsForeignLoad *load)
535534
pdf->image.top = 0;
536535
pdf->image.width = 0;
537536
pdf->image.height = 0;
538-
for (i = 0; i < pdf->n; i++) {
537+
for (int i = 0; i < pdf->n; i++) {
539538
if (vips_foreign_load_pdf_get_page(pdf, pdf->page_no + i))
540539
return -1;
541540
pdf->pages[i].left = 0;
@@ -576,7 +575,7 @@ vips_foreign_load_pdf_header(VipsForeignLoad *load)
576575
/* If all pages are the same height, we can tag this as a toilet roll
577576
* image.
578577
*/
579-
for (i = 1; i < pdf->n; i++)
578+
for (int i = 1; i < pdf->n; i++)
580579
if (pdf->pages[i].height != pdf->pages[0].height)
581580
break;
582581

libvips/include/vips/foreign.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ typedef enum {
10181018
* @VIPS_FOREIGN_DZ_CONTAINER_ZIP: write tiles to a zip file
10191019
* @VIPS_FOREIGN_DZ_CONTAINER_SZI: write to a szi file
10201020
*
1021-
* How many pyramid layers to create.
1021+
* What container format to use.
10221022
*/
10231023
typedef enum {
10241024
VIPS_FOREIGN_DZ_CONTAINER_FS,

libvips/resample/reduce.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060

6161
/**
6262
* VipsKernel:
63-
* @VIPS_KERNEL_NEAREST: The nearest pixel to the point.
64-
* @VIPS_KERNEL_LINEAR: Convolve with a triangle filter.
65-
* @VIPS_KERNEL_CUBIC: Convolve with a cubic filter.
66-
* @VIPS_KERNEL_MITCHELL: Convolve with a Mitchell kernel.
67-
* @VIPS_KERNEL_LANCZOS2: Convolve with a two-lobe Lanczos kernel.
68-
* @VIPS_KERNEL_LANCZOS3: Convolve with a three-lobe Lanczos kernel.
69-
* @VIPS_KERNEL_MKS2013: Convolve with Magic Kernel Sharp 2013.
70-
* @VIPS_KERNEL_MKS2021: Convolve with Magic Kernel Sharp 2021.
63+
* @VIPS_KERNEL_NEAREST: the nearest pixel to the point
64+
* @VIPS_KERNEL_LINEAR: convolve with a triangle filter
65+
* @VIPS_KERNEL_CUBIC: convolve with a cubic filter
66+
* @VIPS_KERNEL_MITCHELL: convolve with a Mitchell kernel
67+
* @VIPS_KERNEL_LANCZOS2: convolve with a two-lobe Lanczos kernel
68+
* @VIPS_KERNEL_LANCZOS3: convolve with a three-lobe Lanczos kernel
69+
* @VIPS_KERNEL_MKS2013: convolve with Magic Kernel Sharp 2013
70+
* @VIPS_KERNEL_MKS2021: convolve with Magic Kernel Sharp 2021
7171
*
7272
* The resampling kernels vips supports. See [method@Image.reduce], for example.
7373
*/

0 commit comments

Comments
 (0)