/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | hstream_repeat.cpp | 643 int32_t sensorOrientation; in SetStreamTransform() local 656 sensorOrientation = item.data.i32[0]; in SetStreamTransform() 669 if (enableCameraRotation_ && sensorOrientation != 0) { in SetStreamTransform() 670 ProcessCameraSetRotation(sensorOrientation, cameraPosition); in SetStreamTransform() 691 ProcessFixedTransform(sensorOrientation, cameraPosition); in SetStreamTransform() 735 sensorOrientation = STREAM_ROTATE_360 - setCameraRotation_; in ProcessCameraSetRotation() 737 …sensorOrientation = (sensorOrientation == STREAM_ROTATE_180) ? GRAPHIC_ROTATE_NONE : (sensorOrient… in ProcessCameraSetRotation() 738 STREAM_ROTATE_180 : sensorOrientation; in ProcessCameraSetRotation() 740 if (sensorOrientation == GRAPHIC_ROTATE_NONE) { in ProcessCameraSetRotation() 749 int32_t streamRotation = sensorOrientation; in ProcessVerticalCameraPosition() [all …]
|
H A D | camera_util.cpp | 430 int32_t GetStreamRotation(int32_t& sensorOrientation, camera_position_enum_t& cameraPosition, int& … in GetStreamRotation() argument 433 int32_t streamRotation = sensorOrientation; in GetStreamRotation() 445 sensorOrientation = g_tablet ? sensorOrientation + STREAM_ROTATE_90 : sensorOrientation; in GetStreamRotation() 446 streamRotation = (STREAM_ROTATE_360 + sensorOrientation - degrees) % STREAM_ROTATE_360; in GetStreamRotation() 448 sensorOrientation = g_tablet ? sensorOrientation - STREAM_ROTATE_90 : sensorOrientation; in GetStreamRotation() 449 streamRotation = (sensorOrientation + degrees) % STREAM_ROTATE_360; in GetStreamRotation()
|
H A D | hstream_capture.cpp | 501 int32_t sensorOrientation = 0; in SetRotation() local 511 sensorOrientation = item.data.i32[0]; in SetRotation() 513 MEDIA_INFO_LOG("set rotation sensor orientation %{public}d", sensorOrientation); in SetRotation() 536 rotation = sensorOrientation + rotationValue; in SetRotation()
|
H A D | hcapture_session.cpp | 1232 int32_t sensorOrientation = 0; in GetSensorOritation() local 1233 CHECK_ERROR_RETURN_RET_LOG(cameraDevice == nullptr, sensorOrientation, in GetSensorOritation() 1236 CHECK_ERROR_RETURN_RET(ability == nullptr, sensorOrientation); in GetSensorOritation() 1239 CHECK_ERROR_RETURN_RET_LOG(ret != CAM_META_SUCCESS, sensorOrientation, in GetSensorOritation() 1241 sensorOrientation = item.data.i32[0]; in GetSensorOritation() 1242 …A_INFO_LOG("HCaptureSession::GetSensorOritation sensor orientation %{public}d", sensorOrientation); in GetSensorOritation() 1243 return sensorOrientation; in GetSensorOritation()
|
/ohos5.0/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | camera_ability_test.cpp | 34 int32_t sensorOrientation; in GetSensorOrientation() local 41 sensorOrientation = *(entry.data.i32); in GetSensorOrientation() 42 CAMERA_LOGD("get sensorOrientation = %{public}d", sensorOrientation); in GetSensorOrientation()
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/include/ |
H A D | hstream_repeat.h | 93 void ProcessFixedTransform(int32_t& sensorOrientation, camera_position_enum_t& cameraPosition); 94 … void ProcessCameraSetRotation(int32_t& sensorOrientation, camera_position_enum_t& cameraPosition); 95 …void ProcessVerticalCameraPosition(int32_t& sensorOrientation, camera_position_enum_t& cameraPosit…
|
H A D | camera_util.h | 170 int32_t GetStreamRotation(int32_t& sensorOrientation, camera_position_enum_t& cameraPosition, int& …
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | preview_output.cpp | 663 int32_t sensorOrientation = 0; in GetPreviewRotation() local 685 sensorOrientation = item.data.i32[0]; in GetPreviewRotation() 686 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetPreviewRotation() 688 result, sensorOrientation); in GetPreviewRotation() 711 int32_t sensorOrientation = 0; in SetPreviewRotation() local 729 sensorOrientation = item.data.i32[0]; in SetPreviewRotation() 730 result = isDisplayLocked ? ImageRotation(sensorOrientation) : ImageRotation(imageRotation); in SetPreviewRotation() 732 result, sensorOrientation); in SetPreviewRotation()
|
H A D | video_output.cpp | 454 int32_t sensorOrientation = 0; in GetVideoRotation() local 476 sensorOrientation = item.data.i32[0]; in GetVideoRotation() 479 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetVideoRotation() 481 …result = (ImageRotation)((sensorOrientation - imageRotation + CAPTURE_ROTATION_BASE) % CAPTURE_ROT… in GetVideoRotation() 484 result, sensorOrientation); in GetVideoRotation()
|
H A D | photo_output.cpp | 948 int32_t sensorOrientation = 0; in GetPhotoRotation() local 970 sensorOrientation = item.data.i32[0]; in GetPhotoRotation() 973 result = (ImageRotation)((imageRotation + sensorOrientation) % CAPTURE_ROTATION_BASE); in GetPhotoRotation() 975 …result = (ImageRotation)((sensorOrientation - imageRotation + CAPTURE_ROTATION_BASE) % CAPTURE_ROT… in GetPhotoRotation() 988 result, sensorOrientation); in GetPhotoRotation()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/streamcapture_fuzzer/ |
H A D | stream_capture_fuzzer.cpp | 73 int32_t sensorOrientation = rawData[0]; in StreamCaptureFuzzTest() local 74 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in StreamCaptureFuzzTest()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/cameradevice_fuzzer/ |
H A D | camera_device_fuzzer.cpp | 75 int32_t sensorOrientation = rawData[0]; in CameraDeviceFuzzTest() local 76 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in CameraDeviceFuzzTest() 126 int32_t sensorOrientation = rawData[0]; in CameraDeviceFuzzTestUpdateSetting() local 127 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in CameraDeviceFuzzTestUpdateSetting()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/deferredprocessingstub_fuzzer/ |
H A D | deferred_processing_stub_fuzzer.cpp | 73 int32_t sensorOrientation = rawData[0]; in DeferredProcessingFuzzTest() local 74 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in DeferredProcessingFuzzTest()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/streammetadatastub_fuzzer/ |
H A D | stream_metadata_stub_fuzzer.cpp | 49 int32_t sensorOrientation = rawData[0]; in MakeMetadata() local 50 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in MakeMetadata()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/streamcapturestub_fuzzer/ |
H A D | stream_capture_stub_fuzzer.cpp | 60 int32_t sensorOrientation = rawData[0]; in MakeMetadata() local 61 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, 1); in MakeMetadata()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/ |
H A D | hcs_deal.cpp | 736 int32_t sensorOrientation; in DealSensorOrientation() local 744 sensorOrientation = (int32_t)strtol(nodeValue, NULL, STRTOL_BASE); in DealSensorOrientation() 745 CAMERA_LOGI("sensorOrientation = %{public}d", sensorOrientation); in DealSensorOrientation() 748 …adata->addEntry(OHOS_SENSOR_ORIENTATION, static_cast<const void *>(&sensorOrientation), DATA_COUNT… in DealSensorOrientation()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/adapter/platform/v4l2/src/device_manager/ |
H A D | v4l2_device_manager.cpp | 769 const int32_t sensorOrientation = 0; in AddDefaultSensorOrientation() local 770 sensorOrientationVector.push_back(sensorOrientation); in AddDefaultSensorOrientation()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/device_manager/ |
H A D | v4l2_device_manager.cpp | 852 const uint8_t sensorOrientation = 0; in AddDefaultSensorOrientation() local 853 sensorOrientationVector.push_back(sensorOrientation); in AddDefaultSensorOrientation()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/ |
H A D | camera_framework_unittest.cpp | 474 int32_t sensorOrientation = 0; in MockHCameraHostManager() local 475 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, sizeof(int32_t)); in MockHCameraHostManager()
|