Home
last modified time | relevance | path

Searched refs:dstInfo (Results 1 – 25 of 67) sorted by relevance

123

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_convert_adapter_test.cpp61 ImageInfo dstInfo; variable
62 dstInfo.size.width = 4;
63 dstInfo.size.height = 4;
96 ImageInfo dstInfo; variable
127 ImageInfo dstInfo; variable
128 dstInfo.size.width = 4;
166 ImageInfo dstInfo; variable
246 ImageInfo dstInfo; variable
289 ImageInfo dstInfo; variable
332 ImageInfo dstInfo; variable
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dmemcpy_helper.cpp36 BufferInfo &dstInfo = dst.bufferInfo; in CopyData() local
40 dst.data, dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData()
42 uint32_t dstRowStride = dstInfo.rowStride_; in CopyData()
44 uint32_t dstBufferLen = dstInfo.len_; in CopyData()
58 … uint32_t dstRowCount = FormatHelper::CalculateDataRowCount(dstInfo.height_, dstInfo.formatType_); in CopyData()
65 dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData()
75 dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_encoder.cpp451 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformRGBX()
483 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformRgbA()
515 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformBGRX()
547 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformBGRA()
579 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformBgrA()
611 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformF16To8888()
643 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformF16pTo8888()
675 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformArgbToRgb()
707 dstPixels, dstPos, dstRowBytes, dstInfo)) { in DoTransformArgbToRgba()
805 dstInfo.size.width, dstInfo.size.height, dstRowBytes, in ShowTransformParam()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/
H A Dpixel_convert_adapter.cpp169 const ImageInfo &dstInfo) in WritePixelsConvert() argument
180 SkColorType dstColorType = PixelFormatConvert(dstInfo.pixelFormat); in WritePixelsConvert()
182 …SkImageInfo dstImageInfo = SkImageInfo::Make(dstInfo.size.width, dstInfo.size.height, dstColorType… in WritePixelsConvert()
185 GetRGBxSize(dstInfo) : static_cast<int32_t>(NUM_1); in WritePixelsConvert()
189 dstRowBytes = (dstInfo.pixelFormat == PixelFormat::RGB_888) ? in WritePixelsConvert()
190 static_cast<uint32_t>(GetRGBxRowBytes(dstInfo)) : dstRowBytes; in WritePixelsConvert()
215 if (dstInfo.pixelFormat == PixelFormat::ARGB_8888) { in WritePixelsConvert()
216 uint32_t dstSize = dstRowBytes * dstInfo.size.height; in WritePixelsConvert()
218 } else if (dstInfo.pixelFormat == PixelFormat::RGB_888) { in WritePixelsConvert()
227 const ImageInfo &dstInfo) in ReadPixelsConvert() argument
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpixel_convert.cpp1107 if (srcInfo.width <= 0 || srcInfo.height <= 0 || dstInfo.width <= 0 || dstInfo.height <= 0) { in FFMpegConvert()
1116 dstInfo.width, dstInfo.height, dstInfo.format, SWS_POINT, nullptr, nullptr, nullptr); in FFMpegConvert()
1121 dstInfo.format, dstInfo.width, dstInfo.height, dstInfo.alignSize); in FFMpegConvert()
1180 dstInfo.size.width, dstInfo.size.height, 1}; in ConvertAndCollapseByFFMpeg()
1218 dstPixels, pos, PixelMap::GetRGBxRowDataSize(dstInfo), dstInfo)) { in P010ConvertRGBA1010102()
1258 dstInfo.size.width, dstInfo.size.height, 1}; in ConvertRGBA1010102ToYUV()
1300 dstPixels, pos, PixelMap::GetRGBxRowDataSize(dstInfo), dstInfo)) { in YUVConvertRGB()
1320 (dstInfo.pixelFormat == PixelFormat::NV21 || dstInfo.pixelFormat == PixelFormat::NV12)) { in ConvertFromYUV()
1413 dstInfo.size.width, dstInfo.size.height, 1}; in RGBConvertYUV()
1434 (dstInfo.pixelFormat != PixelFormat::NV21 && dstInfo.pixelFormat != PixelFormat::NV12)) { in ConvertToYUV()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libbmpplugin/src/
H A Dbmp_decoder.cpp149 static uint32_t DmaMemAlloc(uint64_t count, DecodeContext &context, SkImageInfo &dstInfo) in DmaMemAlloc() argument
157 .width = dstInfo.width(), in DmaMemAlloc()
158 .height = dstInfo.height(), in DmaMemAlloc()
268 uint32_t res = DmaMemAlloc(byteCount, context, dstInfo); in SetContextPixelsBuffer()
303 SkImageInfo dstInfo = info_.makeColorType(desireColor_); in Decode() local
304 if (ImageUtils::CheckMulOverflow(dstInfo.width(), dstInfo.height(), dstInfo.bytesPerPixel())) { in Decode()
306 dstInfo.width(), dstInfo.height()); in Decode()
310 …uint64_t byteCount = static_cast<uint64_t>(dstInfo.height()) * dstInfo.width() * dstInfo.bytesPerP… in Decode()
311 uint32_t res = SetContextPixelsBuffer(byteCount, context, dstInfo); in Decode()
317 size_t rowBytes = dstInfo.width() * dstInfo.bytesPerPixel(); in Decode()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dpixel_yuv_utils.h74 void *dstPixels, const ImageInfo &dstInfo);
83 … bool BGRAToYuv420(const uint8_t *src, YuvImageInfo &srcInfo, uint8_t *dst, YuvImageInfo &dstInfo);
85 YuvImageInfo &dstInfo);
86 …c bool Yuv420ToARGB(const uint8_t *in, YuvImageInfo &srcInfo, uint8_t *out, YuvImageInfo &dstInfo);
96 uint8_t *dstData, YuvImageInfo &dstInfo, int32_t degrees);
98 …bool YuvReversal(uint8_t *srcData, YuvImageInfo &srcInfo, uint8_t *dstData, YuvImageInfo &dstInfo);
100 uint8_t *dstPixels, YuvImageInfo &dstInfo, int32_t module);
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_event.cpp50 if (dstInfo == nullptr) { in ConvertedLinkedInfo()
58 if (OHOS::Wifi::MacStrToArray(linkedInfo.bssid, dstInfo->bssid) != EOK) { in ConvertedLinkedInfo()
62 dstInfo->rssi = linkedInfo.rssi; in ConvertedLinkedInfo()
63 dstInfo->band = linkedInfo.band; in ConvertedLinkedInfo()
64 dstInfo->frequency = linkedInfo.frequency; in ConvertedLinkedInfo()
67 dstInfo->ipAddress = linkedInfo.ipAddress; in ConvertedLinkedInfo()
68 dstInfo->wifiStandard = linkedInfo.wifiStandard; in ConvertedLinkedInfo()
69 dstInfo->maxSupportedRxLinkSpeed = linkedInfo.maxSupportedRxLinkSpeed; in ConvertedLinkedInfo()
70 dstInfo->maxSupportedTxLinkSpeed = linkedInfo.maxSupportedTxLinkSpeed; in ConvertedLinkedInfo()
71 dstInfo->rxLinkSpeed = linkedInfo.rxLinkSpeed; in ConvertedLinkedInfo()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_bitmap.cpp141 bool OH_Drawing_BitmapReadPixels(OH_Drawing_Bitmap* cBitmap, const OH_Drawing_Image_Info* dstInfo, in OH_Drawing_BitmapReadPixels() argument
144 if (cBitmap == nullptr || dstInfo == nullptr || dstPixels == nullptr) { in OH_Drawing_BitmapReadPixels()
149 ImageInfo imageInfo(dstInfo->width, dstInfo->height, in OH_Drawing_BitmapReadPixels()
150 static_cast<ColorType>(dstInfo->colorType), static_cast<AlphaType>(dstInfo->alphaType)); in OH_Drawing_BitmapReadPixels()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_utils.cpp445 if (srcInfo.width <= 0 || srcInfo.height <= 0 || dstInfo.width <= 0 || dstInfo.height <= 0) { in YuvScale()
450 dstInfo.width, dstInfo.height, dstInfo.format, in YuvScale()
464 FillDstFrameInfo(dstFrame, dstPixels, dstInfo); in YuvScale()
502 dstInfo.width = srcInfo.height; in RoatateUpDataDstdata()
503 dstInfo.height = srcInfo.width; in RoatateUpDataDstdata()
523 YuvImageInfo &dstInfo, int32_t rotateNum) in Rotate() argument
685 dstInfo.width = srcInfo.width; in YuvReversal()
686 dstInfo.height = srcInfo.height; in YuvReversal()
725 void *dstPixels, const ImageInfo &dstInfo) in ReadYuvConvert() argument
734 rect.width = dstInfo.size.width; in ReadYuvConvert()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/include/
H A Dpixel_convert_adapter.h41 const ImageInfo &dstInfo);
44 const ImageInfo &dstInfo);
46 …bool YUV420ToRGB888(const uint8_t *in, YuvImageInfo &srcInfo, uint8_t *out, YuvImageInfo &dstInfo);
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/
H A Dnode_utils.cpp128 NodeUtils::ImageBufferInfo dstInfo = { in BufferScaleFormatTransform() local
137 dstInfo.bufferAddr = dstBuffer; in BufferScaleFormatTransform()
138 dstInfo.bufferSize = dstBufferSize; in BufferScaleFormatTransform()
141 if (NodeUtils::ImageFormatConvert(srcInfo, dstInfo) == 0) { in BufferScaleFormatTransform()
/ohos5.0/foundation/window/window_manager/wmserver/include/
H A Dremote_animation.h49 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& dstNode);
51 …sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode, const sptr<WindowNode>& dstNo…
53 …r NotifyAnimationTransition(sptr<WindowTransitionInfo> srcInfo, sptr<WindowTransitionInfo> dstInfo,
59 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode,
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/dfx/
H A Ddms_continue_time_dumper.cpp300 cJSON* dstInfo = cJSON_Parse(info); in ReadDstInfo() local
301 if (dstInfo == nullptr) { in ReadDstInfo()
305 cJSON* bundleNameItem = cJSON_GetObjectItem(dstInfo, "DstBundleName"); in ReadDstInfo()
307 cJSON_Delete(dstInfo); in ReadDstInfo()
311 cJSON* abilityNameItem = cJSON_GetObjectItem(dstInfo, "DstAbilityName"); in ReadDstInfo()
313 cJSON_Delete(dstInfo); in ReadDstInfo()
319 cJSON_Delete(dstInfo); in ReadDstInfo()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/
H A Dbmp_decoder_test.cpp539 SkImageInfo dstInfo; variable
540 uint32_t result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
543 result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
546 result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
562 SkImageInfo dstInfo; variable
564 uint32_t result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
580 SkImageInfo dstInfo; variable
582 uint32_t result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
585 result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
588 result = bmpDecoder->SetContextPixelsBuffer(byteCount, context, dstInfo);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Ddb_status_adapter.cpp309 … auto res = std::find_if(dstDbInfos.begin(), dstDbInfos.end(), [&srcInfo](const DBInfo &dstInfo) { in MergeDBInfos() argument
310 return srcInfo.appId == dstInfo.appId && srcInfo.userId == dstInfo.userId && in MergeDBInfos()
311 … srcInfo.storeId == dstInfo.storeId && srcInfo.syncDualTupleMode == dstInfo.syncDualTupleMode; in MergeDBInfos()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv.cpp336 YuvImageInfo dstInfo; in rotate() local
337 if (!PixelYuvUtils::YuvRotate(data_, srcInfo, dst, dstInfo, degrees)) { in rotate()
342 imageInfo_.size.width = dstInfo.width; in rotate()
343 imageInfo_.size.height = dstInfo.height; in rotate()
431 YuvImageInfo dstInfo = {PixelYuvUtils::ConvertFormat(imageInfo.pixelFormat), in scale() local
469 YuvImageInfo dstInfo = {PixelYuvUtils::ConvertFormat(imageInfo.pixelFormat), in scale() local
506 …YuvImageInfo dstInfo = {PixelYuvUtils::ConvertFormat(format), srcW, srcH, imageInfo_.pixelFormat, … in flip() local
508 if (!PixelYuvUtils::YuvReversal(const_cast<uint8_t *>(src), srcInfo, dst, dstInfo)) { in flip()
967 YuvImageInfo dstInfo = {PixelYuvUtils::ConvertFormat(format), in ColorSpaceBGRAToYuv() local
1010 YuvImageInfo dstInfo = {PixelYuvUtils::ConvertFormat(PixelFormat::BGRA_8888), in ApplyColorSpace() local
[all …]
H A Dpixel_map.cpp1737 uint32_t ret = SetImageInfo(dstInfo, true); in ResetConfig()
1752 ImageInfo dstInfo = imageInfo_; in SetAlphaType() local
1753 dstInfo.alphaType = type; in SetAlphaType()
1754 uint32_t ret = SetImageInfo(dstInfo, true); in SetAlphaType()
3442 dstInfo.r = matrix.mapRect(srcInfo.r); in GendstTransInfo()
3443 int width = FloatToInt(dstInfo.r.width()); in GendstTransInfo()
3446 width += dstInfo.r.fLeft; in GendstTransInfo()
3447 height += dstInfo.r.fTop; in GendstTransInfo()
3452 Size desiredSize = {dstInfo.info.width(), dstInfo.info.height()}; in GendstTransInfo()
3478 dstInfo.bitmap.installPixels(dstInfo.info, memoryInfo.memory->data.data, rowStride); in GendstTransInfo()
[all …]
/ohos5.0/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/
H A Ddstream_operator.cpp969 dstInfo->streamId_ = srcInfo.streamId_; in ConvertStreamInfo()
970 dstInfo->width_ = srcInfo.width_; in ConvertStreamInfo()
971 dstInfo->stride_ = srcInfo.width_; in ConvertStreamInfo()
972 dstInfo->height_ = srcInfo.height_; in ConvertStreamInfo()
973 dstInfo->dataspace_ = srcInfo.dataspace_; in ConvertStreamInfo()
974 dstInfo->encodeType_ = (DCEncodeType)srcInfo.encodeType_; in ConvertStreamInfo()
977 dstInfo->type_ = DCStreamType::SNAPSHOT_FRAME; in ConvertStreamInfo()
979 dstInfo->format_ = OHOS_CAMERA_FORMAT_RGBA_8888; in ConvertStreamInfo()
981 dstInfo->format_ = OHOS_CAMERA_FORMAT_JPEG; in ConvertStreamInfo()
988 dstInfo->type_ = DCStreamType::CONTINUOUS_FRAME; in ConvertStreamInfo()
[all …]
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dremote_animation.cpp139 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& dstNode) in CheckTransition() argument
157 if ((dstNode != nullptr && dstInfo != nullptr) && in CheckTransition()
158 …::CheckSupportWindowMode(dstNode->GetWindowMode(), dstNode->GetWindowModeSupportType(), dstInfo)) { in CheckTransition()
214 …sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode, const sptr<WindowNode>& dstNo… in GetTransitionEvent() argument
228 if (dstInfo->GetAbilityToken() == nullptr) { in GetTransitionEvent()
235 if (WindowHelper::IsMainWindow(dstInfo->GetWindowType())) { in GetTransitionEvent()
242 } else if (dstInfo->GetWindowType() == WindowType::WINDOW_TYPE_DESKTOP) { in GetTransitionEvent()
344 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode, in NotifyAnimationTransition() argument
356 auto dstTarget = CreateWindowAnimationTarget(dstInfo, dstNode); in NotifyAnimationTransition()
489 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode, in NotifyAnimationBackTransition() argument
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
H A Dtrans_auth_manager.c101 static int32_t GetAuthChannelInfoByChanId(int32_t channelId, AuthChannelInfo *dstInfo) in GetAuthChannelInfoByChanId() argument
115 if (memcpy_s(dstInfo, sizeof(AuthChannelInfo), info, sizeof(AuthChannelInfo)) != EOK) { in GetAuthChannelInfoByChanId()
151 static int32_t GetChannelInfoByAuthId(int32_t authId, AuthChannelInfo *dstInfo) in GetChannelInfoByAuthId() argument
153 if (dstInfo == NULL || g_authChannelList == NULL) { in GetChannelInfoByAuthId()
623 AuthChannelInfo dstInfo; in OnDisconnect() local
624 if (GetChannelInfoByAuthId(authId, &dstInfo) != EOK) { in OnDisconnect()
631 if (strcmp(dstInfo.appInfo.myData.sessionName, ISHARE_AUTH_SESSION) == 0) { in OnDisconnect()
634 TransAuthCloseChannel(authId, dstInfo.appInfo.linkType, dstInfo.isClient); in OnDisconnect()
635 DelAuthChannelInfoByChanId((int32_t)(dstInfo.appInfo.myData.channelId)); in OnDisconnect()
636 (void)NofifyCloseAuthChannel((const char *)dstInfo.appInfo.myData.pkgName, in OnDisconnect()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp240 .width = dstInfo.width(), in CreateDmaRequestConfig()
241 .height = dstInfo.height(), in CreateDmaRequestConfig()
259 … count = dstInfo.width() * dstInfo.height() * ImageUtils::GetPixelBytes(PixelFormat::RGBA_F16); in CreateDmaRequestConfig()
277 count = JpegDecoderYuv::GetYuvOutSize(dstInfo.width(), dstInfo.height()); in DmaMemAlloc()
665 static void DebugInfo(SkImageInfo &info, SkImageInfo &dstInfo, SkCodec::Options &opts) in HeapMemAlloc() argument
671 dstInfo.width(), dstInfo.height(), dstInfo.alphaType(), dstInfo.colorType()); in HeapMemAlloc()
2140 uint64_t byteCount = static_cast<uint64_t>(dstInfo.computeMinByteSize()); in HeapMemAlloc()
2143 if (DmaMemAlloc(context, byteCount, dstInfo) != SUCCESS) { in HeapMemAlloc()
2308 size_t tempByteCount = dstInfo.computeMinByteSize(); in HeapMemAlloc()
2311 dstInfo.height(), dstInfo.width()); in HeapMemAlloc()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dbitmap.cpp85 bool Bitmap::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument
88 return bmpImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
H A Dimage.cpp176 bool Image::ReadPixels(const ImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in ReadPixels() argument
179 return imageImplPtr->ReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in ReadPixels()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_bitmap.h190 bool OH_Drawing_BitmapReadPixels(OH_Drawing_Bitmap*, const OH_Drawing_Image_Info* dstInfo,

123