QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamerSelfTestMedia.cc File Reference
#include "GStreamerSelfTestMedia.h"
#include <algorithm>
#include <atomic>
#include <gst/app/gstappsrc.h>
#include <mutex>
#include "GStreamerDecoderRanks.h"
#include "GStreamerHelpers.h"
#include "GstScoped.h"
#include "RecordingBranch.h"
Include dependency graph for GStreamerSelfTestMedia.cc:

Go to the source code of this file.

Namespaces

namespace  GStreamer
namespace  GStreamer::SelfTest
 The self-test's media pipelines: decoding the embedded samples and recording and reading back a file.

Functions

bool GStreamer::SelfTest::hasDecoderFor (const Sample &sample)
 Whether decodebin3 has a decoder for sample's codec to plug: one ranked at least MARGINAL.
DecodeResult GStreamer::SelfTest::decodeSample (const Sample &sample, const QByteArray &data, std::chrono::milliseconds timeout)
 appsrc ! <parser> ! decodebin3 ! appsink, the sink taking raw video in system memory, which every decoder can give.
QString GStreamer::SelfTest::recordSample (const QString &file, VideoReceiver::FileFormat format, const QByteArray &h264, std::chrono::milliseconds timeout)
 appsrc ! RecordingBranch's file sink (h264parse ! muxer ! filesink), as a recording is muxed.
QString GStreamer::SelfTest::readBack (const QString &file, const char *demuxer, std::chrono::milliseconds timeout)
 filesrc ! <demuxer> ! fakesink: the recorded file opens and holds video.