|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
49 typedef unsigned char U8;
50 typedef unsigned short U16;
51 typedef unsigned int U32;
52 typedef unsigned long long U64;
53 typedef signed char S8;
54 typedef signed short S16;
55 typedef signed int S32;
56 typedef signed long long S64;
307 #define NVAVTP_ETH_INT_MAX 64
341 #define NV_AVTP_ETHERNET_HEADER_SIZE sizeof(NvAvtpEthernetHeader)
342 #define NV_AVTP_ETHERNET_HEADER_WITHOUT_QTAG_SIZE (sizeof(NvAvtpEthernetHeader) - 4)
344 #define NV_AVTP_1722_HEADER_SIZE sizeof(NvAvtp1722Header)
346 #define NV_AVTP_CRF_HEADER_SIZE sizeof(NvAvtpCRFHeader)
348 #define NV_AVTP_61883_6_FSD3_HEADER_SIZE sizeof(NvAvtp618836Fsd3Hdr)
350 #define NV_AVTP_61883_4_FSD3_HEADER_SIZE sizeof(NvAvtp618834Fsd3Hdr)
352 #define NV_AVTP_1722_AAF_FSD3_HEADER_SIZE sizeof(NvAvtp1722AAFFsd3Hdr)
354 #define NV_AVTP_1722_61883_HEADER_SIZE 8
355 #define NV_AVTP_CVF_FSD3_HEADER_SIZE sizeof(NvAvtpCvfFsd3Hdr)
357 #define NV_AVTP_H264_PAYLOAD_HEADER_SIZE sizeof(NvAvtpH264PayloadHdr)
360 #define NVAVTP_TSP_SIZE 188
361 #define NV_AVTP_MPEGTS_MAX_TS_PER_PKT 7
362 #define NV_AVTP_ETHER_TYPE_OFFSET 12
363 #define NVAVTP_ETH_INT_MAX 64
611 U32 *dataPayloadSize);
621 U32 *dataPayloadSize);
631 U32 *dataPayloadSize);
struct tagNvAvtpEthernetHeader NvAvtpEthernetHeader
Defines the Ethernet header structure.
struct tagNvAvtpInputParams NvAvtpInputParams
Specifies the AVTP input parameters structure.
tagNvAvtpStatus
Indicates results from an AVTP function.
U16 sourcePacketHeader
Holds the source packet header as defined in IEC 61883-1:2003.
enum tagNvAvtpBool ENvAvtpBool
Defines Boolean flags for true/false states.
ENvAvtpStatus NvAvtpSetStaticAvtpHeader(NvAvtpContextHandle hContext, U8 *pPacket)
Sets the static header part of the AVTP header.
@ eNvAvtpSuccess
Indicates success.
U8 M
The M field is defined on a format/format_subtype specific basis.
U8 forbidden_bit
Holds forbidden_bit.
ENvAvtpStatus NvAvtpSetPacketSize(NvAvtpContextHandle hContext, U16 numSampleUnits)
Sets the AVTP packet size (header + payload) based on the number of samples to be sent per packet.
Defines the CRF input parameters structure.
U16 syAppControl
Holds application-specific information.
U16 reserved2
Reserved temporarily as the 1722 stream contains 4 extra bytes.
enum tagNvAvtpSubHeaderType ENvAvtpSubHeaderType
Defines AVTP sub-header types.
@ eNvMpegts
Specifies IEC 61883-4 MPEG2-TS data transmission.
@ eNvRawVideo
Specifies IEC 61883-8 61883-8 transmission of ITU-R BT.601-style digital video data (raw video....
U16 packetChannel
Holds the channel as specified in IEEE standard 1394-2008.
ENvAvtpStatus NvAvtpGetCvfDataPayloadSize(NvAvtpContextHandle hContext, U8 *pPacket, U32 *dataPayloadSize)
Gets the payload size of the AVTP H264 packet.
Holds the AVTP CVF header structure fsd2.
U16 sourceId
Holds the source identifier as specified in IEC 61883-1.
U8 start_bit
Indicates first packet of a NALU.
U16 reserved1
Holds the CIP header 2nd quadlet indicator defined in IEC 61883-1.
Holds the AVTP CVF header structure.
U8 nri
Holds the nal_ref_idc.
ENvAvtpStatus NvAvtpInit(NvAvtpInputParams *pNvAvtpInpParams, NvAvtpContextHandle *phContext)
Initializes prerequisites to start AVB communication, This function performs the following tasks:
ENvAvtpBool sparseTimestamp
U64 format_subtype
Holds the subtype of cvf.
U64 format
Identifies compressed video payload format.
U16 sourceId
Holds the source identifier as specified in IEC 61883-1.
ENvAvtpStatus NvAvtpParseAAFHeaders(NvAvtpContextHandle hContext, U8 *pPacket)
Parses the AVTP AAF headers and populates the AAF parameter structure specified with hContext.
U32 formatDependentField
Holds the FDF as defined in in IEC 61883-1:2003.
U16 fractionNumber
Holds the fraction number as defined in IEC 61883-1.
@ eNvAvtpTrue
Indicates true.
U8 nalu_type
Holds NALU type.
@ eNvAvtpFalse
Indicates false.
Defines the 1722 AVTP audio format header.
U16 rsv
Reserved as defined in IEC 61883-1:2003.
@ eNvCRF
Specifies 1722 AVTP clock reference frame.
ENvAvtpStatus NvAvtpExtractDataPayload(NvAvtpContextHandle hContext, U8 *pPacket, U8 *pPayload)
Gets the data payload from the AVTP packet.
struct tagNvAvtp1722AAFFsd2 NvAvtp1722AAFFsd2
Defines the 1722 AVTP audio format fsd2.
U64 NvAvtpGetStreamId(NvAvtpContextHandle hContext, U8 *pPacket)
Gets the stream id in the 1722 header.
U16 dataBlockSize
Holds data block size in quadlets as specified in IEC 61883-1:2003.
@ eNvAvtpUnsupported
Indicates an unsupported setting.
U8 rsv2
Reserved as defined in IEC 1722 CVF.
U16 dataBlockSize
Holds the data block size in quadlets as specified in IEC 61883-1:2003.
U16 sourcePacketHeader
Holds the source packet header as defined in IEC 61883-1:2003.
U16 formatId
Holds the format ID as defined in IEC 61883-1:2003.
struct tagNvAvtpCRFParams NvAvtpCRFParams
Defines the CRF input parameters structure.
U8 end_bit
Indicates last packet of a NALU.
U8 NvAvtpGetSequenceNum(NvAvtpContextHandle hContext, U8 *pPacket)
Gets the sequence number in the 1722 header.
@ eNvCvf
Specifies 1722 CVF format.
@ eNvAudio
Specifies IEC 61883-6 audio and music data transmission protocol (uncompressed audio).
U16 reserved3
Reserved temporarily as the 1722 stream contains 4 extra bytes.
U8 evt
Reserved for upper level protocols to indicate events in the stream.
struct tagNvAvtpCvfH264PayloadHdr NvAvtpH264PayloadHdr
U16 formatTag
Holds the format specified by IEEE Std 1394-2008.
ENvAvtpStatus NvAvtpDeinit(NvAvtpContextHandle hContext)
Deinitializes AVB initializations and destroys the AVB context structure instance.
ENvAvtpStatus NvAvtpFillDataPayload(NvAvtpContextHandle hContext, U8 *pPacket, U8 *pPayload, U16 numSample)
Sets the data payload in the AVTP packet.
U16 reserved0
Holds the CIP header 1st quadlet as defined in IEC 61883-1.
U32 NvAvtpGetTimeStamp(NvAvtpContextHandle hContext, U8 *pPacket)
Gets the timestamp in the 1722 header.
U32 NvAvtpGetPacketSize(NvAvtpContextHandle hContext)
Gets the AVTP packet size required for the header and payload.
ENvAvtpStatus NvAvtpGetCRFParams(NvAvtpContextHandle hContext, U8 *pPacket, NvAvtpCRFParams *pAvtpCRFParameters)
Gets the recorded CRF parameters from the context.
U16 syt
Holds synchronization timing as defined in IEC 61883-1.
ENvAvtpStatus NvAvtpSetStreamID(NvAvtpContextHandle hContext, U8 *pPacket, U8 *stream_id)
Sets the stream ID in the packet header.
ENvAvtpStatus NvAvtpSetStaticAAFHeader(NvAvtpContextHandle hContext, U8 *pPacket)
Sets the static header part of the AVTP header.
U16 reserved0
Holds the CIP header 1st quadlet indicator defined in IEC 61883-1.
ENvAvtpStatus NvAvtpSetDestAdd(NvAvtpContextHandle hContext, U8 *pPacket, U8 *pDestAddr)
Sets the Destination MAC Address in the packet header.
U16 syAppControl
Holds the application-specific data.
@ eNvAvtpInvalidParam
Indicates an invalid entry.
tagNvAvtpSubHeaderType
Defines AVTP sub-header types.
struct tagNvAvtpCRFHeader NvAvtpCRFHeader
@ eNvAAF
Specifies 1722 AVTP audio format.
#define NVAVTP_ETH_INT_MAX
Defines the AVTP AAF input parameter structure.
struct tagNvAvtp1722Header NvAvtp1722Header
Defines the AVTP 1722 header structure.
struct tagNvAvtp1722AAFFsd3Hdr NvAvtp1722AAFFsd3Hdr
Defines the 1722 AVTP audio format header.
U16 quadletPaddingCount
Holds the quadlet padding count as defined in IEC 61883-1:2003.
void * NvAvtpContextHandle
ENvAvtpStatus NvAvtpSetQTagFields(NvAvtpContextHandle hContext, U8 *pPacket, U32 priority, U32 vid)
Sets the QTag fields of the AVTP header.
struct tagNvAvtpCvfFsd2Hdr NvAvtpCvfFsd2Hdr
Holds the AVTP CVF header structure fsd2.
U16 dataBlockContinuity
Holds DBC as defined in IEC 61883-1:2003, as the sequence number of the first data block in AVTPDU.
U16 formatDependentField
Holds FDF as defined in in IEC 61883-1:2003.
struct tagNvAvtp618834Fsd3Hdr NvAvtp618834Fsd3Hdr
Holds the AVTP 61883-4 header structure.
U16 reserved1
Holds the CIP header 2nd quadlet indicator defined in IEC 61883-1.
U16 packetTcode
Holds the type code as specified in IEEE Std 1394-2008.
ENvAvtpStatus NvAvtpGetCurrentGptpTimeStamp(NvAvtpContextHandle hContext, U32 *pPtpTime)
Gets the current time from PHC.
enum tagNvAvtpStatus ENvAvtpStatus
Indicates results from an AVTP function.
U8 payload_type
Holds the h264 Data payload format type.
ENvAvtpStatus NvAvtpSetDynamicAvtpHeader(NvAvtpContextHandle hContext, U8 *pPacket)
Sets the dynamic part of the packet header.
ENvAvtpStatus NvAvtpSetSIDValid(NvAvtpContextHandle hContext, U8 *pPacket, U8 sidValid)
Sets Stream ID validity.
ENvAvtpStatus NvAvtpParseAvtpPacket(NvAvtpContextHandle hContext, U8 *pPacket, ENvAvtpSubHeaderType *peDataType)
Parses the AVTP packet and populates the header offsets specified with hContext.
struct tagNvAvtpCvfFsd3Hdr NvAvtpCvfFsd3Hdr
Holds the AVTP CVF header structure.
ENvAvtpStatus NvAvtpSetSrcAdd(NvAvtpContextHandle hContext, U8 *pPacket, U8 *pSrcAddr)
Sets the Source MAC Address in the packet header.
struct tagNvAvtp618836Fsd3Hdr NvAvtp618836Fsd3Hdr
Defines the AVTP 61883-6 header structure.
tagNvAvtpBool
Defines Boolean flags for true/false states.
U16 packetTcode
Holds type code as specified in IEEE standard 1394-2008.
U8 rsv1
Reserved as defined in IEC 1722 CVF.
U16 formatTag
Holds the format specified by IEEE standard 1394-2008.
Defines the 1722 AVTP audio format fsd2.
@ eNvAvtpInvalidPointer
Indicates a null pointer argument.
U16 quadletPaddingCount
Holds the quadlet padding count as defined in IEC 61883-1:2003.
U16 packetChannel
Holds the channel as specified in IEEE Std 1394-2008.
ENvAvtpBool NvAvtpIs1722Packet(U8 *pPacket)
Determines whether the Ethernet packet is an AVTP 1722 packet.
ENvAvtpStatus NvAvtpSetAAFDefaultParams(NvAvtpContextHandle hContext)
Sets the default AAF parameters into the context.
Defines the AVTP 61883-6 header structure.
@ eNvAvtpFail
Indicates failure.
struct tagNvAvtp1722AAFParams NvAvtp1722AAFParams
Defines the AVTP AAF input parameter structure.
ENvAvtpStatus NvAvtpGetStreamLength(NvAvtpContextHandle hContext, U8 *pPacket, U32 *streamLength)
Gets the length of the data payload in the packet.
ENvAvtpStatus NvAvtpGetMpegtsDataPayloadSize(NvAvtpContextHandle hContext, U8 *pPacket, U32 *dataPayloadSize)
Gets the payload size of the AVTP MPEGTS packet.
U16 dataBlockContinuity
Holds the DBC as defined in IEC 61883-1:2003.
U8 reserved1
Reserved as defined in IEC 1722 CVF.
ENvAvtpStatus NvAvtpGetAudioDataPayloadSize(NvAvtpContextHandle hContext, U8 *pPacket, U32 *dataPayloadSize)
Gets the payload size of the AVTP audio packet.
U16 fractionNumber
Holds the fraction number as defined in IEC 61883-1.
ENvAvtpStatus NvAvtpSetAAFParams(NvAvtpContextHandle hContext, NvAvtp1722AAFParams *pAvtp1722AAFParameters)
Sets the AAF parameters into the context.
Holds the AVTP 61883-4 header structure.
@ eNvAvtpAllocError
Indicates a memory allocation error.
U16 rsv
Reserved as defined in IEC 61883-1:2003.
U64 reserved
Reserved for use by AVTP gateways.
ENvAvtpStatus NvAvtpGetAAFParams(NvAvtpContextHandle hContext, U8 *pPacket, NvAvtp1722AAFParams *pAvtp1722AAFParameters)
Gets the recorded AAF parameters from context.
U16 formatId
Holds the format ID as defined in IEC 61883-1:2003.