/ohos5.0/drivers/peripheral/camera/test/hdi/v1_2/src/ |
H A D | camera_stream_uttest_v1_2.cpp | 57 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 58 cameraTest->streamInfoCapture->v1_0.dataspace_ = OHOS_CAMERA_SRGB_FULL; 59 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 70 cameraTest->streamInfoCapture->v1_0.dataspace_ = OHOS_CAMERA_P3_FULL; 100 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 101 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 156 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 157 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 212 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 213 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); [all …]
|
H A D | hdi_common_v1_2.cpp | 342 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 356 DefaultInfosCapture(streamInfoCapture); in StartStream() 357 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
H A D | camera_hdi_uttest_v1_2.cpp | 360 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 361 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 362 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 986 … cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in CaptureByColorSpaces() 987 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); in CaptureByColorSpaces() 988 cameraTest->streamInfoCapture->v1_0.dataspace_ = colorSpaces; in CaptureByColorSpaces() 989 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); in CaptureByColorSpaces()
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_2/src/ |
H A D | camera_benchmark_test.cpp | 130 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in BENCHMARK_F() 131 cameraTest->streamInfoCapture->v1_0.streamId_ = 101; in BENCHMARK_F() 132 cameraTest->streamInfoCapture->v1_0.width_ = 1920; in BENCHMARK_F() 133 cameraTest->streamInfoCapture->v1_0.height_ = 1080; in BENCHMARK_F() 134 cameraTest->streamInfoCapture->v1_0.intent_ = StreamIntent::STILL_CAPTURE; in BENCHMARK_F() 135 cameraTest->streamInfoCapture->v1_0.encodeType_ = ENCODE_TYPE_H265; in BENCHMARK_F() 136 cameraTest->streamInfoCapture->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in BENCHMARK_F() 137 cameraTest->streamInfoCapture->v1_0.dataspace_ = OHOS_CAMERA_SRGB_FULL; in BENCHMARK_F() 138 cameraTest->streamInfoCapture->v1_0.format_ = PIXEL_FMT_YCRCB_420_SP; in BENCHMARK_F() 139 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); in BENCHMARK_F()
|
H A D | benchmark_common.cpp | 194 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 263 streamInfoCapture->v1_0.streamId_ = streamIdAnalyze; in StartStream() 264 streamInfoCapture->v1_0.width_ = analyzeWidth; in StartStream() 265 streamInfoCapture->v1_0.height_ = analyzeHeight; in StartStream() 266 streamInfoCapture->v1_0.format_ = analyzeFormat; in StartStream() 267 streamInfoCapture->v1_0.dataspace_ = UT_DATA_SIZE; in StartStream() 268 streamInfoCapture->v1_0.intent_ = intent; in StartStream() 269 streamInfoCapture->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 271 streamInfoCapture->v1_0.bufferQueue_ = in StartStream() 275 streamInfoCapture->v1_0.bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_3/src/ |
H A D | camera_hdi_uttest_v1_3.cpp | 639 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 680 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 782 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); in startStreamForHighResolutionPhoto() 1400 cameraTest->streamInfoCapture->v1_0.width_ = 4096; 1401 cameraTest->streamInfoCapture->v1_0.height_ = 3072; 1470 cameraTest->streamInfoCapture->v1_0.width_ = 4096; 1471 cameraTest->streamInfoCapture->v1_0.height_ = 3072; 1523 cameraTest->streamInfoCapture->v1_0.width_ = 4096; 1524 cameraTest->streamInfoCapture->v1_0.height_ = 3072; 1589 cameraTest->streamInfoCapture->v1_0.width_ = 4096; [all …]
|
H A D | hdi_common_v1_3.cpp | 349 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartProfessionalStream() 363 DefaultInfosProfessionalCapture(streamInfoCapture); in StartProfessionalStream() 364 streamInfos.push_back(*streamInfoCapture); in StartProfessionalStream() 399 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 413 DefaultInfosCapture(streamInfoCapture); in StartStream() 414 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
H A D | camera_professional_uttest_v1_3.cpp | 251 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 252 cameraTest->streamInfoCapture->extendedStreamInfos = {extendedStreamInfo}; 253 cameraTest->DefaultInfosProfessionalCapture(cameraTest->streamInfoCapture); 254 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 1455 … cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 1456 cameraTest->DefaultInfosProfessionalCapture(cameraTest->streamInfoCapture); 1457 cameraTest->streamInfoCapture->v1_0.width_ = g_supportedResolution[i][0]; 1458 cameraTest->streamInfoCapture->v1_0.height_ = g_supportedResolution[i][1]; 1459 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture);
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_0/src/ |
H A D | camera_hal_hisysevent_test.cpp | 56 cameraTest->streamInfoCapture = std::make_shared<StreamInfo>(); 57 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 58 cameraTest->streamInfoCapture->format_ = 9990; 59 cameraTest->streamInfos.push_back(*cameraTest->streamInfoCapture);
|
H A D | ut_common.cpp | 261 streamInfoCapture = std::make_shared<StreamInfo>(); in StartStream() 274 DefaultInfosCapture(streamInfoCapture); in StartStream() 275 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | usb_camera_test.cpp | 691 StreamInfo streamInfoCapture = {}; in TEST_F() local 695 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in TEST_F() 697 streamInfoCapture.intent_ = STILL_CAPTURE; in TEST_F() 698 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in TEST_F() 702 ASSERT_NE(streamInfoCapture.bufferQueue_, nullptr); in TEST_F() 704 streamInfos.push_back(streamInfoCapture); in TEST_F() 1074 StreamInfo streamInfoCapture = {}; in TEST_F() local 1078 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in TEST_F() 1080 streamInfoCapture.intent_ = STILL_CAPTURE; in TEST_F() 1081 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in TEST_F() [all …]
|
H A D | test_camera_base.cpp | 566 streamInfoCapture.streamId_ = STREAM_ID_CAPTURE; in StartStream() 567 streamInfoCapture.width_ = CAPTURE_WIDTH; // 1280:picture width in StartStream() 568 streamInfoCapture.height_ = CAPTURE_HEIGHT; // 960:picture height in StartStream() 569 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in StartStream() 570 streamInfoCapture.dataspace_ = 8; // 8:picture dataspace in StartStream() 571 streamInfoCapture.intent_ = intent; in StartStream() 572 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in StartStream() 573 streamInfoCapture.tunneledMode_ = 5; // 5:tunnel mode in StartStream() 575 ASSERT_NE(streamInfoCapture.bufferQueue_, nullptr); in StartStream() 576 streamInfoCapture.bufferQueue_->producer_->SetQueueSize(8); // 8:set bufferQueue size in StartStream() [all …]
|
H A D | test_camera_base.h | 114 StreamInfo streamInfoCapture = {}; variable
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_0/src/ |
H A D | benchmark_common.cpp | 139 streamInfoCapture = std::make_shared<StreamInfo>(); in StartStream() 207 streamInfoCapture->streamId_ = streamIdAnalyze; in StartStream() 208 streamInfoCapture->width_ = analyzeWidth; in StartStream() 209 streamInfoCapture->height_ = analyzeHeight; in StartStream() 210 streamInfoCapture->format_ = analyzeFormat; in StartStream() 211 streamInfoCapture->dataspace_ = UT_DATA_SIZE; in StartStream() 212 streamInfoCapture->intent_ = intent; in StartStream() 213 streamInfoCapture->tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 215 …streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t … in StartStream() 218 streamInfoCapture->bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/fuzztest/stream_operator/ |
H A D | stream_operator_fuzzer.cpp | 66 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoCapture = nullptr; in IsStreamSupportedApi() local 67 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in IsStreamSupportedApi() 68 streamInfoCapture->v1_0 = {}; in IsStreamSupportedApi() 69 streamInfoCapture->extendedStreamInfos = {extendedStreamInfo}; in IsStreamSupportedApi() 70 streamInfosV1_1.push_back(*streamInfoCapture); in IsStreamSupportedApi()
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_1/src/ |
H A D | camera_hdi_uttest_v1_1.cpp | 105 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 106 cameraTest->streamInfoCapture->extendedStreamInfos = {extendedStreamInfo}; 107 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 108 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture); 243 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); 244 cameraTest->streamInfoCapture->extendedStreamInfos = {extendedStreamInfo}; 245 cameraTest->DefaultInfosCapture(cameraTest->streamInfoCapture); 246 cameraTest->streamInfosV1_1.push_back(*cameraTest->streamInfoCapture);
|
H A D | hdi_common_v1_1.cpp | 262 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 276 DefaultInfosCapture(streamInfoCapture); in StartStream() 277 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_1/src/ |
H A D | benchmark_common.cpp | 182 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 251 streamInfoCapture->v1_0.streamId_ = streamIdAnalyze; in StartStream() 252 streamInfoCapture->v1_0.width_ = analyzeWidth; in StartStream() 253 streamInfoCapture->v1_0.height_ = analyzeHeight; in StartStream() 254 streamInfoCapture->v1_0.format_ = analyzeFormat; in StartStream() 255 streamInfoCapture->v1_0.dataspace_ = UT_DATA_SIZE; in StartStream() 256 streamInfoCapture->v1_0.intent_ = intent; in StartStream() 257 streamInfoCapture->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in StartStream() 259 streamInfoCapture->v1_0.bufferQueue_ = in StartStream() 263 streamInfoCapture->v1_0.bufferQueue_->producer_->SetQueueSize(UT_DATA_SIZE); in StartStream() [all …]
|
/ohos5.0/drivers/peripheral/camera/test/ut/usb_camera/ |
H A D | usb_camera_test.cpp | 692 StreamInfo streamInfoCapture = {}; in TEST_F() local 696 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in TEST_F() 698 streamInfoCapture.intent_ = STILL_CAPTURE; in TEST_F() 699 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in TEST_F() 703 ASSERT_NE(streamInfoCapture.bufferQueue_, nullptr); in TEST_F() 705 streamInfos.push_back(streamInfoCapture); in TEST_F() 1709 StreamInfo streamInfoCapture = {}; in TEST_F() local 1713 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in TEST_F() 1715 streamInfoCapture.intent_ = STILL_CAPTURE; in TEST_F() 1716 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in TEST_F() [all …]
|
H A D | test_camera_base.cpp | 588 streamInfoCapture.streamId_ = STREAM_ID_CAPTURE; in StartStream() 589 streamInfoCapture.width_ = CAPTURE_WIDTH; // 1280:picture width in StartStream() 590 streamInfoCapture.height_ = CAPTURE_HEIGHT; // 960:picture height in StartStream() 591 streamInfoCapture.format_ = PIXEL_FMT_RGBA_8888; in StartStream() 592 streamInfoCapture.dataspace_ = 8; // 8:picture dataspace in StartStream() 593 streamInfoCapture.intent_ = intent; in StartStream() 594 streamInfoCapture.encodeType_ = ENCODE_TYPE_JPEG; in StartStream() 595 streamInfoCapture.tunneledMode_ = 5; // 5:tunnel mode in StartStream() 597 ASSERT_NE(streamInfoCapture.bufferQueue_, nullptr); in StartStream() 598 streamInfoCapture.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 | 314 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartProfessionalStream() 328 DefaultInfosCapture(streamInfoCapture); in StartProfessionalStream() 329 streamInfos.push_back(*streamInfoCapture); in StartProfessionalStream() 364 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 378 DefaultInfosCapture(streamInfoCapture); in StartStream() 379 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/fuzztest/common/src/ |
H A D | common.cpp | 419 streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream() 433 DefaultInfosCapture(streamInfoCapture); in StartStream() 434 streamInfos.push_back(*streamInfoCapture); in StartStream()
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_0/include/ |
H A D | ut_common.h | 78 std::shared_ptr<StreamInfo> streamInfoCapture = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/hdi/v1_1/include/ |
H A D | hdi_common_v1_1.h | 102 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoCapture = nullptr; variable
|
/ohos5.0/drivers/peripheral/camera/test/fuzztest/common/include/ |
H A D | common.h | 141 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> streamInfoCapture = nullptr; variable
|