NVIDIA DriveWorks API: CodecHeader Plugin Interface
Description: This file defines codec header plugin interface for encoding and decoding.
Definition in file CodecHeaderPlugin.h.
Go to the source code of this file.
Data Structures | |
struct | dwCodecHeaderPluginFunctions |
Function Table exposing plugin functions. More... | |
Typedefs | |
typedef dwStatus(* | dwCodecHeaderPlugin_canLoad) (void const *const data, size_t const dataSize) |
Check if given data can be loaded. 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_getConfig) (void *config, size_t const configSize, dwCodecHeaderPluginHandle_t handle) |
Get the config 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_getMediaType) (dwMediaType *const mediaType, dwCodecHeaderPluginHandle_t handle) |
Get the MediaType 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_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 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_load) (dwCodecHeaderPluginHandle_t *handle, void const *const data, size_t const dataSize) |
Load a serialized codec header. More... | |
typedef dwStatus(* | dwCodecHeaderPlugin_release) (dwCodecHeaderPluginHandle_t handle) |
Release a CodecHeader managed by the plugin module. More... | |
typedef dwStatus(* | dwCodecHeaderPlugin_save) (size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle) |
Serializes the codec header. More... | |
typedef void * | dwCodecHeaderPluginHandle_t |
CodecHeader plugin handle. More... | |
struct dwCodecHeaderPluginFunctions |
Data Fields | ||
---|---|---|
dwCodecHeaderPlugin_canLoad | canLoad | function pointer of function used to check if given data can be loaded. |
dwCodecHeaderPlugin_getCodecType | getCodecType | function pointer of function used to get codec type. |
dwCodecHeaderPlugin_getConfig | getConfig | function pointer of function used to get the config of the CodecHeader. |
dwCodecHeaderPlugin_getMaxRawPacketSize | getMaxRawPacketSize | function pointer of function used to get the max raw packet size of the CodecHeader. |
dwCodecHeaderPlugin_getMediaType | getMediaType | function pointer of function used to get media type. |
dwCodecHeaderPlugin_getProperties | getProperties | function pointer of function used to get the properties of the CodecHeader. |
dwCodecHeaderPlugin_initializeDecoder | initializeDecoder | function pointer of function used to initialize decoder. |
dwCodecHeaderPlugin_initializeHandle | initializeHandle | function pointer of initialize a new handle to the CodecHeader managed by the plugin module. |
dwCodecHeaderPlugin_load | load | function pointer of function used to load a serialized codec header. |
dwCodecHeaderPlugin_release | release | function pointer of release a CodecHeader managed by the plugin module.. |
dwCodecHeaderPlugin_save | save | function pointer of function used to save. |
typedef dwStatus(* dwCodecHeaderPlugin_canLoad) (void const *const data, size_t const dataSize) |
Check if given data can be loaded.
[in] | data | Pointer to memory block to containing the serialized codec header |
[in] | dataSize | Size of the serialized data |
Definition at line 158 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_getCodecType) (char *const mimeType, const size_t size, dwCodecHeaderPluginHandle_t handle) |
Get the CodecType of the CodecHeader.
[out] | mimeType | The CodecType of given CodecHeader. |
[in] | size | Size of mimeType . |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 87 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_getConfig) (void *config, size_t const configSize, dwCodecHeaderPluginHandle_t handle) |
Get the config of the CodecHeader.
[out] | config | The codec config of given CodecHeader. |
[out] | configSize | Size of config . |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 133 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_getMaxRawPacketSize) (size_t *const size, dwCodecHeaderPluginHandle_t handle) |
Get the max raw packet size of the CodecHeader.
[out] | size | Size of max raw packet. |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 108 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_getMediaType) (dwMediaType *const mediaType, dwCodecHeaderPluginHandle_t handle) |
Get the MediaType of the CodecHeader.
[out] | mediaType | The MideaType of given CodecHeader. |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 98 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_getProperties) (void *const properties, size_t const size, dwCodecHeaderPluginHandle_t handle) |
Get the properties of the CodecHeader.
[out] | properties | The properties of given CodecHeader. |
[in] | size | Size of properties . |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 121 of file CodecHeaderPlugin.h.
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.
[out] | decoderHandle | A pointer to Decoder handle |
[out] | decoderFuncs | Function table provided by the Decoder |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
[in] | ctx | DW context |
Definition at line 183 of file CodecHeaderPlugin.h.
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.
[out] | handle | A pointer to CodecHeader handle |
[in] | codecConfig | The config associated with the CodecHeader. Such as dwCodecConfigVideo for video codec types |
[in] | params | Optional params for the CodecHeader plugin |
Definition at line 65 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_load) (dwCodecHeaderPluginHandle_t *handle, void const *const data, size_t const dataSize) |
Load a serialized codec header.
[out] | handle | A pointer to CodecHeader handle |
[in] | data | Pointer to memory block to containing the serialized codec header |
[in] | dataSize | Size of the serialized data |
Definition at line 170 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_release) (dwCodecHeaderPluginHandle_t handle) |
Release a CodecHeader managed by the plugin module.
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 75 of file CodecHeaderPlugin.h.
typedef dwStatus(* dwCodecHeaderPlugin_save) (size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle) |
Serializes the codec header.
[out] | dataSize | Size of the serialized data |
[out] | data | Pointer to memory block to store the serialized string |
[in] | maxDataSize | Size of the memory block pointed to by data |
[in] | handle | The handle to a CodecHeader created previously with the 'dwCodecHeaderPlugin_initializeHandle' interface. |
Definition at line 146 of file CodecHeaderPlugin.h.
typedef void* dwCodecHeaderPluginHandle_t |
CodecHeader plugin handle.
Definition at line 53 of file CodecHeaderPlugin.h.