Home
last modified time | relevance | path

Searched refs:producerSurface (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client_surface_node_demo.cpp150 sptr<Surface> producerSurface = nullptr; in Init() local
151 producerSurface = surfaceNode->GetSurface(); in Init()
152 if (producerSurface != nullptr) { in Init()
153 producerSurface->SetQueueSize(SURFACE_QUEUE_SIZE); in Init()
154 producerSurface->SetUserData("SURFACE_STRIDE_ALIGNMENT", SURFACE_STRIDE_ALIGNMENT); in Init()
155 producerSurface->SetUserData("SURFACE_FORMAT", std::to_string(GRAPHIC_PIXEL_FMT_RGBA_8888)); in Init()
156 media_ret = player->SetVideoSurface(producerSurface); in Init()
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/common/
H A Dtest_recorder.cpp285 producerSurface = recorder->GetSurface(recorderConfig.videoSourceId); in GetSurface()
286 if (producerSurface == nullptr) { in GetSurface()
365 …OHOS::SurfaceError retValue = producerSurface->RequestBuffer(buffer, releaseFence, g_esRequestConf… in HDICreateESBuffer()
375 (void)producerSurface->CancelBuffer(buffer); in HDICreateESBuffer()
380 (void)producerSurface->CancelBuffer(buffer); in HDICreateESBuffer()
388 (void)producerSurface->CancelBuffer(buffer); in HDICreateESBuffer()
403 (void)producerSurface->FlushBuffer(buffer, -1, g_esFlushConfig); in HDICreateESBuffer()
423 …OHOS::SurfaceError retValue = producerSurface->RequestBuffer(buffer, releaseFence, g_yuvRequestCon… in HDICreateYUVBuffer()
452 (void)producerSurface->FlushBuffer(buffer, -1, g_yuvFlushConfig); in HDICreateYUVBuffer()
H A Dtest_recorder.h39 OHOS::sptr<OHOS::Surface> producerSurface = nullptr; variable
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playersetvolume_fuzzer/
H A Dplayersetvolume_fuzzer.cpp49 sptr<Surface> producerSurface = nullptr; in FuzzSetVolume() local
50 producerSurface = GetVideoSurface(); in FuzzSetVolume()
51 player_->SetVideoSurface(producerSurface); in FuzzSetVolume()
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playerseek_fuzzer/
H A Dplayerseek_fuzzer.cpp52 sptr<Surface> producerSurface = nullptr; in FuzzSeek() local
53 producerSurface = GetVideoSurface(); in FuzzSeek()
54 player_->SetVideoSurface(producerSurface); in FuzzSeek()
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playerfile_fuzzer/
H A Dplayerfile_fuzzer.cpp55 sptr<Surface> producerSurface = nullptr; in FuzzFile() local
56 producerSurface = GetVideoSurface(); in FuzzFile()
57 player_->SetVideoSurface(producerSurface); in FuzzFile()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/filters/
H A Dmetadata_filter.cpp164 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(producer); in GetInputMetaSurface() local
165 if (producerSurface == nullptr) { in GetInputMetaSurface()
172 return producerSurface; in GetInputMetaSurface()
H A Dvideo_capture_filter.cpp164 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(producer); in GetInputSurface() local
165 if (producerSurface == nullptr) { in GetInputSurface()
172 return producerSurface; in GetInputSurface()
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screensinktrans/src/
H A Dscreen_sink_trans_test.cpp186 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(bufferProducer); variable
187 EXPECT_EQ(DH_SUCCESS, trans_->SetImageSurface(producerSurface));
/ohos5.0/base/web/webview/ohos_nweb/include/
H A Dnweb_init_params.h88 void SetProducerSurface(void* producerSurface) in SetProducerSurface() argument
90 producerSurface_ = producerSurface; in SetProducerSurface()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dvideo_element.cpp338 sptr<Surface> producerSurface; in PreparePlayer() local
346 producerSurface = surfaceDelegate_->GetSurface(); in PreparePlayer()
353 producerSurface = rosenTexture->GetSurface(); in PreparePlayer()
359 if (producerSurface == nullptr) { in PreparePlayer()
363 producerSurface->SetQueueSize(SURFACE_QUEUE_SIZE); in PreparePlayer()
364 producerSurface->SetUserData("SURFACE_STRIDE_ALIGNMENT", SURFACE_STRIDE_ALIGNMENT); in PreparePlayer()
365 producerSurface->SetUserData("SURFACE_FORMAT", std::to_string(PIXEL_FMT_RGBA_8888)); in PreparePlayer()
366 if (mediaPlayer_->SetVideoSurface(producerSurface) != 0) { in PreparePlayer()
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/src/
H A Ddscreen.cpp281 sptr<OHOS::Surface> producerSurface = Surface::CreateSurfaceAsProducer(producer); in ConfigSurface() local
282 if (producerSurface == nullptr) { in ConfigSurface()
290 ScreenMgrAdapter::GetInstance().SetImageSurface(screenId_, producerSurface); in ConfigSurface()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/
H A Drs_screen.h70 virtual void SetProducerSurface(sptr<Surface> producerSurface) = 0;
161 void SetProducerSurface(sptr<Surface> producerSurface) override;
H A Drs_screen.cpp450 void RSScreen::SetProducerSurface(sptr<Surface> producerSurface) in SetProducerSurface() argument
452 producerSurface_ = producerSurface; in SetProducerSurface()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhdecoder_unit_test.cpp83 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(bufferProducer); in CreateOutputSurface() local
84 return producerSurface; in CreateOutputSurface()
437 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(bufferProducer); in CreateOutputSurface() local
438 if (producerSurface == nullptr) { in CreateOutputSurface()
443 return producerSurface; in CreateOutputSurface()
H A Dhencoder_unit_test.cpp81 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(producer); in CreateProducerSurface() local
82 if (producerSurface == nullptr) { in CreateProducerSurface()
86 return producerSurface; in CreateProducerSurface()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dtester_common.cpp656 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(bufferProducer); in CreateSurfaceNormal() local
657 if (producerSurface == nullptr) { in CreateSurfaceNormal()
662 return producerSurface; in CreateSurfaceNormal()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.cpp862 sptr<Surface> producerSurface = Surface::CreateSurfaceAsProducer(producer); in OnCreateInputSurface() local
863 if (producerSurface == nullptr) { in OnCreateInputSurface()
873 return producerSurface; in OnCreateInputSurface()
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/src/
H A Dscreen_capture_unit_test.cpp2095 auto producerSurface = OHOS::Surface::CreateSurfaceAsProducer(producer); variable
2100 EXPECT_EQ(MSERR_OK, screenCapture_->StartScreenCaptureWithSurface(producerSurface));
2251 auto producerSurface = OHOS::Surface::CreateSurfaceAsProducer(producer); variable
2254 EXPECT_EQ(MSERR_OK, screenCapture_->StartScreenCaptureWithSurface(producerSurface));
/ohos5.0/foundation/multimedia/player_framework/services/services/screen_capture/server/
H A Dscreen_capture_server.cpp1776 auto producerSurface = OHOS::Surface::CreateSurfaceAsProducer(producer); in StartHomeVideoCapture() local
1777 …CHECK_AND_RETURN_RET_LOG(producerSurface != nullptr, MSERR_UNKNOWN, "CreateSurfaceAsProducer faile… in StartHomeVideoCapture()
1781 int32_t ret = CreateVirtualScreen(virtualScreenName, producerSurface); in StartHomeVideoCapture()