pkgsrc/graphics/libbpg/patches/patch-bpgenc.c
agc 0cd0f77798 add libbpg-0.9.2, an image formatting library designed to replace JPEG
when quality or file size is an issue, to the packages collection.

	BPG (Better Portable Graphics) is a new image format.  Its purpose is
	to replace the JPEG image format when quality or file size is an
	issue.  Its main advantages are:

	+ High compression ratio.  Files are much smaller than JPEG for
	similar quality.

	+ Supported by most Web browsers with a small Javascript decoder
	(gzipped size:  71 KB).

	+ Based on a subset of the HEVC open video compression standard.

	+ Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0,
	4:2:2, 4:4:4) to reduce the losses during the conversion.  An alpha
	channel is supported.  The RGB, YCgCo and CMYK color spaces are also
	supported.

	+ Native support of 8 to 14 bits per channel for a higher dynamic
	range.

	+ Lossless compression is supported.

	+ Various metadata (such as EXIF, ICC profile, XMP) can be included.
2014-12-12 22:05:04 +00:00

15 lines
466 B
C

$NetBSD: patch-bpgenc.c,v 1.1.1.1 2014/12/12 22:05:04 agc Exp $
Just use getopt_long(3) for now
--- bpgenc.c 2014/12/12 21:34:04 1.1
+++ bpgenc.c 2014/12/12 21:34:20
@@ -1862,7 +1862,7 @@
encoder_type = 0;
for(;;) {
- c = getopt_long_only(argc, argv, "q:o:hf:c:vm:b:e:", long_opts, &option_index);
+ c = getopt_long(argc, argv, "q:o:hf:c:vm:b:e:", long_opts, &option_index);
if (c == -1)
break;
switch(c) {