{
    "content": [
        {
            "type": "text",
            "text": "# pnmtofiasco (man)\n\n## NAME\n\npnmtofiasco - Convert PNM file to FIASCO compressed file\n\n## SYNOPSIS\n\npnmtofiasco [option]...  [filename]...\n\n## DESCRIPTION\n\nThis program is part of Netpbm(1).\n\n## TLDR\n\n> Convert a PNM image to a compressed FIASCO file.\n\n- Convert a PNM image to a compressed FIASCO file:\n  `pnmtofiasco {{path/to/file.pnm}} > {{path/to/file.fiasco}}`\n- Specify the input files through a pattern:\n  `pnmtofiasco {{-i|--image-name}} \"{{img[01-09+1].pnm}}\" > {{path/to/file.fiasco}}`\n- Specify the compression quality:\n  `pnmtofiasco {{-q|--quality}} {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}`\n- Load the options to be used from the specified configuration file:\n  `pnmtofiasco {{-f|--config}} {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (32 subsections)\n- **EXAMPLES**\n- **FILES** (1 subsections)\n- **ENVIRONMENT**\n- **SEE ALSO**\n- **AUTHOR**\n- **DOCUMENT SOURCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pnmtofiasco",
        "section": "",
        "mode": "man",
        "summary": "pnmtofiasco - Convert PNM file to FIASCO compressed file",
        "synopsis": "pnmtofiasco [option]...  [filename]...",
        "tldr_summary": "Convert a PNM image to a compressed FIASCO file.",
        "tldr_examples": [
            {
                "description": "Convert a PNM image to a compressed FIASCO file",
                "command": "pnmtofiasco {{path/to/file.pnm}} > {{path/to/file.fiasco}}"
            },
            {
                "description": "Specify the input files through a pattern",
                "command": "pnmtofiasco {{-i|--image-name}} \"{{img[01-09+1].pnm}}\" > {{path/to/file.fiasco}}"
            },
            {
                "description": "Specify the compression quality",
                "command": "pnmtofiasco {{-q|--quality}} {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}"
            },
            {
                "description": "Load the options to be used from the specified configuration file",
                "command": "pnmtofiasco {{-f|--config}} {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-i",
                "long": "--image-name",
                "arg": "_",
                "description": "Compress the named images, not Standard Input. If name is -, read Standard Input. name has to be either an image filename or a template of the form: prefix[start-end{+,-}step]suffix Templates are useful when compressing video streams: e.g., if you specify the template img0[12-01-2].pgm, then pnmtofiasco compresses the images img012.pgm, img010.pgm, ..., img002.pgm. If name is a relative path, pnmtofiasco searches for the image files in the current directory and in the (colon-separated) list of directories given by the environment variable FIASCOIMAGES."
            },
            {
                "flag": "-o",
                "long": "--output-name",
                "arg": "_",
                "description": "Write FIASCO output to the named file, not to Standard Output. If name is a relative path and the environment variable FIASCODATA is a (colon-sepa‐ rated) list of directories, then pnmtofiasco writes the output file to the first (writable) directory of this list. Otherwise, pnmtofiasco write it to the current di‐ rectory."
            },
            {
                "flag": "-q",
                "long": "--quality",
                "arg": "_",
                "description": "Set quality of compression to N. Quality is 1 (worst) to 100 (best); default is 20."
            },
            {
                "flag": "-v",
                "long": "--version",
                "arg": null,
                "description": "Print pnmtofiasco version number, then exit."
            },
            {
                "flag": "-V",
                "long": "--verbose",
                "arg": null,
                "description": "Set level of verbosity to N. Level is 0 (no output at all), 1 (show progress meter), or 2 (show detailed compression statistics); default is 1."
            },
            {
                "flag": "-B",
                "long": "--progress-meter",
                "arg": null,
                "description": "Set type of progress-meter to N. The following types are available; default is 1: 0 no progress meter 1 RPM style progress bar using 50 hash marks 2 percentage meter"
            },
            {
                "flag": "-f",
                "long": "--config",
                "arg": "_",
                "description": "Load parameter file name to initialize the options of pnmtofiasco. See file sys‐ tem.fiascorc for an example of the syntax. Options of pnmtofiasco are set by any of the following methods (in the specified order): • Global resource file /etc/system.fiascorc • $HOME/.fiascorc • command line • --config=name"
            },
            {
                "flag": "-h",
                "long": "--info",
                "arg": null,
                "description": "Print brief help, then exit."
            },
            {
                "flag": "-H",
                "long": "--help",
                "arg": null,
                "description": "Print detailed help, then exit."
            },
            {
                "flag": "-b",
                "long": "--basis-name",
                "arg": "_",
                "description": "Preload compression basis name into FIASCO. The basis name provides the initial com‐ pression dictionary. Either use one of the files \"small.fco\", \"medium.fco\", or \"large.fco\" that come with pnmtofiasco or create a new ASCII basis file."
            },
            {
                "flag": "-z",
                "long": "--optimize",
                "arg": "_",
                "description": "Set optimization level to N. Level is 0 (fastest) to 3 (slowest); default is 1. Be warned, the encoding time dramatically increased when N=2 or N=3 while the compression performance only slightly improves."
            },
            {
                "flag": "-P",
                "long": "--prediction",
                "arg": null,
                "description": "Use additional predictive coding. If this optimization is enabled then the image is compressed in two steps. In the first step, a coarse approximation of the image is computed using large unichrome blocks. Finally, the delta image is computed and the prediction error is approximated using the standard FIASCO algorithm."
            },
            {
                "flag": "-D",
                "long": "--dictionary-size",
                "arg": "_",
                "description": "Set size of dictionary that is used when coding the luminance band to N; default is 10000, i.e., the dictionary is not restricted."
            },
            {
                "flag": "-C",
                "long": "--chroma-dictionary",
                "arg": "_",
                "description": "Set size of dictionary that is used when coding chroma bands to N; default is 40."
            },
            {
                "flag": "-Q",
                "long": "--chroma-qfactor",
                "arg": "_",
                "description": "Reduce the quality of chroma band compression N-times with respect to the user defined quality q of the luminance band compression (--quality=q); default is 2."
            },
            {
                "flag": "-t",
                "long": "--tiling-exponent",
                "arg": "_",
                "description": "Subdivide the image into 2^N tiles prior coding; default is 4, i.e. the image is sub‐ divided into 16 tiles. The processing order of the individual tiles is defined by the option --tiling-method=name."
            },
            {
                "flag": "-T",
                "long": "--tiling-method",
                "arg": "_",
                "description": "Order the individual image tiles (the image is subdivided into; see option --tiling- exponent=N) by method name; default is desc-variance."
            },
            {
                "flag": "-s",
                "long": "--smooth",
                "arg": "_",
                "description": "Smooth decompressed reference frames along the partitioning borders by the given amount N. N is 0 (no smoothing) to 100; default is 70. This factor is stored in the FIASCO file."
            },
            {
                "flag": "-m",
                "long": "--min-level",
                "arg": "_",
                "description": "Start prediction (motion compensated prediction or additional prediction) on block level N; default is level 6. I.e., motion compensation is applied to all image blocks of at least 8x8 pixels (binary tree level N=6), 16x8 (N=7), 16x16 (N=8), etc."
            },
            {
                "flag": "-M",
                "long": "--max-level",
                "arg": "_",
                "description": "Stop prediction (motion compensated prediction or additional prediction) on block level N; default is level 10. I.e., motion compensation is applied to all image blocks of at most 16x16 pixels (N=8), 32x16 (N=9), 32x32 (N=10), etc."
            },
            {
                "flag": "-2",
                "long": "--half-pixel",
                "arg": null,
                "description": "Use half pixel precise motion compensation."
            },
            {
                "flag": "-F",
                "long": "--fps",
                "arg": "_",
                "description": "Set number of frames per second to N. This value is stored in the FIASCO output file and is used in the decoder fiascotopnm(1) to control the framerate."
            },
            {
                "flag": "-p",
                "long": "--pattern",
                "arg": "_",
                "description": "Defines the type of inter frame compression which should be applied to individual frames of a video stream. type is a sequence of characters; default is \"IPPPPPPPPP\". Element N defines the type of predicting which should be used for frame N; the frame type pattern is periodically extended. Valid characters are: I intra frame, i.e., no motion compensated prediction is used at all. P predicted frame, i.e., a previously encoded frame is used for prediction (forward pre‐ diction). B bidirectional predicted frame, i.e., not only a previously shown frame but also a frame of the future is used for prediction (forward, backward or interpolated predic‐ tion)."
            },
            {
                "flag": "",
                "long": "--cross-B-search",
                "arg": null,
                "description": "Instead of using exhaustive search the \"Cross-B-Search\" algorithm is used to find the best interpolated prediction of B-frames."
            },
            {
                "flag": "",
                "long": "--B-as-past-ref",
                "arg": null,
                "description": "Also use previously encoded B-frames when prediction the current frame. If this option is not set, only I- and P-frames are used to predict the current frame."
            }
        ],
        "examples": [
            "Compress the still image \"foo.ppm\" to the FIASCO file \"foo.wfa\" using the default options:",
            "pnmtofiasco < foo.ppm >foo.wfa",
            "Compress the video frames \"foo0*.ppm\" to the FIASCO file \"video.wfa\" using half pixel precise",
            "motion compensation at a frame rate of 15 frames per second.  Intra frame 1 is used  to  pre‐",
            "dict  P-frame 4, frames 1 and 4 are used to predict B-frames 2 and 3, and so on.  Frame 10 is",
            "again an intra-frame.",
            "pnmtofiasco -2 -p \"IBBPBBPBB\" -fps 15 -o video.wfa foo0*.ppm"
        ],
        "see_also": [
            {
                "name": "fiascotopnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/fiascotopnm/1/json"
            },
            {
                "name": "pnmtojpeg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmtojpeg/1/json"
            },
            {
                "name": "pnmtojbig",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmtojbig/1/json"
            },
            {
                "name": "pamtogif",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamtogif/1/json"
            },
            {
                "name": "pnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 9,
                "subsections": [
                    {
                        "name": "Basic Options",
                        "lines": 1
                    },
                    {
                        "name": "-i _ --image-name=_",
                        "lines": 15,
                        "flag": "-i",
                        "long": "--image-name",
                        "arg": "_"
                    },
                    {
                        "name": "-o _ --output-name=_",
                        "lines": 8,
                        "flag": "-o",
                        "long": "--output-name",
                        "arg": "_"
                    },
                    {
                        "name": "-q _ --quality=_",
                        "lines": 3,
                        "flag": "-q",
                        "long": "--quality",
                        "arg": "_"
                    },
                    {
                        "name": "-v --version",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--version"
                    },
                    {
                        "name": "-V _ --verbose _",
                        "lines": 4,
                        "flag": "-V",
                        "long": "--verbose"
                    },
                    {
                        "name": "-B _ --progress-meter _",
                        "lines": 15,
                        "flag": "-B",
                        "long": "--progress-meter"
                    },
                    {
                        "name": "-f _ --config=_",
                        "lines": 16,
                        "flag": "-f",
                        "long": "--config",
                        "arg": "_"
                    },
                    {
                        "name": "-h --info",
                        "lines": 3,
                        "flag": "-h",
                        "long": "--info"
                    },
                    {
                        "name": "-H --help",
                        "lines": 5,
                        "flag": "-H",
                        "long": "--help"
                    },
                    {
                        "name": "Options for Advanced Users",
                        "lines": 1
                    },
                    {
                        "name": "-b _ --basis-name=_",
                        "lines": 5,
                        "flag": "-b",
                        "long": "--basis-name",
                        "arg": "_"
                    },
                    {
                        "name": "-z _ --optimize=_",
                        "lines": 5,
                        "flag": "-z",
                        "long": "--optimize",
                        "arg": "_"
                    },
                    {
                        "name": "-P --prediction",
                        "lines": 6,
                        "flag": "-P",
                        "long": "--prediction"
                    },
                    {
                        "name": "-D _ --dictionary-size=_",
                        "lines": 4,
                        "flag": "-D",
                        "long": "--dictionary-size",
                        "arg": "_"
                    },
                    {
                        "name": "-C _ --chroma-dictionary=_",
                        "lines": 3,
                        "flag": "-C",
                        "long": "--chroma-dictionary",
                        "arg": "_"
                    },
                    {
                        "name": "-Q _ --chroma-qfactor=_",
                        "lines": 4,
                        "flag": "-Q",
                        "long": "--chroma-qfactor",
                        "arg": "_"
                    },
                    {
                        "name": "-t _ --tiling-exponent=_",
                        "lines": 5,
                        "flag": "-t",
                        "long": "--tiling-exponent",
                        "arg": "_"
                    },
                    {
                        "name": "-T _ --tiling-method=_",
                        "lines": 5,
                        "flag": "-T",
                        "long": "--tiling-method",
                        "arg": "_"
                    },
                    {
                        "name": "desc-variance",
                        "lines": 3
                    },
                    {
                        "name": "asc-variance",
                        "lines": 3
                    },
                    {
                        "name": "desc-spiral",
                        "lines": 3
                    },
                    {
                        "name": "asc-spiral",
                        "lines": 23
                    },
                    {
                        "name": "Additional Options for Video Compression",
                        "lines": 1
                    },
                    {
                        "name": "-s _ --smooth=_",
                        "lines": 5,
                        "flag": "-s",
                        "long": "--smooth",
                        "arg": "_"
                    },
                    {
                        "name": "-m _ --min-level=_",
                        "lines": 5,
                        "flag": "-m",
                        "long": "--min-level",
                        "arg": "_"
                    },
                    {
                        "name": "-M _ --max-level=_",
                        "lines": 5,
                        "flag": "-M",
                        "long": "--max-level",
                        "arg": "_"
                    },
                    {
                        "name": "-2 --half-pixel",
                        "lines": 3,
                        "flag": "-2",
                        "long": "--half-pixel"
                    },
                    {
                        "name": "-F _ --fps=_",
                        "lines": 4,
                        "flag": "-F",
                        "long": "--fps",
                        "arg": "_"
                    },
                    {
                        "name": "-p _ --pattern=_",
                        "lines": 21,
                        "flag": "-p",
                        "long": "--pattern",
                        "arg": "_"
                    },
                    {
                        "name": "--cross-B-search",
                        "lines": 4,
                        "long": "--cross-B-search"
                    },
                    {
                        "name": "--B-as-past-ref",
                        "lines": 7,
                        "long": "--B-as-past-ref"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/etc/system.fiascorc",
                        "lines": 9
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DOCUMENT SOURCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmtofiasco - Convert PNM file to FIASCO compressed file\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmtofiasco [option]...  [filename]...\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This program is part of Netpbm(1).\n\npnmtofiasco  compresses  the named pbm, pgm, or ppm image files, or Standard Input if no file\nis named, and produces a FIASCO file on Standard Output.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pnmtofiasco recognizes the following command line options:\n\nAll option names may be abbreviated; for example, --optimize may be written --optim or --opt.\nFor  most  options a one letter short option is provided.  Mandatory or optional arguments to\nlong options are mandatory or optional for short options, too.  Both short and  long  options\nare case sensitive.\n\n",
                "subsections": [
                    {
                        "name": "Basic Options",
                        "content": ""
                    },
                    {
                        "name": "-i _ --image-name=_",
                        "content": "Compress  the  named  images,  not Standard Input.  If name is -, read Standard Input.\nname has to be either an image filename or a template of the form:\n\nprefix[start-end{+,-}step]suffix\n\n\nTemplates are useful when compressing video streams: e.g., if you specify the template\nimg0[12-01-2].pgm, then pnmtofiasco compresses the images img012.pgm, img010.pgm, ...,\nimg002.pgm.\n\nIf name is a relative path, pnmtofiasco  searches for the image files in  the  current\ndirectory  and  in  the (colon-separated) list of directories given by the environment\nvariable FIASCOIMAGES.\n\n",
                        "flag": "-i",
                        "long": "--image-name",
                        "arg": "_"
                    },
                    {
                        "name": "-o _ --output-name=_",
                        "content": "Write FIASCO output to the named file, not to Standard Output.\n\nIf name is a relative path and the environment variable FIASCODATA is a  (colon-sepa‐\nrated)  list  of  directories,  then  pnmtofiasco  writes the output file to the first\n(writable) directory of this list. Otherwise, pnmtofiasco write it to the current  di‐\nrectory.\n\n",
                        "flag": "-o",
                        "long": "--output-name",
                        "arg": "_"
                    },
                    {
                        "name": "-q _ --quality=_",
                        "content": "Set quality of compression to N.  Quality is 1 (worst) to 100 (best); default is 20.\n\n",
                        "flag": "-q",
                        "long": "--quality",
                        "arg": "_"
                    },
                    {
                        "name": "-v --version",
                        "content": "Print pnmtofiasco version number, then exit.\n\n",
                        "flag": "-v",
                        "long": "--version"
                    },
                    {
                        "name": "-V _ --verbose _",
                        "content": "Set  level of verbosity to N.  Level is 0 (no output at all), 1 (show progress meter),\nor 2 (show detailed compression statistics); default is 1.\n\n",
                        "flag": "-V",
                        "long": "--verbose"
                    },
                    {
                        "name": "-B _ --progress-meter _",
                        "content": "Set type of progress-meter to N.  The following types are available; default is 1:\n\n\n\n0      no progress meter\n\n\n1      RPM style progress bar using 50 hash marks\n\n\n2      percentage meter\n\n\n\n",
                        "flag": "-B",
                        "long": "--progress-meter"
                    },
                    {
                        "name": "-f _ --config=_",
                        "content": "Load parameter file name  to initialize the options of  pnmtofiasco.   See  file  sys‐\ntem.fiascorc  for  an  example of the syntax. Options of pnmtofiasco are set by any of\nthe following methods (in the specified order):\n\n\n\n•      Global resource file /etc/system.fiascorc\n\n•      $HOME/.fiascorc\n\n•      command line\n\n•      --config=name\n\n\n",
                        "flag": "-f",
                        "long": "--config",
                        "arg": "_"
                    },
                    {
                        "name": "-h --info",
                        "content": "Print brief help, then exit.\n\n",
                        "flag": "-h",
                        "long": "--info"
                    },
                    {
                        "name": "-H --help",
                        "content": "Print detailed help, then exit.\n\n\n\n",
                        "flag": "-H",
                        "long": "--help"
                    },
                    {
                        "name": "Options for Advanced Users",
                        "content": ""
                    },
                    {
                        "name": "-b _ --basis-name=_",
                        "content": "Preload compression basis name into FIASCO.  The basis name provides the initial  com‐\npression  dictionary.   Either  use  one  of  the  files \"small.fco\", \"medium.fco\", or\n\"large.fco\" that come with pnmtofiasco  or create a new ASCII basis file.\n\n",
                        "flag": "-b",
                        "long": "--basis-name",
                        "arg": "_"
                    },
                    {
                        "name": "-z _ --optimize=_",
                        "content": "Set optimization level to N.  Level is 0 (fastest) to 3 (slowest); default is  1.   Be\nwarned, the encoding time dramatically increased when N=2 or N=3 while the compression\nperformance only slightly improves.\n\n",
                        "flag": "-z",
                        "long": "--optimize",
                        "arg": "_"
                    },
                    {
                        "name": "-P --prediction",
                        "content": "Use  additional  predictive coding.  If this optimization is enabled then the image is\ncompressed in two steps.  In the first step, a coarse approximation of  the  image  is\ncomputed  using  large unichrome blocks.  Finally, the delta image is computed and the\nprediction error is approximated using the standard FIASCO algorithm.\n\n",
                        "flag": "-P",
                        "long": "--prediction"
                    },
                    {
                        "name": "-D _ --dictionary-size=_",
                        "content": "Set size of dictionary that is used when coding the luminance band to  N;  default  is\n10000, i.e., the dictionary is not restricted.\n\n",
                        "flag": "-D",
                        "long": "--dictionary-size",
                        "arg": "_"
                    },
                    {
                        "name": "-C _ --chroma-dictionary=_",
                        "content": "Set size of dictionary that is used when coding chroma bands to N; default is 40.\n\n",
                        "flag": "-C",
                        "long": "--chroma-dictionary",
                        "arg": "_"
                    },
                    {
                        "name": "-Q _ --chroma-qfactor=_",
                        "content": "Reduce the quality of chroma band compression N-times with respect to the user defined\nquality q of the luminance band compression (--quality=q); default is 2.\n\n",
                        "flag": "-Q",
                        "long": "--chroma-qfactor",
                        "arg": "_"
                    },
                    {
                        "name": "-t _ --tiling-exponent=_",
                        "content": "Subdivide  the image into 2^N tiles prior coding; default is 4, i.e. the image is sub‐\ndivided into 16 tiles. The processing order of the individual tiles is defined by  the\noption --tiling-method=name.\n\n",
                        "flag": "-t",
                        "long": "--tiling-exponent",
                        "arg": "_"
                    },
                    {
                        "name": "-T _ --tiling-method=_",
                        "content": "Order  the  individual image tiles (the image is subdivided into; see option --tiling-\nexponent=N) by method name; default is desc-variance.\n\n\n",
                        "flag": "-T",
                        "long": "--tiling-method",
                        "arg": "_"
                    },
                    {
                        "name": "desc-variance",
                        "content": "Tiles with small variances are processed first.\n\n"
                    },
                    {
                        "name": "asc-variance",
                        "content": "Tiles with large variances are processed first.\n\n"
                    },
                    {
                        "name": "desc-spiral",
                        "content": "Tiles are process in spiral order starting in the middle.\n\n"
                    },
                    {
                        "name": "asc-spiral",
                        "content": "Tiles are process in spiral order starting at the border.\n\n\n\n\n--rpf-mantissa=N\nUse N mantissa bits for quantized coefficients.\n\n\n--dc-rpf-mantissa=N\nUse N mantissa bits for quantized DC coefficients.\n\n\n--rpf-range=N\nCoefficients outside the quantization interval [-N,+N] are set to zero.\n\n\n--dc-rpf-range=N\nDC coefficients outside the quantization interval [-N,+N] are set to zero.\n\n\n\n"
                    },
                    {
                        "name": "Additional Options for Video Compression",
                        "content": ""
                    },
                    {
                        "name": "-s _ --smooth=_",
                        "content": "Smooth decompressed reference frames along  the  partitioning  borders  by  the  given\namount  N.  N is 0 (no smoothing) to 100; default is 70.  This factor is stored in the\nFIASCO file.\n\n",
                        "flag": "-s",
                        "long": "--smooth",
                        "arg": "_"
                    },
                    {
                        "name": "-m _ --min-level=_",
                        "content": "Start prediction (motion compensated prediction or  additional  prediction)  on  block\nlevel N; default is level 6.  I.e., motion compensation is applied to all image blocks\nof at least 8x8 pixels (binary tree level N=6), 16x8 (N=7), 16x16 (N=8), etc.\n\n",
                        "flag": "-m",
                        "long": "--min-level",
                        "arg": "_"
                    },
                    {
                        "name": "-M _ --max-level=_",
                        "content": "Stop  prediction  (motion  compensated  prediction  or additional prediction) on block\nlevel N; default is level 10.  I.e., motion  compensation  is  applied  to  all  image\nblocks of at most 16x16 pixels (N=8), 32x16 (N=9), 32x32 (N=10), etc.\n\n",
                        "flag": "-M",
                        "long": "--max-level",
                        "arg": "_"
                    },
                    {
                        "name": "-2 --half-pixel",
                        "content": "Use half pixel precise motion compensation.\n\n",
                        "flag": "-2",
                        "long": "--half-pixel"
                    },
                    {
                        "name": "-F _ --fps=_",
                        "content": "Set  number of frames per second to N.  This value is stored in the FIASCO output file\nand is used in the decoder fiascotopnm(1) to control the framerate.\n\n",
                        "flag": "-F",
                        "long": "--fps",
                        "arg": "_"
                    },
                    {
                        "name": "-p _ --pattern=_",
                        "content": "Defines the type of inter frame compression which  should  be  applied  to  individual\nframes  of a video stream.  type is a sequence of characters; default is \"IPPPPPPPPP\".\nElement N defines the type of predicting which should be used for frame N;  the  frame\ntype pattern is periodically extended.  Valid characters are:\n\n\n\nI      intra frame, i.e., no motion compensated prediction is used at all.\n\n\nP      predicted frame, i.e., a previously encoded frame is used for prediction (forward pre‐\ndiction).\n\n\nB      bidirectional  predicted  frame,  i.e.,  not  only a previously shown frame but also a\nframe of the future is used for prediction (forward, backward or interpolated  predic‐\ntion).\n\n\n\n",
                        "flag": "-p",
                        "long": "--pattern",
                        "arg": "_"
                    },
                    {
                        "name": "--cross-B-search",
                        "content": "Instead  of using exhaustive search the \"Cross-B-Search\" algorithm is used to find the\nbest interpolated prediction of B-frames.\n\n",
                        "long": "--cross-B-search"
                    },
                    {
                        "name": "--B-as-past-ref",
                        "content": "Also use previously encoded B-frames when prediction the current frame. If this option\nis not set, only I- and P-frames are used to predict the current frame.\n\n\n\n\n",
                        "long": "--B-as-past-ref"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "Compress the still image \"foo.ppm\" to the FIASCO file \"foo.wfa\" using the default options:\n\npnmtofiasco < foo.ppm >foo.wfa\n\n\nCompress the video frames \"foo0*.ppm\" to the FIASCO file \"video.wfa\" using half pixel precise\nmotion compensation at a frame rate of 15 frames per second.  Intra frame 1 is used  to  pre‐\ndict  P-frame 4, frames 1 and 4 are used to predict B-frames 2 and 3, and so on.  Frame 10 is\nagain an intra-frame.\n\npnmtofiasco -2 -p \"IBBPBBPBB\" -fps 15 -o video.wfa foo0*.ppm\n\n\n",
                "subsections": []
            },
            "FILES": {
                "content": "",
                "subsections": [
                    {
                        "name": "/etc/system.fiascorc",
                        "content": "The systemwide initialization file.\n\n\n$HOME/.fiascorc\nThe personal initialization file.\n\n\n\n"
                    }
                ]
            },
            "ENVIRONMENT": {
                "content": "FIASCOIMAGES\nSearch path for image files.  Default is \"./\".\n\n\nFIASCODATA\nSearch and save path for FIASCO files.  Default is \"./\".\n\n\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "fiascotopnm(1), pnmtojpeg(1), pnmtojbig(1), pamtogif(1), pnm(1)\n\nUllrich Hafner, Juergen Albert, Stefan Frank, and Michael Unger.   Weighted  Finite  Automata\nfor Video Compression, IEEE Journal on Selected Areas In Communications, January 1998\n\nUllrich Hafner. Low Bit-Rate Image and Video Coding with Weighted Finite Automata, Ph.D. the‐\nsis, Mensch & Buch Verlag, ISBN 3-89820-002-7, October 1999.\n\nFIASCO: An Open-Source Fractal Image and Sequence Codec, Linux Journal, January 2001.\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Ullrich Hafner <hafner@bigfoot.de>\n",
                "subsections": []
            },
            "DOCUMENT SOURCE": {
                "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pnmtofiasco.html\n\nnetpbm documentation                        12 July 2000                  Pnmtofiasco User Manual(1)",
                "subsections": []
            }
        }
    }
}