Home
last modified time | relevance | path

Searched refs:sensorOrientation (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dhstream_repeat.cpp643 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()
737sensorOrientation = (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 Dcamera_util.cpp430 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 Dhstream_capture.cpp501 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 Dhcapture_session.cpp1232 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 Dcamera_ability_test.cpp34 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 Dhstream_repeat.h93 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 Dcamera_util.h170 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 Dpreview_output.cpp663 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 Dvideo_output.cpp454 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 Dphoto_output.cpp948 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 Dstream_capture_fuzzer.cpp73 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 Dcamera_device_fuzzer.cpp75 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 Ddeferred_processing_stub_fuzzer.cpp73 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 Dstream_metadata_stub_fuzzer.cpp49 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 Dstream_capture_stub_fuzzer.cpp60 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 Dhcs_deal.cpp736 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 Dv4l2_device_manager.cpp769 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 Dv4l2_device_manager.cpp852 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 Dcamera_framework_unittest.cpp474 int32_t sensorOrientation = 0; in MockHCameraHostManager() local
475 ability->addEntry(OHOS_SENSOR_ORIENTATION, &sensorOrientation, sizeof(int32_t)); in MockHCameraHostManager()