DriveWorks SDK Reference
4.0.0 Release
For Test and Development only
CodecHeader.h
Go to the documentation of this file.
1
// This code contains NVIDIA Confidential Information and is disclosed
3
// under the Mutual Non-Disclosure Agreement.
4
//
5
// Notice
6
// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7
// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8
// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9
// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10
//
11
// NVIDIA Corporation assumes no responsibility for the consequences of use of such
12
// information or for any infringement of patents or other rights of third parties that may
13
// result from its use. No license is granted by implication or otherwise under any patent
14
// or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15
// expressly authorized by NVIDIA. Details are subject to change without notice.
16
// This code supersedes and replaces all information previously supplied.
17
// NVIDIA Corporation products are not authorized for use as critical
18
// components in life support devices or systems without express written approval of
19
// NVIDIA Corporation.
20
//
21
// Copyright (c) 2016-2020 NVIDIA Corporation. All rights reserved.
22
//
23
// NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24
// rights in and to this software and related documentation and any modifications thereto.
25
// Any use, reproduction, disclosure or distribution of this software and related
26
// documentation without an express license agreement from NVIDIA Corporation is
27
// strictly prohibited.
28
//
30
46
#ifndef DW_SENSORS_CODEC_CODECDATA_H_
47
#define DW_SENSORS_CODEC_CODECDATA_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
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
60
typedef
struct
dwCodecHeaderObject*
dwCodecHeaderHandle_t
;
61
typedef
struct
dwCodecHeaderObject const*
dwCodecHeaderConstHandle_t
;
62
76
dwStatus
dwCodecHeader_create
(dwCodecHeaderHandle_t* handle,
dwCodecType
type,
void
* codecConfig);
77
86
dwStatus
dwCodecHeader_destroy
(dwCodecHeaderHandle_t handle);
87
98
dwStatus
dwCodecHeader_getCodecType
(
dwCodecType
* type, dwCodecHeaderConstHandle_t handle);
99
110
dwStatus
dwCodecHeader_getMediaType
(
dwMediaType
* type, dwCodecHeaderConstHandle_t handle);
111
124
dwStatus
dwCodecHeader_getConfig
(
void
* config,
size_t
configSize,
dwMediaType
mediaType, dwCodecHeaderConstHandle_t handle);
125
138
dwStatus
dwCodecHeader_save
(
size_t
* dataSize,
void
* data,
size_t
maxDataSize, dwCodecHeaderConstHandle_t handle);
139
152
dwStatus
dwCodecHeader_load
(dwCodecHeaderHandle_t* handle,
void
* data,
size_t
dataSize,
dwContextHandle_t
context);
153
162
dwStatus
dwCodecHeader_release
(dwCodecHeaderHandle_t handle);
163
164
#ifdef __cplusplus
165
}
166
#endif
167
169
#endif // DW_SENSORS_CODEC_CODECDATA_H_
Types.h
NVIDIA DriveWorks API: Core Types
dwCodecHeader_load
dwStatus dwCodecHeader_load(dwCodecHeaderHandle_t *handle, void *data, size_t dataSize, dwContextHandle_t context)
Load a serialized codec header from JSON string.
dwCodecHeaderHandle_t
struct dwCodecHeaderObject * dwCodecHeaderHandle_t
CodecHeader handle.
Definition:
CodecHeader.h:60
dwCodecHeader_create
dwStatus dwCodecHeader_create(dwCodecHeaderHandle_t *handle, dwCodecType type, void *codecConfig)
Get the specified dwCodecType in a codec header.
dwCodecHeaderConstHandle_t
struct dwCodecHeaderObject const * dwCodecHeaderConstHandle_t
Definition:
CodecHeader.h:61
Codec.h
NVIDIA DriveWorks API: Codec Methods
dwCodecHeader_destroy
dwStatus dwCodecHeader_destroy(dwCodecHeaderHandle_t handle)
Get the specified dwCodecType in a codec header.
dwCodecHeader_getCodecType
dwStatus dwCodecHeader_getCodecType(dwCodecType *type, dwCodecHeaderConstHandle_t handle)
Get the specified dwCodecType in a codec header.
dwStatus
dwStatus
Status definition.
Definition:
Status.h:180
dwMediaType
dwMediaType
Media Type for Codec.
Definition:
Codec.h:55
dwCodecType
dwCodecType
Codec Type.
Definition:
Codec.h:70
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition:
Context.h:79
Context.h
NVIDIA DriveWorks API: Core Methods
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 handle)
Release resources associated with codec header.
Status.h
NVIDIA DriveWorks API: Core Status Methods
dwCodecHeader_getMediaType
dwStatus dwCodecHeader_getMediaType(dwMediaType *type, dwCodecHeaderConstHandle_t handle)
Get the specified dwMediaType in a codec header.
dwCodecHeader_save
dwStatus dwCodecHeader_save(size_t *dataSize, void *data, size_t maxDataSize, dwCodecHeaderConstHandle_t handle)
Serializes the codec header into JSON string.
Advance Information | Subject to Change | Prepared and Provided under NDA | Generated by NVIDIA | PR-08397-V5.0