SunVideo Plus for PCI User's Guide

Image Decompression

This is a modified XIL example to which H.261 was added. For H.261 decompression, the SunVideo Plus XIL molecules will by default use the first SunVideo Plus card installed in your system for hardware accelerated decode of H.261. If you want to use another SunVideo Plus device for decode, you must explicitly use the -D option.

The following shows the command-line syntax for the xil_decompress example:


hostname% xil_decompress options -i filename

The following table describes command options and the default setting,

Table 4-6 xil_decompress Options

Options 

Description and Values 

Default 

-C

Compression type (CellB, JPEG, H.261, Cell, MPEG1) 

CellB

-s %d %d

CellB width and height 

320, 240

-r %d

Playback frame rate (0 = fast as possible)  

0

H261 Options

 

 

-D

Name of SunVideo Plus device for h/w decompression 

NULL

Example Usage

To decompress a CellB bitstream, type:


hostname% xil_decompress -C CellB -s 320 240 -i /tmp/t.clb

To decompress a JPEG bitstream, type:


hostname% xil_decompress -C Jpeg -i tmp/t.jpeg

To decompress an H261 bitstream, type:


hostname% xil_decompress -C H261 -i tmp/t.h261

To decompress a H261 bitstream using the second SunVideo Plus card in your system, type:


hostname% xil_decompress -C H261 -i tmp/t.h261 -D /dev/o1k1