Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/foundation/graphic/surface/test/unittest/
Dgraphic_surface_test.cpp200 Surface* surface = Surface::CreateSurface(); variable
201 if (surface == nullptr) {
206 surface->RegisterConsumerListener(*consumerListener);
208 EXPECT_EQ(1, surface->GetQueueSize());
209 EXPECT_EQ(0, surface->GetUsage()); // default usage is BUFFER_CONSUMER_USAGE_SORTWARE(0)
210 EXPECT_EQ(0, surface->GetSize());
211 EXPECT_EQ(0, surface->GetWidth());
212 EXPECT_EQ(0, surface->GetHeight());
213 EXPECT_EQ(101, surface->GetFormat()); // default format is IMAGE_PIXEL_FORMAT_RGB565(101)
214 EXPECT_EQ(4, surface->GetStrideAlignment()); // default format stride alignment is 4
[all …]
/foundation/multimedia/media_lite/services/recorder_lite/impl/src/
Drecorder_video_source.cpp44 Surface *surface = Surface::CreateSurface(); in GetSurface() local
45 if (surface == nullptr) { in GetSurface()
49 g_surface = surface; in GetSurface()
50 surface->RegisterConsumerListener(*this); in GetSurface()
51 surface_.reset(surface); in GetSurface()
60 Surface *surface = Surface::CreateSurface(); in SetSurfaceSize() local
61 if (surface == nullptr) { in SetSurfaceSize()
65 g_surface = surface; in SetSurfaceSize()
66 surface->RegisterConsumerListener(*this); in SetSurfaceSize()
67 surface_.reset(surface); in SetSurfaceSize()
[all …]
Drecorder_data_source.cpp46 Surface *surface = Surface::CreateSurface(); in GetSurface() local
47 if (surface == nullptr) { in GetSurface()
50 surface->SetWidthAndHeight(SURFACE_DEFAULT_HEIGHT, SURFACE_DEFAULT_WIDTH); in GetSurface()
51 surface->SetQueueSize(SURFACE_QUEUE_SIZE); in GetSurface()
52 surface->SetSize(SURFACE_SIZE); in GetSurface()
53 surface->RegisterConsumerListener(*this); in GetSurface()
54 surface_.reset(surface); in GetSurface()
/foundation/graphic/surface/frameworks/
Dsurface.cpp22 SurfaceImpl* surface = new SurfaceImpl(); in CreateSurface() local
23 if (surface != nullptr) { in CreateSurface()
24 if (surface->Init()) { in CreateSurface()
25 return reinterpret_cast<Surface *>(surface); in CreateSurface()
28 delete surface; in CreateSurface()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
Drs_surface_ohos_converter.cpp23 sptr<Surface> RSSurfaceConverter::ConvertToOhosSurface(std::shared_ptr<RSSurface> surface) in ConvertToOhosSurface() argument
25 if (surface == nullptr) { in ConvertToOhosSurface()
30 auto derivedPtr = std::static_pointer_cast<RSSurfaceOhosGl>(surface); // gpu render in ConvertToOhosSurface()
32 auto derivedPtr = std::static_pointer_cast<RSSurfaceOhosRaster>(surface); // cpu render in ConvertToOhosSurface()
/foundation/graphic/graphic_2d/frameworks/vulkan_wrapper/src/
Dswapchain.cpp44 Swapchain(Surface& surface, uint32_t numImages, VkPresentModeKHR presentMode, int preTransform) in Swapchain()
45 … : surface(surface), numImages(numImages), mailboxMode(presentMode == VK_PRESENT_MODE_MAILBOX_KHR), in Swapchain()
50 Surface& surface; member
120 VkSurfaceKHR HandleFromSurface(Surface* surface) in HandleFromSurface() argument
122 return VkSurfaceKHR(reinterpret_cast<uint64_t>(surface)); in HandleFromSurface()
154 Surface* surface = new (mem) Surface; in CreateOHOSSurfaceOpenHarmony() local
155 surface->window = pCreateInfo->window; in CreateOHOSSurfaceOpenHarmony()
156 surface->swapchainHandle = VK_NULL_HANDLE; in CreateOHOSSurfaceOpenHarmony()
157 int32_t res = NativeWindowHandleOpt(pCreateInfo->window, GET_USAGE, &(surface->consumerUsage)); in CreateOHOSSurfaceOpenHarmony()
159 if (surface->consumerUsage == 0) { in CreateOHOSSurfaceOpenHarmony()
[all …]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
Drender_context.cpp191 void RenderContext::MakeCurrent(EGLSurface surface, EGLContext context) in MakeCurrent() argument
193 if (surface == EGL_NO_SURFACE) { in MakeCurrent()
194 surface = pbufferSurface_; in MakeCurrent()
199 if (!eglMakeCurrent(eglDisplay_, surface, surface, context)) { in MakeCurrent()
202 eglSurface_ = surface; in MakeCurrent()
205 void RenderContext::SwapBuffers(EGLSurface surface) const in SwapBuffers()
208 if (!eglSwapBuffers(eglDisplay_, surface)) { in SwapBuffers()
209 … LOGE("Failed to SwapBuffers on surface %{public}p, error is %{public}x", surface, eglGetError()); in SwapBuffers()
211 LOGD("SwapBuffers successfully, surface is %{public}p", surface); in SwapBuffers()
215 void RenderContext::DestroyEGLSurface(EGLSurface surface) in DestroyEGLSurface() argument
[all …]
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/sink/memsink/
Dgst_surface_allocator.cpp42 …st_surface_allocator_set_surface(GstSurfaceAllocator *allocator, OHOS::sptr<OHOS::Surface> surface) in gst_surface_allocator_set_surface() argument
48 if (surface == nullptr) { in gst_surface_allocator_set_surface()
52 allocator->surface = surface; in gst_surface_allocator_set_surface()
76 … OHOS::SurfaceError ret = allocator->surface->RequestBuffer(buffer, release_fence, request_config); in gst_surface_request_buffer()
85 allocator->surface->CancelBuffer(buffer); in gst_surface_request_buffer()
101 ret = allocator->surface->SetScalingMode(buffer->GetSeqNum(), scaleType); in gst_surface_request_buffer()
104 allocator->surface->CancelBuffer(buffer); in gst_surface_request_buffer()
113 g_return_val_if_fail(allocator != nullptr && allocator->surface != nullptr, nullptr); in gst_surface_allocator_alloc()
124 allocator->surface->CancelBuffer(buffer); in gst_surface_allocator_alloc()
144 g_return_if_fail(memory != nullptr && allocator != nullptr && allocator->surface != nullptr); in gst_surface_allocator_free()
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
Drs_surface_ohos_converter.cpp21 sptr<Surface> RSSurfaceConverter::ConvertToOhosSurface(std::shared_ptr<RSSurface> surface) in ConvertToOhosSurface() argument
23 if (surface == nullptr) { in ConvertToOhosSurface()
28 auto derivedPtr = std::static_pointer_cast<RSSurfaceDarwin>(surface); in ConvertToOhosSurface()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
Drs_physical_screen_processor.cpp45 [this](const auto& surface, const auto& layers) { Redraw(surface, layers); }); in Init() argument
71 void RSPhysicalScreenProcessor::Redraw(const sptr<Surface>& surface, const std::vector<LayerInfoPtr… in Redraw() argument
74 if (surface == nullptr) { in Redraw()
81 auto renderFrame = renderEngine_->RequestFrame(surface, renderFrameConfig_, forceCPU); in Redraw()
Drs_uni_render_processor.cpp45 [this](const auto& surface, const auto& layers) { in Init() argument
46 Redraw(surface, layers); in Init()
88 void RSUniRenderProcessor::Redraw(const sptr<Surface>& surface, const std::vector<LayerInfoPtr>& la… in Redraw() argument
90 if (surface == nullptr) { in Redraw()
97 auto renderFrame = renderEngine_->RequestFrame(surface, renderFrameConfig_, forceCPU); in Redraw()
/foundation/graphic/surface/
DREADME_zh.md18 **图 1** surface(即图中的Screen Buffer)在系统架构中的位置<a name="fig584223343312"></a>
19 ![](figures/surface在系统架构中的位置(绿色部分为surface-buffer).png "surface在系统架构中的位置(绿色部分为surface-buffer)")
24 /foundation/graphic/surface
DREADME.md14 A surface is used to manage and transfer the shared memory of graphics and media. Specific use case…
16surface transfers data across processes through control structures such as Inter-Process Communica…
18 **Figure 1** Position of a surface (known as Screen buffer in the following figure) in the system…
19 ![](figures/position-of-a-surface-in-the-system-architecture.png "position-of-a-surface-in-the-syst…
24 /foundation/graphic/surface
52 ![](figures/surface-rotation-process.png "surface-rotation-process")
55 >1. A shared memory is used for data transfer, and the process of creating a surface of the first …
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/
Dwrapper_hook_entries.in5 HOOK_API_ENTRY(EGLBoolean, eglCopyBuffers, EGLDisplay dpy, EGLSurface surface, NativePixmapType tar…
6 CALL_HOOK_API_RET(eglCopyBuffers, dpy, surface, target)
23 HOOK_API_ENTRY(EGLBoolean, eglDestroySurface, EGLDisplay dpy, EGLSurface surface)
24 CALL_HOOK_API_RET(eglDestroySurface, dpy, surface)
59 HOOK_API_ENTRY(EGLBoolean, eglQuerySurface, EGLDisplay dpy, EGLSurface surface, EGLint attribute, E…
60 CALL_HOOK_API_RET(eglQuerySurface, dpy, surface, attribute, value)
62 HOOK_API_ENTRY(EGLBoolean, eglSwapBuffers, EGLDisplay dpy, EGLSurface surface)
63 CALL_HOOK_API_RET(eglSwapBuffers, dpy, surface)
75 HOOK_API_ENTRY(EGLBoolean, eglBindTexImage, EGLDisplay dpy, EGLSurface surface, EGLint buffer)
76 CALL_HOOK_API_RET(eglBindTexImage, dpy, surface, buffer)
[all …]
Degl_hook_entries.in5 HOOK_API_ENTRY(EGLBoolean, eglCopyBuffers, EGLDisplay dpy, EGLSurface surface, NativePixmapType tar…
6 CALL_HOOK_API_RET(eglCopyBuffers, dpy, surface, target)
23 HOOK_API_ENTRY(EGLBoolean, eglDestroySurface, EGLDisplay dpy, EGLSurface surface)
24 CALL_HOOK_API_RET(eglDestroySurface, dpy, surface)
59 HOOK_API_ENTRY(EGLBoolean, eglQuerySurface, EGLDisplay dpy, EGLSurface surface, EGLint attribute, E…
60 CALL_HOOK_API_RET(eglQuerySurface, dpy, surface, attribute, value)
62 HOOK_API_ENTRY(EGLBoolean, eglSwapBuffers, EGLDisplay dpy, EGLSurface surface)
63 CALL_HOOK_API_RET(eglSwapBuffers, dpy, surface)
75 HOOK_API_ENTRY(EGLBoolean, eglBindTexImage, EGLDisplay dpy, EGLSurface surface, EGLint buffer)
76 CALL_HOOK_API_RET(eglBindTexImage, dpy, surface, buffer)
[all …]
/foundation/graphic/graphic_2d/frameworks/vulkan_wrapper/include/
Dswapchain.h26 const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
27 VKAPI_ATTR void DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCall…
29 uint32_t queue_family, VkSurfaceKHR surface, VkBool32* pSupported);
30 …_ATTR VkResult GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface,
35 VkSurfaceKHR surface, uint32_t* count, VkPresentModeKHR* modes);
/foundation/multimedia/camera_lite/services/impl/src/
Dcamera_device.cpp250 Surface *surface = surfaceList.front(); in CameraCreateJpegEnc() local
251 uint32_t width = surface->GetWidth(); in CameraCreateJpegEnc()
256 uint32_t height = surface->GetHeight(); in CameraCreateJpegEnc()
295 static void StreamAttrInitialize(StreamAttr *streamAttr, Surface *surface, in StreamAttrInitialize() argument
298 if (streamAttr == nullptr || surface == nullptr) { in StreamAttrInitialize()
304 streamAttr->width = surface->GetWidth(); in StreamAttrInitialize()
305 streamAttr->height = surface->GetHeight(); in StreamAttrInitialize()
319 static int32_t SurfaceSetSize(SurfaceBuffer* surfaceBuf, Surface* surface, uint32_t size) in SurfaceSetSize() argument
322 surfaceBuf->SetSize(surface->GetSize() - size); in SurfaceSetSize()
323 if (surface->FlushBuffer(surfaceBuf) != 0) { in SurfaceSetSize()
[all …]
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/drawing_engine/drawing_surface/
Dsurface_ohos.cpp30 std::shared_ptr<SurfaceBase> SurfaceOhos::CreateSurface(sptr<Surface> surface) in CreateSurface() argument
38 producer = std::make_shared<SurfaceOhosGl>(surface); in CreateSurface()
43 producer = std::make_shared<SurfaceOhosRaster>(surface); in CreateSurface()
/foundation/multimedia/player_framework/test/unittest/avcodec_test/vcodec_test/
Dvcodec_unit_test.cpp158 std::shared_ptr<SurfaceMock> surface = videoEnc_->GetInputSurface(); variable
159 ASSERT_NE(nullptr, surface);
160 ASSERT_EQ(MSERR_OK, videoDec_->SetOutputSurface(surface));
191 std::shared_ptr<SurfaceMock> surface = videoEnc_->GetInputSurface(); variable
192 ASSERT_NE(nullptr, surface);
193 ASSERT_EQ(MSERR_OK, videoDec_->SetOutputSurface(surface));
232 std::shared_ptr<SurfaceMock> surface = videoEnc_->GetInputSurface(); variable
233 ASSERT_NE(nullptr, surface);
234 ASSERT_EQ(MSERR_OK, videoDec_->SetOutputSurface(surface));
268 std::shared_ptr<SurfaceMock> surface = videoEnc_->GetInputSurface(); variable
[all …]
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/input/
Dcamera_manager.h189 sptr<PhotoOutput> CreatePhotoOutput(Profile &profile, sptr<Surface> &surface);
198 … int CreatePhotoOutput(Profile &profile, sptr<Surface> &surface, sptr<PhotoOutput> *pPhotoOutput);
206 [[deprecated]] sptr<PhotoOutput> CreatePhotoOutput(sptr<Surface> &surface);
223 sptr<VideoOutput> CreateVideoOutput(VideoProfile &profile, sptr<Surface> &surface);
232 …int CreateVideoOutput(VideoProfile &profile, sptr<Surface> &surface, sptr<VideoOutput> *pVideoOutp…
240 [[deprecated]] sptr<VideoOutput> CreateVideoOutput(sptr<Surface> &surface);
257 sptr<PreviewOutput> CreatePreviewOutput(Profile &profile, sptr<Surface> surface);
266 …int CreatePreviewOutput(Profile &profile, sptr<Surface> surface, sptr<PreviewOutput> *pPreviewOutp…
274 [[deprecated]] sptr<PreviewOutput> CreatePreviewOutput(sptr<Surface> surface);
312 …[[deprecated]] sptr<PreviewOutput> CreateCustomPreviewOutput(sptr<Surface> surface, int32_t width,…
/foundation/graphic/graphic_2d/frameworks/surface/src/
Dnative_window.cpp39 nativeWindow->surface = in CreateNativeWindowFromSurface()
41 nativeWindow->config.width = nativeWindow->surface->GetDefaultWidth(); in CreateNativeWindowFromSurface()
42 nativeWindow->config.height = nativeWindow->surface->GetDefaultHeight(); in CreateNativeWindowFromSurface()
93 …if (window->surface->RequestBuffer(sfbuffer, releaseFence, window->config) != OHOS::GSError::GSERR… in NativeWindowRequestBuffer()
109 if (window == nullptr || buffer == nullptr || window->surface == nullptr) { in NativeWindowFlushBuffer()
130 window->surface->FlushBuffer(buffer->sfbuffer, acquireFence, config); in NativeWindowFlushBuffer()
142 window->surface->CancelBuffer(buffer->sfbuffer); in NativeWindowCancelBuffer()
305 if (window == nullptr || window->surface == nullptr || in NativeWindowSetScalingMode()
311 return window->surface->SetScalingMode(sequence, static_cast<ScalingMode>(scalingMode)); in NativeWindowSetScalingMode()
317 if (window == nullptr || window->surface == nullptr || size <= 0 || metaData == nullptr) { in NativeWindowSetMetaData()
[all …]
/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/multimedia_codec/decoder/
Ddecode_surface_listener.h30 DecodeSurfaceListener(sptr<Surface> surface, std::weak_ptr<DecodeDataProcess> decodeVideoNode) in DecodeSurfaceListener() argument
31 : surface_(surface), decodeVideoNode_(decodeVideoNode) {} in DecodeSurfaceListener()
35 void SetSurface(const sptr<Surface>& surface);
/foundation/multimedia/camera_lite/frameworks/
Dframe_config.cpp34 void FrameConfig::AddSurface(Surface &surface) in AddSurface() argument
36 surfaceList_.remove(&surface); in AddSurface()
37 surfaceList_.emplace_back(&surface); in AddSurface()
40 void FrameConfig::RemoveSurface(Surface &surface) in RemoveSurface() argument
42 surfaceList_.remove(&surface); in RemoveSurface()
/foundation/multimedia/player_framework/test/unittest/avcodec_test/
DBUILD.gn21 "//graphic/graphic_2d/interfaces/innerkits/surface",
31 "$MEDIA_ROOT_DIR/test/unittest/avcodec_test/native/surface/",
38 "//graphic/graphic_2d/interfaces/kits/surface",
39 "//graphic/graphic_2d/interfaces/inner_api/surface",
47 "$MEDIA_ROOT_DIR/test/unittest/avcodec_test/capi/surface/",
94 "./native/surface/surface_native_mock.cpp",
105 "//foundation/graphic/graphic_2d/frameworks/surface:surface",
137 "./native/surface/surface_native_mock.cpp",
143 "//foundation/graphic/graphic_2d/frameworks/surface:surface",
213 "//foundation/graphic/graphic_2d/frameworks/surface/include",
[all …]
/foundation/distributedhardware/distributed_screen/services/screenclient/src/
Dscreen_client.cpp32 …sptr<Surface> surface = ScreenClientWindowAdapter::GetInstance().CreateWindow(windowProperty, wind… in AddWindow() local
33 if (surface == nullptr) { in AddWindow()
39 surfaceMap_.emplace(windowId, surface); in AddWindow()
104 sptr<Surface> surface = nullptr; in GetSurface() local
112 surface = iter->second; in GetSurface()
115 return surface; in GetSurface()

12345678910>>...21