AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
This is used to prelock a video/audio/anc buffer used as the source or target of DMA transfers. The driver will page-lock the buffer immediately, so it won't have to be done for each DMA transfer. This will reduce transfer time and CPU overhead at the cost of locking physical memory. More...
#include <ntv2publicinterface.h>
Public Member Functions | |
std::ostream & | Print (std::ostream &inOutStream) const |
Prints a human-readable representation of me to the given output stream. More... | |
Construction & Destruction | |
NTV2BufferLock () | |
Constructs a default NTV2BufferLock struct. More... | |
NTV2BufferLock (const NTV2Buffer &inBuffer, const ULWord inFlags) | |
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call. More... | |
NTV2BufferLock (const ULWord *pInBuffer, const ULWord inByteCount, const ULWord inFlags) | |
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call. More... | |
NTV2BufferLock (const ULWord64 inMaxLockSize, const ULWord inFlags) | |
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call. More... | |
Changing | |
bool | SetBuffer (const NTV2Buffer &inBuffer) |
Sets the buffer to lock for use in a subsequent call to CNTV2Card::DMABufferLock. More... | |
bool | SetBuffer (const ULWord *pInBuffer, const ULWord inByteCount) |
Sets the buffer to lock for use in a subsequent call to CNTV2Card::DMABufferLock. More... | |
void | SetFlags (const ULWord inFlags) |
Sets the action flags for use in a subsequent call to CNTV2Card::DMABufferLock. More... | |
void | SetMaxLockSize (const ULWord64 inNumBytes) |
Sets the maximum lock size for use in a subsequent call to CNTV2Card::DMABufferLock. More... | |
void | Clear (void) |
Resets the struct to its initialized state. More... | |
Public Attributes | |
NTV2_HEADER | mHeader |
The common structure header – ALWAYS FIRST! More... | |
NTV2Buffer | mBuffer |
Virtual address of a buffer to prelock, and its length. More... | |
ULWord | mFlags |
Action flags (lock, unlock, etc) More... | |
ULWord64 | mMaxLockSize |
Max locked bytes. More... | |
ULWord | mReserved [30] |
Reserved for future expansion. More... | |
NTV2_TRAILER | mTrailer |
The common structure trailer – ALWAYS LAST! More... | |
This is used to prelock a video/audio/anc buffer used as the source or target of DMA transfers. The driver will page-lock the buffer immediately, so it won't have to be done for each DMA transfer. This will reduce transfer time and CPU overhead at the cost of locking physical memory.
Definition at line 8442 of file ntv2publicinterface.h.
|
explicit |
Constructs a default NTV2BufferLock struct.
Definition at line 2871 of file ntv2publicinterface.cpp.
|
explicit |
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call.
inBuffer | Specifies the memory to be locked for DMA operations. |
inFlags | Specifies action flags (e.g. DMABUFFERLOCK_LOCK, etc.). |
Definition at line 2879 of file ntv2publicinterface.cpp.
|
explicit |
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call.
pInBuffer | Specifies a pointer to the host buffer. This buffer will be locked for DMA operations. |
inByteCount | Specifies a the length of the buffer to lock in bytes. |
inFlags | Specifies action flags (lock, unlock, etc) |
Definition at line 2888 of file ntv2publicinterface.cpp.
Constructs an NTV2BufferLock object to use in a CNTV2Card::DMABufferLock call.
inMaxLockSize | Specifies the maximum lock size in bytes |
inFlags | Specifies action flags (lock, unlock, etc) |
Definition at line 2897 of file ntv2publicinterface.cpp.
|
inline |
Resets the struct to its initialized state.
Definition at line 8520 of file ntv2publicinterface.h.
ostream & NTV2BufferLock::Print | ( | std::ostream & | inOutStream | ) | const |
Prints a human-readable representation of me to the given output stream.
inOutStream | Specifies the output stream to use. |
Definition at line 2912 of file ntv2publicinterface.cpp.
bool NTV2BufferLock::SetBuffer | ( | const NTV2Buffer & | inBuffer | ) |
Sets the buffer to lock for use in a subsequent call to CNTV2Card::DMABufferLock.
inBuffer | Specifies the memory to be locked for DMA operations. |
Definition at line 2906 of file ntv2publicinterface.cpp.
Sets the buffer to lock for use in a subsequent call to CNTV2Card::DMABufferLock.
pInBuffer | Specifies a pointer to the host buffer. This buffer will be locked for DMA operations. |
inByteCount | Specifies a the length of the buffer to lock in bytes. |
Definition at line 8499 of file ntv2publicinterface.h.
|
inline |
Sets the action flags for use in a subsequent call to CNTV2Card::DMABufferLock.
inFlags | Specifies action flags (lock, unlock, etc) |
Definition at line 8508 of file ntv2publicinterface.h.
|
inline |
Sets the maximum lock size for use in a subsequent call to CNTV2Card::DMABufferLock.
inNumBytes | Specifies maximum lock size, in bytes. |
Definition at line 8514 of file ntv2publicinterface.h.
NTV2Buffer NTV2BufferLock::mBuffer |
Virtual address of a buffer to prelock, and its length.
Definition at line 8444 of file ntv2publicinterface.h.
ULWord NTV2BufferLock::mFlags |
Action flags (lock, unlock, etc)
Definition at line 8446 of file ntv2publicinterface.h.
NTV2_HEADER NTV2BufferLock::mHeader |
The common structure header – ALWAYS FIRST!
Definition at line 8443 of file ntv2publicinterface.h.
ULWord64 NTV2BufferLock::mMaxLockSize |
Max locked bytes.
Definition at line 8447 of file ntv2publicinterface.h.
ULWord NTV2BufferLock::mReserved[30] |
Reserved for future expansion.
Definition at line 8448 of file ntv2publicinterface.h.
NTV2_TRAILER NTV2BufferLock::mTrailer |
The common structure trailer – ALWAYS LAST!
Definition at line 8449 of file ntv2publicinterface.h.