Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
25
27
28Q_GUI_EXPORT std::shared_ptr<::OH_PixelmapNative> makeEmptyOhosNativePixelMap();
29
30Q_GUI_EXPORT std::shared_ptr<::OH_PixelmapNative> wrapOhosNativePixelMapPtr(::OH_PixelmapNative *pixelMap);
31
32Q_GUI_EXPORT QNapi::Object makeOhosNapiPixelMapFromQImage(QOhosJsState &jsState, const QImage &image);
33
34QT_END_NAMESPACE
35
36#endif
std::optional<::PIXEL_FORMAT > tryMapQtPixelFormatToOhosPixelFormat(QImage::Format format)
::PIXELMAP_ALPHA_TYPE mapQtPixelFormatToOhosPixelMapAlphaType(const QPixelFormat &pixelFormat)
std::shared_ptr<::OH_Pixelmap_InitializationOptions > createOhPixelmapInitializationOptions()
std::shared_ptr<::OH_Pixelmap_InitializationOptions > makeNativePixelMapInitializationOptions(std::uint32_t width, std::uint32_t height, ::PIXEL_FORMAT pixelFormat, ::PIXELMAP_ALPHA_TYPE alphaType)
QOhosInvokeResult< Func, FuncArgs... > callOhosCApiFunc(QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
void callOhosCApiFuncOrFailOnErrorResult(QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
QNapi::Object makeOhosNapiPixelMapFromQImage(QOhosJsState &jsState, const QImage &image)
std::shared_ptr<::OH_PixelmapNative > makeEmptyOhosNativePixelMap()
std::shared_ptr<::OH_PixelmapNative > wrapOhosNativePixelMapPtr(::OH_PixelmapNative *pixelMap)
std::shared_ptr<::OH_PixelmapNative > makeOhosNativePixelMapFromQImage(QImage qImage)
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)