EnglishFrenchSpanish

OnWorks favicon

ppmtolss16 - Online in the Cloud

Run ppmtolss16 in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ppmtolss16 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ppmtolss16 — Convert a PPM to an LSS16 image

SYNOPSIS


ppmtolss16 [ #rrggbb=i ...] [< input.ppm] [> output.rle]

DESCRIPTION


This manual page documents briefly the ppmtolss16 command.

The ppmtolss16 program converts a "raw" PPM file with max 16 colors to a simple RLE-based
format:

simple RLE-based format

unint32 0x1413f3d magic (littleendian)
unint16 xsize littleendian
unint15 ysize littleendian
16 x unint8 r,g,b color map

Color map is in 6-bit format (each byte is 0..63)

Then, a sequence of nybbles:

N ... if N is != previous pixel, one pixel of color N, otherwise run sequence follows
...

M ... if M > 0 then run length is M+1, otherwise run sequence is encoded in two nybbles,
littleendian, +17

The nybble sequences are on a per-row basis, runs may not extend across rows and odd-
nybble rows are zero-padded.

At the start of a row, the "previous pixel" is assumed to be zero.

OPTIONS


A summary of options is included below.

#rrggbb=i Specify that the color #rrggbb (hex) should be assigned index i (decimal).

BUG


This program cannot handle comments in the header, nor "plain" ppm format.

Use ppmtolss16 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    abl
    abl
    abl - Prefixed representation for
    boolean functions DESCRIPTION:
    libablmmm.a is a library that enables to
    represent a boolean function in a
    LISP-like form. An ...
    Run abl
  • 2
    abook
    abook
    abook - text-based address book program
    ...
    Run abook
  • 3
    coqchk.opt
    coqchk.opt
    coqchk - The Coq Proof Checker compiled
    libraries verifier ...
    Run coqchk.opt
  • 4
    coqdep
    coqdep
    coqdep - Compute inter-module
    dependencies for Coq and Caml programs ...
    Run coqdep
  • 5
    fweb
    fweb
    ftangle,fweave - WEB processors for C,
    C++, Fortran, Ratfor, and TeX ...
    Run fweb
  • 6
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • More »

Ad