![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Classes | |
| struct | mAudio |
Public Member Functions | |
| vidcap_state_aja (unordered_map< string, string > const ¶meters, int audioFlags) | |
| virtual | ~vidcap_state_aja () |
| struct video_frame * | grab (struct audio_frame **audio) |
| void | Init () |
| void | Quit () |
| AJAStatus | Run () |
Private Member Functions | |
| virtual void | CaptureFrames (void) |
| void | EnableInput (NTV2InputSource source) |
| NTV2VideoFormat | GetVideoFormatFromInputSource () |
| bool | IsInput3Gb (const NTV2InputSource inputSource) |
| AJAStatus | SetupAudio () |
| AJAStatus | SetupHDMI () |
| void | SetupHostBuffers () |
| AJAStatus | SetupVideo () |
| virtual void | StartProducerThread (void) |
| Starts my frame consumer thread. | |
Static Private Member Functions | |
| static void | ProducerThreadStatic (vidcap_state_aja *pContext) |
Private Attributes | |
| uint32_t | mAudioBufferSize {} |
| My video buffer size, in bytes. | |
| uint32_t | mAudioInLastAddress {} |
| My record of the location of the last audio sample captured. | |
| NTV2AudioSource | mAudioSource {} |
| NTV2AudioSystem | mAudioSystem {NTV2_AUDIOSYSTEM_1} |
| The input source I'm using. | |
| bool | mbFixedReference {false} |
| bool | mCheckFor4K {false} |
| bool | mClearRouting {false} |
| CNTV2Card | mDevice |
| NTV2DeviceID | mDeviceID {} |
| unsigned int | mDeviceIndex {0} |
| int | mFrames {0} |
| bool | mGlobalQuit {false} |
| NTV2Channel | mInputChannel {NTV2_CHANNEL_INVALID} |
| Used to restore prior every-frame task mode. | |
| bool | mInputIsRGB |
| SDI Input is in RGB otherwise YCbCr. | |
| NTV2InputSource | mInputSource {NTV2_INPUTSOURCE_SDI1} |
| Wide VANC? | |
| int | mMaxAudioChannels {0} |
| shared_ptr< uint32_t > | mOutputAudioFrame |
| size_t | mOutputAudioFrameSize {} |
| shared_ptr< video_frame > | mOutputFrame |
| mutex | mOutputFrameLock |
| condition_variable | mOutputFrameReady |
| NTV2FrameBufferFormat | mPixelFormat {NTV2_FBF_INVALID} |
| My video format. | |
| video_frame_pool | mPool {0, aligned_data_allocator()} |
| My producer thread object – does the frame capturing. | |
| thread | mProducerThread |
| My audio buffer size, in bytes. | |
| bool | mProgressive {false} |
| NTV2EveryFrameTaskMode | mSavedTaskMode {} |
| My device identifier. | |
| chrono::system_clock::time_point | mT0 {chrono::system_clock::now()} |
| NTV2TCIndex | mTimeCodeSource {} |
| Time code source. | |
| NTV2VANCMode | mVancMode {} |
| My pixel format. | |
| uint32_t | mVideoBufferSize {} |
| The audio system I'm using. | |
| NTV2VideoFormat | mVideoFormat {NTV2_FORMAT_UNKNOWN} |
| My input channel. | |
| bool | mWideVanc {} |
| VANC enabled? | |
| vidcap_state_aja::vidcap_state_aja | ( | unordered_map< string, string > const & | parameters, |
| int | audioFlags ) |
Definition at line 223 of file aja.cpp.
References ultragrid::aja::codec_map, get_codec_from_name(), Init(), LOG, LOG_LEVEL_NOTICE, mAudioSource, mCheckFor4K, mClearRouting, mDeviceIndex, mInputChannel, mInputIsRGB, mInputSource, MOD_NAME, mPixelFormat, mProgressive, mVideoFormat, VIDCAP_FLAG_AUDIO_AESEBU, VIDCAP_FLAG_AUDIO_ANALOG, VIDCAP_FLAG_AUDIO_EMBEDDED, and VIDEO_CODEC_NONE.

|
virtual |
Definition at line 391 of file aja.cpp.
References app, CHECK, mDevice, mInputChannel, mOutputFrame, and mSavedTaskMode.
|
privatevirtual |
Definition at line 817 of file aja.cpp.
References aligned_free, aligned_malloc(), CHECK, video_frame_pool::get_frame(), LOG, log_level, LOG_LEVEL_DEBUG, LOG_LEVEL_WARNING, mAudioInLastAddress, mAudioSource, mAudioSystem, mDevice, mGlobalQuit, mInputChannel, MOD_NAME, mOutputAudioFrame, mOutputAudioFrameSize, mOutputFrame, mOutputFrameLock, mOutputFrameReady, mPool, mVideoBufferSize, mVideoFormat, NTV2_AUDIOSIZE_MAX, R12L, and vc_copylineR12AtoR12L().
Referenced by ProducerThreadStatic().

|
private |
Definition at line 459 of file aja.cpp.
References CHECK, mDevice, and mDeviceID.
Referenced by GetVideoFormatFromInputSource().
|
private |
Definition at line 404 of file aja.cpp.
References CHECK, EnableInput(), LOG, LOG_LEVEL_WARNING, log_msg(), mCheckFor4K, mDevice, mDeviceID, mInputSource, and mProgressive.
Referenced by SetupVideo().

| struct video_frame * vidcap_state_aja::grab | ( | struct audio_frame ** | audio | ) |
Definition at line 935 of file aja.cpp.
References audio, video_frame::callbacks, video_frame_callbacks::dispose, video_frame_callbacks::dispose_udata, LOG, LOG_LEVEL_INFO, mFrames, mGlobalQuit, mMaxAudioChannels, MOD_NAME, mOutputAudioFrame, mOutputAudioFrameSize, mOutputFrame, mOutputFrameLock, mOutputFrameReady, mT0, and remux_channel().

| void vidcap_state_aja::Init | ( | ) |
Definition at line 330 of file aja.cpp.
References app, CHECK, CHECK_OK, get_commandline_param(), mClearRouting, mDevice, mDeviceID, mDeviceIndex, mSavedTaskMode, NOOP, SetupAudio(), SetupHostBuffers(), and SetupVideo().
Referenced by vidcap_state_aja().

|
private |
|
staticprivate |
Definition at line 811 of file aja.cpp.
References CaptureFrames().
Referenced by StartProducerThread().

| void vidcap_state_aja::Quit | ( | ) |
Definition at line 789 of file aja.cpp.
References CHECK, mAudioSystem, mDevice, mGlobalQuit, and mProducerThread.
Referenced by vidcap_aja_done().
| AJAStatus vidcap_state_aja::Run | ( | ) |
Definition at line 774 of file aja.cpp.
References mDevice, mInputSource, mProgressive, MSG, and StartProducerThread().
Referenced by vidcap_aja_init().

|
private |
Definition at line 699 of file aja.cpp.
References aja_audio_capture_channels, audio_desc_from_frame(), CHECK, CHECK_OK, DEFAULT_AUDIO_CAPTURE_CHANNELS, LOG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, mAudioSource, mAudioSystem, mDevice, mDeviceID, mInputSource, mMaxAudioChannels, MOD_NAME, NOOP, and NTV2_AUDIOSIZE_MAX.
Referenced by Init().

|
private |
Definition at line 475 of file aja.cpp.
References CHECK_RET_FAIL, mbFixedReference, mDevice, mDeviceID, mInputChannel, mInputSource, mPixelFormat, mVideoFormat, and offset.
Referenced by SetupVideo().
|
private |
Definition at line 753 of file aja.cpp.
References CHECK, ultragrid::aja::codec_map, desc, INTERLACED_MERGED, LOG, LOG_LEVEL_NOTICE, mAudioBufferSize, mDevice, mPixelFormat, mPool, mVancMode, mVideoBufferSize, mVideoFormat, mWideVanc, NTV2_AUDIOSIZE_MAX, PROGRESSIVE, and video_frame_pool::reconfigure().
Referenced by Init().

|
private |
Definition at line 557 of file aja.cpp.
References CHECK, CHECK_OK, ultragrid::aja::codec_map, GetVideoFormatFromInputSource(), IsInput3Gb(), LOG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_WARNING, mAudioSystem, mbFixedReference, mDevice, mDeviceID, mInputChannel, mInputIsRGB, mInputSource, MOD_NAME, mPixelFormat, MSG, mTimeCodeSource, mVideoFormat, NOOP, offset, and SetupHDMI().
Referenced by Init().

|
privatevirtual |
Starts my frame consumer thread.
Definition at line 803 of file aja.cpp.
References mProducerThread, and ProducerThreadStatic().
Referenced by Run().

|
private |
My video buffer size, in bytes.
Definition at line 185 of file aja.cpp.
Referenced by SetupHostBuffers().
|
private |
My record of the location of the last audio sample captured.
Definition at line 202 of file aja.cpp.
Referenced by CaptureFrames().
|
private |
Definition at line 198 of file aja.cpp.
Referenced by vidcap_state_aja(), CaptureFrames(), and SetupAudio().
|
private |
The input source I'm using.
Definition at line 183 of file aja.cpp.
Referenced by CaptureFrames(), Quit(), SetupAudio(), and SetupVideo().
|
private |
|
private |
Definition at line 201 of file aja.cpp.
Referenced by vidcap_state_aja(), and GetVideoFormatFromInputSource().
|
private |
|
private |
Definition at line 174 of file aja.cpp.
Referenced by ~vidcap_state_aja(), CaptureFrames(), EnableInput(), GetVideoFormatFromInputSource(), Init(), IsInput3Gb(), Quit(), Run(), SetupAudio(), SetupHDMI(), SetupHostBuffers(), and SetupVideo().
|
private |
Definition at line 175 of file aja.cpp.
Referenced by EnableInput(), GetVideoFormatFromInputSource(), Init(), SetupAudio(), SetupHDMI(), and SetupVideo().
|
private |
|
private |
|
private |
Definition at line 205 of file aja.cpp.
Referenced by CaptureFrames(), grab(), and Quit().
|
private |
Used to restore prior every-frame task mode.
Definition at line 177 of file aja.cpp.
Referenced by vidcap_state_aja(), ~vidcap_state_aja(), CaptureFrames(), SetupHDMI(), and SetupVideo().
|
private |
SDI Input is in RGB otherwise YCbCr.
Definition at line 204 of file aja.cpp.
Referenced by vidcap_state_aja(), and SetupVideo().
|
private |
Wide VANC?
Definition at line 182 of file aja.cpp.
Referenced by vidcap_state_aja(), GetVideoFormatFromInputSource(), Run(), SetupAudio(), SetupHDMI(), and SetupVideo().
|
private |
|
private |
Definition at line 189 of file aja.cpp.
Referenced by CaptureFrames(), and grab().
|
private |
|
private |
Definition at line 188 of file aja.cpp.
Referenced by ~vidcap_state_aja(), CaptureFrames(), and grab().
|
private |
Definition at line 191 of file aja.cpp.
Referenced by CaptureFrames(), and grab().
|
private |
Definition at line 192 of file aja.cpp.
Referenced by CaptureFrames(), and grab().
|
private |
My video format.
Definition at line 179 of file aja.cpp.
Referenced by vidcap_state_aja(), SetupHDMI(), SetupHostBuffers(), and SetupVideo().
|
private |
My producer thread object – does the frame capturing.
Definition at line 187 of file aja.cpp.
Referenced by CaptureFrames(), and SetupHostBuffers().
|
private |
My audio buffer size, in bytes.
Definition at line 186 of file aja.cpp.
Referenced by Quit(), and StartProducerThread().
|
private |
Definition at line 193 of file aja.cpp.
Referenced by vidcap_state_aja(), GetVideoFormatFromInputSource(), and Run().
|
private |
My device identifier.
Definition at line 176 of file aja.cpp.
Referenced by ~vidcap_state_aja(), and Init().
|
private |
|
private |
|
private |
|
private |
The audio system I'm using.
Definition at line 184 of file aja.cpp.
Referenced by CaptureFrames(), and SetupHostBuffers().
|
private |
My input channel.
Definition at line 178 of file aja.cpp.
Referenced by vidcap_state_aja(), CaptureFrames(), SetupHDMI(), SetupHostBuffers(), and SetupVideo().
|
private |