/ohos5.0/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | logic_camera_test.cpp | 61 std::shared_ptr<StreamInfo> streamInfoPre = std::make_shared<StreamInfo>(); in TEST_F() local 62 streamInfoPre->streamId_ = cameraBase->STREAM_ID_PREVIEW; in TEST_F() 63 streamInfoPre->width_ = DEFAULT_TEST_WIDTH_VALUE; in TEST_F() 64 streamInfoPre->height_ = DEFAULT_TEST_HEIGHT_VALUE; in TEST_F() 65 streamInfoPre->format_ = CAMERA_FORMAT_YUYV_422_PKG; in TEST_F() 66 streamInfoPre->dataspace_ = DEFAULT_TEST_DATASPACE_VALUE; in TEST_F() 67 streamInfoPre->intent_ = PREVIEW; in TEST_F() 68 streamInfoPre->tunneledMode_ = DEFAULT_TEST_TUNNELEDMODE_VALUE; in TEST_F() 69 streamInfoPre->bufferQueue_ = producer; in TEST_F() 70 cameraBase->streamInfos.push_back(streamInfoPre); in TEST_F()
|
H A D | test_camera_base.cpp | 531 streamInfoPre.streamId_ = STREAM_ID_PREVIEW; in StartStream() 532 streamInfoPre.width_ = PREVIEW_WIDTH; // 640:picture width in StartStream() 533 streamInfoPre.height_ = PREVIEW_HEIGHT; // 480:picture height in StartStream() 534 streamInfoPre.format_ = PIXEL_FMT_RGBA_8888; in StartStream() 535 streamInfoPre.dataspace_ = 8; // 8:picture dataspace in StartStream() 536 streamInfoPre.intent_ = intent; in StartStream() 537 streamInfoPre.tunneledMode_ = 5; // 5:tunnel mode in StartStream() 538 …streamInfoPre.bufferQueue_ = new BufferProducerSequenceable(streamCustomerPreview_->CreateProducer… in StartStream() 539 ASSERT_NE(streamInfoPre.bufferQueue_, nullptr); in StartStream() 540 streamInfoPre.bufferQueue_->producer_->SetQueueSize(8); // 8:set bufferQueue size in StartStream() [all …]
|
H A D | test_camera_base.h | 112 StreamInfo streamInfoPre = {}; variable
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_0/src/ |
H A D | camera_benchmark_test.cpp | 174 streamInfoPre->width_ = cameraTest->previewWidth; in BENCHMARK_F() 175 streamInfoPre->height_ = cameraTest->previewHeight; in BENCHMARK_F() 176 streamInfoPre->format_ = cameraTest->previewFormat; in BENCHMARK_F() 178 streamInfoPre->intent_ = PREVIEW; in BENCHMARK_F() 182 if (streamInfoPre->bufferQueue_ == nullptr) { in BENCHMARK_F() 189 streamInfos.push_back(*streamInfoPre); in BENCHMARK_F() 214 streamInfoPre->width_ = cameraTest->previewWidth; in BENCHMARK_F() 215 streamInfoPre->height_ = cameraTest->previewHeight; in BENCHMARK_F() 216 streamInfoPre->format_ = cameraTest->previewFormat; in BENCHMARK_F() 218 streamInfoPre->intent_ = PREVIEW; in BENCHMARK_F() [all …]
|
H A D | benchmark_common.cpp | 137 streamInfoPre = std::make_shared<StreamInfo>(); in StartStream() 143 streamInfoPre->streamId_ = streamIdPreview; in StartStream() 144 streamInfoPre->width_ = previewWidth; in StartStream() 145 streamInfoPre->height_ = previewHeight; in StartStream() 146 streamInfoPre->format_ = previewFormat; in StartStream() 147 streamInfoPre->dataspace_ = UT_DATA_SIZE; in StartStream() 148 streamInfoPre->intent_ = intent; in StartStream() 149 streamInfoPre->tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 151 … streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() 154 streamInfoPre->bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_0/src/ |
H A D | camera_hal_hisysevent_test.cpp | 52 cameraTest->streamInfoPre = std::make_shared<StreamInfo>(); 53 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 54 cameraTest->streamInfoPre->format_ = 9990; 55 cameraTest->streamInfos.push_back(*cameraTest->streamInfoPre);
|
H A D | ut_common.cpp | 259 streamInfoPre = std::make_shared<StreamInfo>(); in StartStream() 265 DefaultInfosPreview(streamInfoPre); in StartStream() 266 streamInfos.push_back(*streamInfoPre); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_3/src/ |
H A D | camera_hdi_uttest_securestream_v1_3.cpp | 81 cameraTest->streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 82 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 98 cameraTest->streamInfoPre->extendedStreamInfos = {extendedStreamInfo}; 99 cameraTest->streamInfos.push_back(*(cameraTest->streamInfoPre));
|
H A D | camera_hdi_uttest_v1_3.cpp | 115 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); in CreateAndCommitStreamsForHighFrameRate() 116 cameraTest->streamInfoPre->v1_0.width_ = STREAMINFO_WIDTH; in CreateAndCommitStreamsForHighFrameRate() 117 cameraTest->streamInfoPre->v1_0.height_ = STREAMINFO_HEIGHT; in CreateAndCommitStreamsForHighFrameRate() 118 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre); in CreateAndCommitStreamsForHighFrameRate() 240 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); in CreateAndCommitStreamsForSlowMotion() 241 cameraTest->streamInfoPre->v1_0.width_ = STREAMINFO_WIDTH; in CreateAndCommitStreamsForSlowMotion() 242 cameraTest->streamInfoPre->v1_0.height_ = STREAMINFO_HEIGHT; in CreateAndCommitStreamsForSlowMotion() 243 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre); in CreateAndCommitStreamsForSlowMotion() 777 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); in startStreamForHighResolutionPhoto() 892 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); [all …]
|
H A D | hdi_common_v1_3.cpp | 347 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartProfessionalStream() 354 DefaultInfosPreview(streamInfoPre); in StartProfessionalStream() 355 streamInfos.push_back(*streamInfoPre); in StartProfessionalStream() 397 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 404 DefaultInfosPreview(streamInfoPre); in StartStream() 405 streamInfos.push_back(*streamInfoPre); in StartStream()
|
H A D | camera_professional_uttest_v1_3.cpp | 1448 cameraTest->streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 1449 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 1450 cameraTest->streamInfoPre->v1_0.width_ = g_supportedResolution[i][0]; 1451 cameraTest->streamInfoPre->v1_0.height_ = g_supportedResolution[i][1]; 1452 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre);
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_1/src/ |
H A D | benchmark_common.cpp | 180 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 186 streamInfoPre->v1_0.streamId_ = streamIdPreview; in StartStream() 187 streamInfoPre->v1_0.width_ = previewWidth; in StartStream() 188 streamInfoPre->v1_0.height_ = previewHeight; in StartStream() 189 streamInfoPre->v1_0.format_ = previewFormat; in StartStream() 190 streamInfoPre->v1_0.dataspace_ = UT_DATA_SIZE; in StartStream() 191 streamInfoPre->v1_0.intent_ = intent; in StartStream() 192 streamInfoPre->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 194 …streamInfoPre->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t siz… in StartStream() 197 streamInfoPre->v1_0.bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_2/src/ |
H A D | camera_stream_uttest_v1_2.cpp | 94 cameraTest->streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 95 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 96 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre); 150 cameraTest->streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 151 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 152 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre); 206 cameraTest->streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 207 cameraTest->DefaultInfosPreview(cameraTest->streamInfoPre); 208 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoPre);
|
H A D | hdi_common_v1_2.cpp | 340 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 347 DefaultInfosPreview(streamInfoPre); in StartStream() 348 streamInfos.push_back(*streamInfoPre); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_2/src/ |
H A D | benchmark_common.cpp | 192 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 198 streamInfoPre->v1_0.streamId_ = streamIdPreview; in StartStream() 199 streamInfoPre->v1_0.width_ = previewWidth; in StartStream() 200 streamInfoPre->v1_0.height_ = previewHeight; in StartStream() 201 streamInfoPre->v1_0.format_ = previewFormat; in StartStream() 202 streamInfoPre->v1_0.dataspace_ = UT_DATA_SIZE; in StartStream() 203 streamInfoPre->v1_0.intent_ = intent; in StartStream() 204 streamInfoPre->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 206 …streamInfoPre->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t siz… in StartStream() 209 streamInfoPre->v1_0.bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/ut/usb_camera/ |
H A D | test_camera_base.cpp | 553 streamInfoPre.streamId_ = STREAM_ID_PREVIEW; in StartStream() 554 streamInfoPre.width_ = PREVIEW_WIDTH; // 640:picture width in StartStream() 555 streamInfoPre.height_ = PREVIEW_HEIGHT; // 480:picture height in StartStream() 556 streamInfoPre.format_ = PIXEL_FMT_RGBA_8888; in StartStream() 557 streamInfoPre.dataspace_ = 8; // 8:picture dataspace in StartStream() 558 streamInfoPre.intent_ = intent; in StartStream() 559 streamInfoPre.tunneledMode_ = 5; // 5:tunnel mode in StartStream() 560 …streamInfoPre.bufferQueue_ = new BufferProducerSequenceable(streamCustomerPreview_->CreateProducer… in StartStream() 561 ASSERT_NE(streamInfoPre.bufferQueue_, nullptr); in StartStream() 562 streamInfoPre.bufferQueue_->producer_->SetQueueSize(8); // 8:set bufferQueue size in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_3/src/ |
H A D | benchmark_common.cpp | 312 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartProfessionalStream() 319 DefaultInfosPreview(streamInfoPre); in StartProfessionalStream() 320 streamInfos.push_back(*streamInfoPre); in StartProfessionalStream() 362 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 369 DefaultInfosPreview(streamInfoPre); in StartStream() 370 streamInfos.push_back(*streamInfoPre); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_1/src/ |
H A D | hdi_common_v1_1.cpp | 260 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 267 DefaultInfosPreview(streamInfoPre); in StartStream() 268 streamInfos.push_back(*streamInfoPre); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/fuzztest/common/src/ |
H A D | common.cpp | 417 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 424 DefaultInfosPreview(streamInfoPre); in StartStream() 425 streamInfos.push_back(*streamInfoPre); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_0/include/ |
H A D | ut_common.h | 80 std::shared_ptr<StreamInfo> streamInfoPre = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_1/include/ |
H A D | hdi_common_v1_1.h | 104 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoPre = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/fuzztest/common/include/ |
H A D | common.h | 143 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoPre = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_2/include/ |
H A D | hdi_common_v1_2.h | 136 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoPre = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_3/include/ |
H A D | hdi_common_v1_3.h | 122 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoPre = nullptr; variable
|