QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamerHelpers.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QString>
4#include <cstdint>
5#include <functional>
6#include <glib.h>
7#include <gst/gst.h>
8
9#include "GStreamer.h" // VideoDecoderOptions
10
11namespace GStreamer {
12bool isValidRtspUri(const gchar* uri_str);
13
16QString writePipelineDot(GstElement* pipeline, const char* tag);
17
18bool isHardwareDecoderFactory(GstElementFactory* factory);
19
22bool changeFeatureRank(GstRegistry* registry, const char* featureName, uint16_t rank);
23
28void setCodecPriorities(int rawOption);
29
32void forEachPlugin(GstRegistry* registry, const std::function<void(GstPlugin*)>& visitor);
33} // namespace GStreamer
struct _GstElement GstElement
bool changeFeatureRank(GstRegistry *registry, const char *featureName, uint16_t rank)
void setCodecPriorities(int rawOption)
Overload taking the raw forceVideoDecoder setting value; the cast/range-check lives in the impl.
void forEachPlugin(GstRegistry *registry, const std::function< void(GstPlugin *)> &visitor)
QString writePipelineDot(GstElement *pipeline, const char *tag)
bool isHardwareDecoderFactory(GstElementFactory *factory)
bool isValidRtspUri(const gchar *uri_str)
VideoDecoderOptions
Definition GStreamer.h:18