DriveWorks SDK Reference
5.16.65 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-2023 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_CODEC_CODECHEADER_H_
47
#define DW_SENSORS_CODEC_CODECHEADER_H_
48
49
#include <
dw/core/base/Types.h
>
50
#include <
dw/core/base/Status.h
>
51
#include <
dw/core/context/Context.h
>
52
53
#include <
dw/sensors/Codec.h
>
54
#include <
dw/sensors/CodecHeaderPlugin.h
>
55
56
#ifdef __cplusplus
57
extern
"C"
{
58
#endif
59
61
typedef
struct
dwCodecHeaderObject*
dwCodecHeaderHandle_t
;
62
64
typedef
struct
dwCodecHeaderObject const*
dwCodecHeaderConstHandle_t
;
65
79
DW_DEPRECATED
(
"dwCodecType deprecated. use dwCodecHeader_createNew instead"
)
80
dwStatus
dwCodecHeader_create
(
dwCodecHeaderHandle_t
* handle,
dwCodecType
type,
void
* codecConfig);
81
97
dwStatus
dwCodecHeader_createNew
(
dwCodecHeaderHandle_t
* handle,
char8_t
const* codecMimeType,
void
* codecConfig,
void
* params,
dwContextHandle_t
context);
98
107
dwStatus
dwCodecHeader_destroy
(
dwCodecHeaderHandle_t
handle);
108
119
DW_DEPRECATED
("
dwCodecType
deprecated. use
dwCodecHeader_getCodecTypeNew
instead")
120
dwStatus
dwCodecHeader_getCodecType
(
dwCodecType
* const type,
dwCodecHeaderConstHandle_t
const handle);
121
133
dwStatus
dwCodecHeader_getCodecTypeNew
(
char8_t
* type, const
size_t
size,
dwCodecHeaderConstHandle_t
const handle);
134
145
dwStatus
dwCodecHeader_getMediaType
(
dwMediaType
* const type,
dwCodecHeaderConstHandle_t
const handle);
146
159
dwStatus
dwCodecHeader_getConfig
(
void
* config,
size_t
configSize,
dwMediaType
mediaType,
dwCodecHeaderConstHandle_t
handle);
160
173
dwStatus
dwCodecHeader_save
(
size_t
* const dataSize,
void
* data,
size_t
const maxDataSize,
dwCodecHeaderConstHandle_t
const handle);
174
187
dwStatus
dwCodecHeader_load
(
dwCodecHeaderHandle_t
* const handle,
void
* const data,
size_t
const dataSize,
dwContextHandle_t
context);
188
197
dwStatus
dwCodecHeader_release
(
dwCodecHeaderHandle_t
const handle);
198
211
dwStatus
dwCodecHeader_register
(
char
const* codecMimeType,
dwCodecHeaderPluginFunctions
const* const funcTable,
dwContextHandle_t
ctx);
212
213
#ifdef __cplusplus
214
}
215
#endif
216
218
#endif
// DW_SENSORS_CODEC_CODECHEADER_H_
CodecHeaderPlugin.h
NVIDIA DriveWorks API: CodecHeader Plugin Interface
dwCodecHeaderPluginFunctions
Function Table exposing plugin functions.
Definition:
CodecHeaderPlugin.h:187
Codec.h
NVIDIA DriveWorks API: Codec Methods
Context.h
NVIDIA DriveWorks API: Core Methods
dwStatus
dwStatus
Status definition.
Definition:
ErrorDefs.h:44
Status.h
NVIDIA DriveWorks API: Core Status Methods
Types.h
NVIDIA DriveWorks API: Core Types
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.
dwCodecHeaderHandle_t
struct dwCodecHeaderObject * dwCodecHeaderHandle_t
CodecHeader handle.
Definition:
CodecHeader.h:61
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.
dwCodecHeader_load
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.
dwCodecHeader_getMediaType
dwStatus dwCodecHeader_getMediaType(dwMediaType *const type, dwCodecHeaderConstHandle_t const handle)
Get the specified dwMediaType 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_getConfig
dwStatus dwCodecHeader_getConfig(void *config, size_t configSize, dwMediaType mediaType, dwCodecHeaderConstHandle_t handle)
Get the specified dwCodecConfig* in a codec header.
dwCodecHeader_release
dwStatus dwCodecHeader_release(dwCodecHeaderHandle_t const handle)
Release resources associated with codec header.
dwCodecHeader_destroy
dwStatus dwCodecHeader_destroy(dwCodecHeaderHandle_t handle)
Destroy a previously allocated codec header.
dwCodecHeaderConstHandle_t
struct dwCodecHeaderObject const * dwCodecHeaderConstHandle_t
CodecHeader handle.
Definition:
CodecHeader.h:64
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.
dwCodecHeader_create
dwStatus dwCodecHeader_create(dwCodecHeaderHandle_t *handle, dwCodecType type, void *codecConfig)
Create a new codec header with the specified dwCodecType.
dwCodecType
dwCodecType
Codec Type.
Definition:
Codec.h:76
dwMediaType
dwMediaType
Media Type for Codec.
Definition:
Codec.h:61
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition:
Context.h:86
DW_DEPRECATED
#define DW_DEPRECATED(msg)
Definition:
Exports.h:68
Advance Information | Subject to Change | Prepared and Provided under NDA | Generated by NVIDIA | PR-08397-V5.0