Instances of me capture frames in real time from a video signal provided to an input of an AJA device.
More...
#include <ntv2capture.h>
|
static void | ConsumerThreadStatic (AJAThread *pThread, void *pContext) |
| This is the consumer thread's static callback function that gets called when the consumer thread runs. This function gets "Attached" to the consumer thread's AJAThread instance. More...
|
|
static void | ProducerThreadStatic (AJAThread *pThread, void *pContext) |
| This is the capture thread's static callback function that gets called when the capture thread runs. This function gets "Attached" to the AJAThread instance. More...
|
|
Instances of me capture frames in real time from a video signal provided to an input of an AJA device.
Definition at line 19 of file ntv2capture.h.
◆ NTV2Capture()
Constructs me using the given settings.
- Parameters
-
[in] | inConfig | Specifies how to configure capture. |
- Note
- I'm not completely initialized and ready to use until after my Init method has been called.
Definition at line 25 of file ntv2capture.cpp.
◆ ~NTV2Capture()
NTV2Capture::~NTV2Capture |
( |
| ) |
|
|
virtual |
◆ CaptureFrames()
void NTV2Capture::CaptureFrames |
( |
void |
| ) |
|
|
protectedvirtual |
Repeatedly captures frames using AutoCirculate (until global quit flag set).
Definition at line 384 of file ntv2capture.cpp.
◆ ConsumeFrames()
void NTV2Capture::ConsumeFrames |
( |
void |
| ) |
|
|
protectedvirtual |
Repeatedly consumes frames from the circular buffer (until global quit flag set).
Definition at line 320 of file ntv2capture.cpp.
◆ ConsumerThreadStatic()
void NTV2Capture::ConsumerThreadStatic |
( |
AJAThread * |
pThread, |
|
|
void * |
pContext |
|
) |
| |
|
staticprotected |
This is the consumer thread's static callback function that gets called when the consumer thread runs. This function gets "Attached" to the consumer thread's AJAThread instance.
- Parameters
-
[in] | pThread | A valid pointer to the consumer thread's AJAThread instance. |
[in] | pContext | Context information to pass to the thread. (For this application, this will point to the NTV2Capture instance.) |
Definition at line 308 of file ntv2capture.cpp.
◆ GetACStatus()
void NTV2Capture::GetACStatus |
( |
ULWord & |
outGoodFrames, |
|
|
ULWord & |
outDroppedFrames, |
|
|
ULWord & |
outBufferLevel |
|
) |
| |
|
virtual |
Provides status information about my input (capture) process.
- Parameters
-
[out] | outGoodFrames | Receives the number of successfully captured frames. |
[out] | outDroppedFrames | Receives the number of dropped frames. |
[out] | outBufferLevel | Receives the buffer level (number of captured frames ready to be transferred to the host). |
Definition at line 504 of file ntv2capture.cpp.
◆ Init()
Initializes me and prepares me to Run.
Definition at line 73 of file ntv2capture.cpp.
◆ ProducerThreadStatic()
void NTV2Capture::ProducerThreadStatic |
( |
AJAThread * |
pThread, |
|
|
void * |
pContext |
|
) |
| |
|
staticprotected |
This is the capture thread's static callback function that gets called when the capture thread runs. This function gets "Attached" to the AJAThread instance.
- Parameters
-
[in] | pThread | Points to the AJAThread instance. |
[in] | pContext | Context information to pass to the thread. (For this application, this will point to the NTV2Capture instance.) |
Definition at line 372 of file ntv2capture.cpp.
◆ Quit()
void NTV2Capture::Quit |
( |
void |
| ) |
|
|
virtual |
◆ RouteInputSignal()
bool NTV2Capture::RouteInputSignal |
( |
void |
| ) |
|
|
protectedvirtual |
◆ Run()
Runs me.
- Note
- Call this method only after calling Init and it returned AJA_STATUS_SUCCESS.
Definition at line 284 of file ntv2capture.cpp.
◆ SetupAudio()
Sets up everything I need for capturing audio.
Definition at line 211 of file ntv2capture.cpp.
◆ SetupHostBuffers()
void NTV2Capture::SetupHostBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetupVideo()
Sets up everything I need for capturing video.
Definition at line 160 of file ntv2capture.cpp.
◆ StartConsumerThread()
void NTV2Capture::StartConsumerThread |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartProducerThread()
void NTV2Capture::StartProducerThread |
( |
void |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2capture/ntv2capture.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2capture/ntv2capture.cpp