![]() |
AJA NTV2 SDK
18.1.0.2145
NTV2 SDK 18.1.0.2145
|
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 () | |
| My default destructor, which frees all allocatable fields that I own. 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 8815 of file ntv2publicinterface.h.
|
explicit |
Constructs a default NTV2BufferLock struct.
Definition at line 3091 of file ntv2publicinterface.cpp.
|
inline |
My default destructor, which frees all allocatable fields that I own.
Definition at line 8830 of file ntv2publicinterface.h.
|
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 3099 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 3108 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 3117 of file ntv2publicinterface.cpp.
|
inline |
Resets the struct to its initialized state.
Definition at line 8893 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 3132 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 3126 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 8872 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 8881 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 8887 of file ntv2publicinterface.h.
| NTV2Buffer NTV2BufferLock::mBuffer |
Virtual address of a buffer to prelock, and its length.
Definition at line 8817 of file ntv2publicinterface.h.
| ULWord NTV2BufferLock::mFlags |
Action flags (lock, unlock, etc)
Definition at line 8819 of file ntv2publicinterface.h.
| NTV2_HEADER NTV2BufferLock::mHeader |
The common structure header – ALWAYS FIRST!
Definition at line 8816 of file ntv2publicinterface.h.
| ULWord64 NTV2BufferLock::mMaxLockSize |
Max locked bytes.
Definition at line 8820 of file ntv2publicinterface.h.
| ULWord NTV2BufferLock::mReserved[30] |
Reserved for future expansion.
Definition at line 8821 of file ntv2publicinterface.h.
| NTV2_TRAILER NTV2BufferLock::mTrailer |
The common structure trailer – ALWAYS LAST!
Definition at line 8822 of file ntv2publicinterface.h.