liquid resize library, a fun seam-carving library.

This commit is contained in:
espie 2008-09-01 11:03:28 +00:00
parent 8b97ce9939
commit b7e69fb882
5 changed files with 61 additions and 0 deletions

29
graphics/liblqr/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/09/01 11:03:28 espie Exp $
COMMENT = seam-carving smart rescale library
CATEGORIES = graphics devel
HOMEPAGE = http://liblqr.wikidot.com/
DISTNAME = liblqr-1-0.1.0-5
PKGNAME = liblqr-0.1.0.5
WRKDIST = ${WRKDIR}/liblqr-1-0.1.0
MASTER_SITES = ${HOMEPAGE}local--files/en:download-page/
# Library is LGPLv3, examples are GPLv3
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
CONFIGURE_STYLE = gnu
USE_LIBTOOL = Yes
SEPARATE_BUILD = simple
#CONFIGURE_ENV = CFLAGS="${CFLAGS} ${COPTS}"
SHARED_LIBS += lqr-1 0.0 # .0.0
LIB_DEPENDS = glib-2.0::devel/glib2
WANTLIB += iconv intl m pcre
.include <bsd.port.mk>

5
graphics/liblqr/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (liblqr-1-0.1.0-5.tar.gz) = 0aw6UDbYTHsdTweW8379mQ==
RMD160 (liblqr-1-0.1.0-5.tar.gz) = kwkkhiDkUPgs/hPAYG7CpQgx4AQ=
SHA1 (liblqr-1-0.1.0-5.tar.gz) = JgW7jBtO+kfqnYgGuNU0pzgrub4=
SHA256 (liblqr-1-0.1.0-5.tar.gz) = E5ttkP2/DsSQEammEQJIcsH6DxNScd145xrqVgkpPSw=
SIZE (liblqr-1-0.1.0-5.tar.gz) = 373083

View File

@ -0,0 +1,7 @@
liblqr (liquid resize) implements a smart-resize algorithm from 2007 SigGraph.
This algorithm works by finding paths of least energy that traverse an image
from top to bottom (or left to right) in an image, and carving the image
by removing the line.
The algorithm can also be reversed, and used to insert a line of
averaged pixels to enlarge the picture.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/09/01 11:03:29 espie Exp $
@lib lib/liblqr-1.so.${LIBlqr-1_VERSION}

18
graphics/liblqr/pkg/PLIST Normal file
View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/09/01 11:03:29 espie Exp $
%%SHARED%%
include/lqr-1/
include/lqr-1/lqr/
include/lqr-1/lqr.h
include/lqr-1/lqr/lqr_base.h
include/lqr-1/lqr/lqr_carver_bias_pub.h
include/lqr-1/lqr/lqr_carver_list_pub.h
include/lqr-1/lqr/lqr_carver_pub.h
include/lqr-1/lqr/lqr_cursor_pub.h
include/lqr-1/lqr/lqr_gradient_pub.h
include/lqr-1/lqr/lqr_progress_pub.h
include/lqr-1/lqr/lqr_vmap_list_pub.h
include/lqr-1/lqr/lqr_vmap_pub.h
lib/liblqr-1.a
lib/liblqr-1.la
lib/pkgconfig/
lib/pkgconfig/lqr-1.pc