Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qohosimageconversions_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
QOHOSIMAGECONVERSIONS_P_H
5
#
define
QOHOSIMAGECONVERSIONS_P_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
<
QtCore
/
private
/
qcore_ohos_p
.
h
>
19
#
include
<
QtCore
/
private
/
qnapi_p
.
h
>
20
#
include
<
QtGui
/
qimage
.
h
>
21
#
include
<
memory
>
22
#
include
<
multimedia
/
image_framework
/
image
/
pixelmap_native
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
Q_GUI_EXPORT
std
::
shared_ptr
<::
OH_PixelmapNative
>
makeOhosNativePixelMapFromQImage
(QImage qImage);
27
28
Q_GUI_EXPORT std::shared_ptr<::OH_PixelmapNative> makeEmptyOhosNativePixelMap();
29
30
Q_GUI_EXPORT std::shared_ptr<::OH_PixelmapNative> wrapOhosNativePixelMapPtr(::OH_PixelmapNative *pixelMap);
31
32
Q_GUI_EXPORT QNapi::Object makeOhosNapiPixelMapFromQImage(QOhosJsState &jsState,
const
QImage &image);
33
34
QT_END_NAMESPACE
35
36
#
endif
QT_BEGIN_NAMESPACE::tryMapQtPixelFormatToOhosPixelFormat
std::optional<::PIXEL_FORMAT > tryMapQtPixelFormatToOhosPixelFormat(QImage::Format format)
Definition
qohosimageconversions.cpp:90
QT_BEGIN_NAMESPACE::mapQtPixelFormatToOhosPixelMapAlphaType
::PIXELMAP_ALPHA_TYPE mapQtPixelFormatToOhosPixelMapAlphaType(const QPixelFormat &pixelFormat)
Definition
qohosimageconversions.cpp:33
QT_BEGIN_NAMESPACE::createOhPixelmapInitializationOptions
std::shared_ptr<::OH_Pixelmap_InitializationOptions > createOhPixelmapInitializationOptions()
Definition
qohosimageconversions.cpp:42
QT_BEGIN_NAMESPACE::makeNativePixelMapInitializationOptions
std::shared_ptr<::OH_Pixelmap_InitializationOptions > makeNativePixelMapInitializationOptions(std::uint32_t width, std::uint32_t height, ::PIXEL_FORMAT pixelFormat, ::PIXELMAP_ALPHA_TYPE alphaType)
Definition
qohosimageconversions.cpp:61
QT_BEGIN_NAMESPACE::callOhosCApiFunc
QOhosInvokeResult< Func, FuncArgs... > callOhosCApiFunc(QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
Definition
qohosimageconversions.cpp:18
QT_BEGIN_NAMESPACE::callOhosCApiFuncOrFailOnErrorResult
void callOhosCApiFuncOrFailOnErrorResult(QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
Definition
qohosimageconversions.cpp:24
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
makeOhosNapiPixelMapFromQImage
QNapi::Object makeOhosNapiPixelMapFromQImage(QOhosJsState &jsState, const QImage &image)
Definition
qohosimageconversions.cpp:185
makeEmptyOhosNativePixelMap
std::shared_ptr<::OH_PixelmapNative > makeEmptyOhosNativePixelMap()
Definition
qohosimageconversions.cpp:170
wrapOhosNativePixelMapPtr
std::shared_ptr<::OH_PixelmapNative > wrapOhosNativePixelMapPtr(::OH_PixelmapNative *pixelMap)
Definition
qohosimageconversions.cpp:154
makeOhosNativePixelMapFromQImage
std::shared_ptr<::OH_PixelmapNative > makeOhosNativePixelMapFromQImage(QImage qImage)
Definition
qohosimageconversions.cpp:116
operator<<
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)
Definition
qpaintengineex.cpp:100
qtbase
src
gui
platform
ohos
qohosimageconversions_p.h
Generated on
for Qt by
1.18.0