|
Argus Camera Sample
Argus Camera Sample
|
This task records a video and saves it to a file using gstreamer. More...
#include <VideoRecord.h>
Public Member Functions | |
| TaskVideoRecord () | |
| virtual | ~TaskVideoRecord () |
| virtual bool | initialize () |
| Initialize. | |
| virtual bool | shutdown () |
| Shutdown. | |
| virtual bool | start () |
| Start. | |
| virtual bool | stop () |
| Stop. | |
| bool | startRecording () |
| Start recording. | |
| bool | stopRecording () |
| Stop recording. | |
| bool | toggleRecording () |
| Toggle recording. | |
Public Member Functions inherited from ArgusSamples::ITask | |
| ITask () | |
| virtual | ~ITask () |
Private Member Functions | |
| bool | onDeviceOpenChanged (const Observed &source) |
| Callback when the device is opened/closed. | |
| bool | onSensorModeValidChanged (const Observed &source) |
| Callback when the sensorModeValid is changed. | |
| bool | restartStreams (const Observed &source) |
| Restart when output size changes. | |
Private Attributes | |
| bool | m_initialized |
| set if initialized | |
| bool | m_running |
| set if preview is running | |
| bool | m_wasRunning |
| set if was running before the device had been closed | |
| bool | m_prevRunning |
| set if was running before the sensorModeValid is set to false | |
| bool | m_recording |
| if set recording is active | |
| uint32_t | m_captureIndex |
| Incrementing capture index. | |
| VideoPipeline * | m_videoPipeline |
| video pipeline | |
| UniquePointer< SessionPerfTracker > | m_perfTracker |
| TrackedUniqueObj< Argus::Request > | m_request |
| Argus request. | |
| Argus::UniqueObj < Argus::OutputStream > | m_videoStream |
| Argus video output stream. | |
| Argus::UniqueObj < Argus::OutputStream > | m_previewStream |
| Argus preview output stream. | |
This task records a video and saves it to a file using gstreamer.
It also creates a preview stream and display it using the composer.
Definition at line 49 of file VideoRecord.h.
| ArgusSamples::TaskVideoRecord::TaskVideoRecord | ( | ) |
Definition at line 43 of file VideoRecord.cpp.
|
virtual |
Definition at line 54 of file VideoRecord.cpp.
|
virtual |
|
private |
Callback when the device is opened/closed.
Definition at line 94 of file VideoRecord.cpp.
|
private |
Callback when the sensorModeValid is changed.
Definition at line 114 of file VideoRecord.cpp.
|
private |
Restart when output size changes.
Definition at line 84 of file VideoRecord.cpp.
|
virtual |
|
virtual |
| bool ArgusSamples::TaskVideoRecord::startRecording | ( | ) |
Start recording.
Definition at line 225 of file VideoRecord.cpp.
|
virtual |
| bool ArgusSamples::TaskVideoRecord::stopRecording | ( | ) |
Stop recording.
Definition at line 277 of file VideoRecord.cpp.
| bool ArgusSamples::TaskVideoRecord::toggleRecording | ( | ) |
Toggle recording.
Definition at line 321 of file VideoRecord.cpp.
|
private |
Incrementing capture index.
Definition at line 80 of file VideoRecord.h.
|
private |
set if initialized
Definition at line 75 of file VideoRecord.h.
|
private |
Definition at line 84 of file VideoRecord.h.
|
private |
Argus preview output stream.
Definition at line 88 of file VideoRecord.h.
|
private |
set if was running before the sensorModeValid is set to false
Definition at line 78 of file VideoRecord.h.
|
private |
if set recording is active
Definition at line 79 of file VideoRecord.h.
|
private |
Argus request.
Definition at line 86 of file VideoRecord.h.
|
private |
set if preview is running
Definition at line 76 of file VideoRecord.h.
|
private |
video pipeline
Definition at line 82 of file VideoRecord.h.
|
private |
Argus video output stream.
Definition at line 87 of file VideoRecord.h.
|
private |
set if was running before the device had been closed
Definition at line 77 of file VideoRecord.h.
1.8.1