XIL Device Porting and Extensibility Guide
  Buscar sólo este libro
Descargar este libro en PDF

XIL Atomic Functions

B

Table B-1 lists the XIL atomic functions. The syntax for these entries is,

  <operation name>;<src1 data type>,<src2 data type>,<src3 data type>-><dst data type>  

If the operation uses of all the same data type this long form is shortened to,
<operation name>;<data type>.

where data type is one of the following,
  1. 1 - 1-bit images

  2. 8 - 8-bit images

  3. 16 - 16-bit images

  4. f32 - 32-bit floating point images

For example for the add operation for 16 bit data the atomic function is,

  add;16  

The API call xil_blend() for 32-bit floating point data with a 16-bit blend image, illustrates the full syntax.

  blend;f32,f32,16->f32  

The first column gives the name of the function that must be supplied in the config file header comment in order to associate an implemented function with an API call. The second column lists the data types for which the operation is valid. The third column gives the name of the API binding call associated with the atomic name. Further description of these API functions can be found in the XIL Reference Manual.
Table B-1 (1 of 5)
Atomic FunctionValid Data CombinationsAPI Call
absolute16 f32xil_absolute
add1 8 16 f32xil_add
add_const1 8 16 f32xil_add_const
affine_bicubic1 8 16 f32xil_affine, bicubic interpolation
affine_bilinear1 8 16 f32xil_affine, bilinear interpolation
affine_general1 8 16 f32xil_affine, general interpolation
affine_nearest1 8 16 f32xil_affine, nearest neighbor interpolation
and1 8 16xil_and
and_const1 8 16xil_and_const
band_combine1 8 16 f32xil_band_combine
black_generation1 8 16 f32xil_black_generation
Table B-1 (2 of 5)
Atomic FunctionValid Data CombinationsAPI Call
blend1,1,1->1
1,1,8->1
1,1,16->1
1,1,f32->1
8,8,1->8
8,8,8->8
8,8,16->8
8,8,f32->8
16,16,1->16
16,16,8->16
16,16,16->16
16,16,f32->16
f32,f32,1>f32
f32,f32,8->f32
f32,f32,16>f32
f32,f32,f32->f32
xil_blend
choose_colormap8xil_choose_colormap
color_convert1 8 16 f32xil_color_convert
color_correct8xil_color_correct
cast1->8 1->16 1->f32
8->1 8->16 8->f32
16->1 16->8 16->f32
f32->1 f32->8 f32->16
xil_cast
convolve1 8 16 f32xil_convolve
copy1 8 16 f32xil_copy
copy_with_planemask1 8 16xil_copy_with_planemask
copy_pattern1 8 16 f32xil_copy_pattern
dilate1 8 16 f32xil_dilate
divide1 8 16 f32xil_divide
divide_into_const1 8 16 f32xil_divide_into_const
edge_detection1 8 16 f32xil_edge_detection
erode1 8 16 f32xil_erode
Table B-1 (3 of 5)
Atomic FunctionValid Data CombinationsAPI Call
error_diffusion1->8 1->16

8->1 8->16

16->1 16->8

f32->1 f32->8 f32->16

xil_error_diffusion
extrema1 8 16 f32xil_extrema
fill1 8 16 f32xil_fill
histogram1 8 16 f32xil_histogram
lookup1->1 1->8 1->16 1->f32
8->1 8->8 8->16 8->f32
16->1 16->8 16->16 16->f32
xil_lookup
max1 8 16 f32xil_max
multiply1 8 16 f32xil_multiply
multiply_const1 8 16 f32xil_multiply_const
nearest_color1->1 1->8 1->16 8->1 8->8 8->16 16->1 16->8 16->16 f32->1 f32->8 f32->16xil_nearest_color
not1 8 16xil_not
or1 8 16xil_or
or_const1 8 16xil_or_const
ordered_dither1->1 1->8 1->16 8->1 8->8 8->16 16->1 16->8 16->16 f32->1 f32->8 f32->16xil_ordered_dither
paint1 8 16 f32xil_paint
rescale1 8 16 f32xil_rescale
rotate_bicubic1 8 16 f32xil_rotate, bicubic interpolation
rotate_bilinear1 8 16 f32xil_rotate, bilinear interpolation
rotate_general1 8 16 f32xil_rotate, general
interpolation
Table B-1 (4 of 5)
Atomic FunctionValid Data CombinationsAPI Call
rotate_nearest1 8 16 f32xil_rotate, nearest neighbor interpolation
scale_bicubic1 8 16 f32xil_scale, bicubic
interpolation
scale_bilinear1 8 16 f32xil_scale, bilinear
interpolation
scale_general1 8 16 f32xil_scale, general
interpolation
scale_nearest1 8 16 f32xil_scale, nearest neighbor interpolation
set_value1 8 16 f32xil_set_value
separable_convolve1 8 16 f32xil_convolve with a separable kernel
soft_fill1 8 16 f32xil_soft_fill
squeeze_range1 8 16xil_squeeze_range
subsample_binary_to_gray1->8xil_subsample_binary_to_g ray
subsample_adaptive1 8 16 f32xil_subsample_adaptive
subtract1 8 16 f32xil_subtract
subtract_from_const1 8 16 f32xil_subtract_from_const
tablewarp_bicubic1 8 16 f32xil_tablewarp, bicubic interpolation
tablewarp_bilinear1 8 16 f32xil_tablewarp, bilinear interpolation
tablewarp_general1 8 16 f32xil_tablewarp, general interpolation
tablewarp_nearest1 8 16 f32xil_tablewarp, nearest neighbor interpolation
tablewarp_horizontal_bicubic1 8 16 f32xil_tablewarp_horizontal, bicubic interpolation
tablewarp_horizontal_bilinear1 8 16 f32xil_tablewarp_horizontal, bilinear interpolation
Table B-1 (5 of 5)
Atomic FunctionValid Data CombinationsAPI Call
tablewarp_horizontal_general1 8 16 f32xil_tablewarp_horizontal, general interpolation
tablewarp_horizontal_nearest1 8 16 f32xil_tablewarp_horizontal, nearest neighbor interpolation
tablewarp_vertical_bicubic1 8 16 f32xil_tablewarp_vertical, bicubic interpolation
tablewarp_vertical_bilinear1 8 16 f32xil_tablewarp_vertical, bilinear interpolation
tablewarp_vertical_general1 8 16 f32xil_tablewarp_vertical, general interpolation
tablewarp_vertical_nearest1 8 16 f32xil_tablewarp_vertical, nearest neighbor interpolation
threshold1 8 16 f32xil_threshold
translate_bicubic1 8 16 f32xil_translate, bicubic interpolation
translate_bilinear1 8 16 f32xil_translate, bilinear interpolation
translate_general1 8 16 f32xil_translate, general interpolation
translate_nearest1 8 16 f32xil_translate, nearest neighbor interpolation
transpose1 8 16 f32xil_transpose
xor1 8 16xil_xor
xor_const1 8 16xil_xor_const