Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwasmvideooutput.cpp File Reference
#include <QDebug>
#include <QUrl>
#include <QPoint>
#include <QRect>
#include <QMediaPlayer>
#include <QVideoFrame>
#include <QFile>
#include <QBuffer>
#include <QMimeDatabase>
#include "qwasmvideooutput_p.h"
#include <qvideosink.h>
#include <private/qabstractvideobuffer_p.h>
#include <private/qplatformvideosink_p.h>
#include <private/qmemoryvideobuffer_p.h>
#include <private/qvideotexturehelper_p.h>
#include <private/qstdweb_p.h>
#include <emscripten/bind.h>
#include <emscripten/html5.h>
#include <emscripten/val.h>
#include "moc_qwasmvideooutput_p.cpp"
+ Include dependency graph for qwasmvideooutput.cpp:

Go to the source code of this file.

Functions

void qtVideoBeforeUnload (emscripten::val event)
 
 EMSCRIPTEN_BINDINGS (video_module)
 
static bool checkForVideoFrame ()
 
 Q_GLOBAL_STATIC_WITH_ARGS (bool, m_hasVideoFrame,(checkForVideoFrame())) QWasmVideoOutput
 
 EMSCRIPTEN_BINDINGS (qtwasmvideooutput)
 

Variables

static std::string m_videoSurfaceId
 

Function Documentation

◆ checkForVideoFrame()

static bool checkForVideoFrame ( )
static

Definition at line 54 of file qwasmvideooutput.cpp.

◆ EMSCRIPTEN_BINDINGS() [1/2]

EMSCRIPTEN_BINDINGS ( qtwasmvideooutput  )

Definition at line 1070 of file qwasmvideooutput.cpp.

References QWasmVideoOutput::videoFrameCallback().

+ Here is the call graph for this function:

◆ EMSCRIPTEN_BINDINGS() [2/2]

EMSCRIPTEN_BINDINGS ( video_module  )

Definition at line 49 of file qwasmvideooutput.cpp.

References qtVideoBeforeUnload().

+ Here is the call graph for this function:

◆ Q_GLOBAL_STATIC_WITH_ARGS()

Q_GLOBAL_STATIC_WITH_ARGS ( bool  ,
m_hasVideoFrame  ,
(checkForVideoFrame())   
)

Definition at line 60 of file qwasmvideooutput.cpp.

References parent.

◆ qtVideoBeforeUnload()

void qtVideoBeforeUnload ( emscripten::val  event)

Definition at line 37 of file qwasmvideooutput.cpp.

References m_videoSurfaceId, and Q_UNUSED.

Referenced by EMSCRIPTEN_BINDINGS().

+ Here is the caller graph for this function:

Variable Documentation

◆ m_videoSurfaceId