NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Defines A API for the Codec.

Data Structures

struct  dwCodecHeaderPluginFunctions
 Function Table exposing plugin functions. More...
 
struct  dwDecoderPluginFunctions
 Function Table exposing decoder plugin functions. More...
 
struct  dwCameraHWInformationValidity
 Holds camera hardware information validity. More...
 
struct  dwCameraHWInformation
 Holds camera hardware information. More...
 
struct  dwSensorFirmwareInformation
 Holds the sensor firmware version information. More...
 
struct  dwSensorInformation
 Holds the sensor information. More...
 
struct  dwSensorFirmwareList
 Holds array sensor information. More...
 

Modules

 CodecHeader API
 Defines A API for the CodecHeader.
 
 Encoder API
 Defines A API for the Encoder.
 

Macros

#define DW_MAX_SENSORS   32
 max number of sensors More...
 

Typedefs

typedef void * dwCodecHeaderPluginHandle_t
 CodecHeader plugin handle. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_initializeHandle) (dwCodecHeaderPluginHandle_t *handle, void *const codecConfig, void *const params)
 Initialize a new handle to the CodecHeader managed by the plugin module. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_release) (dwCodecHeaderPluginHandle_t handle)
 Release a CodecHeader managed by the plugin module. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_getCodecType) (char *const mimeType, const size_t size, dwCodecHeaderPluginHandle_t handle)
 Get the CodecType of the CodecHeader. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_getMediaType) (dwMediaType *const mediaType, dwCodecHeaderPluginHandle_t handle)
 Get the MediaType of the CodecHeader. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_getMaxRawPacketSize) (size_t *const size, dwCodecHeaderPluginHandle_t handle)
 Get the max raw packet size of the CodecHeader. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_getProperties) (void *const properties, size_t const size, dwCodecHeaderPluginHandle_t handle)
 Get the properties of the CodecHeader. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_getConfig) (void *config, size_t const configSize, dwCodecHeaderPluginHandle_t handle)
 Get the config of the CodecHeader. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_save) (size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle)
 Serializes the codec header. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_canLoad) (void const *const data, size_t const dataSize)
 Check if given data can be loaded. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_load) (dwCodecHeaderPluginHandle_t *handle, void const *const data, size_t const dataSize)
 Load a serialized codec header. More...
 
typedef dwStatus(* dwCodecHeaderPlugin_initializeDecoder) (dwDecoderPluginHandle_t *decoderHandle, dwDecoderPluginFunctions const **decoderFuncs, dwCodecHeaderPluginHandle_t handle, dwContextHandle_t ctx)
 Initialize a new handle to the Decoder managed by the plugin module. More...
 
typedef struct dwCodecHeaderPluginFunctions dwCodecHeaderPluginFunctions
 Function Table exposing plugin functions. More...
 
typedef void * dwDecoderPluginHandle_t
 Decoder plugin handle. More...
 
typedef dwStatus(* dwDecoderPlugin_release) (dwDecoderPluginHandle_t handle)
 Release a decoder managed by the plugin module. More...
 
typedef dwStatus(* dwDecoderPlugin_reset) (dwDecoderPluginHandle_t handle)
 Reset a decoder managed by the plugin module. More...
 
typedef dwStatus(* dwDecoderPlugin_decode) (dwCodecPacket *packet, dwDecoderPluginHandle_t handle)
 Decode encoded packet data into a frame. More...
 
typedef dwStatus(* dwDecoderPlugin_drain) (void *data, size_t dataSize, dwDecoderPluginHandle_t handle)
 Drains previously queued decode requests. More...
 
typedef struct dwDecoderPluginFunctions dwDecoderPluginFunctions
 Function Table exposing decoder plugin functions. More...
 
typedef struct dwCameraHWInformationValidity dwCameraHWInformationValidity
 Holds camera hardware information validity. More...
 
typedef struct dwCameraHWInformation dwCameraHWInformation
 Holds camera hardware information. More...
 
typedef struct dwSensorFirmwareInformation dwSensorFirmwareInformation
 Holds the sensor firmware version information. More...
 
typedef struct dwSensorInformation dwSensorInformation
 Holds the sensor information. More...
 
typedef struct dwSensorFirmwareList dwSensorFirmwareList
 Holds array sensor information. More...
 

Macro Definition Documentation

◆ DW_MAX_SENSORS

#define DW_MAX_SENSORS   32

max number of sensors

Definition at line 33 of file SensorInfo.h.

Typedef Documentation

◆ dwCameraHWInformation

Holds camera hardware information.

◆ dwCameraHWInformationValidity

