Home
last modified time | relevance | path

Searched refs:Surface (Results 1 – 25 of 939) sorted by relevance

12345678910>>...38

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dsurface.cpp26 Surface::Surface() : impl_(ImplFactory::CreateSurfaceImpl()), cachedCanvas_(nullptr) {} in Surface() function in OHOS::Rosen::Drawing::Surface
34 bool Surface::Bind(const Image& image) in Bind()
57 std::shared_ptr<Surface> Surface::MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo&… in MakeFromBackendTexture()
71 std::shared_ptr<Surface> Surface::MakeRaster(const ImageInfo& imageInfo) in MakeRaster()
81 std::shared_ptr<Surface> Surface::MakeRasterN32Premul(int32_t width, int32_t height) in MakeRasterN32Premul()
109 std::shared_ptr<Surface> Surface::MakeSurface(int width, int height) const in MakeSurface()
114 std::shared_ptr<Surface> Surface::MakeSurface(const ImageInfo& imageinfo) const in MakeSurface()
119 ImageInfo Surface::GetImageInfo() in GetImageInfo()
180 void Surface::ClearDrawingArea() in ClearDrawingArea()
193 int Surface::Width() const in Width()
[all …]
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-multimedia-camera-overview.md49 Surface是多媒体传递音视频的基本数据结构,Camera一般作为Surface中数据的生产者,在不同的场景下有特定的消费者。
51 相机的预览和录像输出均为视频流,拍照输出为图像帧,二者均通过Surface类进行传递。Surface类可以屏蔽进程内/跨进程的场景,进行多媒体信息流的传递。
53 …er实例,并从Recorder中获取对应Surface,再将此Surface传递给Camera实例,此时Camera将作为生产者向Surface注入视频流,而Recorder作为消费者从Surfa…
55 类似的,用户也可以自行创建Surface传递给Camera实例,并实现消费者逻辑(例如通过网络传输视频流,或是将拍照的帧数据保存成图片文件)。
57 图形图像模块也通过Surface从Camera获取流资源,具体步骤详见[图形图像开发指导](../subsystems/subsys-graphics-overview.md)。
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-xcomponent.md3 提供用于图形绘制和媒体数据写入的Surface,XComponent负责将其嵌入到视图中,支持应用自定义Surface位置和大小。具体指南请参考[自定义渲染 (XComponent)文档](../.…
223 | string | XComponent持有Surface的ID。 |
240 | surfaceWidth | number | 是 | XComponent持有Surface的宽度。 |
241 | surfaceHeight | number | 是 | XComponent持有Surface的高度。 |
298 | [SurfaceRect](#surfacerect12对象说明) | 获取XComponent持有Surface的显示区域。 |
314 | surfaceId | string | 是 | 回调该方法的时候,绑定XComponent持有Surface的ID。 |
355 | surfaceId | string | 是 | 回调该方法的时候,绑定XComponent持有Surface的ID。 |
431 > rotationOptions未配置时,默认XComponent持有Surface在屏幕旋转时不锁定方向,跟随屏幕进行旋转。
433 > 仅在屏幕旋转过程中生效,旋转完成后不再锁定Surface
457 用于描述XComponent持有Surface在屏幕旋转时是否锁定方向的设置。
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/
H A Dsurface.h58 class DRAWING_API Surface {
60 Surface();
61 ~Surface() {} in ~Surface()
86 …static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureI…
90 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& …
101 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag…
109 static std::shared_ptr<Surface> MakeRaster(const ImageInfo& imageInfo);
118 …static std::shared_ptr<Surface> MakeRasterDirect(const ImageInfo& imageInfo, void* pixels, size_t …
126 static std::shared_ptr<Surface> MakeRasterN32Premul(int32_t width, int32_t height);
158 std::shared_ptr<Surface> MakeSurface(int width, int height) const;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dsurface_test.cpp50 auto surface = std::make_unique<Surface>();
62 auto surface = std::make_unique<Surface>();
76 auto surface = std::make_unique<Surface>();
93 auto surface = std::make_unique<Surface>();
107 auto surface = std::make_unique<Surface>();
128 auto surface = std::make_unique<Surface>();
142 auto surface = std::make_unique<Surface>();
160 auto surface = std::make_unique<Surface>();
174 auto surface = std::make_unique<Surface>();
192 auto surface = std::make_unique<Surface>();
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/
H A Drs_surface_ohos_raster_test.cpp49 sptr<Surface> pSurface = nullptr;
65 sptr<Surface> pSurface = nullptr;
86 sptr<Surface> surface = Surface::CreateSurfaceAsProducer(producer);
107 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
130 sptr<Surface> pSurface = nullptr;
144 sptr<Surface> pSurface = nullptr;
153 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
168 sptr<Surface> pSurface = nullptr;
H A Drs_surface_ohos_gl_test.cpp49 sptr<Surface> producer = nullptr;
56 sptr<Surface> producer = nullptr;
72 sptr<Surface> producer = nullptr;
97 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
117 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
146 sptr<Surface> producer = nullptr;
171 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
192 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
224 sptr<Surface> pSurface = Surface::CreateSurfaceAsProducer(bp);
/ohos5.0/foundation/graphic/surface_lite/test/unittest/
H A Dgraphic_surface_test.cpp200 Surface* surface = Surface::CreateSurface();
275 Surface* surface = Surface::CreateSurface();
318 Surface* surface = Surface::CreateSurface();
370 Surface* surface = Surface::CreateSurface();
417 Surface* surface = Surface::CreateSurface();
461 Surface* surface = Surface::CreateSurface();
513 Surface* surface = Surface::CreateSurface();
551 Surface* surface = Surface::CreateSurface();
599 Surface* surface = Surface::CreateSurface();
630 Surface* surface = Surface::CreateSurface();
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_surface.h45 …static std::shared_ptr<Surface> MakeFromBackendRenderTarget(GPUContext* gpuContext, const TextureI…
49 …static std::shared_ptr<Surface> MakeFromBackendTexture(GPUContext* gpuContext, const TextureInfo& …
52 …static std::shared_ptr<Surface> MakeRenderTarget(GPUContext* gpuContext, bool budgeted, const Imag…
54 static std::shared_ptr<Surface> MakeRaster(const ImageInfo& imageInfo);
55 …static std::shared_ptr<Surface> MakeRasterDirect(const ImageInfo& imageInfo, void* pixels, size_t …
56 static std::shared_ptr<Surface> MakeRasterN32Premul(int32_t width, int32_t height);
61 std::shared_ptr<Surface> MakeSurface(int width, int height) const override;
62 std::shared_ptr<Surface> MakeSurface(const ImageInfo& imageInfo) const override;
H A Dskia_surface.cpp214 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeFromBackendRenderTarget()
264 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeFromBackendTexture()
269 std::shared_ptr<Surface> SkiaSurface::MakeRenderTarget(GPUContext* gpuContext, in MakeRenderTarget()
287 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeRenderTarget()
293 std::shared_ptr<Surface> SkiaSurface::MakeRaster(const ImageInfo& imageInfo) in MakeRaster()
301 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeRaster()
314 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeRasterDirect()
326 std::shared_ptr<Surface> surface = std::make_shared<Surface>(); in MakeRasterN32Premul()
403 std::shared_ptr<Surface> SkiaSurface::MakeSurface(int width, int height) const in MakeSurface()
415 auto drawingSurface = std::make_shared<Surface>(); in MakeSurface()
[all …]
/ohos5.0/foundation/graphic/surface_lite/frameworks/
H A Dsurface.cpp20 Surface* Surface::CreateSurface() in CreateSurface()
25 return reinterpret_cast<Surface *>(surface); in CreateSurface()
35 Surface::~Surface() in ~Surface()
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/
H A D_vulkan.md42 | [VK_OHOS_surface](#vk_ohos_surface) 1 | OpenHarmony平台Surface扩展宏定义。 |
164 OpenHarmony平台Surface扩展宏定义。
176 OpenHarmony平台Surface扩展名。
188 OpenHarmony平台Surface扩展版本号。
215 创建Vulkan Surface的函数指针定义。
224 | pCreateInfo | 一个VkSurfaceCreateInfoOHOS结构体的指针,包含创建Vulkan Surface时必要的参数。 |
226 | pSurface | 出参,用于接收创建的Vulkan Surface,类型为VkSurfaceKHR。 |
366 用于Vulkan Surface创建时使用到的VkFlags类型位掩码,预留的标志类型。
378 包含创建Vulkan Surface时必要的参数。
423 创建Vulkan Surface
[all …]
H A Dvulkan__ohos_8h.md24 | [VkSurfaceCreateInfoOHOS](_vk_surface_create_info_o_h_o_s.md) | 包含创建Vulkan Surface时必要的参数。 |
37 | [VK_OHOS_surface](_vulkan.md#vk_ohos_surface) 1 | OpenHarmony平台Surface扩展宏定义。 |
38 …S_SURFACE_SPEC_VERSION](_vulkan.md#vk_ohos_surface_spec_version) 1 | OpenHarmony平台Surface扩展版本号。 |
39 …N_NAME](_vulkan.md#vk_ohos_surface_extension_name) "VK_OHOS_surface" | OpenHarmony平台Surface扩展名。 |
50 | [VkSurfaceCreateFlagsOHOS](_vulkan.md#vksurfacecreateflagsohos) | 用于Vulkan Surface创建时使用到的VkFlags类…
51 | [VkSurfaceCreateInfoOHOS](_vulkan.md#vksurfacecreateinfoohos) | 包含创建Vulkan Surface时必要的参数。 |
52 …fo, const VkAllocationCallbacks \*pAllocator, VkSurfaceKHR \*pSurface) | 创建Vulkan Surface的函数指针定义。 |
67 …ateInfo, const VkAllocationCallbacks \*pAllocator, VkSurfaceKHR \*pSurface) | 创建Vulkan Surface。 |
/ohos5.0/foundation/multimedia/camera_framework/
H A DREADME_zh.md71 sptr<Surface> surface_;
124 7. 创建消费者 Surface 并注册监听器以监听缓冲区更新。拍照的宽和高可以配置为所支持的 1280x960 分辨率。
127 sptr<Surface> photoSurface = Surface::CreateSurfaceAsConsumer();
138 8. 使用上面创建的 Surface 创建拍照输出。
209 6. 使用从窗口管理器获得的 Surface 创建预览输出用以在显示上渲染。预览的宽和高可以配置为所支持的 640x480 或 832x480 分辨率,如果想保存到文件,可以按照拍照流程提到步骤,…
289 6. 通过 Surface 创建一个视频输出,来与音频合成并保存到文件,Surface 通过 Recoder 获取。如果想仅保存视频缓冲数据到文件里,可以按照拍照流程提到步骤,创建 Surface
367 6. 通过Surface创建一个视频输出。
422 15. 创建拍照输出,成功创建后将拍照输出添加到采集会话。创建消费者 Surface 并注册监听器以监听新的拍照输出缓冲区更新。这个 Surface 用于新创建的拍照输出。
426 sptr<Surface> photoSurface = Surface::CreateSurfaceAsConsumer();
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/
H A Dplayer_unit_test.cpp287 sptr<Surface> videoSurface = player_->GetVideoSurface();
344 sptr<Surface> videoSurface = player_->GetVideoSurface();
411 sptr<Surface> videoSurface = player_->GetVideoSurface();
463 sptr<Surface> videoSurface = player_->GetVideoSurface();
481 sptr<Surface> videoSurface = player_->GetVideoSurface();
499 sptr<Surface> videoSurface = player_->GetVideoSurface();
517 sptr<Surface> videoSurface = player_->GetVideoSurface();
535 sptr<Surface> videoSurface = player_->GetVideoSurface();
553 sptr<Surface> videoSurface = player_->GetVideoSurface();
571 sptr<Surface> videoSurface = player_->GetVideoSurface();
[all …]
/ohos5.0/foundation/graphic/graphic_surface/
H A DREADME.md14 Surface组件用于管理和传递图形和媒体的共享内存。具体场景包括了图形的送显、合成,媒体的播放、录制等。
16 Surface的跨进程传输使用IPC传输句柄等控制结构(有拷贝),使用共享内存传递图形/媒体数据(零拷贝)。
55 **图 2** Surface轮转流程<a name="fig126141128261"></a>
56 ![](figures/Surface轮转流程.png "Surface轮转流程")
59 >1. 由于使用了共享内存,而共享内存的管理任务在首次创建Surface的进程中,因此需要对该进程格外关注,如果发生进程异常且没有回收处理会发生严重的内存泄漏;
60 >2. Surface一般用作图形/媒体中大块内存的跨进程传输(如显示数据),尤其在使用了连续物理内存的情况下,可以大幅提高传输速率。不建议用在小内存传输的场景,容易造成内存碎片化影响典型场景的性…
/ohos5.0/foundation/graphic/surface_lite/
H A DREADME_zh.md14 Surface组件用于管理和传递图形和媒体的共享内存。具体场景包括了图形的送显、合成,媒体的播放、录制等。
16 Surface的跨进程传输使用IPC传输句柄等控制结构(有拷贝),使用共享内存传递图形/媒体数据(零拷贝)。
51 **图 2** Surface轮转流程<a name="fig126141128261"></a>
52 ![](figures/Surface轮转流程.png "Surface轮转流程")
55 >1. 由于使用了共享内存,而共享内存的管理任务在首次创建Surface的进程中,因此需要对该进程格外关注,如果发生进程异常且没有回收处理会发生严重的内存泄漏;
56 >2. Surface一般用作图形/媒体中大块内存的跨进程传输(如显示数据),尤其在使用了连续物理内存的情况下,可以大幅提高传输速率。不建议用在小内存传输的场景,容易造成内存碎片化影响典型场景的性…
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_surface.cpp32 static std::unordered_map<void*, std::shared_ptr<Surface>> g_surfaceMap;
34 static Surface* CastToSurface(OH_Drawing_Surface* cSurface) in CastToSurface()
36 return reinterpret_cast<Surface*>(cSurface); in CastToSurface()
53 std::shared_ptr<Surface> surface = Surface::MakeRenderTarget(CastToGpuContext(cGpuContext), in OH_Drawing_SurfaceCreateFromGpuContext()
65 Surface* surface = CastToSurface(cSurface); in OH_Drawing_SurfaceGetCanvas()
/ohos5.0/drivers/peripheral/camera/hal_c/hdi_cif/src/
H A Dbuffer_producer_wrapper.cpp21 static std::map<int, OHOS::sptr<OHOS::Surface>> g_producerMap;
26 g_producerMap[id] = OHOS::Surface::CreateSurfaceAsProducer(producer); in BindBufferProducer()
46 OHOS::sptr<OHOS::Surface> producer = g_producerMap[buffer->streamId]; in BufferProducerRequestBuffer()
76 OHOS::sptr<OHOS::Surface> producer = g_producerMap[buffer->streamId]; in BufferProducerCancelBuffer()
103 OHOS::sptr<OHOS::Surface> producer = g_producerMap[buffer->streamId]; in BufferProducerFlushBuffer()
119 OHOS::sptr<OHOS::Surface> producer = g_producerMap[streamId]; in BufferProducerGetQueueSize()
129 OHOS::sptr<OHOS::Surface> producer = g_producerMap[streamId]; in BufferProducerSetQueueSize()
139 OHOS::sptr<OHOS::Surface> producer = g_producerMap[id]; in BufferProducerDetachBufferProducer()
/ohos5.0/foundation/multimedia/media_foundation/test/moduletest/video/
H A Dapi_test.cpp472 sptr<Surface> cs = Surface::CreateSurfaceAsConsumer();
477 sptr<Surface> ps = Surface::CreateSurfaceAsProducer(p);
519 sptr<Surface> cs = Surface::CreateSurfaceAsConsumer();
524 sptr<Surface> ps = Surface::CreateSurfaceAsProducer(p);
556 sptr<Surface> cs = Surface::CreateSurfaceAsConsumer();
561 sptr<Surface> ps = Surface::CreateSurfaceAsProducer(p);
603 sptr<Surface> cs = Surface::CreateSurfaceAsConsumer();
608 sptr<Surface> ps = Surface::CreateSurfaceAsProducer(p);
666 sptr<Surface> cs = Surface::CreateSurfaceAsConsumer();
671 sptr<Surface> ps = Surface::CreateSurfaceAsProducer(p);
[all …]
/ohos5.0/base/web/webview/ohos_nweb/include/
H A Dnweb_surface_adapter.h28 class Surface; variable
35 std::shared_ptr<NWebCreateInfoImpl> GetCreateInfo(sptr<Surface> surface,
40 …bool OutputFrameCallback(const char *buffer, uint32_t width, uint32_t height, wptr<Surface> surfac…
43 sptr<SurfaceBuffer> RequestBuffer(sptr<Surface> surface, uint32_t width, uint32_t height);
45 …bool FlushBuffer(sptr<Surface> surface, sptr<SurfaceBuffer> surfaceBuffer, uint32_t width, uint32_…
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_surface_ohos_test.cpp40 static inline sptr<Surface> pSurface = nullptr;
72 pSurface = Surface::CreateSurfaceAsProducer(producer);
105 pSurface = Surface::CreateSurfaceAsProducer(producer);
122 pSurface = Surface::CreateSurfaceAsProducer(producer);
139 pSurface = Surface::CreateSurfaceAsProducer(producer);
155 pSurface = Surface::CreateSurfaceAsProducer(producer);
158 sptr<Surface> producer;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohosvulkan_fuzzer/
H A Drssurfaceohosvulkan_fuzzer.cpp71 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoIsValid()
91 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoDestroySemaphore()
110 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoRequestFrame()
131 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoFlushFrame()
151 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetColorSpace()
170 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetSurfaceBufferUsage()
189 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetSurfacePixelFormat()
208 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetUiTimeStamp()
228 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetSkContext()
247 sptr<Surface> surface = renderService->CreateNodeAndSurface(config); in DoSetNativeWindowInfo()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/output/
H A Ddepth_data_output_napi.h51 …explicit DepthDataBufferProcessor(sptr<Surface> depthDataSurface) : depthDataSurface_(depthDataSur… in DepthDataBufferProcessor()
64 sptr<Surface> depthDataSurface_ = nullptr;
69 …explicit DepthDataListener(napi_env env, const sptr<Surface> depthSurface, sptr<DepthDataOutput> d…
77 sptr<Surface> depthDataSurface_;
81 void UpdateJSCallback(sptr<Surface> depthSurface) const;
82 void UpdateJSCallbackAsync(sptr<Surface> depthSurface) const;
87 sptr<Surface> depthDataSurface_;
89 DepthDataListenerInfo(sptr<Surface> depthDataSurface, const DepthDataListener* listener) in DepthDataListenerInfo()
152 static thread_local sptr<Surface> sDepthDataSurface_;
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhdecoder.h39 int32_t RegisterListenerToSurface(const sptr<Surface> &surface);
40 int32_t OnSetOutputSurface(const sptr<Surface> &surface, bool cfg) override;
41 int32_t OnSetOutputSurfaceWhenCfg(const sptr<Surface> &surface);
58 int32_t SetQueueSize(const sptr<Surface> &surface, uint32_t targetSize);
77 int32_t OnSetOutputSurfaceWhenRunning(const sptr<Surface> &newSurface);
78 int32_t SwitchBetweenSurface(const sptr<Surface> &newSurface);
114 explicit SurfaceItem(const sptr<Surface> &surface);
116 sptr<Surface> surface_;

12345678910>>...38