/foundation/arkui/ui_lite/test/unittest/components/ |
D | ui_surface_view_unit_test.cpp | 32 UISurfaceViewTest() : surface_(nullptr) {} in UISurfaceViewTest() 38 UISurfaceView* surface_; member in OHOS::UISurfaceViewTest 51 if (surface_ == nullptr) { in SetUp() 52 surface_ = new UISurfaceView(); in SetUp() 58 if (surface_ != nullptr) { in TearDown() 59 delete surface_; in TearDown() 60 surface_ = nullptr; in TearDown() 71 if (surface_ == nullptr) { 75 surface_->SetPosition(INIT_POS_X, INIT_POS_Y); 76 EXPECT_EQ(surface_->GetX(), INIT_POS_X); [all …]
|
/foundation/arkui/ui_lite/frameworks/components/ |
D | ui_surface_view.cpp | 28 surface_ = Surface::CreateSurface(); in UISurfaceView() 29 if (surface_ == nullptr) { in UISurfaceView() 33 surface_->SetWidthAndHeight(GetWidth(), GetHeight()); in UISurfaceView() 34 surface_->SetQueueSize(DEFAULT_QUEUE_SIZE); in UISurfaceView() 35 surface_->SetFormat(IMAGE_PIXEL_FORMAT_ARGB8888); in UISurfaceView() 40 if (surface_ != nullptr) { in ~UISurfaceView() 41 delete surface_; in ~UISurfaceView() 42 surface_ = nullptr; in ~UISurfaceView() 49 if (surface_ == nullptr) { in SetPosition() 55 surface_->SetUserData(REGION_POSITION_X, std::to_string(x)); in SetPosition() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
D | rs_surface_frame_windows.cpp | 40 if (surface_ == nullptr) { in GetCanvas() 44 if (surface_ != nullptr) { in GetCanvas() 45 return surface_->getCanvas(); in GetCanvas() 52 return surface_; in GetSurface() 57 if (surface_ == nullptr) { in GetCanvas() 60 return surface_->GetCanvas().get(); in GetCanvas() 65 if (surface_ == nullptr) { in GetSurface() 68 return surface_; in GetSurface() 85 surface_ = SkSurface::MakeRasterDirect(info, addr_.get(), width_); in CreateSurface() 90 surface_ = std::make_shared<Drawing::Surface>(); in CreateSurface() [all …]
|
/foundation/multimedia/media_lite/services/recorder_lite/impl/src/ |
D | recorder_video_source.cpp | 27 : surface_(nullptr), in RecorderVideoSource() 36 if (surface_ != nullptr) { in ~RecorderVideoSource() 37 surface_->UnregisterConsumerListener(); in ~RecorderVideoSource() 43 if (surface_.get() == nullptr) { in GetSurface() 51 surface_.reset(surface); in GetSurface() 54 return surface_; in GetSurface() 59 if (surface_.get() == nullptr) { in SetSurfaceSize() 67 surface_.reset(surface); in SetSurfaceSize() 69 Surface *surface = surface_.get(); in SetSurfaceSize() 80 if (surface_ == nullptr) { in OnBufferAvailable() [all …]
|
D | recorder_data_source.cpp | 29 : surface_(nullptr), in RecorderDataSource() 38 if (surface_ != nullptr) { in ~RecorderDataSource() 39 surface_->UnregisterConsumerListener(); in ~RecorderDataSource() 45 if (surface_.get() == nullptr) { in GetSurface() 54 surface_.reset(surface); in GetSurface() 58 return surface_; in GetSurface() 63 if (surface_ == nullptr) { in OnBufferAvailable() 70 acquireBuffer_ = surface_->AcquireBuffer(); in OnBufferAvailable() 75 surface_->ReleaseBuffer(acquireBuffer_); in OnBufferAvailable() 108 if (surface_ == nullptr) { in AcquireBuffer() [all …]
|
/foundation/multimedia/media_utils_lite/src/ |
D | source.cpp | 76 : surface_(nullptr), in StreamSource() 85 if (surface_ != nullptr) { in ~StreamSource() 86 delete surface_; in ~StreamSource() 94 surface_ = surface; in SetSurface() 99 return surface_; in GetSurface() 106 if ((surface_ == nullptr) || (curBuffer_ != nullptr)) { in GetSharedBuffer() 109 SurfaceBuffer* surfaceBuffer = surface_->RequestBuffer(); in GetSharedBuffer() 112 size = surface_->GetSize(); in GetSharedBuffer() 125 if ((surface_ == nullptr) || (buffer == nullptr) || (curBuffer_ == nullptr)) { in QueueSharedBuffer() 133 if (surface_->FlushBuffer(curBuffer_) != 0) { in QueueSharedBuffer() [all …]
|
/foundation/window/window_manager_lite/services/wms/ |
D | lite_win.cpp | 50 : id_(INVALID_WINDOW_ID), pid_(INVALID_PID), isShow_(false), config_(config), surface_(nullptr), in LiteWindow() 66 if (surface_ != nullptr) { in ~LiteWindow() 68 surface_->CancelBuffer(backBuf_); in ~LiteWindow() 70 delete surface_; in ~LiteWindow() 71 surface_ = nullptr; in ~LiteWindow() 79 if (surface_ == nullptr) { in CreateSurface() 80 surface_ = Surface::CreateSurface(); in CreateSurface() 81 if (surface_ == nullptr) { in CreateSurface() 85 surface_->SetWidthAndHeight(config_.rect.GetWidth(), config_.rect.GetHeight()); in CreateSurface() 86 surface_->SetQueueSize(DEFAULT_QUEUE_SIZE); in CreateSurface() [all …]
|
/foundation/window/window_manager_lite/frameworks/wms/ |
D | lite_proxy_surface.cpp | 21 : buffer_(nullptr), surface_(surface) in LiteProxySurface() 32 if (surface_ == nullptr) { in Lock() 37 buffer_ = surface_->RequestBuffer(); in Lock() 49 *strideLen = surface_->GetStride(); in Lock() 55 if (surface_ == nullptr || buffer_ == nullptr) { in Unlock() 60 surface_->FlushBuffer(buffer_); in Unlock()
|
D | lite_wm_requestor.cpp | 31 LiteWMRequestor::LiteWMRequestor() : proxy_(nullptr), listener_(nullptr), surface_(nullptr), sid_({… in LiteWMRequestor() 187 if (surface_ != nullptr) { in ScreenShotClearup() 188 delete surface_; in ScreenShotClearup() 189 surface_ = nullptr; in ScreenShotClearup() 196 if (surface_ != nullptr) { in OnBufferAvailable() 197 SurfaceBuffer* buffer = surface_->AcquireBuffer(); in OnBufferAvailable() 201 uint32_t width = surface_->GetWidth(); in OnBufferAvailable() 202 uint32_t height = surface_->GetHeight(); in OnBufferAvailable() 203 ImagePixelFormat format = static_cast<ImagePixelFormat>(surface_->GetFormat()); in OnBufferAvailable() 204 uint32_t stride = surface_->GetStride(); in OnBufferAvailable() [all …]
|
D | lite_proxy_window.cpp | 22 : winRequestor_(requestor), id_(INVALID_WINDOW_ID), surface_(nullptr) in LiteProxyWindow() 33 if (surface_ != nullptr) { in ~LiteProxyWindow() 34 delete surface_; in ~LiteProxyWindow() 35 surface_ = nullptr; in ~LiteProxyWindow() 92 if (surface_ == nullptr) { in GetSurface() 97 surface_ = new LiteProxySurface(surface); in GetSurface() 99 return surface_; in GetSurface()
|
D | lite_win_requestor.cpp | 23 LiteWinRequestor::LiteWinRequestor(int32_t id) : proxy_(nullptr), id_(id), surface_(nullptr) in LiteWinRequestor() 30 if (surface_ != nullptr) { in ~LiteWinRequestor() 31 delete surface_; in ~LiteWinRequestor() 32 surface_ = nullptr; in ~LiteWinRequestor() 67 surface_ = SurfaceImpl::GenericSurfaceByIpcIo(*reply); in GenericSurface() 72 if (surface_ == nullptr) { in GetSurface() 86 return surface_; in GetSurface()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
D | rs_surface_frame_ohos_gl.cpp | 69 if (surface_ == nullptr) { in GetCanvas() 71 if (surface_ == nullptr) { in GetCanvas() 76 return surface_->GetCanvas().get(); in GetCanvas() 81 if (surface_ == nullptr) { in GetSurface() 84 return surface_; in GetSurface() 103 surface_ = renderContext_->AcquireSurface(width_, height_); in CreateSurface()
|
D | rs_surface_frame_ohos_vulkan.cpp | 23 : surface_(surface), width_(width), height_(height) in RSSurfaceFrameOhosVulkan() 33 return surface_ != nullptr ? surface_->getCanvas() : nullptr; in GetCanvas() 38 return surface_; in GetSurface()
|
D | rs_surface_frame_ohos_raster.cpp | 85 if (surface_ == nullptr) { in GetCanvas() 88 return surface_->GetCanvas().get(); in GetCanvas() 97 if (surface_ == nullptr) { in GetSurface() 100 return surface_; in GetSurface() 120 surface_ = std::make_shared<Drawing::Surface>(); in CreateSurface() 121 surface_->Bind(bitmap); in CreateSurface()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
D | rs_surface_frame_darwin.cpp | 39 if (surface_ == nullptr) { in GetCanvas() 43 if (surface_ != nullptr) { in GetCanvas() 44 return surface_->getCanvas(); in GetCanvas() 51 return surface_; in GetSurface() 67 surface_ = SkSurface::MakeRasterDirect(info, addr_.get(), width_); in CreateSurface()
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/drawing_engine/drawing_surface/ |
D | surface_frame_ohos_vulkan.cpp | 21 …: SurfaceFrameOhos(width, height), surface_(surface), colorSpace_(GraphicColorGamut::GRAPHIC_COLOR… in SurfaceFrameOhosVulkan() 41 return surface_ != nullptr ? surface_->GetCanvas() : nullptr; in GetCanvas() 46 return surface_; in GetSurface()
|
/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/multimedia_codec/decoder/ |
D | decode_surface_listener.cpp | 25 surface_ = nullptr; in ~DecodeSurfaceListener() 36 targetDecoderNode->OnSurfaceOutputBufferAvailable(surface_); in OnBufferAvailable() 41 surface_ = surface; in SetSurface() 51 return surface_; in GetSurface()
|
/foundation/multimedia/histreamer/engine/plugin/common/ |
D | surface_allocator.cpp | 47 surface_(surface) in SurfaceAllocator() 56 if (!surface_) { in AllocSurfaceBuffer() 66 auto ret = surface_->RequestBuffer(surfaceBuffer, releaseFence, requestConfig_); in AllocSurfaceBuffer() 77 surface_->CancelBuffer(surfaceBuffer); in AllocSurfaceBuffer() 84 surface_->SetScalingMode(surfaceBuffer->GetSeqNum(), scalingMode_); in AllocSurfaceBuffer() 87 surface_->CancelBuffer(surfaceBuffer); in AllocSurfaceBuffer() 97 auto ret = surface_->CancelBuffer(surfaceBuffer); in ReleaseSurfaceBuffer() 130 auto ret = surface_->SetScalingMode(surfaceBuffer->GetSeqNum(), scalingMode_); in UpdateSurfaceBufferScaleMode()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohos_fuzzer/ |
D | rssurfaceohos_fuzzer.cpp | 85 auto surface_ = std::make_shared<RSSurfaceOhosRaster>(surface); in RSSurfaceOhosFuzzTest() local 86 surface_->SetSurfaceBufferUsage(GetData<uint64_t>()); in RSSurfaceOhosFuzzTest() 87 (void)surface_->IsValid(); in RSSurfaceOhosFuzzTest() 88 (void)surface_->RequestFrame(GetData<uint32_t>(), GetData<uint32_t>(), GetData<uint64_t>()); in RSSurfaceOhosFuzzTest() 89 surface_->ClearBuffer(); in RSSurfaceOhosFuzzTest() 90 surface_->ResetBufferAge(); in RSSurfaceOhosFuzzTest()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/src/listener/ |
D | dcamera_photo_surface_listener.cpp | 27 const std::shared_ptr<ResultCallback>& callback) : surface_(surface), callback_(callback) in DCameraPhotoSurfaceListener() 34 if (callback_ == nullptr || surface_ == nullptr) { in OnBufferAvailable() 43 surface_->AcquireBuffer(buffer, flushFence, timestamp, damage); in OnBufferAvailable() 71 surface_->ReleaseBuffer(buffer, -1); in OnBufferAvailable()
|
/foundation/multimedia/player_framework/test/unittest/avcodec_test/native/surface/ |
D | surface_native_mock.cpp | 35 if (surface_ == nullptr) { in GetSurface() 45 surface_ = window_->GetSurfaceNode()->GetSurface(); in GetSurface() 47 return surface_; in GetSurface()
|
/foundation/multimedia/histreamer/engine/plugin/plugins/sink/video_surface_sink/ |
D | surface_sink_plugin.cpp | 120 if (surface_ == nullptr) { in Init() 122 surfaceCond_.Wait(lock, [this] { return surface_ != nullptr; }); in Init() 139 surface_ = nullptr; in Deinit() 145 FALSE_RETURN_V_MSG_E(surface_ != nullptr && mAllocator_ != nullptr, in Prepare() 147 …FALSE_RETURN_V_MSG_E(surface_->SetQueueSize(maxSurfaceNum_) == OHOS::SurfaceError::SURFACE_ERROR_O… in Prepare() 154 …auto surfacePixelFmt = static_cast<PixelFormat>(std::stoi(surface_->GetUserData("SURFACE_FORMAT"))… in Prepare() 196 if (surface_) { in Stop() 197 surface_->CleanCache(); in Stop() 222 surface_ = Plugin::AnyCast<sptr<Surface>>(value); in SetParameter() 223 if (!surface_) { in SetParameter() [all …]
|
/foundation/multimedia/audio_lite/frameworks/binder/ |
D | audio_capturer_client.cpp | 111 surface_.reset(surface); in InitSurface() 122 if (surface_ == nullptr) { in DeleteSurface() 126 surface_->UnregisterConsumerListener(); in DeleteSurface() 127 surface_.reset(); in DeleteSurface() 128 surface_ = nullptr; in DeleteSurface() 163 dynamic_cast<SurfaceImpl *>(surface_.get())->WriteIoIpcIo(io); in AudioCapturerClient() 178 SurfaceBuffer *surfaceBuf = surface_->AcquireBuffer(); in ReleaseAllBuffer() 182 surface_->ReleaseBuffer(surfaceBuf); in ReleaseAllBuffer() 198 if (surface_ != nullptr) { in ~AudioCapturerClient() 386 SurfaceBuffer *surfaceBuf = surface_->AcquireBuffer(); in Read() [all …]
|
/foundation/multimedia/av_codec/services/engine/common/ |
D | surface_memory.cpp | 26 sptr<Surface> SurfaceMemory::surface_ = nullptr; member in OHOS::MediaAVCodec::SurfaceMemory 32 CHECK_AND_RETURN_RET_LOG(surface_ != nullptr, nullptr, "surface is nullptr"); in Create() 81 if (surface_ == nullptr || surfaceBuffer_ != nullptr) { in AllocSurfaceBuffer() 87 auto ret = surface_->RequestBuffer(surfaceBuffer, fence_, requestConfig_); in AllocSurfaceBuffer() 107 auto ret = surface_->CancelBuffer(surfaceBuffer_); in ReleaseSurfaceBuffer() 157 auto ret = surface_->SetScalingMode(surfaceBuffer_->GetSeqNum(), scalingMode_); in UpdateSurfaceBufferScaleMode() 165 surface_ = surface; in SetSurface()
|
/foundation/distributedhardware/distributed_camera/services/data_process/include/eventbus/ |
D | dcamera_codec_event.h | 40 : videoCodec_(VideoCodecType::NO_CODEC), surface_(surface) {} in CodecPacket() 65 surface_ = surface; in SetSurface() 70 return surface_; in GetSurface() 76 sptr<IConsumerSurface> surface_; variable
|