Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
androidsurfacetexture_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef ANDROIDSURFACETEXTURE_H
5
#define ANDROIDSURFACETEXTURE_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <
qobject.h
>
19
#include <QtCore/qjniobject.h>
20
21
#include <QMatrix4x4>
22
23
QT_BEGIN_NAMESPACE
24
25
class
AndroidSurfaceTexture
:
public
QObject
26
{
27
Q_OBJECT
28
public
:
29
explicit
AndroidSurfaceTexture
(
quint32
texName);
30
~AndroidSurfaceTexture
();
31
32
jobject
surfaceTexture
();
33
jobject
surface
();
34
jobject
surfaceHolder
();
35
inline
bool
isValid
()
const
{
return
m_surfaceTexture.isValid(); }
36
37
QMatrix4x4
getTransformMatrix
();
38
void
release
();
// API level 14
39
void
updateTexImage
();
40
41
void
attachToGLContext
(
quint32
texName);
// API level 16
42
void
detachFromGLContext
();
// API level 16
43
44
static
bool
registerNativeMethods
();
45
46
Q_SIGNALS
:
47
void
frameAvailable
();
48
49
private
:
50
void
setOnFrameAvailableListener(
const
QJniObject
&listener);
51
52
QJniObject
m_surfaceTexture;
53
QJniObject
m_surface;
54
QJniObject
m_surfaceHolder;
55
};
56
57
QT_END_NAMESPACE
58
59
#endif
// ANDROIDSURFACETEXTURE_H
AndroidSurfaceTexture
Definition
androidsurfacetexture_p.h:26
AndroidSurfaceTexture::surface
jobject surface()
Definition
androidsurfacetexture.cpp:90
AndroidSurfaceTexture::surfaceHolder
jobject surfaceHolder()
Definition
androidsurfacetexture.cpp:101
AndroidSurfaceTexture::~AndroidSurfaceTexture
~AndroidSurfaceTexture()
Definition
androidsurfacetexture.cpp:43
AndroidSurfaceTexture::updateTexImage
void updateTexImage()
Definition
androidsurfacetexture.cpp:77
AndroidSurfaceTexture::attachToGLContext
void attachToGLContext(quint32 texName)
Definition
androidsurfacetexture.cpp:112
AndroidSurfaceTexture::isValid
bool isValid() const
Definition
androidsurfacetexture_p.h:35
AndroidSurfaceTexture::release
void release()
Definition
androidsurfacetexture.cpp:72
AndroidSurfaceTexture::registerNativeMethods
static bool registerNativeMethods()
Definition
androidsurfacetexture.cpp:128
AndroidSurfaceTexture::frameAvailable
void frameAvailable()
AndroidSurfaceTexture::surfaceTexture
jobject surfaceTexture()
Definition
androidsurfacetexture.cpp:85
AndroidSurfaceTexture::getTransformMatrix
QMatrix4x4 getTransformMatrix()
Definition
androidsurfacetexture.cpp:57
AndroidSurfaceTexture::detachFromGLContext
void detachFromGLContext()
Definition
androidsurfacetexture.cpp:120
QJniObject
\inmodule QtCore
QMatrix4x4
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition
qmatrix4x4.h:25
QObject
\inmodule QtCore
Definition
qobject.h:90
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qobject.h
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
quint32
unsigned int quint32
Definition
qtypes.h:45
qtmultimedia
src
plugins
multimedia
android
wrappers
jni
androidsurfacetexture_p.h
Generated by
1.9.7