Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
AVFVideoSinkInterface Class Referenceabstract

#include <avfvideosink_p.h>

+ Inheritance diagram for AVFVideoSinkInterface:
+ Collaboration diagram for AVFVideoSinkInterface:

Public Member Functions

 ~AVFVideoSinkInterface ()
 
void setVideoSink (AVFVideoSink *sink)
 
virtual void reconfigure ()=0
 
virtual void setRhi (QRhi *)
 
virtual void setLayer (CALayer *layer)
 
virtual void setOutputSettings ()
 
QMutextextureCacheMutex ()
 
QRhirhi () const
 
void updateLayerBounds ()
 
void nativeSizeChanged ()
 
QSize nativeSize () const
 

Public Attributes

CVMetalTextureCacheRef cvMetalTextureCache = nullptr
 

Protected Attributes

AVFVideoSinkm_sink = nullptr
 
QRhim_rhi = nullptr
 
CALayer * m_layer = nullptr
 
NSDictionary * m_outputSettings = nullptr
 
QMutex m_textureCacheMutex
 

Detailed Description

Definition at line 57 of file avfvideosink_p.h.

Constructor & Destructor Documentation

◆ ~AVFVideoSinkInterface()

AVFVideoSinkInterface::~AVFVideoSinkInterface ( )

Definition at line 56 of file avfvideosink.mm.

References m_layer, m_outputSettings, and release().

+ Here is the call graph for this function:

Member Function Documentation

◆ nativeSize()

QSize AVFVideoSinkInterface::nativeSize ( ) const
inline

Definition at line 76 of file avfvideosink_p.h.

References m_sink, and QPlatformVideoSink::nativeSize().

Referenced by updateLayerBounds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nativeSizeChanged()

void AVFVideoSinkInterface::nativeSizeChanged ( )
inline

Definition at line 75 of file avfvideosink_p.h.

References updateLayerBounds().

Referenced by AVFCameraRenderer::reconfigure(), AVFVideoRendererControl::reconfigure(), and AVFVideoSink::setNativeSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reconfigure()

virtual void AVFVideoSinkInterface::reconfigure ( )
pure virtual

Implemented in AVFCameraRenderer, and AVFVideoRendererControl.

Referenced by setLayer(), and setVideoSink().

+ Here is the caller graph for this function:

◆ rhi()

QRhi * AVFVideoSinkInterface::rhi ( ) const
inline

Definition at line 72 of file avfvideosink_p.h.

References m_rhi.

Referenced by AVFCaptureFramesDelegate::captureOutput:didOutputSampleBuffer:fromConnection:, and setRhi().

+ Here is the caller graph for this function:

◆ setLayer()

void AVFVideoSinkInterface::setLayer ( CALayer * layer)
virtual

Reimplemented in AVFVideoRendererControl.

Definition at line 160 of file avfvideosink.mm.

References m_layer, reconfigure(), and release().

Referenced by AVFVideoRendererControl::setLayer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setOutputSettings()

void AVFVideoSinkInterface::setOutputSettings ( )
virtual

Reimplemented in AVFCameraRenderer.

Definition at line 175 of file avfvideosink.mm.

References QRhi::backend(), dictionary, m_outputSettings, m_rhi, QRhi::OpenGLES2, and release().

Referenced by AVFCameraRenderer::setOutputSettings(), and setRhi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRhi()

void AVFVideoSinkInterface::setRhi ( QRhi * rhi)
virtual

Definition at line 97 of file avfvideosink.mm.

References QRhi::backend(), cvMetalTextureCache, m_rhi, m_textureCacheMutex, QRhi::Metal, QRhi::nativeHandles(), QRhi::OpenGLES2, Q_ASSERT, qWarning, rhi(), and setOutputSettings().

Referenced by AVFVideoSink::setRhi(), and AVFVideoSink::setVideoSinkInterface().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVideoSink()

void AVFVideoSinkInterface::setVideoSink ( AVFVideoSink * sink)

Definition at line 81 of file avfvideosink.mm.

References m_sink, reconfigure(), and AVFVideoSink::setVideoSinkInterface().

Referenced by AVFMediaPlayer::setVideoSink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ textureCacheMutex()

QMutex * AVFVideoSinkInterface::textureCacheMutex ( )
inline

Definition at line 70 of file avfvideosink_p.h.

References m_textureCacheMutex.

◆ updateLayerBounds()

void AVFVideoSinkInterface::updateLayerBounds ( )

Definition at line 217 of file avfvideosink.mm.

References begin(), m_layer, and nativeSize().

Referenced by nativeSizeChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ cvMetalTextureCache

CVMetalTextureCacheRef AVFVideoSinkInterface::cvMetalTextureCache = nullptr

Definition at line 78 of file avfvideosink_p.h.

Referenced by setRhi().

◆ m_layer

◆ m_outputSettings

NSDictionary* AVFVideoSinkInterface::m_outputSettings = nullptr
protected

◆ m_rhi

QRhi* AVFVideoSinkInterface::m_rhi = nullptr
protected

Definition at line 90 of file avfvideosink_p.h.

Referenced by rhi(), setOutputSettings(), and setRhi().

◆ m_sink

◆ m_textureCacheMutex

QMutex AVFVideoSinkInterface::m_textureCacheMutex
protected

Definition at line 93 of file avfvideosink_p.h.

Referenced by setRhi(), and textureCacheMutex().


The documentation for this class was generated from the following files: