NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Codec.h File Reference

Detailed Description

NVIDIA DriveWorks API: Codec Methods

Description: This file defines codec methods.

Definition in file Codec.h.

Go to the source code of this file.

Data Structures

struct  dwCodecMimeType
 Holds codec MIME type string. More...
 
struct  dwCodecPacket
 Generic struct storing data output from codec. More...
 
struct  dwEncoderConfigRateControl
 Encoder rate control parameters. More...
 
struct  dwEncoderConfigNVMedia
 NVMedia encoder configs. More...
 
struct  dwEncoderConfig
 Encoder specific configs. More...
 

Macros

#define DW_CODEC_COMPLETE_PICTURE_FLAG   (1 << 0)
 flag to indicate when a complete picture is sent to the decoder this will start frame decode immediately instead of waiting on the next frame to arrive to decode current frame More...
 
#define DW_CODEC_PKT_VIDEO_IS_KEYFRAME_FLAG   (1 << 0)
 flag to indicate if the packet contains a keyframe More...
 

Typedefs

typedef struct dwCodecMimeType dwCodecMimeType
 Holds codec MIME type string. More...
 
typedef dwCodecMimeType dwCodecMimeTypeConst_t
 Constant MIME type. More...
 
typedef struct dwCodecPacket dwCodecPacket
 Generic struct storing data output from codec. More...
 
typedef struct dwEncoderConfigRateControl dwEncoderConfigRateControl
 Encoder rate control parameters. More...
 
typedef struct dwEncoderConfigNVMedia dwEncoderConfigNVMedia
 NVMedia encoder configs. More...
 
typedef struct dwEncoderConfig dwEncoderConfig
 Encoder specific configs. More...
 

Enumerations

enum  dwMediaType {
  DW_MEDIA_TYPE_VIDEO = 0,
  DW_MEDIA_TYPE_LIDAR = 1,
  DW_MEDIA_TYPE_RADAR = 2,
  DW_MEDIA_TYPE_IMU = 3,
  DW_MEDIA_TYPE_GPS = 4,
  DW_MEDIA_TYPE_CAN = 5,
  DW_MEDIA_TYPE_DATA = 6,
  DW_MEDIA_TYPE_TIME = 7,
  DW_MEDIA_TYPE_ROADCAST = 8,
  DW_MEDIA_TYPE_ULTRASONIC = 9,
  DW_MEDIA_TYPE_METADATA = 10,
  DW_MEDIA_TYPE_COUNT = 11
}
 Media Type for Codec. More...
 
enum  dwCodecType {
  DW_CODEC_TYPE_INVALID = -1,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0,
  DW_CODEC_TYPE_USE_CODEC_MIME_TYPE = 64,
  DW_DEPRECATED_ENUM =("dwCodecType deprecated") = 0
}
 Codec Type. More...
 
enum  dwCodecMaxLengths {
  DW_MAX_CODEC_MIME_TYPE_LENGTH = 64,
  DW_MAX_RAW_SIPL_HEADER_LENGTH = 7002
}
 
enum  dwCodecCapability {
  DW_CODEC_CAPABILITY_HARDWARE = 0,
  DW_CODEC_CAPABILITY_SOFTWARE = 1,
  DW_CODEC_CAPABILITY_UNSUPPORTED = 2
}
 Codec Capability. More...
 
enum  dwEncoderRateControlMode {
  DW_ENCODER_RATE_CONTROL_MODE_CONSTQP = 0,
  DW_ENCODER_RATE_CONTROL_MODE_CBR = 1,
  DW_ENCODER_RATE_CONTROL_MODE_VBR = 2
}
 Encoder Rate Control Mode. More...
 

Variables

const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_UNK
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_H264
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_H264_ANNEX_B
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_H265
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_H265_ANNEX_B
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_VP9
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_AV1
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_LRAW
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_LRAW_V2
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_XRAW
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_RAW
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_CUSTOM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_HESAI_P128
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_HESAI_P128_V4P5
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_LUMINAR_H
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_OUSTER_OS1
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_OUSTER_OS2_128
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_HDL32E
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_HDL64E
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_VLP16
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_VLP16HR
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_VLP32C
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_VELODYNE_VLS128
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CONTINENTAL_ARS430
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CONTINENTAL_ARS430CAN
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CONTINENTAL_ARS430RDI
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CONTINENTAL_ARS430RDI_V2
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CUSTOM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_DELPHI
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_BOSCH
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_CAN
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_CONTINENTAL
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_CUSTOM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_DATASPEED
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_NOVATEL_ASCII
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_NOVATEL_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_NV_SIM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_XSENS_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_XSENS_CAN
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_XSENS_NMEA
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_CUSTOM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_DATASPEED
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_DW_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_NMEA
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_NOVATEL
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_NOVATEL_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_NOVATEL_ASCII
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_NV_SIM
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_UBLOX
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_XSENS_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_CAN_DW_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_TIMESENSOR_DW_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_DATA_DW_BINARY
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_ION
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_ULTRASONIC_VALEO_USV
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_ULTRASONIC_VALEO_USV_BSAMPLE
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_ULTRASONIC_CONTI_CUS3_OBJECT
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_CUSTOM_EX
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_CUSTOM_EX
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_HELLA_ADAS6
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_LUMINAR_IRIS_2129
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_LUMINAR_IRIS_2142
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_VIDEO_JPEG
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_POINT_CLOUD_COMPRESSED
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_RADAR_IDC6
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_IMU_IDC6
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_GPS_IDC6
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_ROADCAST_AVMESSAGE
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_LIDAR_LUMINAR_SLIMV2
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_KINECT_IR
 
const dwCodecMimeTypeConst_t DW_CODEC_MIME_TYPE_KINECT_DEPTH