/foundation/multimedia/camera_framework/frameworks/native/camera/src/session/ |
H A D | photo_session.cpp | 44 configs->photoProfile = configs->previewProfile; in GeneratePreconfigProfiles1_1() 45 configs->photoProfile.format_ = CameraFormat::CAMERA_FORMAT_JPEG; in GeneratePreconfigProfiles1_1() 51 configs->photoProfile = configs->previewProfile; in GeneratePreconfigProfiles1_1() 52 configs->photoProfile.format_ = CameraFormat::CAMERA_FORMAT_JPEG; in GeneratePreconfigProfiles1_1() 58 configs->photoProfile = configs->previewProfile; in GeneratePreconfigProfiles1_1() 59 configs->photoProfile.size_ = { .width = 2160, .height = 2160 }; in GeneratePreconfigProfiles1_1() 60 configs->photoProfile.format_ = CameraFormat::CAMERA_FORMAT_JPEG; in GeneratePreconfigProfiles1_1() 66 configs->photoProfile = { CameraFormat::CAMERA_FORMAT_JPEG, { .width = 0, .height = 0 } }; in GeneratePreconfigProfiles1_1() 67 configs->photoProfile.sizeRatio_ = RATIO_1_1; in GeneratePreconfigProfiles1_1() 68 configs->photoProfile in GeneratePreconfigProfiles1_1() 219 IsPhotoProfileLegal(sptr<CameraDevice>& device, Profile& photoProfile) IsPhotoProfileLegal() argument [all...] |
H A D | video_session.cpp | 31 configs->photoProfile = { CameraFormat::CAMERA_FORMAT_JPEG, { .width = 0, .height = 0 } }; in GeneratePreconfigProfiles1_1() 32 configs->photoProfile.sizeRatio_ = RATIO_1_1; in GeneratePreconfigProfiles1_1() 33 configs->photoProfile.sizeFollowSensorMax_ = true; in GeneratePreconfigProfiles1_1() 75 configs->photoProfile = { CameraFormat::CAMERA_FORMAT_JPEG, { .width = 0, .height = 0 } }; in GeneratePreconfigProfiles4_3() 76 configs->photoProfile.sizeRatio_ = RATIO_4_3; in GeneratePreconfigProfiles4_3() 77 configs->photoProfile.sizeFollowSensorMax_ = true; in GeneratePreconfigProfiles4_3() 119 configs->photoProfile = { CameraFormat::CAMERA_FORMAT_JPEG, { .width = 0, .height = 0 } }; in GeneratePreconfigProfiles16_9() 120 configs->photoProfile.sizeRatio_ = RATIO_16_9; in GeneratePreconfigProfiles16_9() 121 configs->photoProfile.sizeFollowSensorMax_ = true; in GeneratePreconfigProfiles16_9() 199 bool isPhotoCanPreconfig = IsPhotoProfileLegal(device, configs->photoProfile); in IsPreconfigProfilesLegal() 225 IsPhotoProfileLegal(sptr<CameraDevice>& device, Profile& photoProfile) IsPhotoProfileLegal() argument [all...] |
H A D | capture_session.cpp | 740 if (preconfigProfiles->photoProfile.sizeFollowSensorMax_) { in GetPreconfigPhotoProfile() 741 auto maxSizePhotoProfile = GetMaxSizePhotoProfile(preconfigProfiles->photoProfile.sizeRatio_); in GetPreconfigPhotoProfile() 749 return std::make_shared<Profile>(preconfigProfiles->photoProfile); in GetPreconfigPhotoProfile() 763 auto photoProfile = output->GetPhotoProfile(); in ConfigurePhotoOutput() local 765 CHECK_ERROR_RETURN_RET_LOG(photoProfile != nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in ConfigurePhotoOutput() 766 "CaptureSession::ConfigurePhotoOutput photoProfile is not null, is that output in use?"); in ConfigurePhotoOutput() 777 photoProfile_ = *photoProfile; in ConfigurePhotoOutput()
|
/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | hcamera_preconfig.cpp | 201 PreconfigProfile photoProfile; member 207 PreconfigProfile photoProfile; member 217 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 720, 720, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio1v1() 221 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 1080, 1080, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio1v1() 225 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 2160, 2160, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio1v1() 229 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 0, 0, 0, 0, 0, true, RATIO_1_1 }; in GeneratePhotoSessionPreconfigRatio1v1() 243 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 960, 720, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio4v3() 247 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 1440, 1080, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio4v3() 251 sessionPreconfig.photoProfile = { "CAMERA_FORMAT_JPEG", 2880, 2160, 0, 0, 0 }; in GeneratePhotoSessionPreconfigRatio4v3() 255 sessionPreconfig.photoProfile in GeneratePhotoSessionPreconfigRatio4v3() [all...] |
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/session/ |
H A D | photo_session.h | 71 bool IsPhotoProfileLegal(sptr<CameraDevice>& device, Profile& photoProfile);
|
H A D | video_session.h | 71 bool IsPhotoProfileLegal(sptr<CameraDevice>& device, Profile& photoProfile);
|
H A D | capture_session.h | 92 Profile photoProfile; member 109 oss << "photoProfile:["; in ToString() 110 oss << " format:" << to_string(photoProfile.format_); in ToString() 111 oss << " size:" << to_string(photoProfile.size_.width) << "x" << to_string(photoProfile.size_.height); in ToString() 112 oss << " dynamic:" << to_string(photoProfile.sizeFollowSensorMax_) << "," << to_string(photoProfile.sizeRatio_); in ToString()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/include/ |
H A D | camera_framework_moduletest.h | 108 Profile previewProfile, Profile photoProfile);
|
/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/ |
H A D | dcamera_client_demo.cpp | 163 Profile photoProfile(photoFormat, photoSize); in InitPhotoOutput() 165 int rv = g_cameraManager->CreatePhotoOutput(photoProfile, photoProducer, &((sptr<PhotoOutput> &)g_photoOutput)); in InitPhotoOutput()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/test/sample/ |
H A D | main.cpp | 160 Profile photoProfile(photoFormat, photoSize); in InitPhotoOutput() 162 int rv = g_cameraManager->CreatePhotoOutput(photoProfile, photoProducer, &((sptr<PhotoOutput> &)g_photoOutput)); in InitPhotoOutput()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | photo_output.cpp | 631 auto photoProfile = GetPhotoProfile(); in CreateStream() local 632 CHECK_ERROR_RETURN_RET_LOG(photoProfile == nullptr, CameraErrorCode::SERVICE_FATL_ERROR, in CreateStream() 633 "PhotoOutput::CreateStream photoProfile is null"); in CreateStream() 635 int32_t res = CameraManager::GetInstance()->CreatePhotoOutputStream(streamPtr, *photoProfile, GetBufferProducer()); in CreateStream()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/src/ |
H A D | dcamera_client.cpp | 475 CameraStandard::Profile photoProfile(photoFormat, photoSize); in CreatePhotoOutput() 478 photoProfile, bp, &((sptr<CameraStandard::PhotoOutput> &)photoOutput_)); in CreatePhotoOutput()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/ |
H A D | camera_framework_unittest.cpp | 691 Profile photoProfile = Profile(photoFormat, photoSize); in CreatePhotoOutput() local 693 return cameraManager->CreatePhotoOutput(photoProfile, surfaceProducer); in CreatePhotoOutput() 1113 Profile photoProfile = Profile(photoFormat, photoSize); in HWTEST_F() local 1115 sptr<PhotoOutput> photo = cameraManager->CreatePhotoOutput(photoProfile, surfaceProducer); in HWTEST_F() 1136 Profile photoProfile = Profile(photoFormat, photoSize); in HWTEST_F() local 1138 sptr<PhotoOutput> photo = cameraManager->CreatePhotoOutput(photoProfile, surfaceProducer); in HWTEST_F()
|
H A D | camera_ndk_unittest.cpp | 57 Camera_Profile photoProfile = { in CreatePhotoOutput() local 68 ret = OH_CameraManager_CreatePhotoOutput(cameraManager, &photoProfile, surfaceId, &photoOutput); in CreatePhotoOutput()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/ |
H A D | camera_framework_moduletest.cpp | 464 Profile photoProfile = Profile(photoFormat, photoSize); in CreatePhotoOutput() local 468 photoOutput = manager_->CreatePhotoOutput(photoProfile, surfaceProducer); in CreatePhotoOutput() 763 Profile photoProfile) in CreateHighResPhotoOutput() 780 photoSize.width = photoProfile.GetSize().width; in CreateHighResPhotoOutput() 781 photoSize.height = photoProfile.GetSize().height; in CreateHighResPhotoOutput() 783 photoOutput = manager_->CreatePhotoOutput(photoProfile, surfaceProducerOfPhoto); in CreateHighResPhotoOutput() 4086 MEDIA_INFO_LOG("photoProfile/previewProfile/videoProfiles size : %{public}zu, %{public}zu, %{public}zu", in HWTEST_F() 760 CreateHighResPhotoOutput(sptr<CaptureOutput> &previewOutput, sptr<CaptureOutput> &photoOutput, Profile previewProfile, Profile photoProfile) CreateHighResPhotoOutput() argument
|