Home
last modified time | relevance | path

Searched refs:imageData (Results 1 – 4 of 4) sorted by relevance

/base/web/webview/ohos_adapter/pasteboard_adapter/src/
Dpasteboard_client_adapter_impl.cpp183 bool PasteDataRecordAdapterImpl::SetImgData(std::shared_ptr<ClipBoardImageData> imageData) in SetImgData() argument
185 if (imageData == nullptr) { in SetImgData()
190 opt.size.width = imageData->width; in SetImgData()
191 opt.size.height = imageData->height; in SetImgData()
192 opt.pixelFormat = ClipboardToImageColorType(imageData->colorType); in SetImgData()
193 opt.alphaType = ClipboardToImageAlphaType(imageData->alphaType); in SetImgData()
200 uint64_t stride = static_cast<uint64_t>(imageData->width) << 2; in SetImgData()
201 uint64_t bufferSize = stride * static_cast<uint64_t>(imageData->height); in SetImgData()
202 …uint32_t ret = pixelMap->WritePixels(reinterpret_cast<const uint8_t *>(imageData->data), bufferSiz… in SetImgData()
233 bool PasteDataRecordAdapterImpl::GetImgData(ClipBoardImageData &imageData) in GetImgData() argument
[all …]
/base/web/webview/ohos_adapter/interfaces/
Dpasteboard_client_adapter.h104 virtual bool SetImgData(std::shared_ptr<ClipBoardImageData> imageData) = 0;
112 virtual bool GetImgData(ClipBoardImageData &imageData) = 0;
/base/web/webview/ohos_adapter/pasteboard_adapter/include/
Dpasteboard_client_adapter_impl.h45 bool SetImgData(std::shared_ptr<ClipBoardImageData> imageData) override;
52 bool GetImgData(ClipBoardImageData &imageData) override;
/base/web/webview/test/unittest/pasteboard_adapter/
Dpasteboard_client_adapter_test.cpp762 std::shared_ptr<ClipBoardImageData> imageData(image);
763 bool reset = g_datarecord->SetImgData(imageData);
765 reset = g_datarecordnull->SetImgData(imageData);
767 imageData->dataSize = 1;
768 reset = g_datarecordnull->SetImgData(imageData);
770 imageData = nullptr;
771 reset = g_datarecordnull->SetImgData(imageData);