(264b7e8d7d5683252102b5e5149685c8b8a70c2d)
#include <QtCore/qdebug.h>
#include <QtCore/qlist.h>
#include <QtCore/qsemaphore.h>
#include <QtMultimedia/qaudioformat.h>
#include <QtMultimedia/qvideoframe.h>
#include <QtMultimedia/private/qtmultimediaglobal_p.h>
#include <QtMultimedia/private/qmultimediautils_p.h>
#include <gst/gst.h>
#include <gst/video/video-info.h>
#include "qgst_handle_types_p.h"
#include <type_traits>
Go to the source code of this file.
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstBin, BIN) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstClock, CLOCK) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstElement, ELEMENT) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstObject, OBJECT) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstPad, PAD) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstPipeline, PIPELINE) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstBaseSink, BASE_SINK) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS (GstBaseSrc, BASE_SRC) |
|
| QGstImpl::QGST_DEFINE_CAST_TRAITS_FOR_INTERFACE (GstTagSetter, TAG_SETTER) |
|
template<typename DestinationType , typename SourceType > |
bool | qIsGstObjectOfType (SourceType *arg) |
|
template<typename DestinationType , typename SourceType > |
DestinationType * | qGstSafeCast (SourceType *arg) |
|
template<typename DestinationType , typename SourceType > |
DestinationType * | qGstCheckedCast (SourceType *arg) |
|
GstClockTime | qGstClockTimeFromChrono (std::chrono::nanoseconds ns) |
|
QString | errorMessageCannotFindElement (std::string_view element) |
|
◆ QGST_DEFINE_CAST_TRAITS
#define QGST_DEFINE_CAST_TRAITS |
( |
| ClassName, |
|
|
| MACRO_LABEL ) |
Value: template <> \
{ \
template <typename U> \
static bool isObjectOfType(U *
arg) \
{ \
return GST_IS_##MACRO_LABEL(
arg); \
} \
template <typename U> \
{ \
return GST_##MACRO_LABEL##_CAST(
arg); \
} \
template <typename U> \
static Type *checked_cast(U *
arg) \
{ \
return GST_##MACRO_LABEL(
arg); \
} \
}; \
static_assert(true, "ensure semicolon")
Definition at line 59 of file qgst_p.h.
◆ QGST_DEFINE_CAST_TRAITS_FOR_INTERFACE
#define QGST_DEFINE_CAST_TRAITS_FOR_INTERFACE |
( |
| ClassName, |
|
|
| MACRO_LABEL ) |
Value: template <> \
{ \
template <typename U> \
static bool isObjectOfType(U *
arg) \
{ \
return GST_IS_##MACRO_LABEL(
arg); \
} \
template <typename U> \
{ \
return checked_cast(
arg); \
} \
template <typename U> \
static Type *checked_cast(U *
arg) \
{ \
return GST_##MACRO_LABEL(
arg); \
} \
}; \
static_assert(true, "ensure semicolon")
Definition at line 82 of file qgst_p.h.
◆ errorMessageCannotFindElement()
QString errorMessageCannotFindElement |
( |
std::string_view | element | ) |
|
|
inline |
◆ qGstCheckedCast()
template<typename DestinationType , typename SourceType >
DestinationType * qGstCheckedCast |
( |
SourceType * | arg | ) |
|
◆ qGstClockTimeFromChrono()
GstClockTime qGstClockTimeFromChrono |
( |
std::chrono::nanoseconds | ns | ) |
|
|
inline |
◆ qGstSafeCast()
template<typename DestinationType , typename SourceType >
DestinationType * qGstSafeCast |
( |
SourceType * | arg | ) |
|
◆ qIsGstObjectOfType()
template<typename DestinationType , typename SourceType >
bool qIsGstObjectOfType |
( |
SourceType * | arg | ) |
|
◆ qLinkGstElements
template<typename... Ts>
std::enable_if_t<(std::is_base_of_v< QGstElement, Ts > &&...), void qLinkGstElements) (const Ts &...ts) |
( |
const Ts &... | ts | ) |
|
◆ qUnlinkGstElements
template<typename... Ts>
std::enable_if_t<(std::is_base_of_v< QGstElement, Ts > &&...), void qUnlinkGstElements) (const Ts &...ts) |
( |
const Ts &... | ts | ) |
|