NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
CodecHeader.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2016-2025 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 
35 #ifndef DW_SENSORS_CODECS_CODECHEADER_H_
36 #define DW_SENSORS_CODECS_CODECHEADER_H_
37 
38 #include <dw/core/base/Types.h>
39 #include <dw/core/base/Status.h>
41 
42 #include "Codec.h"
43 #include "CodecHeaderTypes.h"
44 
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 #ifndef DW_IS_SAFETY
52 
65 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
66 DW_DEPRECATED("dwCodecType deprecated. use dwCodecHeader_createNew instead")
68 #endif
69 
85 dwStatus dwCodecHeader_createNew(dwCodecHeaderHandle_t* handle, char8_t const* codecMimeType, void* codecConfig, void* params, dwContextHandle_t context);
86 
96 
97 #ifndef DW_IS_SAFETY
98 
108 // coverity[misra_c_2012_directive_4_9_violation] Deviation Record: AV-NDAS-SWSADR-008
109 DW_DEPRECATED("dwCodecType deprecated. use dwCodecHeader_getCodecTypeNew instead")
111 #endif
112 
127 
141 
154 dwStatus dwCodecHeader_getConfig(void* config, size_t configSize, dwMediaType mediaType, dwCodecHeaderConstHandle_t handle);
155 
170 dwStatus dwCodecHeader_save(size_t* const dataSize, void* data, size_t const maxDataSize, dwCodecHeaderConstHandle_t const handle);
171 
186 dwStatus dwCodecHeader_load(dwCodecHeaderHandle_t* const handle, void const* const data, size_t const dataSize, dwContextHandle_t context);
187 
199 
214 dwStatus dwCodecHeader_register(char const* codecMimeType, dwCodecHeaderPluginFunctions const* const funcTable, dwContextHandle_t ctx);
215 
216 #ifdef __cplusplus
217 }
218 #endif
219 
221 #endif // DW_SENSORS_CODECS_CODECHEADER_H_
dwCodecHeader_load
dwStatus dwCodecHeader_load(dwCodecHeaderHandle_t *const handle, void const *const data, size_t const dataSize, dwContextHandle_t context)
Load a serialized codec header from JSON string.
dwCodecHeaderConstHandle_t
struct dwCodecHeaderObject const * dwCodecHeaderConstHandle_t
CodecHeader handle.
Definition: CodecHeaderTypes.h:41
CodecHeaderTypes.h
Types.h
dwCodecHeader_getCodecTypeNew
dwStatus dwCodecHeader_getCodecTypeNew(char8_t *type, const size_t size, dwCodecHeaderConstHandle_t const handle)
Get the specified codec MIME type in a codec header.
dwCodecHeader_register
dwStatus dwCodecHeader_register(char const *codecMimeType, dwCodecHeaderPluginFunctions const *const funcTable, dwContextHandle_t ctx)
Register CodecHeader plugin with associated codec MIME type.
Codec.h
dwCodecHeader_getConfig
dwStatus dwCodecHeader_getConfig(void *config, size_t configSize, dwMediaType mediaType, dwCodecHeaderConstHandle_t handle)
Get the specified dwCodecConfig* in a codec header.
dwCodecHeader_getCodecType
dwStatus dwCodecHeader_getCodecType(dwCodecType *const type, dwCodecHeaderConstHandle_t const handle)
Get the specified dwCodecType in a codec header.
dwCodecHeader_save
dwStatus dwCodecHeader_save(size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderConstHandle_t const handle)
Serializes the codec header into JSON string.
dwCodecHeader_createNew
dwStatus dwCodecHeader_createNew(dwCodecHeaderHandle_t *handle, char8_t const *codecMimeType, void *codecConfig, void *params, dwContextHandle_t context)
Create a new codec header with the specified codec MIME type.
dwMediaType
dwMediaType
Media Type for Codec.
Definition: Codec.h:47
char8_t
char char8_t
Definition: core/base/BasicTypes.h:55
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
DW_DEPRECATED
#define DW_DEPRECATED(msg)
Definition: core/base/Exports.h:80
dwCodecHeader_release
dwStatus dwCodecHeader_release(dwCodecHeaderHandle_t const handle)
Release resources associated with codec header.
dwCodecType
dwCodecType
Codec Type.
Definition: Codec.h:64
dwCodecHeaderPluginFunctions
Function Table exposing plugin functions.
Definition: CodecHeaderPlugin.h:208
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
CodecHeaderPlugin.h
dwCodecHeader_getMediaType
dwStatus dwCodecHeader_getMediaType(dwMediaType *const type, dwCodecHeaderConstHandle_t const handle)
Get the specified dwMediaType in a codec header.
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:532
Status.h
dwCodecHeaderHandle_t
struct dwCodecHeaderObject * dwCodecHeaderHandle_t
CodecHeader handle.
Definition: CodecHeaderTypes.h:38
dwCodecHeader_create
dwStatus dwCodecHeader_create(dwCodecHeaderHandle_t *handle, dwCodecType type, void *codecConfig)
Create a new codec header with the specified dwCodecType.
type
const WFDCommitType type
Definition: wfdext.h:531
dwCodecHeader_destroy
dwStatus dwCodecHeader_destroy(dwCodecHeaderHandle_t handle)
Destroy a previously allocated codec header.
Context.h