DriveWorks SDK Reference
5.20.37 Release
For Test and Development only

SensorSerializer.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
47#ifndef DW_SENSORS_COMMON_SENSORSERIALIZER_H_
48#define DW_SENSORS_COMMON_SENSORSERIALIZER_H_
49
51#include "Sensors.h"
52
53#include <dw/core/base/Config.h>
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
86 dwSerializerParams const* const params,
87 dwSensorHandle_t const sensor);
88
111
134DW_DEPRECATED("This API is deprecated and will be removed in the next major release")
136 dwSensorSerializerHandle_t const masterSerializer);
137
154DW_DEPRECATED("This API is deprecated and will be removed in the next major release")
155dwStatus dwSensorSerializer_isAttached(bool* const isAttached, dwSensorSerializerHandle_t const serializer);
156
182DW_DEPRECATED("This API is deprecated and will be removed in the next major release")
184 dwSensorSerializerHandle_t const masterSerializer);
185
206
224
243dwStatus dwSensorSerializer_serializeData(uint8_t const* const data, size_t const size,
244 dwSensorSerializerHandle_t const serializer);
245
267dwStatus dwSensorSerializer_serializeDataAsync(uint8_t const* const data, size_t const size,
268 dwSensorSerializerHandle_t const serializer);
269
289 dwSensorSerializerHandle_t const serializer);
290
308 dwSensorSerializerHandle_t const serializer);
309
326 dwSensorSerializerHandle_t const serializer);
327
360
361#ifdef __cplusplus
362}
363#endif
364
366#endif // DW_SENSORS_COMMON_SENSORSERIALIZER_H_
NVIDIA DriveWorks API: Cameras
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks API: Sensor Serializer Types
NVIDIA DriveWorks API: Sensors
NVIDIA DriveWorks API: Core Exports
struct dwCameraFrame * dwCameraFrameHandle_t
Handle to captured frame.
Definition: Camera.h:73
#define DW_DEPRECATED(msg)
Definition: Exports.h:68
#define DW_API_PUBLIC
Definition: Exports.h:56
Defines the properties of the image.
Definition: Image.h:495
DW_API_PUBLIC dwStatus dwSensorSerializer_initialize(dwSensorSerializerHandle_t *const serializer, dwSerializerParams const *const params, dwSensorHandle_t const sensor)
Initializes a sensor serializer with the parameters provided.
DW_API_PUBLIC dwStatus dwSensorSerializer_appendAllocationAttributes(dwImageProperties *const imgProps, dwSensorSerializerHandle_t const serializer)
Append the allocation attribute such that images allocated by the application and given to the serial...
DW_API_PUBLIC dwStatus dwSensorSerializer_detachFrom(dwSensorSerializerHandle_t const serializer, dwSensorSerializerHandle_t const masterSerializer)
This method detaches the serializer previously attached with dwSensorSerializer_attachTo().
DW_API_PUBLIC dwStatus dwSensorSerializer_serializeCameraFrame(dwCameraFrameHandle_t const frame, dwSensorSerializerHandle_t const serializer)
Pushes a camera frame to the serializer.This method must only be used if 'dwSensorSerializer_start' i...
DW_API_PUBLIC dwStatus dwSensorSerializer_serializeData(uint8_t const *const data, size_t const size, dwSensorSerializerHandle_t const serializer)
Pushes data to the serializer.
DW_API_PUBLIC dwStatus dwSensorSerializer_start(dwSensorSerializerHandle_t const serializer)
Starts serialization of sensor.
DW_API_PUBLIC dwStatus dwSensorSerializer_stop(dwSensorSerializerHandle_t const serializer)
Starts serialization of sensor.
DW_API_PUBLIC dwStatus dwSensorSerializer_release(dwSensorSerializerHandle_t const serializer)
Releases a sensor serializer.
DW_API_PUBLIC dwStatus dwSensorSerializer_isAttached(bool *const isAttached, dwSensorSerializerHandle_t const serializer)
Query method to check whether the serializer is attached to another.
DW_API_PUBLIC dwStatus dwSensorSerializer_getStats(dwSerializerStats *const outStats, dwSensorSerializerHandle_t const serializer)
Gets serializer statistics (if available).
DW_API_PUBLIC dwStatus dwSensorSerializer_serializeCameraFrameAsync(dwCameraFrameHandle_t const frame, dwSensorSerializerHandle_t const serializer)
Pushes a camera frame to the serializer.
DW_API_PUBLIC dwStatus dwSensorSerializer_serializeDataAsync(uint8_t const *const data, size_t const size, dwSensorSerializerHandle_t const serializer)
Pushes data to the serializer.
struct dwSensorSerializerObject * dwSensorSerializerHandle_t
Handle representing a sensor serializer.
DW_API_PUBLIC dwStatus dwSensorSerializer_attachTo(dwSensorSerializerHandle_t const serializer, dwSensorSerializerHandle_t const masterSerializer)
Starts and stops serialization of a sensor with a master serializer.
Holds the parameters for sensor serializer creation.
Holds the available statistics for a serializer.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: SensorTypes.h:75