Home
last modified time | relevance | path

Searched refs:crop (Results 1 - 25 of 33) sorted by relevance

12

/foundation/multimedia/camera_lite/frameworks/
H A Dframe_config.cpp48 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()
[all...]
/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dsurface_utils_test.cpp212 Rect crop = {}; in HWTEST_F() local
213 crop.w = buffer->GetWidth(); in HWTEST_F()
214 crop.h = buffer->GetHeight(); in HWTEST_F()
219 utils->ComputeTransformMatrix(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop); in HWTEST_F()
221 utils->ComputeTransformMatrixV2(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop); in HWTEST_F()
224 // Compute matrix with normal crop in HWTEST_F()
225 utils->ComputeTransformMatrix(matrix, 16, buffer, transform, crop); in HWTEST_F()
227 utils->ComputeTransformMatrixV2(matrix, 16, buffer, transform, crop); in HWTEST_F()
241 * CaseDescription: 1. call ComputeTransformMatrix with small crop
242 * 2. call ComputeTransformMatrixV2 with small crop
251 Rect crop = {}; HWTEST_F() local
[all...]
/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_utils.cpp163 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) in ComputeTransformMatrix()
178 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrix()
179 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrix()
180 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrix()
183 if (crop.h < bufferHeight && bufferHeight != 0) { in ComputeTransformMatrix()
184 ty = (float(bufferHeight - crop.y) / bufferHeight); in ComputeTransformMatrix()
185 sy = (float(crop.h) / bufferHeight); in ComputeTransformMatrix()
251 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) in ComputeTransformMatrixV2()
276 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrixV2()
277 tx = (float(crop in ComputeTransformMatrixV2()
162 ComputeTransformMatrix(float matrix[MATRIX_ARRAY_SIZE], uint32_t matrixSize, sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) ComputeTransformMatrix() argument
250 ComputeTransformMatrixV2(float matrix[MATRIX_ARRAY_SIZE], uint32_t matrixSize, sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) ComputeTransformMatrixV2() argument
[all...]
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dsurface_utils.h36 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop);
38 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop);
/foundation/graphic/graphic_surface/surface/test/fuzztest/surfaceutils_fuzzer/
H A Dsurfaceutils_fuzzer.cpp61 Rect crop = GetData<Rect>(); in DoSomethingInterestingWithMyAPI() local
63 utils->ComputeTransformMatrix(matrix, matrixSize, buffer, transformType, crop); in DoSomethingInterestingWithMyAPI()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdilayer_fuzzer/
H A Dhdilayer_fuzzer.cpp79 GraphicIRect crop = GetData<GraphicIRect>(); in GetLayerInfoFromData() local
93 layerInfo->SetCropRect(crop); in GetLayerInfoFromData()
/foundation/multimedia/camera_lite/interfaces/kits/
H A Dframe_config.h155 CameraRect crop; member in OHOS::Media::FrameConfig
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_astc_test.cpp230 * @tc.desc: PixelAstc crop
245 uint32_t ret = pixelAstc->crop(rect); in HWTEST_F()
251 ret = pixelAstc->crop(rect); in HWTEST_F()
254 // -1 means width of the crop part in HWTEST_F()
257 ret = pixelAstc->crop(rect); in HWTEST_F()
260 // -1 means height of the crop part in HWTEST_F()
263 ret = pixelAstc->crop(rect); in HWTEST_F()
267 ret = pixelAstc->crop(rect); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdidevice_fuzzer/
H A Dhdidevice_fuzzer.cpp100 GraphicIRect crop = GetData<GraphicIRect>(); in HdiDeviceFuzzTest2() local
122 device->SetLayerCrop(screenId, layerId, crop); in HdiDeviceFuzzTest2()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/
H A Dhdi_device_impl.cpp524 int32_t HdiDeviceImpl::SetLayerCrop(uint32_t screenId, uint32_t layerId, const GraphicIRect &crop) in SetLayerCrop() argument
528 .x = crop.x, in SetLayerCrop()
529 .y = crop.y, in SetLayerCrop()
530 .w = crop.w, in SetLayerCrop()
531 .h = crop.h, in SetLayerCrop()
/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dpixel_astc.h66 NATIVEEXPORT uint32_t crop(const Rect &rect) override;
H A Dpixel_yuv.h52 NATIVEEXPORT uint32_t crop(const Rect &rect) override;
H A Dpixel_map.h153 NATIVEEXPORT virtual uint32_t crop(const Rect &rect);
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/
H A Dhdi_layer_info.h156 void SetCropRect(const GraphicIRect &crop) in SetCropRect() argument
158 cropRect_ = crop; in SetCropRect()
425 // source crop tuning
H A Dhdi_device_impl.h78 int32_t SetLayerCrop(uint32_t screenId, uint32_t layerId, const GraphicIRect &crop) override;
H A Dhdi_device.h81 virtual int32_t SetLayerCrop(uint32_t screenId, uint32_t layerId, const GraphicIRect &crop) = 0;
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/
H A Dhdidevice_test.cpp184 GraphicIRect crop = {0, 0, 0, 0}; in HWTEST_F() local
185 EXPECT_EQ(HdiDeviceTest::hdiDevice_->SetLayerCrop(screenId, layerId, crop), GRAPHIC_DISPLAY_SUCCESS); in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dpixel_map_impl.cpp179 return real_->crop(rect); in Crop()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_astc.cpp121 uint32_t PixelAstc::crop(const Rect &rect) in crop() function in OHOS::Media::PixelAstc
139 IMAGE_LOGE("crop failed"); in crop()
/foundation/multimedia/media_utils_lite/hals/
H A Dhal_camera.h78 RectInfo crop; member
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp518 static inline bool IsValidCrop(const OHOS::Media::Rect &crop, SkImageInfo &info, SkIRect &out) in HeapMemAlloc() argument
520 out = SkIRect::MakeXYWH(crop.left, crop.top, crop.width, crop.height); in HeapMemAlloc()
549 IMAGE_LOGE("Invalid crop rect xy [%{public}d x %{public}d], wh [%{public}d x %{public}d]", in HeapMemAlloc()
/foundation/graphic/graphic_2d/rosen/modules/platform/image_native/
H A Dpixel_map.h96 NATIVEEXPORT uint32_t crop(const Rect &rect);
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_pixel_map_napi_kits.cpp338 pixelmap->crop(region); in PixelMapNapiCrop()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dlite_graph_to_hdi_model_v2_1.cpp360 Crop crop{}; in ConvertCrop()
361 crop.axis = mindspore::lite::MindIR_Crop_GetAxis(primitive); in ConvertCrop()
362 crop.offset = mindspore::lite::MindIR_Crop_GetOffsets(primitive); in ConvertCrop()
365 (void)CropBlockMarshalling(data, crop); in ConvertCrop()
/foundation/multimedia/camera_lite/services/impl/src/
H A Dcamera_device.cpp308 fc.GetParameter(CAM_IMAGE_CROP_RECT, streamAttr->crop); in StreamAttrInitialize()

Completed in 20 milliseconds

12