/ohos5.0/foundation/multimedia/camera_lite/frameworks/ |
H A D | frame_config.cpp | 48 return &crop; in GetValue() 98 crop.x = (static_cast<const CameraRect *>(value))->x; in SetValue() 99 crop.y = (static_cast<const CameraRect *>(value))->y; in SetValue() 100 crop.w = (static_cast<const CameraRect *>(value))->w; in SetValue() 101 crop.h = (static_cast<const CameraRect *>(value))->h; in SetValue() 110 crop.x = 0; in FrameConfig() 111 crop.y = 0; in FrameConfig() 112 crop.w = 0; in FrameConfig() 113 crop.h = 0; in FrameConfig() 114 SetParameter(CAM_IMAGE_CROP_RECT, crop); in FrameConfig()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
H A D | v4l2_fileformat.cpp | 221 struct v4l2_crop crop = {}; in V4L2GetCrop() local 230 crop.type = bufType_; in V4L2GetCrop() 238 format.crop.left = crop.c.left; in V4L2GetCrop() 239 format.crop.top = crop.c.top; in V4L2GetCrop() 240 format.crop.width = crop.c.width; in V4L2GetCrop() 241 format.crop.height = crop.c.height; in V4L2GetCrop() 258 crop.type = bufType_; in V4L2SetCrop() 259 crop.c.left = format.crop.left; in V4L2SetCrop() 260 crop.c.top = format.crop.top; in V4L2SetCrop() 261 crop.c.width = format.crop.width; in V4L2SetCrop() [all …]
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | surface_utils_test.cpp | 212 Rect crop = {}; variable 213 crop.w = buffer->GetWidth(); 214 crop.h = buffer->GetHeight(); 219 utils->ComputeTransformMatrix(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop); 225 utils->ComputeTransformMatrix(matrix, 16, buffer, transform, crop); 227 utils->ComputeTransformMatrixV2(matrix, 16, buffer, transform, crop); 251 Rect crop = {}; variable 252 crop.w = 100; 253 crop.h = 100; 258 utils->ComputeTransformMatrix(matrix, 16, buffer, transform, crop); [all …]
|
/ohos5.0/foundation/graphic/graphic_surface/surface/src/ |
H A D | surface_utils.cpp | 176 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrix() 177 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrix() 178 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrix() 181 if (crop.h < bufferHeight && bufferHeight != 0) { in ComputeTransformMatrix() 182 ty = (float(bufferHeight - crop.y) / bufferHeight); in ComputeTransformMatrix() 183 sy = (float(crop.h) / bufferHeight); in ComputeTransformMatrix() 274 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrixV2() 275 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrixV2() 276 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrixV2() 279 if (crop.h < bufferHeight && bufferHeight != 0) { in ComputeTransformMatrixV2() [all …]
|
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_device/composer/ |
H A D | hdi_gfx_composition.cpp | 158 IRect crop = src.GetLayerCrop(); in BlitLayer() local 160 …("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h); in BlitLayer() 164 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/ |
H A D | hdi_gfx_composition.cpp | 180 IRect crop = src.GetLayerCrop(); in BlitLayer() local 182 …("crop x: %{public}d y : %{public}d w : %{public}d h: %{public}d", crop.x, crop.y, crop.w, crop.h); in BlitLayer() 186 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/ |
H A D | camera_fileformat.cpp | 221 isFailed |= !HdfSbufWriteInt32(reqData, ctrl.crop.left); in CameraSetCrop() 222 isFailed |= !HdfSbufWriteInt32(reqData, ctrl.crop.top); in CameraSetCrop() 223 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.crop.width); in CameraSetCrop() 224 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.crop.height); in CameraSetCrop() 257 isFailed |= !HdfSbufReadInt32(respData, &(ctrl.crop.left)); in CameraGetCrop() 258 isFailed |= !HdfSbufReadInt32(respData, &(ctrl.crop.top)); in CameraGetCrop() 259 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.crop.width)); in CameraGetCrop() 260 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.crop.height)); in CameraGetCrop()
|
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/surface/ |
H A D | surface_utils.h | 36 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop); 38 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop);
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/surfaceutils_fuzzer/ |
H A D | surfaceutils_fuzzer.cpp | 61 Rect crop = GetData<Rect>(); in DoSomethingInterestingWithMyAPI() local 63 utils->ComputeTransformMatrix(matrix, matrixSize, buffer, transformType, crop); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/multimedia/image_framework/ |
H A D | README_zh.md | 22 - [图片裁剪](#crop) 330 ### 15.crop<a name="crop"></a> 334 通过调用crop对图片进行裁剪。 337 crop(region: Region, callback: AsyncCallback<void>): void; 338 crop(region: Region): Promise<void>; 344 await pixelMap.crop({ x: 0, y: 0, size: { height: 100, width: 100 } });
|
/ohos5.0/foundation/multimedia/image_effect/test/unittest/ |
H A D | BUILD.gn | 24 "$image_effect_root_dir/frameworks/native/efilter/filterimpl/crop", 36 "$image_effect_root_dir/frameworks/native/efilter/filterimpl/crop/crop_efilter.cpp", 53 "$image_effect_root_dir/frameworks/native/efilter/filterimpl/crop",
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.50/ |
H A D | changelogs-multimedia.md | 67 … // 用法2.如果仅想通过byteBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素 126 … // 用法2.如果仅想通过byteBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素 212 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素 271 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素 369 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素 439 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | image-edit.md | 46 分别通过以下方法对pixelMap进行裁剪、缩放、偏移、旋转、翻转、调节透明度等操作:crop、scale、translate、rotate、flip、opacity。 52 pixelMap.crop({x:0,y:0,size:{height:300,width:300}}) 144 pixelMap.crop({x:0,y:0,size:{height:300,width:300}})
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdilayer_fuzzer/ |
H A D | hdilayer_fuzzer.cpp | 79 GraphicIRect crop = GetData<GraphicIRect>(); in GetLayerInfoFromData() local 93 layerInfo->SetCropRect(crop); in GetLayerInfoFromData()
|
/ohos5.0/docs/zh-cn/application-dev/ai/mindspore/ |
H A D | mindspore-guidelines-based-js.md | 108 pixelMap.crop( 112 console.info('MS_LITE_LOG: crop info.width = ' + info.size.width); 113 console.info('MS_LITE_LOG: crop info.height = ' + info.size.height); 284 …2547 A03d00/JSAPP com.sampl...liteark+ I MS_LITE_LOG: crop info.width = 224 285 …547 A03d00/JSAPP com.sampl...liteark+ I MS_LITE_LOG: crop info.height = 224
|
H A D | mindspore-guidelines-based-native.md | 92 pixelMap.crop( 96 console.info('MS_LITE_LOG: crop info.width = ' + info.size.width); 97 console.info('MS_LITE_LOG: crop info.height = ' + info.size.height); 469 …84 A03d00/JSAPP pid-4684 I MS_LITE_LOG: crop info.width = 224 470 …4 A03d00/JSAPP pid-4684 I MS_LITE_LOG: crop info.height = 224
|
/ohos5.0/drivers/hdf_core/framework/model/camera/device_impl/src/ |
H A D | camera_stream.c | 163 isFailed |= !HdfSbufWriteInt32(rspData, ctrlConfig.pixelFormat.crop.left); in CameraSendCropData() 164 isFailed |= !HdfSbufWriteInt32(rspData, ctrlConfig.pixelFormat.crop.top); in CameraSendCropData() 165 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.crop.width); in CameraSendCropData() 166 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.crop.height); in CameraSendCropData() 190 isFailed |= !HdfSbufReadInt32(reqData, &ctrlConfig->pixelFormat.crop.left); in CameraReceiveCropData() 191 isFailed |= !HdfSbufReadInt32(reqData, &ctrlConfig->pixelFormat.crop.top); in CameraReceiveCropData() 192 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig->pixelFormat.crop.width); in CameraReceiveCropData() 193 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig->pixelFormat.crop.height); in CameraReceiveCropData()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | pixel_astc_test.cpp | 245 uint32_t ret = pixelAstc->crop(rect); 251 ret = pixelAstc->crop(rect); 257 ret = pixelAstc->crop(rect); 263 ret = pixelAstc->crop(rect); 267 ret = pixelAstc->crop(rect);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdidevice_fuzzer/ |
H A D | hdidevice_fuzzer.cpp | 100 GraphicIRect crop = GetData<GraphicIRect>(); in HdiDeviceFuzzTest2() local 122 device->SetLayerCrop(screenId, layerId, crop); in HdiDeviceFuzzTest2()
|
/ohos5.0/foundation/multimedia/camera_lite/interfaces/kits/ |
H A D | frame_config.h | 155 CameraRect crop; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/ |
H A D | hdi_device_impl.cpp | 523 int32_t HdiDeviceImpl::SetLayerCrop(uint32_t screenId, uint32_t layerId, const GraphicIRect &crop) in SetLayerCrop() argument 527 .x = crop.x, in SetLayerCrop() 528 .y = crop.y, in SetLayerCrop() 529 .w = crop.w, in SetLayerCrop() 530 .h = crop.h, in SetLayerCrop()
|
/ohos5.0/docs/en/application-dev/ai/mindspore/ |
H A D | mindspore-guidelines-based-js.md | 108 pixelMap.crop( 112 console.info('MS_LITE_LOG: crop info.width = ' + info.size.width); 113 console.info('MS_LITE_LOG: crop info.height = ' + info.size.height); 284 …2547 A03d00/JSAPP com.sampl...liteark+ I MS_LITE_LOG: crop info.width = 224 285 …547 A03d00/JSAPP com.sampl...liteark+ I MS_LITE_LOG: crop info.height = 224
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/ |
H A D | v4l2_common.h | 67 struct V4l2Rect crop; member
|
/ohos5.0/docs/zh-cn/application-dev/media/image/ |
H A D | image-transformation.md | 37 pixelMap.crop({x: 0, y: 0, size: { height: 400, width: 400 } });
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-multimedia.md | 42 | ohos.multimedia.image | PixelMap | crop(region: Region, callback: AsyncCallback\<void>): void;<br…
|