NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
CodecHeaderPlugin.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
20 #ifndef DW_SENSORS_CODECS_PLUGINS_CODECHEADERPLUGIN_H_
21 #define DW_SENSORS_CODECS_PLUGINS_CODECHEADERPLUGIN_H_
22 
23 #include <dw/core/base/Types.h>
24 #include <dw/core/base/Status.h>
26 
28 #include "DecoderPlugin.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
39 typedef void* dwCodecHeaderPluginHandle_t;
41 
54 typedef dwStatus (*dwCodecHeaderPlugin_initializeHandle)(dwCodecHeaderPluginHandle_t* handle, void* const codecConfig, void* const params);
55 
67 
80 typedef dwStatus (*dwCodecHeaderPlugin_getCodecType)(char* const mimeType, const size_t size, dwCodecHeaderPluginHandle_t handle);
81 
94 
106 
120 typedef dwStatus (*dwCodecHeaderPlugin_getProperties)(void* const properties, size_t const size, dwCodecHeaderPluginHandle_t handle);
121 
134 typedef dwStatus (*dwCodecHeaderPlugin_getConfig)(void* config, size_t const configSize, dwCodecHeaderPluginHandle_t handle);
135 
149 typedef dwStatus (*dwCodecHeaderPlugin_save)(size_t* const dataSize, void* data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle);
150 
163 typedef dwStatus (*dwCodecHeaderPlugin_canLoad)(void const* const data, size_t const dataSize);
164 
177 typedef dwStatus (*dwCodecHeaderPlugin_load)(dwCodecHeaderPluginHandle_t* handle, void const* const data, size_t const dataSize);
178 
193 
209 {
222 
225 #ifdef __cplusplus
226 }
227 #endif
228 #endif // DW_SENSORS_CODECS_PLUGINS_CODECHEADERPLUGIN_H_
dwCodecHeaderPlugin_release
dwStatus(* dwCodecHeaderPlugin_release)(dwCodecHeaderPluginHandle_t handle)
Release a CodecHeader managed by the plugin module.
Definition: CodecHeaderPlugin.h:66
dwCodecHeaderPlugin_getMaxRawPacketSize
dwStatus(* dwCodecHeaderPlugin_getMaxRawPacketSize)(size_t *const size, dwCodecHeaderPluginHandle_t handle)
Get the max raw packet size of the CodecHeader.
Definition: CodecHeaderPlugin.h:105
dwCodecHeaderPluginFunctions::load
dwCodecHeaderPlugin_load load
function pointer of function used to load a serialized codec header.
Definition: CodecHeaderPlugin.h:219
Types.h
dwCodecHeaderPluginFunctions::initializeDecoder
dwCodecHeaderPlugin_initializeDecoder initializeDecoder
function pointer of function used to initialize decoder.
Definition: CodecHeaderPlugin.h:220
dwCodecHeaderPlugin_initializeHandle
dwStatus(* dwCodecHeaderPlugin_initializeHandle)(dwCodecHeaderPluginHandle_t *handle, void *const codecConfig, void *const params)
Initialize a new handle to the CodecHeader managed by the plugin module.
Definition: CodecHeaderPlugin.h:54
dwCodecHeaderPlugin_getMediaType
dwStatus(* dwCodecHeaderPlugin_getMediaType)(dwMediaType *const mediaType, dwCodecHeaderPluginHandle_t handle)
Get the MediaType of the CodecHeader.
Definition: CodecHeaderPlugin.h:93
dwCodecHeaderPluginFunctions::canLoad
dwCodecHeaderPlugin_canLoad canLoad
function pointer of function used to check if given data can be loaded.
Definition: CodecHeaderPlugin.h:218
dwCodecHeaderPlugin_initializeDecoder
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.
Definition: CodecHeaderPlugin.h:192
dwCodecHeaderPlugin_getConfig
dwStatus(* dwCodecHeaderPlugin_getConfig)(void *config, size_t const configSize, dwCodecHeaderPluginHandle_t handle)
Get the config of the CodecHeader.
Definition: CodecHeaderPlugin.h:134
Codec.h
dwCodecHeaderPluginHandle_t
void * dwCodecHeaderPluginHandle_t
CodecHeader plugin handle.
Definition: CodecHeaderPlugin.h:40
dwCodecHeaderPlugin_getCodecType
dwStatus(* dwCodecHeaderPlugin_getCodecType)(char *const mimeType, const size_t size, dwCodecHeaderPluginHandle_t handle)
Get the CodecType of the CodecHeader.
Definition: CodecHeaderPlugin.h:80
dwMediaType
dwMediaType
Media Type for Codec.
Definition: Codec.h:47
dwDecoderPluginHandle_t
void * dwDecoderPluginHandle_t
Decoder plugin handle.
Definition: DecoderPlugin.h:37
dwCodecHeaderPluginFunctions::getMaxRawPacketSize
dwCodecHeaderPlugin_getMaxRawPacketSize getMaxRawPacketSize
function pointer of function used to get the max raw packet size of the CodecHeader.
Definition: CodecHeaderPlugin.h:214
dwCodecHeaderPluginFunctions
struct dwCodecHeaderPluginFunctions dwCodecHeaderPluginFunctions
Function Table exposing plugin functions.
dwCodecHeaderPluginFunctions::getProperties
dwCodecHeaderPlugin_getProperties getProperties
function pointer of function used to get the properties of the CodecHeader.
Definition: CodecHeaderPlugin.h:215
dwCodecHeaderPluginFunctions::initializeHandle
dwCodecHeaderPlugin_initializeHandle initializeHandle
function pointer of initialize a new handle to the CodecHeader managed by the plugin module.
Definition: CodecHeaderPlugin.h:210
dwCodecHeaderPluginFunctions::getCodecType
dwCodecHeaderPlugin_getCodecType getCodecType
function pointer of function used to get codec type.
Definition: CodecHeaderPlugin.h:212
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
DecoderPlugin.h
dwDecoderPluginFunctions
Function Table exposing decoder plugin functions.
Definition: DecoderPlugin.h:100
dwCodecHeaderPluginFunctions
Function Table exposing plugin functions.
Definition: CodecHeaderPlugin.h:208
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwCodecHeaderPluginFunctions::save
dwCodecHeaderPlugin_save save
function pointer of function used to save.
Definition: CodecHeaderPlugin.h:217
dwCodecHeaderPlugin_getProperties
dwStatus(* dwCodecHeaderPlugin_getProperties)(void *const properties, size_t const size, dwCodecHeaderPluginHandle_t handle)
Get the properties of the CodecHeader.
Definition: CodecHeaderPlugin.h:120
dwCodecHeaderPluginFunctions::getConfig
dwCodecHeaderPlugin_getConfig getConfig
function pointer of function used to get the config of the CodecHeader.
Definition: CodecHeaderPlugin.h:216
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:532
Status.h
dwCodecHeaderPlugin_save
dwStatus(* dwCodecHeaderPlugin_save)(size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderPluginHandle_t handle)
Serializes the codec header.
Definition: CodecHeaderPlugin.h:149
dwCodecHeaderPlugin_load
dwStatus(* dwCodecHeaderPlugin_load)(dwCodecHeaderPluginHandle_t *handle, void const *const data, size_t const dataSize)
Load a serialized codec header.
Definition: CodecHeaderPlugin.h:177
dwCodecHeaderPluginFunctions::release
dwCodecHeaderPlugin_release release
function pointer of release a CodecHeader managed by the plugin module.
Definition: CodecHeaderPlugin.h:211
dwCodecHeaderPluginFunctions::getMediaType
dwCodecHeaderPlugin_getMediaType getMediaType
function pointer of function used to get media type.
Definition: CodecHeaderPlugin.h:213
dwCodecHeaderPlugin_canLoad
dwStatus(* dwCodecHeaderPlugin_canLoad)(void const *const data, size_t const dataSize)
Check if given data can be loaded.
Definition: CodecHeaderPlugin.h:163
Context.h