|
43 | 43 | import app.photofox.vipsffm.enums.VipsTextWrap; |
44 | 44 | import java.io.InputStream; |
45 | 45 | import java.io.OutputStream; |
46 | | -import java.lang.Deprecated; |
47 | 46 | import java.lang.Double; |
48 | 47 | import java.lang.Integer; |
49 | 48 | import java.lang.Object; |
@@ -83,15 +82,6 @@ public boolean equals(Object o) { |
83 | 82 | return Objects.equals(arena, vImage.arena) && Objects.equals(address, vImage.address); |
84 | 83 | } |
85 | 84 |
|
86 | | - /// @deprecated See [#getUnsafeStructAddress] |
87 | | - @Deprecated( |
88 | | - since = "0.5.10", |
89 | | - forRemoval = true |
90 | | - ) |
91 | | - public MemorySegment getUnsafeAddress() { |
92 | | - return this.getUnsafeStructAddress(); |
93 | | - } |
94 | | - |
95 | 85 | /// Gets the raw [MemorySegment] (C pointer) for this VipsImage struct |
96 | 86 | /// The memory address' lifetime is bound to the scope of the [#arena] |
97 | 87 | /// Usage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with [VipsHelper] |
@@ -633,34 +623,6 @@ public double avg(VipsOption... args) throws VipsError { |
633 | 623 | return outOption.valueOrThrow(); |
634 | 624 | } |
635 | 625 |
|
636 | | - /// Save image in AVIF format |
637 | | - /// @param target Target to save to |
638 | | - /// @param args Array of VipsOption to apply to this operation |
639 | | - /// @optionalArg Q [VipsOption.Int] Q factor |
640 | | - /// @optionalArg bitdepth [VipsOption.Int] Number of bits per pixel |
641 | | - /// @optionalArg lossless [VipsOption.Boolean] Enable lossless compression |
642 | | - /// @optionalArg compression [VipsOption.Enum] [VipsForeignHeifCompression] Compression format |
643 | | - /// @optionalArg effort [VipsOption.Int] CPU effort |
644 | | - /// @optionalArg subsample-mode [VipsOption.Enum] [VipsForeignSubsample] Select chroma subsample operation mode |
645 | | - /// @optionalArg speed [VipsOption.Int] CPU effort |
646 | | - /// @optionalArg encoder [VipsOption.Enum] [VipsForeignHeifEncoder] Select encoder to use |
647 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
648 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
649 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
650 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
651 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
652 | | - @Deprecated( |
653 | | - forRemoval = true |
654 | | - ) |
655 | | - public void avifsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
656 | | - var inOption = VipsOption.Image("in", this); |
657 | | - var targetOption = VipsOption.Target("target", target); |
658 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
659 | | - callArgs.add(inOption); |
660 | | - callArgs.add(targetOption); |
661 | | - VipsInvoker.invokeOperation(arena, "avifsave_target", callArgs); |
662 | | - } |
663 | | - |
664 | 626 | /// Perform various boolean operations across the bands of an image. For |
665 | 627 | /// example, a three-band uchar image operated on with |
666 | 628 | /// [VipsOperationBoolean#OPERATION_BOOLEAN_AND] will produce a one-band uchar image where each |
@@ -965,24 +927,6 @@ public VImage byteswap(VipsOption... args) throws VipsError { |
965 | 927 | return outOption.valueOrThrow(); |
966 | 928 | } |
967 | 929 |
|
968 | | - /// Cache an image |
969 | | - /// @param args Array of VipsOption to apply to this operation |
970 | | - /// @optionalArg max-tiles [VipsOption.Int] Maximum number of tiles to cache |
971 | | - /// @optionalArg tile-height [VipsOption.Int] Tile height in pixels |
972 | | - /// @optionalArg tile-width [VipsOption.Int] Tile width in pixels |
973 | | - @Deprecated( |
974 | | - forRemoval = true |
975 | | - ) |
976 | | - public VImage cache(VipsOption... args) throws VipsError { |
977 | | - var inOption = VipsOption.Image("in", this); |
978 | | - var outOption = VipsOption.Image("out"); |
979 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
980 | | - callArgs.add(inOption); |
981 | | - callArgs.add(outOption); |
982 | | - VipsInvoker.invokeOperation(arena, "cache", callArgs); |
983 | | - return outOption.valueOrThrow(); |
984 | | - } |
985 | | - |
986 | 930 | /// Find edges by Canny's method: The maximum of the derivative of the gradient |
987 | 931 | /// in the direction of the gradient. Output is float, except for uchar input, |
988 | 932 | /// where output is uchar, and double input, where output is double. Non-complex |
@@ -4720,56 +4664,6 @@ public void magicksave(String filename, VipsOption... args) throws VipsError { |
4720 | 4664 | VipsInvoker.invokeOperation(arena, "magicksave", callArgs); |
4721 | 4665 | } |
4722 | 4666 |
|
4723 | | - /// Save bmp image with ImageMagick |
4724 | | - /// @param filename Filename to save to |
4725 | | - /// @param args Array of VipsOption to apply to this operation |
4726 | | - /// @optionalArg format [VipsOption.String] Format to save in |
4727 | | - /// @optionalArg quality [VipsOption.Int] Quality to use |
4728 | | - /// @optionalArg optimize-gif-frames [VipsOption.Boolean] Apply GIF frames optimization |
4729 | | - /// @optionalArg optimize-gif-transparency [VipsOption.Boolean] Apply GIF transparency optimization |
4730 | | - /// @optionalArg bitdepth [VipsOption.Int] Number of bits per pixel |
4731 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
4732 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
4733 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
4734 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
4735 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
4736 | | - @Deprecated( |
4737 | | - forRemoval = true |
4738 | | - ) |
4739 | | - public void magicksaveBmp(String filename, VipsOption... args) throws VipsError { |
4740 | | - var inOption = VipsOption.Image("in", this); |
4741 | | - var filenameOption = VipsOption.String("filename", filename); |
4742 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
4743 | | - callArgs.add(inOption); |
4744 | | - callArgs.add(filenameOption); |
4745 | | - VipsInvoker.invokeOperation(arena, "magicksave_bmp", callArgs); |
4746 | | - } |
4747 | | - |
4748 | | - /// Save bmp image to magick buffer |
4749 | | - /// @param args Array of VipsOption to apply to this operation |
4750 | | - /// @optionalArg format [VipsOption.String] Format to save in |
4751 | | - /// @optionalArg quality [VipsOption.Int] Quality to use |
4752 | | - /// @optionalArg optimize-gif-frames [VipsOption.Boolean] Apply GIF frames optimization |
4753 | | - /// @optionalArg optimize-gif-transparency [VipsOption.Boolean] Apply GIF transparency optimization |
4754 | | - /// @optionalArg bitdepth [VipsOption.Int] Number of bits per pixel |
4755 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
4756 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
4757 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
4758 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
4759 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
4760 | | - @Deprecated( |
4761 | | - forRemoval = true |
4762 | | - ) |
4763 | | - public VBlob magicksaveBmpBuffer(VipsOption... args) throws VipsError { |
4764 | | - var inOption = VipsOption.Image("in", this); |
4765 | | - var bufferOption = VipsOption.Blob("buffer"); |
4766 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
4767 | | - callArgs.add(inOption); |
4768 | | - callArgs.add(bufferOption); |
4769 | | - VipsInvoker.invokeOperation(arena, "magicksave_bmp_buffer", callArgs); |
4770 | | - return bufferOption.valueOrThrow(); |
4771 | | - } |
4772 | | - |
4773 | 4667 | /// As [VImage#magicksave], but save to a memory buffer. |
4774 | 4668 | /// |
4775 | 4669 | /// The address of the buffer is returned in `obuf`, the length of the buffer in |
@@ -6162,30 +6056,6 @@ public static VImage openslideloadSource(Arena arena, VSource source, VipsOption |
6162 | 6056 | return outOption.valueOrThrow(); |
6163 | 6057 | } |
6164 | 6058 |
|
6165 | | - /// Save image in pbm format |
6166 | | - /// @param target Target to save to |
6167 | | - /// @param args Array of VipsOption to apply to this operation |
6168 | | - /// @optionalArg format [VipsOption.Enum] [VipsForeignPpmFormat] Format to save in |
6169 | | - /// @optionalArg ascii [VipsOption.Boolean] Save as ascii |
6170 | | - /// @optionalArg squash [VipsOption.Boolean] Save as one bit |
6171 | | - /// @optionalArg bitdepth [VipsOption.Int] Set to 1 to write as a 1 bit image |
6172 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
6173 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
6174 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
6175 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
6176 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
6177 | | - @Deprecated( |
6178 | | - forRemoval = true |
6179 | | - ) |
6180 | | - public void pbmsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
6181 | | - var inOption = VipsOption.Image("in", this); |
6182 | | - var targetOption = VipsOption.Target("target", target); |
6183 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
6184 | | - callArgs.add(inOption); |
6185 | | - callArgs.add(targetOption); |
6186 | | - VipsInvoker.invokeOperation(arena, "pbmsave_target", callArgs); |
6187 | | - } |
6188 | | - |
6189 | 6059 | /// Render a PDF file into a VIPS image. |
6190 | 6060 | /// |
6191 | 6061 | /// The output image is always RGBA -- CMYK PDFs will be |
@@ -6367,54 +6237,6 @@ public static VImage perlin(Arena arena, int width, int height, VipsOption... ar |
6367 | 6237 | return outOption.valueOrThrow(); |
6368 | 6238 | } |
6369 | 6239 |
|
6370 | | - /// Save image in pfm format |
6371 | | - /// @param target Target to save to |
6372 | | - /// @param args Array of VipsOption to apply to this operation |
6373 | | - /// @optionalArg format [VipsOption.Enum] [VipsForeignPpmFormat] Format to save in |
6374 | | - /// @optionalArg ascii [VipsOption.Boolean] Save as ascii |
6375 | | - /// @optionalArg squash [VipsOption.Boolean] Save as one bit |
6376 | | - /// @optionalArg bitdepth [VipsOption.Int] Set to 1 to write as a 1 bit image |
6377 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
6378 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
6379 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
6380 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
6381 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
6382 | | - @Deprecated( |
6383 | | - forRemoval = true |
6384 | | - ) |
6385 | | - public void pfmsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
6386 | | - var inOption = VipsOption.Image("in", this); |
6387 | | - var targetOption = VipsOption.Target("target", target); |
6388 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
6389 | | - callArgs.add(inOption); |
6390 | | - callArgs.add(targetOption); |
6391 | | - VipsInvoker.invokeOperation(arena, "pfmsave_target", callArgs); |
6392 | | - } |
6393 | | - |
6394 | | - /// Save image in pgm format |
6395 | | - /// @param target Target to save to |
6396 | | - /// @param args Array of VipsOption to apply to this operation |
6397 | | - /// @optionalArg format [VipsOption.Enum] [VipsForeignPpmFormat] Format to save in |
6398 | | - /// @optionalArg ascii [VipsOption.Boolean] Save as ascii |
6399 | | - /// @optionalArg squash [VipsOption.Boolean] Save as one bit |
6400 | | - /// @optionalArg bitdepth [VipsOption.Int] Set to 1 to write as a 1 bit image |
6401 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
6402 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
6403 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
6404 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
6405 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
6406 | | - @Deprecated( |
6407 | | - forRemoval = true |
6408 | | - ) |
6409 | | - public void pgmsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
6410 | | - var inOption = VipsOption.Image("in", this); |
6411 | | - var targetOption = VipsOption.Target("target", target); |
6412 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
6413 | | - callArgs.add(inOption); |
6414 | | - callArgs.add(targetOption); |
6415 | | - VipsInvoker.invokeOperation(arena, "pgmsave_target", callArgs); |
6416 | | - } |
6417 | | - |
6418 | 6240 | /// Convert the two input images to Fourier space, calculate phase-correlation, |
6419 | 6241 | /// back to real space. |
6420 | 6242 | /// |
@@ -6640,30 +6462,6 @@ public void pngsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
6640 | 6462 | VipsInvoker.invokeOperation(arena, "pngsave_target", callArgs); |
6641 | 6463 | } |
6642 | 6464 |
|
6643 | | - /// Save image in pnm format |
6644 | | - /// @param target Target to save to |
6645 | | - /// @param args Array of VipsOption to apply to this operation |
6646 | | - /// @optionalArg format [VipsOption.Enum] [VipsForeignPpmFormat] Format to save in |
6647 | | - /// @optionalArg ascii [VipsOption.Boolean] Save as ascii |
6648 | | - /// @optionalArg squash [VipsOption.Boolean] Save as one bit |
6649 | | - /// @optionalArg bitdepth [VipsOption.Int] Set to 1 to write as a 1 bit image |
6650 | | - /// @optionalArg keep [VipsOption.Int] Which metadata to retain |
6651 | | - /// @optionalArg background [VipsOption.ArrayDouble] Background value |
6652 | | - /// @optionalArg page-height [VipsOption.Int] Set page height for multipage save |
6653 | | - /// @optionalArg profile [VipsOption.String] Filename of ICC profile to embed |
6654 | | - /// @optionalArg strip [VipsOption.Boolean] Strip all metadata from image |
6655 | | - @Deprecated( |
6656 | | - forRemoval = true |
6657 | | - ) |
6658 | | - public void pnmsaveTarget(VTarget target, VipsOption... args) throws VipsError { |
6659 | | - var inOption = VipsOption.Image("in", this); |
6660 | | - var targetOption = VipsOption.Target("target", target); |
6661 | | - var callArgs = new ArrayList<>(Arrays.asList(args)); |
6662 | | - callArgs.add(inOption); |
6663 | | - callArgs.add(targetOption); |
6664 | | - VipsInvoker.invokeOperation(arena, "pnmsave_target", callArgs); |
6665 | | - } |
6666 | | - |
6667 | 6465 | /// Read a PPM/PBM/PGM/PFM file into a VIPS image. |
6668 | 6466 | /// |
6669 | 6467 | /// It can read 1, 8, 16 and 32 bit images, colour or monochrome, |
|
0 commit comments