DriveWorks SDK Reference
5.20.37 Release
For Test and Development only

CodecHeader.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
46#ifndef DW_SENSORS_CODECS_CODECHEADER_H_
47#define DW_SENSORS_CODECS_CODECHEADER_H_
48
49#include <dw/core/base/Types.h>
50#include <dw/core/base/Status.h>
52
53#include "Codec.h"
54#include "CodecHeaderTypes.h"
55
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
75DW_DEPRECATED("dwCodecType deprecated. use dwCodecHeader_createNew instead")
77
93dwStatus dwCodecHeader_createNew(dwCodecHeaderHandle_t* handle, char8_t const* codecMimeType, void* codecConfig, void* params, dwContextHandle_t context);
94
104
117
129dwStatus dwCodecHeader_getCodecTypeNew(char8_t* type, const size_t size, dwCodecHeaderConstHandle_t const handle);
130
142
155dwStatus dwCodecHeader_getConfig(void* config, size_t configSize, dwMediaType mediaType, dwCodecHeaderConstHandle_t handle);
156
169dwStatus dwCodecHeader_save(size_t* const dataSize, void* data, size_t const maxDataSize, dwCodecHeaderConstHandle_t const handle);
170
183dwStatus dwCodecHeader_load(dwCodecHeaderHandle_t* const handle, void* const data, size_t const dataSize, dwContextHandle_t context);
184
194
207dwStatus dwCodecHeader_register(char const* codecMimeType, dwCodecHeaderPluginFunctions const* const funcTable, dwContextHandle_t ctx);
208
209#ifdef __cplusplus
210}
211#endif
212
214#endif // DW_SENSORS_CODECS_CODECHEADER_H_
NVIDIA DriveWorks API: CodecHeader Plugin Interface
Function Table exposing plugin functions.
NVIDIA DriveWorks API: CodecHeader Method
NVIDIA DriveWorks API: Codec Methods
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks API: Core Status Methods
NVIDIA DriveWorks API: Core Types
dwStatus dwCodecHeader_save(size_t *const dataSize, void *data, size_t const maxDataSize, dwCodecHeaderConstHandle_t const handle)
Serializes the codec header into JSON string.
struct dwCodecHeaderObject * dwCodecHeaderHandle_t
CodecHeader handle.
dwStatus dwCodecHeader_getCodecTypeNew(char8_t *type, const size_t size, dwCodecHeaderConstHandle_t const handle)
Get the specified codec MIME type in a codec header.
dwStatus dwCodecHeader_register(char const *codecMimeType, dwCodecHeaderPluginFunctions const *const funcTable, dwContextHandle_t ctx)
Register CodecHeader plugin with associated codec MIME type.
dwStatus dwCodecHeader_load(dwCodecHeaderHandle_t *const handle, void *const data, size_t const dataSize, dwContextHandle_t context)
Load a serialized codec header from JSON string.
dwStatus dwCodecHeader_getMediaType(dwMediaType *const type, dwCodecHeaderConstHandle_t const handle)
Get the specified dwMediaType in a codec header.
dwStatus dwCodecHeader_getCodecType(dwCodecType *const type, dwCodecHeaderConstHandle_t const handle)
Get the specified dwCodecType in a codec header.
dwStatus dwCodecHeader_getConfig(void *config, size_t configSize, dwMediaType mediaType, dwCodecHeaderConstHandle_t handle)
Get the specified dwCodecConfig* in a codec header.
dwStatus dwCodecHeader_release(dwCodecHeaderHandle_t const handle)
Release resources associated with codec header.
dwStatus dwCodecHeader_destroy(dwCodecHeaderHandle_t handle)
Destroy a previously allocated codec header.
struct dwCodecHeaderObject const * dwCodecHeaderConstHandle_t
CodecHeader handle.
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.
dwStatus dwCodecHeader_create(dwCodecHeaderHandle_t *handle, dwCodecType type, void *codecConfig)
Create a new codec header with the specified dwCodecType.
dwCodecType
Codec Type.
Definition: Codec.h:77
dwMediaType
Media Type for Codec.
Definition: Codec.h:61
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:85
#define DW_DEPRECATED(msg)
Definition: Exports.h:68