NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Defines the video encoder types.

Typedefs

typedef struct dwCodecEncoderVideoObject * dwEncoderVideoHandle_t
 Handle representing a video encoder. More...
 

Functions

dwStatus dwEncoderVideo_appendAllocationAttributes (dwImageProperties *const imgProps, dwEncoderVideoHandle_t encoder)
 Append the image allocation attributes required for images to be compatible with this Encoder instance to the provided dwImageProperties. More...
 

Typedef Documentation

◆ dwEncoderVideoHandle_t

typedef struct dwCodecEncoderVideoObject* dwEncoderVideoHandle_t

Handle representing a video encoder.

Definition at line 39 of file EncoderVideo.h.

Function Documentation

◆ dwEncoderVideo_appendAllocationAttributes()

dwStatus dwEncoderVideo_appendAllocationAttributes ( dwImageProperties *const  imgProps,
dwEncoderVideoHandle_t  encoder 
)

Append the image allocation attributes required for images to be compatible with this Encoder instance to the provided dwImageProperties.

All images passed to this Encoder instance must be created with the allocation attributes returned by this function.

Parameters
[in,out]imgPropsImage properties
[in]encoderHandle representing a encoder.
Note
The given imgProps should be compatible with that returned by dwSensorCamra_getImageProperties API.
The imgProps are read and used to generate the allocation attributes needed by the driver. The allocation attributes are stored back into imgProps.meta.allocAttrs. Applications do not need to free or alter the imgProps.meta.allocAttrs in any way. The imgProps.meta.allocAttrs are only used by DriveWorks as needed when the given imgProps are used to allocate dwImages. If the application alters the imgProps after calling this API, the imgProps.meta.allocAttrs may no longer be applicable to the imgProps and calls related to allocating images will fail.
if imgProps.meta.allocAttrs does not have allocated Memory, this would be allocated by DW and will be owned by DW context until context is destroyed and should be used wisely as it the space is limited.
Returns
DW_FAILURE - if underlying imageAttributes for Encoder is not initialized.
DW_SUCCESS