/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | video_param_test.cpp | 31 videoParam_ = std::make_shared<VideoParam>(); in SetUp() 45 videoParam_->SetScreenWidth(screenWidth); in HWTEST_F() 46 uint32_t actual = videoParam_->GetScreenWidth(); in HWTEST_F() 59 videoParam_->SetScreenHeight(screenHeight); in HWTEST_F() 60 uint32_t actual = videoParam_->GetScreenHeight(); in HWTEST_F() 73 videoParam_->SetVideoWidth(videoWidth); in HWTEST_F() 74 uint32_t actual = videoParam_->GetVideoWidth(); in HWTEST_F() 101 videoParam_->SetVideoHeight(videoHeight); in HWTEST_F() 102 uint32_t actual = videoParam_->GetVideoHeight(); in HWTEST_F() 115 videoParam_ in HWTEST_F() [all...] |
H A D | video_param_test.h | 35 std::shared_ptr<VideoParam> videoParam_ = nullptr; member in OHOS::DistributedHardware::VideoParamTest
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion.cpp | 146 videoParam_ = std::make_shared<VideoParam>(contentJson[KEY_VIDEO_PARAM].get<VideoParam>()); in SetUp() 211 if (videoParam_ == nullptr) { in SetReceiverAdapterParameters() 222 if (videoParam_->GetCodecType() == VIDEO_CODEC_TYPE_VIDEO_H265) { in SetReceiverAdapterParameters() 224 } else if (videoParam_->GetCodecType() == VIDEO_CODEC_TYPE_VIDEO_H264) { in SetReceiverAdapterParameters() 230 if (videoParam_->GetVideoFormat() == VIDEO_DATA_FORMAT_YUVI420) { in SetReceiverAdapterParameters() 232 } else if (videoParam_->GetVideoFormat() == VIDEO_DATA_FORMAT_NV12) { in SetReceiverAdapterParameters() 234 } else if (videoParam_->GetVideoFormat() == VIDEO_DATA_FORMAT_NV21) { in SetReceiverAdapterParameters() 241 receiverAdapter_->SetParameter(AVTransTag::VIDEO_WIDTH, std::to_string(videoParam_->GetVideoWidth())); in SetReceiverAdapterParameters() 242 receiverAdapter_->SetParameter(AVTransTag::VIDEO_HEIGHT, std::to_string(videoParam_->GetVideoHeight())); in SetReceiverAdapterParameters() 243 receiverAdapter_->SetParameter(AVTransTag::VIDEO_FRAME_RATE, std::to_string(videoParam_ in SetReceiverAdapterParameters() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/src/ |
H A D | dscreen.cpp | 82 videoParam_ = nullptr; in ~DScreen() 144 if (videoParam_ == nullptr) { in HandleEnable() 145 DHLOGE("DScreen::HandleEnable, videoParam_ is nullptr"); in HandleEnable() 148 uint64_t screenId = ScreenMgrAdapter::GetInstance().CreateVirtualScreen(devId_, dhId_, videoParam_); in HandleEnable() 177 if (videoParam_ == nullptr) { in ParseInputScreenParam() 178 videoParam_ = std::make_shared<VideoParam>(); in ParseInputScreenParam() 189 videoParam_->SetScreenWidth(attrJson[KEY_SCREEN_WIDTH].get<uint32_t>()); in ParseInputScreenParam() 190 videoParam_->SetScreenHeight(attrJson[KEY_SCREEN_HEIGHT].get<uint32_t>()); in ParseInputScreenParam() 351 uint32_t videoWidth = videoParam_->GetVideoWidth(); in ConsumeSurface() 352 uint32_t videoHeight = videoParam_ in ConsumeSurface() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion_test.cpp | 202 screenRegion_->videoParam_ = std::make_shared<VideoParam>(); in HWTEST_F() 204 EXPECT_EQ(screenRegion_->videoParam_, ret); in HWTEST_F() 391 screenRegion_->videoParam_ = nullptr; in HWTEST_F() 395 screenRegion_->videoParam_ = std::make_shared<VideoParam>(); in HWTEST_F() 403 screenRegion_->videoParam_->SetCodecType(codecType); in HWTEST_F() 404 screenRegion_->videoParam_->SetVideoFormat(videoFormat); in HWTEST_F() 410 screenRegion_->videoParam_->SetCodecType(codecType); in HWTEST_F() 411 screenRegion_->videoParam_->SetVideoFormat(videoFormat); in HWTEST_F() 416 screenRegion_->videoParam_->SetCodecType(codecType); in HWTEST_F() 417 screenRegion_->videoParam_ in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sourceservice/dscreenmgr/1.0/src/ |
H A D | dscreen_test.cpp | 46 dScreen_->videoParam_ = std::make_shared<VideoParam>(); in SetUp() 47 dScreen_->videoParam_->SetCodecType(VIDEO_CODEC_TYPE_VIDEO_H264); in SetUp() 48 dScreen_->videoParam_->SetVideoFormat(VIDEO_DATA_FORMAT_YUVI420); in SetUp() 49 dScreen_->videoParam_->SetVideoHeight(VIDEO_DATA_NUM); in SetUp() 50 dScreen_->videoParam_->SetVideoWidth(VIDEO_DATA_NUM); in SetUp() 51 dScreen_->videoParam_->SetScreenHeight(VIDEO_DATA_NUM); in SetUp() 52 dScreen_->videoParam_->SetScreenWidth(VIDEO_DATA_NUM); in SetUp() 53 dScreen_->videoParam_->SetFps(DEFAULT_FPS); in SetUp() 164 dScreen_->videoParam_ = nullptr; in HWTEST_F() 184 dScreen_->videoParam_ in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/src/ |
H A D | dscreen.cpp | 72 videoParam_ = nullptr; in ~DScreen() 86 videoParam_ = videoParam; in SetVideoParam() 91 return videoParam_; in GetVideoParam() 224 if (videoParam_ == nullptr) { in HandleEnable() 225 videoParam_ = std::make_shared<VideoParam>(); in HandleEnable() 237 videoParam_->SetScreenWidth(attrJson[KEY_SCREEN_WIDTH].get<uint32_t>()); in HandleEnable() 238 videoParam_->SetScreenHeight(attrJson[KEY_SCREEN_HEIGHT].get<uint32_t>()); in HandleEnable() 250 screenId_ = ScreenMgrAdapter::GetInstance().CreateVirtualScreen(devId_, dhId_, videoParam_); in HandleEnable() 322 videoParam_->SetCodecType(VIDEO_CODEC_TYPE_VIDEO_H264); in NegotiateCodecType() 325 videoParam_ in NegotiateCodecType() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sourceservice/dscreenmgr/2.0/src/ |
H A D | dscreen_test.cpp | 44 dScreen_->videoParam_ = std::make_shared<VideoParam>(); in SetUp() 45 dScreen_->videoParam_->SetCodecType(VIDEO_CODEC_TYPE_VIDEO_H264); in SetUp() 46 dScreen_->videoParam_->SetVideoFormat(VIDEO_DATA_FORMAT_YUVI420); in SetUp() 47 dScreen_->videoParam_->SetVideoHeight(VIDEO_DATA_NUM); in SetUp() 48 dScreen_->videoParam_->SetVideoWidth(VIDEO_DATA_NUM); in SetUp() 49 dScreen_->videoParam_->SetScreenHeight(VIDEO_DATA_NUM); in SetUp() 50 dScreen_->videoParam_->SetScreenWidth(VIDEO_DATA_NUM); in SetUp() 51 dScreen_->videoParam_->SetFps(DEFAULT_FPS); in SetUp() 338 dScreen_->videoParam_ = nullptr; in HWTEST_F() 473 dScreen_->videoParam_ in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregion.cpp | 55 videoParam_ = videoParam; in SetVideoParam() 80 return videoParam_; in GetVideoParam() 148 ret = sinkTrans_->SetUp(*videoParam_, *videoParam_, remoteDevId_); in SetUp()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr_test.cpp | 95 screenRegion->videoParam_ = std::make_shared<VideoParam>(); in HWTEST_F() 96 screenRegion->videoParam_->SetScreenWidth(100); in HWTEST_F() 97 screenRegion->videoParam_->SetScreenHeight(100); in HWTEST_F()
|
H A D | screenregion_test.cpp | 128 screenRegion_->videoParam_ = std::make_shared<VideoParam>(); in HWTEST_F() 130 EXPECT_EQ(screenRegion_->videoParam_, ret); in HWTEST_F()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/include/ |
H A D | screenregion.h | 66 std::shared_ptr<VideoParam> videoParam_ = nullptr; member in OHOS::DistributedHardware::V1_0::ScreenRegion
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/include/ |
H A D | screenregion.h | 75 std::shared_ptr<VideoParam> videoParam_ = nullptr; member in OHOS::DistributedHardware::V2_0::ScreenRegion
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/include/ |
H A D | dscreen.h | 136 std::shared_ptr<VideoParam> videoParam_ = nullptr; member in OHOS::DistributedHardware::V2_0::DScreen
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/include/ |
H A D | dscreen.h | 113 std::shared_ptr<VideoParam> videoParam_ = nullptr; member in OHOS::DistributedHardware::V1_0::DScreen
|