BSD Ports

graphics/s2tc 1.0+20151228_1 MidnightBSD

Subset of a well-known texture compression scheme

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
graphics

Description

S2TC's format specification is very easy to implement, so it is not hard to make a working compressor or decompressor for it. It is based on Color Cell Compression[1] from 1986, and decoding is done entirely using the methods from there. Encoding is done using a search and refinement method that is derived from the methods described in that paper.

This also makes this format a great platform for learning about texture compression and how to tune a compressor for best quality.

S2TC is especially well suited for runtime (on-load) compression of textures, as it is - in low quality settings - way faster than any other texture compressors out there.

In the other systems

SystemPortVersion
MidnightBSDgraphics/s2tc1.0+20151228_1
FreeBSDgraphics/s2tc1.0+20151228_5
DragonFlygraphics/s2tc1.0+20151228_5
HardenedBSDgraphics/s2tc1.0+20151228_5
GhostBSDgraphics/s2tc1.0+20151228_5

Install

Binary package:

mport install s2tc

From mports:

cd /usr/mports/graphics/s2tc && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	s2tc>0:graphics/s2tc
LIB_DEPENDS=	libtxc_dxtn.so:graphics/s2tc

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
autoreconf libtool pathfix
Service scripts
none

Files

Manual pages 3
  • s2tc_compress(1)
  • s2tc_decompress(1)
  • s2tc_from_s3tc(1)
pkg-plist 10
  • bin/s2tc_compress
  • bin/s2tc_decompress
  • bin/s2tc_from_s3tc
  • include/txc_dxtn.h
  • lib/libtxc_dxtn.a
  • lib/libtxc_dxtn.so
  • libdata/pkgconfig/txc_dxtn.pc
  • share/man/man1/s2tc_compress.1.gz
  • share/man/man1/s2tc_decompress.1.gz
  • share/man/man1/s2tc_from_s3tc.1.gz
distinfo 1
FileSizeSHA256
divVerent-s2tc-1.0+20151228-f6ec862_GH0.tar.gz1.398883e+065785b81e2254e08f810ddb26acc5c6fd39631f94e9993fc0ee5807d802a2d4cb