• 04/03/2020
  • Public Content

Mandatory Callbacks for Kernels Supporting Advanced Tiling

Registering an advanced tiling kernel requires defining and specifying the following callback functions for the
  • Inputs and output validation function. It is called during
    to validate every input and output parameter (defined by the index):
    typedef vx_status (*vx_kernel_validate_f) (vx_node node, const vx_reference parameters[], vx_uint32 num, vx_meta_format metas[]);
    This function is a regular callback required for all any user kernel as defined by the OpenVX* 1.1 specification.
  • Advanced Tiling Kernel function. This function is called for each tile contained within the output image, during graph execution.
    typedef vx_status (*vx_advanced_tiling_kernel_intel_f)(vx_node node, void * parameters[], vx_uint32 num, void *tile_memory, vx_size tile_memory_size);
  • Tile-Mapping function, which describes dependencies between an output and input tiles during graph verification within
    . The purpose of this function is to set attributes to the input tile (
    ), required to produce the given output tile (
    ), passed as a
    parameter to the tile-mapping function).
    If the kernel has multiple
    input parameters, this tile mapping function will be called separately for each input. The
    parameter specifies which input parameter index that the runtime is requesting a tile mapping for.
    typedef vx_status (*vx_mapping_intel_f) (vx_node node, vx_reference parameters[], const vx_tile_t_attributes_intel_t* dstRectIn, vx_tile_t_attributes_intel_t* srcRectOut,vx_uint32 param_num);
Refer to the Putting it all Together: Example Code topic for a code example of tiled kernels.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.