Set up the ADAS viewer plugin
Synopsis:
#include <adas/adas_viewer_plugin.h>
typedef int(* adas_viewer_plugin_program_t)(adas_viewer_plugin_view_type_t view_type,
int channel,
adas_sensor_orientation_t orientation,
float fov,
float radius,
float theta,
adas_chained_rotations_3d_t rotations,
adas_dimensions_t dest_dims,
adas_dimensions_t src_dims,
adas_dimensions_t window_dims,
adas_pixel_format_t src_format,
adas_pixel_format_t dest_format);
Arguments:
- view_type
- The type of camera view from the supported ADAS view types (see adas_viewer_plugin_view_type_t).
- channel
- An integer to specify the sensor channel; used for multiple sensor configurations.
- orientation
- A flag indicating the sensor orientation (see adas_sensor_orientation_t).
- fov
- A float indicating the field of view of the sensor in radians.
- radius
- A float indicating the radius of curvature of the lens in millimeters.
- theta
- A float indicating the angle in the degrees range [-359..359] at which to output the video.
- rotations
- The direction in 3D space, in degrees (see adas_chained_rotations_3d_t).
- dest_dims
- The width and height dimension parameters of the destination (see adas_dimensions_t).
- src_dims
- The width and height dimension parameters of the source.
- window_dims
- The width and height dimension parameters of the destination display window.
- src_format
- The format of the source pixel data (see adas_pixel_format_t).
- dest_format
- The format of the destination pixel data.
Library:
libadas
Description:
This function is used to configure any required parameters that will be used with the plugin.
Returns:
ADAS_EOK when the function successfully completes, otherwise a value that provides the reason that the call failed.