4#ifndef QGST_HANDLE_TYPES_P_H
5#define QGST_HANDLE_TYPES_P_H
18#include <QtCore/private/qcore_unix_p.h>
19#include <QtCore/private/quniquehandle_p.h>
20#include <QtCore/qtconfigmacros.h>
22#include <QtMultimedia/private/qtmultimedia-config_p.h>
26#if QT_CONFIG(gstreamer_gl)
27# include <gst/gl/gstglcontext.h>
34template <
typename HandleTraits>
60 reset(HandleTraits::ref(
o.get()));
69 return lhs.get() == rhs.get();
75 return lhs.get() != rhs.get();
80 return lhs.get() < rhs.get();
86 return lhs.get() <= rhs.get();
91 return lhs.get() > rhs.get();
97 return lhs.get() >= rhs.get();
102 using BaseClass::operator bool;
105 using BaseClass::operator&;
115 gst_tag_list_unref(
handle);
139 gst_structure_free(
handle);
173 gst_date_time_unref(
handle);
185 return closeResult == 0;
189template <
typename GstType>
198 gst_object_unref(G_OBJECT(
handle));
204 gst_object_ref_sink(G_OBJECT(
handle));
213template <
typename GstType>
222 gst_mini_object_unref(GST_MINI_OBJECT_CAST(
handle));
228 gst_mini_object_ref(GST_MINI_OBJECT_CAST(
handle));
260#if QT_CONFIG(gstreamer_gl)
void reset(const Type &handle) noexcept
Type get() const noexcept
bool isValid() const noexcept
Combined button and popup list for selecting options.
static int qt_safe_close(int fd)
QUniqueHandle< QGstImpl::QUniqueGstDateTimeHandleTraits > QUniqueGstDateTimeHandle
QUniqueHandle< QGstImpl::QFileDescriptorHandleTraits > QFileDescriptorHandle
QUniqueHandle< QGstImpl::QUniqueGstStructureHandleTraits > QUniqueGstStructureHandle
QGstImpl::QGstMiniObjectHandleHelper< GstContext >::UniqueHandle QGstContextHandle
GLuint64 GLenum void * handle
static bool close(Type fd) noexcept
static constexpr Type invalidValue() noexcept
static bool close(Type handle) noexcept
static Type ref(Type handle) noexcept
static constexpr Type invalidValue() noexcept
static constexpr Type invalidValue() noexcept
static bool close(Type handle) noexcept
static Type ref(Type handle) noexcept
QUniqueHandle< Traits > UniqueHandle
static constexpr Type invalidValue() noexcept
static Type ref(Type handle) noexcept
static bool close(Type handle) noexcept
static constexpr Type invalidValue() noexcept
static Type ref(Type handle) noexcept
static bool close(Type handle) noexcept
friend bool operator<=(const QSharedHandle &lhs, const QSharedHandle &rhs) noexcept
QSharedHandle(QSharedHandle &&) noexcept=default
QSharedHandle(typename HandleTraits::Type object, RefMode mode)
Type get() const noexcept
QSharedHandle(const QSharedHandle &o)
friend bool operator!=(const QSharedHandle &lhs, const QSharedHandle &rhs) noexcept
friend bool operator<(const QSharedHandle &lhs, const QSharedHandle &rhs) noexcept
QSharedHandle & operator=(QSharedHandle &&) noexcept=default
friend bool operator>(const QSharedHandle &lhs, const QSharedHandle &rhs) noexcept
friend bool operator>=(const QSharedHandle &lhs, const QSharedHandle &rhs) noexcept
static bool close(Type handle) noexcept
static constexpr Type invalidValue() noexcept
static constexpr Type invalidValue() noexcept
static bool close(Type handle) noexcept
static bool close(Type handle) noexcept
static constexpr Type invalidValue() noexcept
static constexpr Type invalidValue() noexcept
static bool close(Type handle) noexcept