Holds camera hardware information validity.

◆ dwCodecHeaderPlugin_canLoad

typedef dwStatus(* dwCodecHeaderPlugin_canLoad) (void const *const data, size_t const dataSize)

Check if given data can be loaded.

@req{GID-AV_REQ-7054147}

Parameters
[in]dataPointer to memory block to containing the serialized codec header
[in]dataSizeSize of the serialized data
Returns
DW_INVALID_ARGUMENT if data or handle is nullptr
DW_FAILURE if the CodecHeader can't load the given serialized data
DW_SUCCESS if call is successful.

Definition at line 163 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_getCodecType

typedef dwStatus(* dwCodecHeaderPlugin_getCodecType) (char *const mimeType, const size_t size, dwCodecHeaderPluginHandle_t handle)

Get the CodecType of the CodecHeader.

@req{GID-AV_REQ-7054123}

Parameters
[out]mimeTypeThe CodecType of given CodecHeader.
[in]sizeSize of mimeType.
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS if call is successful.

Definition at line 80 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_getConfig

typedef dwStatus(* dwCodecHeaderPlugin_getConfig) (void *config, size_t const configSize, dwCodecHeaderPluginHandle_t handle)

Get the config of the CodecHeader.

@req{GID-AV_REQ-7054141}

Parameters
[out]configThe codec config of given CodecHeader.
[out]configSizeSize of config.
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS if call is successful.

Definition at line 134 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_getMaxRawPacketSize

typedef dwStatus(* dwCodecHeaderPlugin_getMaxRawPacketSize) (size_t *const size, dwCodecHeaderPluginHandle_t handle)

Get the max raw packet size of the CodecHeader.

@req{GID-AV_REQ-7054137}

Parameters
[out]sizeSize of max raw packet.
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_SUCCESS if call is successful.

Definition at line 105 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_getMediaType

typedef dwStatus(* dwCodecHeaderPlugin_getMediaType) (dwMediaType *const mediaType, dwCodecHeaderPluginHandle_t handle)

Get the MediaType of the CodecHeader.

@req{GID-AV_REQ-7054136}

Parameters
[out]mediaTypeThe MideaType of given CodecHeader.
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS if call is successful.

Definition at line 93 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_getProperties

typedef dwStatus(* dwCodecHeaderPlugin_getProperties) (void *const properties, size_t const size, dwCodecHeaderPluginHandle_t handle)

Get the properties of the CodecHeader.

@req{GID-AV_REQ-7054139}

Parameters
[out]propertiesThe properties of given CodecHeader.
[in]sizeSize of properties.
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_NOT_IMPLEMENTED if the given CodecHeader doesn't have properties.
DW_SUCCESS if call is successful.

Definition at line 120 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_initializeDecoder

typedef dwStatus(* dwCodecHeaderPlugin_initializeDecoder) (dwDecoderPluginHandle_t *decoderHandle, dwDecoderPluginFunctions const **decoderFuncs, dwCodecHeaderPluginHandle_t handle, dwContextHandle_t ctx)

Initialize a new handle to the Decoder managed by the plugin module.

@req{GID-AV_REQ-7054149}

Parameters
[out]decoderHandleA pointer to Decoder handle
[out]decoderFuncsFunction table provided by the Decoder
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
[in]ctxDW context
Returns
DW_INVALID_ARGUMENT if handle or ctx is nullptr
DW_SUCCESS if call is successful.

Definition at line 192 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_initializeHandle

typedef dwStatus(* dwCodecHeaderPlugin_initializeHandle) (dwCodecHeaderPluginHandle_t *handle, void *const codecConfig, void *const params)

Initialize a new handle to the CodecHeader managed by the plugin module.

@req{GID-AV_REQ-7054105}

Parameters
[out]handleA pointer to CodecHeader handle
[in]codecConfigThe config associated with the CodecHeader. Such as dwCodecConfigVideo for video codec types
[in]paramsOptional params for the CodecHeader plugin
Returns
DW_INVALID_ARGUMENT if handle is nullptr
DW_SUCCESS if call is successful.

Definition at line 54 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_load

typedef dwStatus(* dwCodecHeaderPlugin_load) (dwCodecHeaderPluginHandle_t *handle, void const *const data, size_t const dataSize)

Load a serialized codec header.

@req{GID-AV_REQ-7054148}

Parameters
[out]handleA pointer to CodecHeader handle
[in]dataPointer to memory block to containing the serialized codec header
[in]dataSizeSize of the serialized data
Returns
DW_INVALID_ARGUMENT if data or handle is nullptr
DW_SUCCESS if call is successful.

