Platform Notes: SPARCstation 10SX and SPARCstation 20 System Configuration Guide
この本のみを検索
PDF 文書ファイルをダウンロードする

XIL Acceleration on SX

4

This Appendix covers commonly-used XIL functions which have been accelerated on the SX for byte and short images. There are certain restrictions which have been placed on the functions in order for acceleration to occur. If the function is not accelerated on SX, it is performed using the memory driver of XIL.
Two functions, xil_lookup(3) and xil_rotate(3), require contiguous memory (up to 128k bytes) for lookup, and the size of the source image for xil_rotate().
The following functional features are supported for the XIL port to SX. All other parameters will cause an XIL_FAILURE to be returned, prompting the memory code to finish the operation.
Note that rotate and lookup require SXDRAM (for which you'll need over 32MBytes on your machine.)

4.1 SX XIL Features

Dyadic functions:
  • 1,3,4 banded byte images.
  • 3 banded child of 4 banded byte image
  • child images with x,y offsets ok; no band offsets
  • full support for ROIs

XIL Function

Byte

Short
Byte
Child
1 band
                                 3 bands     4 bands    n bands        3/4
xil_add                 x           x           x           x           x
xil_and                 x           x           x           x           x
xil_multiply            x           x           x           x           x
xil_or                  x           x           x           x           x
xil_subtract            x           x           x           x           x
xil_xor                 x           x           x           x           x

Other functions:1
  • band short images
  • 1,3,4 band byte images
  • 3-banded child of a 4-banded image
  • child images w/ x,y offsets, no band offsets
  • full support for ROIs

XIL Function

Byte

Short
Byte
Child
1 band 3 bands
4 bands 1 band
3/4





xxxxx
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx
xil_add_const
xil_and_const
xil_divide_const
xil_multiply_const
xil_not
xil_or_const
xil_subtract_const
xil_subtract_from_const


XIL Function

Byte

Short
Byte
Child
1 band 3 bands
4 bands 1 band
3/4
xil_xor_const                                x           x           x           x           x
xil_blend                                    x           x           x           x           x
xil_paint                                    x           x           x           o           x
xil_scale                                    x           x           x           x           x
xil_rescale                                  x           x           x           x           x
xil_set_value                                x           x           x           o           x
xil_extrema                                  x           x           x           x           x
xil_convolve (see Note 4 below)              x           x           x           x           x
xil_rotate (Nearest Neighbor only, no

x....x
x....x
x
ROI)
xil_lookup (see Note 1 below)
xil_color_convert (see Note 2 below)
xil_copy (see Note 3 below)                  x           x           x           x           x
xil_threshold                                x           o           o           x           o
xil_transpose                                x           x           x           x           x
xil_translate                                x           x           x           x           x
xil_get_pixel                                x           x           x           x           x
xil_put_pixel                                x           x           x           x           x

xil_band_combine (see Note 5 below)....................x (3-band)
xil_decompress (see Note 6 below)
xil_cast (see Note 7 below)
  1. The following variations of xil_lookup are implemented.

XIL FunctionFrom-ToBands
xil_lookup8-81 band only
xil_lookup16_161 band only
xil_lookup8_161 band only
xil_lookup16_81 band only
xil_lookup8-241 band to 3 bands
  1. The following variations of xil_color_convert are implemented:


Source Colorspace
t
o

Dest. Colorspace
rgblineartorgb709
rgblineartoycc709
rgblineartoycc601
rgblineartoylinear
rgblineartocmyk
ycc601torgb709
rgb709torgblinear
rgb709toycc601
rgb709tophotoycc
photoycctorgb709
cmyktorgblinear
  1. Copy function also allows the insertion and extraction of one band from 3/4 banded byte and 3-banded short images.

  1. xil_convolve is implemented for the following kernels with central key pixels:

XIL FunctionKernel
xil_convolve3x3
xil_convolve5x5
xil_convolve7x7
xil_convolve3x1/1x3 (molecule)
xil_convolve5x1/1x5 (molecule)
xil_convolve7x1/1x7 (molecule)
  1. xil_band_combine has been implemented for 3-banded short images.

  2. xil_decompress has been implemented for JPEG.

  3. xil_cast has been implemented for conversion between 3-banded byte and 3-banded short images.

4.2 Molecules

The following molecules are implemented:
FunctionBands (bytes only)

1 3 4


xil_copy+displayx x x
xil_rotate+displayx x x
xil_scale+displayx x x
xil_set_value+displayx x x
xil_translate+displayx x x
xil_transpose+displayx x x
xil_convolve+xil_convolv ex x x (for separable convolution)