Instances of me capture frames in real time from a video signal provided to an input of an AJA device.
More...
#include <ntv2capture4k.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 ntv2capture4k.h.
◆ NTV2Capture4K()
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 22 of file ntv2capture4k.cpp.
◆ ~NTV2Capture4K()
NTV2Capture4K::~NTV2Capture4K |
( |
| ) |
|
|
virtual |
◆ CaptureFrames()
void NTV2Capture4K::CaptureFrames |
( |
void |
| ) |
|
|
protectedvirtual |
Repeatedly captures frames using AutoCirculate (until global quit flag set).
Definition at line 405 of file ntv2capture4k.cpp.
◆ ConsumeFrames()
void NTV2Capture4K::ConsumeFrames |
( |
void |
| ) |
|
|
protectedvirtual |
Repeatedly consumes frames from the circular buffer (until global quit flag set).
Definition at line 351 of file ntv2capture4k.cpp.
◆ ConsumerThreadStatic()
void NTV2Capture4K::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 339 of file ntv2capture4k.cpp.
◆ GetACStatus()
void NTV2Capture4K::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 483 of file ntv2capture4k.cpp.
◆ Init()
◆ ProducerThreadStatic()
void NTV2Capture4K::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 393 of file ntv2capture4k.cpp.
◆ Quit()
void NTV2Capture4K::Quit |
( |
void |
| ) |
|
|
virtual |
◆ RouteInputSignal()
bool NTV2Capture4K::RouteInputSignal |
( |
void |
| ) |
|
|
protectedvirtual |
◆ Run()
Runs me.
- Note
- Call this method only after calling Init and it returned AJA_STATUS_SUCCESS.
Definition at line 315 of file ntv2capture4k.cpp.
◆ SetupAudio()
◆ SetupHostBuffers()
void NTV2Capture4K::SetupHostBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetupVideo()
◆ StartConsumerThread()
void NTV2Capture4K::StartConsumerThread |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartProducerThread()
void NTV2Capture4K::StartProducerThread |
( |
void |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2capture4k/ntv2capture4k.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2capture4k/ntv2capture4k.cpp