NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
DecoderPlugin.h File Reference

Detailed Description

NVIDIA DriveWorks API: Decoder Plugin Interface

Description: This file defines decoder plugin interface for decoding.

Definition in file DecoderPlugin.h.

Go to the source code of this file.

Data Structures

struct  dwDecoderPluginFunctions
 Function Table exposing decoder plugin functions. More...
 

Typedefs

typedef voiddwDecoderPluginHandle_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 Documentation

◆ dwDecoderPlugin_decode

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

Decode encoded packet data into a frame.

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 64 of file DecoderPlugin.h.

◆ dwDecoderPlugin_drain

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

Drains previously queued decode requests.

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 78 of file DecoderPlugin.h.

◆ dwDecoderPlugin_release

typedef dwStatus(* dwDecoderPlugin_release) (dwDecoderPluginHandle_t handle)

Release a decoder managed by the plugin module.

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 42 of file DecoderPlugin.h.

◆ dwDecoderPlugin_reset

typedef dwStatus(* dwDecoderPlugin_reset) (dwDecoderPluginHandle_t handle)

Reset a decoder managed by the plugin module.

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 52 of file DecoderPlugin.h.

◆ dwDecoderPluginFunctions

Function Table exposing decoder plugin functions.

◆ dwDecoderPluginHandle_t

Decoder plugin handle.

Definition at line 32 of file DecoderPlugin.h.