# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pgmfindclip # pgmfindclip/pkg-descr # pgmfindclip/distinfo # pgmfindclip/Makefile # echo c - pgmfindclip mkdir -p pgmfindclip > /dev/null 2>&1 echo x - pgmfindclip/pkg-descr sed 's/^X//' >pgmfindclip/pkg-descr << 'END-of-pgmfindclip/pkg-descr' XThis tool tries to find a suitable clipping border for a series of gray Ximages. It is very useful to automatically extract clipping values for Xtranscoding a movie if the source frame is encoded with black bars. X XA border around an image is defined by a rectangular and homogenous valued Xarea extending from each edge of the image (e.g. the black bars around a movie Xframe). For each image the largest clip border is determined and the smallest Xcommon region of the image series is returned. Empty images or images with no Xvalid clipping region are ignored. X XTo cope with noisy regions in the black border areas, the region finding Xalgorithm does not simply cut away all regions with purely zero values, but it Xuses a threshold in the absolut gradient sum along rows and columns as a hint Xfor the begin of real image contents. X XYou need a frame processing tool like transcode to actually perform the Xclipping operation. X XThe program assumes that all images have the same size! X XWWW: http://www.lallafa.de/bp/pgmfindclip.html END-of-pgmfindclip/pkg-descr echo x - pgmfindclip/distinfo sed 's/^X//' >pgmfindclip/distinfo << 'END-of-pgmfindclip/distinfo' XMD5 (pgmfindclip-1.13.tgz) = 887bbd7c4d4a3c5685d26d5c449b3c91 XSIZE (pgmfindclip-1.13.tgz) = 4971 END-of-pgmfindclip/distinfo echo x - pgmfindclip/Makefile sed 's/^X//' >pgmfindclip/Makefile << 'END-of-pgmfindclip/Makefile' X# New ports collection makefile for: pgmfindclip X# Date created: 26 October 2003 X# Whom: Mezz X# X# $FreeBSD$ X# X XPORTNAME= pgmfindclip XPORTVERSION= 1.13 XCATEGORIES= multimedia XMASTER_SITES= http://www.lallafa.de/bp/files/ XEXTRACT_SUFX= .tgz X XMAINTAINER= mezz@FreeBSD.org XCOMMENT= Automatically find a clipping border for a sequence of pgm images X XALL_TARGET= XPLIST_FILES= bin/${PORTNAME} XUSE_REINPLACE= yes X Xdo-extract: X @${MKDIR} ${WRKSRC} X @(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ X ${DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS}) X Xpost-patch: X @${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS}|g' \ X ${WRKSRC}/Makefile X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ X X.include END-of-pgmfindclip/Makefile exit