NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Encoder.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2025 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 
28 #ifndef DW_SENSORS_CODECS_ENCODER_H
29 #define DW_SENSORS_CODECS_ENCODER_H
30 
31 #include <dw/core/base/Exports.h>
32 #include <dw/core/base/Types.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
42 typedef struct dwCodecEncoderObject* dwEncoderHandle_t;
43 
56  dwCodecHeaderHandle_t config,
57  dwEncoderConfig const* encoderConfig,
58  dwContextHandle_t context);
59 
69 
79 
93 dwStatus dwEncoder_encode(void const* data, size_t dataSize, dwMediaType dataType, dwEncoderHandle_t encoder);
94 
107 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif // DW_SENSORS_CODECS_ENCODER_H
Types.h
dwEncoder_returnPacket
dwStatus dwEncoder_returnPacket(dwCodecPacket *packet, dwEncoderHandle_t encoder)
This function returns the codec packet.
Codec.h
Exports.h
dwEncoder_encode
dwStatus dwEncoder_encode(void const *data, size_t dataSize, dwMediaType dataType, dwEncoderHandle_t encoder)
This function enqueues a codec packet.
dwEncoderConfig
Encoder specific configs.
Definition: Codec.h:377
CodecHeader.h
dwMediaType
dwMediaType
Media Type for Codec.
Definition: Codec.h:47
dwEncoderHandle_t
struct dwCodecEncoderObject * dwEncoderHandle_t
Handle representing an encoder.
Definition: Encoder.h:42
dwEncoder_release
dwStatus dwEncoder_release(dwEncoderHandle_t encoder)
This function releases the encoder.
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
dwEncoder_flush
dwStatus dwEncoder_flush(dwEncoderHandle_t encoder)
This function consumes all data from the internal data buffer.
dwEncoder_drainPacket
dwStatus dwEncoder_drainPacket(dwCodecPacket *packet, dwEncoderHandle_t encoder)
This function drains previously queued encode requests.
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwCodecHeaderHandle_t
struct dwCodecHeaderObject * dwCodecHeaderHandle_t
CodecHeader handle.
Definition: CodecHeaderTypes.h:38
dwCodecPacket
Generic struct storing data output from codec.
Definition: Codec.h:313
Context.h
dwEncoder_initialize
dwStatus dwEncoder_initialize(dwEncoderHandle_t *encoder, dwCodecHeaderHandle_t config, dwEncoderConfig const *encoderConfig, dwContextHandle_t context)
This function initializes the encoder.