Definition at line 177 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_release

typedef dwStatus(* dwCodecHeaderPlugin_release) (dwCodecHeaderPluginHandle_t handle)

Release a CodecHeader managed by the plugin module.

@req{GID-AV_REQ-7054116}

Parameters
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS if call is successful.

Definition at line 66 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPlugin_save

typedef dwStatus(* dwCodecHeaderPlugin_save) (size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle)

Serializes the codec header.

@req{GID-AV_REQ-7054145}

Parameters
[out]dataSizeSize of the serialized data
[out]dataPointer to memory block to store the serialized string
[in]maxDataSizeSize of the memory block pointed to by data
[in]handleThe handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface.
Returns
DW_INVALID_ARGUMENT if dataSize, data or handle is nullptr, or if maxDataSize is smaller than the serialized size.
DW_SUCCESS if call is successful.

Definition at line 149 of file CodecHeaderPlugin.h.

◆ dwCodecHeaderPluginFunctions

Function Table exposing plugin functions.

@req{GID-AV_REQ-7054105} @req{GID-AV_REQ-7054116} @req{GID-AV_REQ-7054123} @req{GID-AV_REQ-7054136} @req{GID-AV_REQ-7054137} @req{GID-AV_REQ-7054139} @req{GID-AV_REQ-7054141} @req{GID-AV_REQ-7054145} @req{GID-AV_REQ-7054147} @req{GID-AV_REQ-7054148} @req{GID-AV_REQ-7054149}

◆ dwCodecHeaderPluginHandle_t

CodecHeader plugin handle.

Definition at line 40 of file CodecHeaderPlugin.h.

◆ dwDecoderPlugin_decode

typedef dwStatus(* dwDecoderPlugin_decode) (dwCodecPacket *packet, dwDecoderPluginHandle_t handle)

Decode encoded packet data into a frame.

@req{GID-AV_REQ-6817247}

Parameters
[in]packetThe pointer to the encoded packet data.
[in]handleThe handle to a Decoder created previously with the 'dwCodecHeaderPlugin_initializeDecoder' interface.
Returns
DW_INVALID_ARGUMENT if the packet or handle is NULL or invalid
DW_BUFFER_FULL if the decoder is unable to accept any more packets
DW_SUCCESS

Definition at line 75 of file DecoderPlugin.h.

◆ dwDecoderPlugin_drain

typedef dwStatus(* dwDecoderPlugin_drain) (void *data, size_t dataSize, dwDecoderPluginHandle_t handle)

Drains previously queued decode requests.

@req{GID-AV_REQ-6775020}

Parameters
[out]dataThe pointer to the frame data.
[out]dataSizeSize of data.
[in]handleThe handle to a Decoder created previously with the 'dwCodecHeaderPlugin_initializeDecoder' interface.
Returns
DW_INVALID_ARGUMENT if the packet or handle is NULL or invalid
DW_NOT_READY if the enqueued frames require further inputs.
DW_NOT_AVAILABLE if there's nothing to be drained.
DW_SUCCESS

Definition at line 91 of file DecoderPlugin.h.

◆ dwDecoderPlugin_release

typedef dwStatus(* dwDecoderPlugin_release) (dwDecoderPluginHandle_t handle)

Release a decoder managed by the plugin module.

@req{GID-AV_REQ-6817253}

Parameters
[in]handleThe handle to a Decoder created previously with the 'dwCodecHeaderPlugin_initializeDecoder' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS

Definition at line 49 of file DecoderPlugin.h.

◆ dwDecoderPlugin_reset

typedef dwStatus(* dwDecoderPlugin_reset) (dwDecoderPluginHandle_t handle)

Reset a decoder managed by the plugin module.

@req{GID-AV_REQ-6817249}

Parameters
[in]handleThe handle to a Decoder created previously with the 'dwCodecHeaderPlugin_initializeDecoder' interface.
Returns
DW_INVALID_ARGUMENT if the handle is NULL or invalid
DW_SUCCESS

Definition at line 61 of file DecoderPlugin.h.

◆ dwDecoderPluginFunctions

Function Table exposing decoder plugin functions.

@req{GID-AV_REQ-6817253} @req{GID-AV_REQ-6817249} @req{GID-AV_REQ-6817247} @req{GID-AV_REQ-6775020}

◆ dwDecoderPluginHandle_t

Decoder plugin handle.

Definition at line 37 of file DecoderPlugin.h.

◆ dwSensorFirmwareInformation

Holds the sensor firmware version information.

◆ dwSensorFirmwareList

Holds array sensor information.

◆ dwSensorInformation

Holds the sensor information.