Home
last modified time | relevance | path

Searched refs:bufferWidth (Results 1 - 19 of 19) sorted by relevance

/foundation/arkui/ui_lite/frameworks/dock/
H A Dscreen_device_proxy.cpp49 uint16_t bufferWidth = (width_ > curViewRect_.GetWidth()) ? curViewRect_.GetWidth() : width_; in SetAnimatorRect() local
53 animatorImageInfo_.dataSize = bufferWidth * bufferHeight * DrawUtils::GetByteSizeByColorMode(animatorBufferMode_); in SetAnimatorRect()
54 animatorImageInfo_.header.width = bufferWidth; in SetAnimatorRect()
62 SetAnimatorbufferWidth(bufferWidth); in SetAnimatorRect()
/foundation/window/window_manager/utils/include/
H A Dsurface_draw.h34 static bool DrawColor(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth,
36 static bool DrawImage(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth,
38 static bool DrawImage(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth,
52 static sptr<OHOS::SurfaceBuffer> GetSurfaceBuffer(sptr<OHOS::Surface> layer, int32_t bufferWidth,
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/egl_image/src/
H A Dpixel_map_from_surface.cpp82 int bufferWidth = surfaceBuffer_->GetWidth(); in GetNativeWindowBufferFromSurface() local
84 if (srcRect.width > bufferWidth || srcRect.height > bufferHeight || in GetNativeWindowBufferFromSurface()
85 srcRect.left >= bufferWidth || srcRect.top >= bufferHeight || in GetNativeWindowBufferFromSurface()
86 srcRect.left + srcRect.width > bufferWidth || srcRect.top + srcRect.height > bufferHeight) { in GetNativeWindowBufferFromSurface()
140 int bufferWidth = surfaceBuffer_->GetWidth(); in DrawImage() local
150 std::make_shared<GrBackendTexture>(bufferWidth, bufferHeight, GrMipMapped::kNo, grExternalTextureInfo); in DrawImage()
/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_utils.cpp175 float bufferWidth = buffer->GetWidth(); in ComputeTransformMatrix() local
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()
273 float bufferWidth = buffer->GetWidth(); in ComputeTransformMatrixV2() local
276 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrixV2()
277 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrixV2()
278 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrixV2()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_surface.cpp345 int32_t bufferWidth = surfaceNode->buffer_->GetSurfaceBufferWidth(); in DrawBuffer() local
349 ACE_SCOPED_TRACE("Web CompareBufferSize (width %d, height %d, bufferWidth %d, bufferHeight %d)" \ in DrawBuffer()
350 " pipeline freeze status = %d", width, height, bufferWidth, bufferHeight, pipeline->IsFreezeFlushMessage()); in DrawBuffer()
351 if (bufferWidth > SIZE_LIMIT || bufferHeight > SIZE_LIMIT in DrawBuffer()
352 || (abs(height - bufferHeight) < PERMITTED_DIFFERENCE && abs(width - bufferWidth) < PERMITTED_DIFFERENCE)) { in DrawBuffer()
358 ACE_SCOPED_TRACE("Web SetIsFreezeFlushMessage (width %d, height %d, bufferWidth %d, bufferHeight %d)", in DrawBuffer()
359 width, height, bufferWidth, bufferHeight); in DrawBuffer()
388 int32_t bufferWidth = surfaceBuffer->GetSurfaceBufferWidth(); in DrawBuffer() local
398 if (webOffset_ >= 0 || bufferWidth < ADJUST_WEB_DRAW_LENGTH * 2 || bufferWidth > in DrawBuffer()
[all...]
/foundation/window/window_manager/utils/src/
H A Dsurface_draw.cpp38 bool SurfaceDraw::DrawImage(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth, in DrawImage() argument
46 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, bufferWidth, bufferHeight); in DrawImage()
69 bool SurfaceDraw::DrawImage(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth, in DrawImage() argument
77 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, bufferWidth, bufferHeight); in DrawImage()
100 bool SurfaceDraw::DrawColor(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth, in DrawColor() argument
108 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, bufferWidth, bufferHeight); in DrawColor()
140 int32_t bufferWidth, int32_t bufferHeight) in GetSurfaceBuffer()
145 .width = bufferWidth, in GetSurfaceBuffer()
139 GetSurfaceBuffer(sptr<OHOS::Surface> layer, int32_t bufferWidth, int32_t bufferHeight) GetSurfaceBuffer() argument
/foundation/graphic/graphic_2d/rosen/modules/effect/effectChain/src/
H A Dinput.cpp106 } else if (key == "bufferWidth" && size > 0) { in SetValue()
107 std::shared_ptr<int> bufferWidth = std::static_pointer_cast<int>(value); in SetValue() local
108 bufferWidth_ = *(bufferWidth.get()); in SetValue()
/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/src/
H A Dpixel_map_from_surface.cpp535 int bufferWidth = surfaceBuffer->GetWidth(); in GetNativeWindowBufferFromSurface() local
537 if (srcRect.width > bufferWidth || srcRect.height > bufferHeight || in GetNativeWindowBufferFromSurface()
538 srcRect.left >= bufferWidth || srcRect.top >= bufferHeight || in GetNativeWindowBufferFromSurface()
539 srcRect.left + srcRect.width > bufferWidth || srcRect.top + srcRect.height > bufferHeight) { in GetNativeWindowBufferFromSurface()
541 "bufferWidth=%{public}d, bufferHeight=%{public}d", in GetNativeWindowBufferFromSurface()
542 srcRect.left, srcRect.top, srcRect.width, srcRect.height, bufferWidth, bufferHeight); in GetNativeWindowBufferFromSurface()
595 int bufferWidth = surfaceBuffer_->GetWidth(); in DrawImage() local
606 std::make_shared<GrBackendTexture>(bufferWidth, bufferHeight, GrMipMapped::kNo, grExternalTextureInfo); in DrawImage()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_composer_adapter.cpp366 const auto bufferWidth = info.buffer->GetSurfaceBufferWidth(); in GetComposerInfoSrcRect() local
376 RS_LOGI_IF(DEBUG_COMPOSER, "RSUniRenderComposerAdapter::GetCInfoSrcRect bufferWidth:%{public}d" in GetComposerInfoSrcRect()
378 " transformType:%{public}d srcRect[%{public}d %{public}d %{public}d %{public}d]", bufferWidth, in GetComposerInfoSrcRect()
381 if ((bufferWidth != boundsWidth || bufferHeight != boundsHeight) && in GetComposerInfoSrcRect()
383 float xScale = (ROSEN_EQ(boundsWidth, 0.0f) ? 1.0f : bufferWidth / boundsWidth); in GetComposerInfoSrcRect()
404 info.srcRect.w = (bufferWidth / scale - (boundsWidth - info.srcRect.w)) * scale; in GetComposerInfoSrcRect()
411 info.srcRect.w = bufferWidth; in GetComposerInfoSrcRect()
416 info.srcRect.w = std::min(static_cast<int32_t>(std::ceil(info.srcRect.w * xScale)), bufferWidth); in GetComposerInfoSrcRect()
423 Drawing::RectI bufferRect(0, 0, bufferWidth, bufferHeight); in GetComposerInfoSrcRect()
447 const auto bufferWidth in GetComposerInfoSrcRect() local
[all...]
H A Drs_composer_adapter.cpp319 const auto bufferWidth = info.buffer->GetSurfaceBufferWidth(); in GetComposerInfoSrcRect() local
323 if (bufferWidth != boundsWidth || bufferHeight != boundsHeight) { in GetComposerInfoSrcRect()
325 double xScale = (ROSEN_EQ(boundsWidth, 0) ? 1.0 : 1.0 * bufferWidth / boundsWidth); in GetComposerInfoSrcRect()
329 info.srcRect.w = std::min(static_cast<int32_t>(info.srcRect.w * xScale), bufferWidth); in GetComposerInfoSrcRect()
H A Drs_base_render_util.cpp745 int32_t bufferWidth = srcBuf->GetWidth();
749 if (bufferWidth < 1 || bufferHeight < 1 || bufferStride < 1 || bufferSize < 1) {
751 " %{public}d, %{public}d, %{public}d]", bufferWidth, bufferHeight, bufferStride, bufferSize);
767 bufferWidth, srcBuf->GetHeight(), bufferStride, bufferSize, totalLen);
779 for (int j = 0; j < bufferWidth; j++) {
795 idx = (i * bufferWidth + j) * 4 + k; // 4 is color channel
H A Drs_uni_render_util.cpp1389 const auto bufferWidth = buffer->GetSurfaceBufferWidth(); in UpdateRealSrcRect() local
1397 if ((bufferWidth != boundsWidth || bufferHeight != boundsHeight) && in UpdateRealSrcRect()
1399 float xScale = (ROSEN_EQ(boundsWidth, 0.0f) ? 1.0f : bufferWidth / boundsWidth); in UpdateRealSrcRect()
1415 srcRect.width_ = (bufferWidth / scale - (boundsWidth - srcRect.width_)) * scale; in UpdateRealSrcRect()
1421 srcRect.width_ = bufferWidth; in UpdateRealSrcRect()
1426 srcRect.width_ = std::min(static_cast<int32_t>(std::ceil(srcRect.width_ * xScale)), bufferWidth); in UpdateRealSrcRect()
1431 RectI bufferRect(0, 0, bufferWidth, bufferHeight); in UpdateRealSrcRect()
H A Drs_uni_render_visitor.cpp1458 const auto bufferWidth = buffer->GetSurfaceBufferWidth(); in UpdateHwcNodeEnableByBufferSize() local
1471 if ((bufferWidth < boundsWidth) || (bufferHeight < boundsHeight)) { in UpdateHwcNodeEnableByBufferSize()
1474 node.GetName().c_str(), node.GetId(), bufferWidth, bufferHeight, boundsWidth, boundsHeight); in UpdateHwcNodeEnableByBufferSize()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/round_corner_display/
H A Drs_rcd_surface_render_node.h74 uint32_t bufferWidth = 0; member
H A Drs_rcd_surface_render_node.cpp106 rcdSourceInfo.bufferWidth = width; in SetRcdBufferWidth()
111 return rcdSourceInfo.bufferWidth; in GetRcdBufferWidth()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/
H A Drs_render_thread_visitor.cpp381 const float bufferWidth = node.GetSuggestedBufferWidth() * property.GetScaleX(); in ProcessRootRenderNode() local
385 (void)curDirtyManager_->SetSurfaceSize(bufferWidth, bufferHeight); in ProcessRootRenderNode()
430 auto surfaceFrame = rsSurface->RequestFrame(bufferWidth, bufferHeight, uiTimestamp_); in ProcessRootRenderNode()
432 auto surfaceFrame = rsSurface->RequestFrame(std::round(bufferWidth), std::round(bufferHeight), uiTimestamp_); in ProcessRootRenderNode()
489 Gravity::RESIZE, RectF { 0.0f, 0.0f, bufferWidth, bufferHeight }, rootWidth, rootHeight, gravityMatrix); in ProcessRootRenderNode()
503 canvas_->ClipRect(Drawing::Rect(0, 0, bufferWidth, bufferHeight), Drawing::ClipOp::INTERSECT, false); in ProcessRootRenderNode()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_round_corner_display_test.cpp874 auto bufferWidth = rcdRenderNode.GetRcdBufferWidth(); in HWTEST_F() local
875 EXPECT_EQ(bufferWidth, width); in HWTEST_F()
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/sample/
H A Dvdec_sample.cpp59 const int32_t bufferWidth = size * DEFAULT_WIDTH / frameSize; in UpdateSHA() local
60 for (int32_t i = 0; i < size; i += bufferWidth) { in UpdateSHA()
/foundation/graphic/graphic_2d/frameworks/vulkan_layers/swapchain_layer/
H A Dswapchain_layer.cpp1155 int32_t bufferWidth = 0; in FlushBuffer() local
1157 int err = NativeWindowHandleOpt(window, GET_BUFFER_GEOMETRY, &bufferHeight, &bufferWidth); in FlushBuffer()

Completed in 28 milliseconds