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 {
13inline constexpr GstDebugGraphDetails kDiagnosticDotGraphDetails = static_cast<GstDebugGraphDetails>(
14 GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE | GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS | GST_DEBUG_GRAPH_SHOW_STATES);
15
16bool isValidRtspUri(const gchar* uri_str);
17
20QString writePipelineDot(GstElement* pipeline, const char* tag);
21
22bool isHardwareDecoderFactory(GstElementFactory* factory);
23
26bool changeFeatureRank(GstRegistry* registry, const char* featureName, uint16_t rank);
27
32void setCodecPriorities(int rawOption);
33
36void forEachPlugin(GstRegistry* registry, const std::function<void(GstPlugin*)>& visitor);
37} // 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)
constexpr GstDebugGraphDetails kDiagnosticDotGraphDetails
Automatic field-report graphs omit element properties because source properties can contain credentia...
bool isValidRtspUri(const gchar *uri_str)
VideoDecoderOptions
Definition GStreamer.h:18