NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Container.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2026 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 
13 #ifndef DW_SENSORS_CONTAINERS_CONTAINER_H_
14 #define DW_SENSORS_CONTAINERS_CONTAINER_H_
15 
16 #include <dw/core/base/Types.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
29 #define DW_CONTAINER_MAX_TIMESTAMPS 8U
30 #define DW_CONTAINER_MAX_META_TYPES 8U
31 enum
32 {
34 };
35 
37 typedef enum {
48 } dwTimeType;
49 
51 typedef struct dwContainerProperties
52 {
53  uint32_t fileMagicNumber;
54  uint32_t fileVersion;
55  uint32_t prefixHeaderSize;
56  uint32_t suffixHeaderSize;
57  uint64_t trackHeaderOffset;
59 
61 typedef struct dwContainerTrackInfo
62 {
64  uint32_t timeTypesCount;
66  void const* metadata;
69 
71 typedef enum dwContainerFrameFlags {
75 
77 typedef enum dwContainerType {
87 
89 typedef struct dwContainerMetaConfig
90 {
92  uint32_t metaTypesCount;
96 
99 #ifdef __cplusplus
100 }
101 #endif
102 #endif //DW_SENSORS_CONTAINERS_CONTAINER_H_
Metadata.h
dwContainerMetaConfig::capacity
uint32_t capacity[DW_CONTAINER_MAX_META_TYPES]
Maximum metadata item count for each metadata type specified in metaTypes.
Definition: Container.h:94
DW_CONTAINER_FRAME_COMPLETE
@ DW_CONTAINER_FRAME_COMPLETE
This frame represents the end of a sequence resulting in a decodable frame.
Definition: Container.h:73
dwContainerProperties
Holds container properties.
Definition: Container.h:51
Types.h
dwContainerTrackInfo::mediaType
dwMediaType mediaType
Media type defined in Codec.h.
Definition: Container.h:63
dwContainerMetaConfig::metaTypes
dwContainerMetaType metaTypes[DW_CONTAINER_MAX_META_TYPES]
Types of metadata.
Definition: Container.h:93
DW_TIME_TYPE_POS_OFFSET
@ DW_TIME_TYPE_POS_OFFSET
Postition Offset.
Definition: Container.h:46
DW_TIME_TYPE_PRIOR_KEY_FRAME
@ DW_TIME_TYPE_PRIOR_KEY_FRAME
Key Frame.
Definition: Container.h:47
DW_TIME_TYPE_HOST
@ DW_TIME_TYPE_HOST
Host time.
Definition: Container.h:39
Codec.h
DW_TIME_TYPE_TSC
@ DW_TIME_TYPE_TSC
TSC time.
Definition: Container.h:40
dwContainerProperties::fileMagicNumber
uint32_t fileMagicNumber
Container ID.
Definition: Container.h:53
dwMediaType
dwMediaType
Media Type for Codec.
Definition: Codec.h:47
DW_CONTAINER_TYPE_MP4
@ DW_CONTAINER_TYPE_MP4
MP4 Container.
Definition: Container.h:79
dwContainerMetaConfig::metaTypesCount
uint32_t metaTypesCount
Number of different metadata types.
Definition: Container.h:92
dwContainerProperties::trackHeaderOffset
uint64_t trackHeaderOffset
Offset of the track header in the single-track containers.
Definition: Container.h:57
DW_CONTAINER_TYPE_UNKNOWN
@ DW_CONTAINER_TYPE_UNKNOWN
Unknow Container.
Definition: Container.h:78
dwContainerProperties::fileVersion
uint32_t fileVersion
Container version.
Definition: Container.h:54
dwContainerTrackInfo
struct dwContainerTrackInfo dwContainerTrackInfo
Holds container track information.
dwContainerTrackInfo::timeTypesCount
uint32_t timeTypesCount
Number of time types.
Definition: Container.h:64
DW_CONTAINER_TYPE_HEVC
@ DW_CONTAINER_TYPE_HEVC
HEVC Container.
Definition: Container.h:81
char8_t
char char8_t
Definition: core/base/BasicTypes.h:55
DW_TIME_TYPE_SERIALIZATION
@ DW_TIME_TYPE_SERIALIZATION
Serialization time.
Definition: Container.h:44
dwContainerFrameFlags
dwContainerFrameFlags
Enum representing a container frame flags.
Definition: Container.h:71
DW_TIME_TYPE_ABSOLUTE
@ DW_TIME_TYPE_ABSOLUTE
Absolute time.
Definition: Container.h:43
dwTimeType
dwTimeType
Enum representing a supported time domains.
Definition: Container.h:37
DW_CONTAINER_TYPE_MCAP
@ DW_CONTAINER_TYPE_MCAP
MCAP Container.
Definition: Container.h:85
DW_CONTAINER_TYPE_DWPOD
@ DW_CONTAINER_TYPE_DWPOD
Product Container.
Definition: Container.h:80
DW_CONTAINER_MAX_TRACK_NAME
@ DW_CONTAINER_MAX_TRACK_NAME
Definition: Container.h:33
dwContainerTrackInfo
Holds container track information.
Definition: Container.h:61
DW_TIME_TYPE_RELATIVE_PTS
@ DW_TIME_TYPE_RELATIVE_PTS
PTS time.
Definition: Container.h:41
DW_CONTAINER_MAX_META_TYPES
#define DW_CONTAINER_MAX_META_TYPES
Definition: Container.h:30
dwContainerProperties::prefixHeaderSize
uint32_t prefixHeaderSize
Size of the prefix header(s) in the beginning of the container.
Definition: Container.h:55
DW_TIME_TYPE_RELATIVE_DTS
@ DW_TIME_TYPE_RELATIVE_DTS
DTS time.
Definition: Container.h:42
DW_TIME_TYPE_NONE
@ DW_TIME_TYPE_NONE
None time type.
Definition: Container.h:38
dwContainerProperties
struct dwContainerProperties dwContainerProperties
Holds container properties.
dwContainerType
dwContainerType
Enum representing a supported container types.
Definition: Container.h:77
DW_CONTAINER_MAX_TIMESTAMPS
#define DW_CONTAINER_MAX_TIMESTAMPS
Definition: Container.h:29
dwContainerMetaConfig
Holds the container metadata configuration.
Definition: Container.h:89
DW_CONTAINER_TYPE_Legacy
@ DW_CONTAINER_TYPE_Legacy
Legacy Container.
Definition: Container.h:82
DW_TIME_TYPE_SEQUENCE_NUMBER
@ DW_TIME_TYPE_SEQUENCE_NUMBER
Sequence Number.
Definition: Container.h:45
DW_CONTAINER_FRAME_SEEKABLE
@ DW_CONTAINER_FRAME_SEEKABLE
This frame represents the beginning of a sequence resulting in a decodable frame.
Definition: Container.h:72
dwContainerTrackInfo::metadata
void const * metadata
Serialized track metadata.
Definition: Container.h:66
DW_CONTAINER_TYPE_AVC
@ DW_CONTAINER_TYPE_AVC
AVC Container.
Definition: Container.h:84
dwContainerMetaConfig
struct dwContainerMetaConfig dwContainerMetaConfig
Holds the container metadata configuration.
dwContainerProperties::suffixHeaderSize
uint32_t suffixHeaderSize
Size of the suffix header(s) in the end of the container.
Definition: Container.h:56
DW_CONTAINER_TYPE_MJPEG
@ DW_CONTAINER_TYPE_MJPEG
MJPEG Container.
Definition: Container.h:83
dwContainerTrackInfo::timeTypes
dwTimeType timeTypes[DW_CONTAINER_MAX_TIMESTAMPS]
Array of time types.
Definition: Container.h:65
dwContainerMetaConfig::containerType
dwContainerType containerType
Container type.
Definition: Container.h:91
dwContainerTrackInfo::name
char8_t name[DW_CONTAINER_MAX_TRACK_NAME]
Track name.
Definition: Container.h:67
dwContainerMetaType
dwContainerMetaType
Enum representing supported metadata types.
Definition: Metadata.h:26