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
qwasmvideooutput.cpp File Reference

(36fd680942e73f77523215a4516986508ba953d2)

#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 <QTimer>
#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 55 of file qwasmvideooutput.cpp.

◆ EMSCRIPTEN_BINDINGS() [1/2]

EMSCRIPTEN_BINDINGS ( qtwasmvideooutput )

Definition at line 1063 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 50 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 61 of file qwasmvideooutput.cpp.

◆ qtVideoBeforeUnload()

void qtVideoBeforeUnload ( emscripten::val event)

Definition at line 38 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