Home
last modified time | relevance | path

Searched refs:rotation (Results 1 - 25 of 303) sorted by relevance

12345678910>>...13

/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dnet2_test.cpp126 int32_t rotation; in CheckVideoKey() local
147 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_ROTATION, &rotation)); in CheckVideoKey()
148 ASSERT_EQ(0, rotation); in CheckVideoKey()
205 int32_t rotation; in CheckAudioKeyVVC() local
226 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_ROTATION, &rotation)); in CheckAudioKeyVVC()
228 ASSERT_EQ(rotationResult, rotation); in CheckAudioKeyVVC()
269 int32_t rotation = -1; in HWTEST_F() local
270 const char *uri = "http://192.168.3.11:8080/share/rotation/ROTATE_NONE.mp4"; in HWTEST_F()
275 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, Media::Tag::VIDEO_ORIENTATION_TYPE, &rotation)); in HWTEST_F()
276 ASSERT_EQ(rotation, MediaAVCode in HWTEST_F()
288 int32_t rotation = -1; HWTEST_F() local
307 int32_t rotation = -1; HWTEST_F() local
326 int32_t rotation = -1; HWTEST_F() local
345 int32_t rotation = -1; HWTEST_F() local
364 int32_t rotation = -1; HWTEST_F() local
383 int32_t rotation = -1; HWTEST_F() local
402 int32_t rotation = -1; HWTEST_F() local
421 int32_t rotation = -1; HWTEST_F() local
440 int32_t rotation = -1; HWTEST_F() local
459 int32_t rotation = -1; HWTEST_F() local
478 int32_t rotation = -1; HWTEST_F() local
497 int32_t rotation = -1; HWTEST_F() local
516 int32_t rotation = -1; HWTEST_F() local
535 int32_t rotation = -1; HWTEST_F() local
554 int32_t rotation = -1; HWTEST_F() local
573 int32_t rotation = -1; HWTEST_F() local
592 int32_t rotation = -1; HWTEST_F() local
611 int32_t rotation = -1; HWTEST_F() local
630 int32_t rotation = -1; HWTEST_F() local
649 int32_t rotation = -1; HWTEST_F() local
668 int32_t rotation = -1; HWTEST_F() local
687 int32_t rotation = -1; HWTEST_F() local
706 int32_t rotation = -1; HWTEST_F() local
725 int32_t rotation = -1; HWTEST_F() local
744 int32_t rotation = -1; HWTEST_F() local
763 int32_t rotation = 0; HWTEST_F() local
782 int32_t rotation = 0; HWTEST_F() local
801 int32_t rotation = 0; HWTEST_F() local
820 int32_t rotation = 0; HWTEST_F() local
[all...]
H A Dfunc2_test.cpp557 int32_t rotation = -1; in HWTEST_F() local
558 const char *file = "/data/test/media/rotation/ROTATE_NONE.mp4"; in HWTEST_F()
565 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, Media::Tag::VIDEO_ORIENTATION_TYPE, &rotation)); in HWTEST_F()
566 ASSERT_EQ(rotation, OHOS::MediaAVCodec::ROTATE_NONE); in HWTEST_F()
579 int32_t rotation = -1; in HWTEST_F() local
580 const char *file = "/data/test/media/rotation/ROTATE_90.mp4"; in HWTEST_F()
587 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, Media::Tag::VIDEO_ORIENTATION_TYPE, &rotation)); in HWTEST_F()
588 ASSERT_EQ(rotation, OHOS::MediaAVCodec::ROTATE_90); in HWTEST_F()
601 int32_t rotation = -1; in HWTEST_F() local
602 const char *file = "/data/test/media/rotation/ROTATE_18 in HWTEST_F()
623 int32_t rotation = -1; HWTEST_F() local
645 int32_t rotation = -1; HWTEST_F() local
667 int32_t rotation = -1; HWTEST_F() local
689 int32_t rotation = -1; HWTEST_F() local
711 int32_t rotation = -1; HWTEST_F() local
733 int32_t rotation = -1; HWTEST_F() local
755 int32_t rotation = -1; HWTEST_F() local
777 int32_t rotation = -1; HWTEST_F() local
799 int32_t rotation = -1; HWTEST_F() local
821 int32_t rotation = -1; HWTEST_F() local
843 int32_t rotation = -1; HWTEST_F() local
865 int32_t rotation = -1; HWTEST_F() local
887 int32_t rotation = -1; HWTEST_F() local
909 int32_t rotation = -1; HWTEST_F() local
931 int32_t rotation = -1; HWTEST_F() local
953 int32_t rotation = -1; HWTEST_F() local
975 int32_t rotation = -1; HWTEST_F() local
997 int32_t rotation = -1; HWTEST_F() local
1019 int32_t rotation = -1; HWTEST_F() local
1041 int32_t rotation = -1; HWTEST_F() local
1063 int32_t rotation = -1; HWTEST_F() local
1085 int32_t rotation = -1; HWTEST_F() local
1107 int32_t rotation = -1; HWTEST_F() local
1129 int32_t rotation = 0; HWTEST_F() local
1151 int32_t rotation = 0; HWTEST_F() local
1173 int32_t rotation = 0; HWTEST_F() local
1195 int32_t rotation = 0; HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/screen_manager/
H A Drs_screen_info.h43 ScreenRotation rotation = ScreenRotation::ROTATION_0; member
53 return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? width : height; in GetRotatedWidth()
58 return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? height : width; in GetRotatedHeight()
62 return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? phyWidth in GetRotatedPhyWidth()
68 return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? phyHeight in GetRotatedPhyHeight()
/foundation/window/window_manager/dmserver/include/
H A Dscreen_rotation_controller.h55 static bool IsDisplayRotationVertical(Rotation rotation);
56 static bool IsDisplayRotationHorizontal(Rotation rotation);
58 static DisplayOrientation ConvertRotationToDisplayOrientation(Rotation rotation);
75 static void ProcessSwitchToAutoRotationPortrait(DeviceRotation rotation);
76 static void ProcessSwitchToAutoRotationLandscape(DeviceRotation rotation);
77 static void ProcessSwitchToAutoRotation(DeviceRotation rotation);
H A Dabstract_display.h39 static inline bool IsVertical(Rotation rotation) in IsVertical() argument
41 return (rotation == Rotation::ROTATION_0 || rotation == Rotation::ROTATION_180); in IsVertical()
69 bool RequestRotation(Rotation rotation);
/foundation/arkui/ace_engine/frameworks/core/components/common/rotation/
H A Drotation_controller.h39 requestRotationImpl_ = [weak, context](bool rotation) { in SetRequestRotationImpl()
42 rotation ? pipeContext->SetRequestedRotationNode(weak) in SetRequestRotationImpl()
48 void RequestRotation(bool rotation) in RequestRotation() argument
51 requestRotationImpl_(rotation); in RequestRotation()
/foundation/window/window_manager/window_scene/session/screen/include/
H A Dscreen_property.h42 void SetRotation(float rotation);
97 void SetScreenRotation(Rotation rotation);
99 void UpdateScreenRotation(Rotation rotation);
111 void SetPhysicalRotation(float rotation);
149 static inline bool IsVertical(Rotation rotation) in IsVertical() argument
151 return (rotation == Rotation::ROTATION_0 || rotation == Rotation::ROTATION_180); in IsVertical()
/foundation/window/window_manager/dmserver/src/
H A Dscreen_rotation_controller.cpp100 WLOGFD("If the current display rotation is same to sensor rotation, return."); in HandleSensorEventInput()
192 WLOGFI("dms: Set screen rotation: %{public}u withAnimation: %{public}u", targetRotation, withAnimation); in SetScreenRotation()
200 // offset(in degree) divided by 90 to get rotation bias in CalcDeviceRotation()
209 // %2 to determine whether the rotation is horizontal or vertical. in CalcDeviceRotation()
211 // if device's default rotation is landscape, use -2 to swap 0 and 90, 180 and 270. in CalcDeviceRotation()
271 void ScreenRotationController::ProcessSwitchToAutoRotation(DeviceRotation rotation) in ProcessSwitchToAutoRotation() argument
273 if (rotation != DeviceRotation::INVALID) { in ProcessSwitchToAutoRotation()
274 SetScreenRotation(ConvertDeviceToDisplayRotation(rotation)); in ProcessSwitchToAutoRotation()
278 void ScreenRotationController::ProcessSwitchToAutoRotationPortrait(DeviceRotation rotation) in ProcessSwitchToAutoRotationPortrait() argument
287 ProcessSwitchToAutoRotationLandscape(DeviceRotation rotation) ProcessSwitchToAutoRotationLandscape() argument
328 ConvertRotationToDisplayOrientation(Rotation rotation) ConvertRotationToDisplayOrientation() argument
417 IsDisplayRotationVertical(Rotation rotation) IsDisplayRotationVertical() argument
423 IsDisplayRotationHorizontal(Rotation rotation) IsDisplayRotationHorizontal() argument
[all...]
H A Dabstract_display.cpp193 bool AbstractDisplay::RequestRotation(Rotation rotation) in RequestRotation() argument
195 WLOGD("request rotation from %{public}u to %{public}u, display %{public}" PRIu64"", rotation_, rotation, id_); in RequestRotation()
196 if (rotation_ == rotation) { in RequestRotation()
197 WLOGFE("rotation not change %{public}u", rotation); in RequestRotation()
200 if (IsVertical(rotation) != IsVertical(rotation_)) { in RequestRotation()
203 rotation_ = rotation; in RequestRotation()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_light.h38 bool shadow, const ModelPosition& position, const Quaternion& rotation) in ModelLight()
40 position_(position), rotation_(rotation) {}; in ModelLight()
80 void SetRotation(const Quaternion& rotation) in SetRotation() argument
82 rotation_ = rotation; in SetRotation()
37 ModelLight(ModelLightType type, const Vec3& color, const AnimatableFloat& intensity, bool shadow, const ModelPosition& position, const Quaternion& rotation) ModelLight() argument
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/
H A Dlight.h28 const Quaternion& rotation) in Light()
29 : type_(type), color_(color), intensity_(intensity), shadow_(shadow), position_(position), rotation_(rotation) in Light()
60 void SetRotation(const OHOS::Render3D::Quaternion& rotation) in SetRotation() argument
62 rotation_ = rotation; in SetRotation()
27 Light(LightType type, const Vec3& color, float intensity, bool shadow, const Position& position, const Quaternion& rotation) Light() argument
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/dfx/
H A Drs_dirty_rects_dfx_test.cpp242 ScreenRotation rotation = ScreenRotation::ROTATION_0; in HWTEST_F() local
244 bool res = rsDirtyRectsDfx_->RefreshRateRotationProcess(rotation, screenId); in HWTEST_F()
248 rotation = ScreenRotation::ROTATION_90; in HWTEST_F()
252 res = rsDirtyRectsDfx_->RefreshRateRotationProcess(rotation, screenId); in HWTEST_F()
255 rotation = ScreenRotation::ROTATION_180; in HWTEST_F()
256 res = rsDirtyRectsDfx_->RefreshRateRotationProcess(rotation, screenId); in HWTEST_F()
259 rotation = ScreenRotation::ROTATION_270; in HWTEST_F()
260 res = rsDirtyRectsDfx_->RefreshRateRotationProcess(rotation, screenId); in HWTEST_F()
263 rotation = ScreenRotation::INVALID_SCREEN_ROTATION; in HWTEST_F()
264 res = rsDirtyRectsDfx_->RefreshRateRotationProcess(rotation, screenI in HWTEST_F()
[all...]
/foundation/window/window_manager/window_scene/session/screen/src/
H A Dscreen_property.cpp30 void ScreenProperty::SetRotation(float rotation) in SetRotation() argument
32 rotation_ = rotation; in SetRotation()
40 void ScreenProperty::SetPhysicalRotation(float rotation) in SetPhysicalRotation() argument
42 physicalRotation_ = rotation; in SetPhysicalRotation()
213 void ScreenProperty::SetScreenRotation(Rotation rotation) in SetScreenRotation() argument
215 bool enableRotation = (system::GetParameter("persist.window.rotation.enabled", "1") == "1"); in SetScreenRotation()
219 if (IsVertical(rotation) != IsVertical(screenRotation_)) { in SetScreenRotation()
233 switch (rotation) { in SetScreenRotation()
247 screenRotation_ = rotation; in SetScreenRotation()
250 void ScreenProperty::UpdateScreenRotation(Rotation rotation) in UpdateScreenRotation() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_point_light_manager.cpp131 auto rotation = GetScreenRotation(); in CheckIlluminated() local
133 if (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) { in CheckIlluminated()
135 } else if (rotation == ScreenRotation::ROTATION_90 || rotation == ScreenRotation::ROTATION_270) { in CheckIlluminated()
153 auto rotation = GetScreenRotation(); in CalculateLightPosForIlluminated() local
154 switch (rotation) { in CalculateLightPosForIlluminated()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/folder_stack/
H A Dfolder_stack_pattern.cpp82 auto rotation = displayInfo_->GetRotation(); in DumpInfo() local
83 DumpLog::GetInstance().AddDesc(std::string("rotation: ").append(std::to_string(static_cast<int32_t>(rotation)))); in DumpInfo()
144 auto rotation = displayInfo->GetRotation(); in RefreshStack()
145 auto isLandscape = rotation == Rotation::ROTATION_90 || rotation == Rotation::ROTATION_270; in RefreshStack()
241 "the autoHalfFold state is:%{public}d, direction of rotation is:%{public}d", in SetAutoRotate()
296 auto rotation = displayInfo_->GetRotation(); in DumpInfo() local
297 json->Put("rotation", static_cast<int32_t>(rotation)); in DumpInfo()
303 auto rotation = displayInfo_->GetRotation(); DumpSimplifyInfo() local
[all...]
H A Dfolder_stack_event_info.h28 FolderEventInfo(FoldStatus foldStatus, bool intoHover, Rotation rotation, WindowMode windowMode) in FolderEventInfo() argument
29 : BaseEventInfo("FolderStackInfo"), folderState_(foldStatus), isHoverMode_(intoHover), appRotation_(rotation), in FolderEventInfo()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_processor.cpp139 screenInfo_.rotation = displayParams->GetNodeRotation(); in InitForRenderThread()
179 screenInfo_.rotation = node.GetRotation(); in Init()
185 mirroredScreenInfo_.rotation = mirrorNode->GetRotation(); in Init()
291 float rotation = 0.0f; in CalculateMirrorAdaptiveMatrix() local
295 switch (screenInfo_.rotation) { in CalculateMirrorAdaptiveMatrix()
297 rotation = -90.0f; in CalculateMirrorAdaptiveMatrix()
301 rotation = -180.0f; in CalculateMirrorAdaptiveMatrix()
306 rotation = -270.0f; in CalculateMirrorAdaptiveMatrix()
320 mirrorAdaptiveMatrix_.PreRotate(rotation); in CalculateMirrorAdaptiveMatrix()
/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_cutout_controller_test.cpp109 * @tc.desc: ScreenCutoutController convert boundary rects by rotation
273 * @tc.desc: ScreenCutoutController calc waterfall rects by rotation
279 Rotation rotation; in HWTEST_F() local
283 rotation = Rotation::ROTATION_0; in HWTEST_F()
285 controller->CalcWaterfallRectsByRotation(rotation, displayHeight, displayWidth, realNumVec); in HWTEST_F()
286 rotation = Rotation::ROTATION_90; in HWTEST_F()
287 controller->CalcWaterfallRectsByRotation(rotation, displayHeight, displayWidth, realNumVec); in HWTEST_F()
288 rotation = Rotation::ROTATION_180; in HWTEST_F()
289 controller->CalcWaterfallRectsByRotation(rotation, displayHeight, displayWidth, realNumVec); in HWTEST_F()
290 rotation in HWTEST_F()
[all...]
H A Dscreen_property_test.cpp40 Rotation rotation = Rotation::ROTATION_0; in HWTEST_F() local
41 property->SetScreenRotation(rotation); in HWTEST_F()
43 rotation = Rotation::ROTATION_90; in HWTEST_F()
44 property->SetScreenRotation(rotation); in HWTEST_F()
46 rotation = Rotation::ROTATION_180; in HWTEST_F()
47 property->SetScreenRotation(rotation); in HWTEST_F()
49 rotation = Rotation::ROTATION_270; in HWTEST_F()
50 property->SetScreenRotation(rotation); in HWTEST_F()
236 float rotation = 2.0f; in HWTEST_F() local
237 property->SetRotation(rotation); in HWTEST_F()
253 float rotation = property->GetRotation(); HWTEST_F() local
[all...]
H A Dscreen_setting_helper_test.cpp270 int32_t rotation = 180; in HWTEST_F() local
271 ScreenSettingHelper::SetSettingRotation(rotation); in HWTEST_F()
282 int32_t rotation = 0; in HWTEST_F() local
284 auto result = ScreenSettingHelper::GetSettingRotation(rotation, key); in HWTEST_F()
295 int32_t rotation = 0; in HWTEST_F() local
297 auto result = ScreenSettingHelper::GetSettingRotation(rotation, key); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dmotion_path_evaluator.cpp122 TransformOperation rotation; in Evaluate() local
123 rotation.type_ = TransformOperationType::ROTATE; in Evaluate()
124 rotation.rotateOperation_ = RotateOperation(0.0f, 0.0f, 1.0f, position.rotate); in Evaluate()
125 result.GetOperations().push_back(rotation); in Evaluate()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/
H A Dmuxer.cpp102 int32_t rotation = mediaInfo->codecInfo.rotation == -1 ? 0 : mediaInfo->codecInfo.rotation; in AddMediaInfo() local
103 param->Set<Tag::VIDEO_ROTATION>(static_cast<Plugins::VideoRotation>(rotation)); in AddMediaInfo()
/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/
H A Dmoving_photo_video_cache.cpp64 int32_t rotation) in DoMuxerVideo()
74 taskManager_->DoMuxerVideo(frameRecords, taskName, rotation); in DoMuxerVideo()
97 EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation) in GetFrameCachedResult()
102 new CachedFrameCallbackHandle(frameRecords, encodedEndCbFunc, taskName, rotation); in GetFrameCachedResult()
136 EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation) in CachedFrameCallbackHandle()
137 : encodedEndCbFunc_(encodedEndCbFunc), isAbort_(false), taskName_(taskName), rotation_(rotation) in CachedFrameCallbackHandle()
63 DoMuxerVideo(std::vector<sptr<FrameRecord>> frameRecords, uint64_t taskName, int32_t rotation) DoMuxerVideo() argument
96 GetFrameCachedResult(std::vector<sptr<FrameRecord>> frameRecords, EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation) GetFrameCachedResult() argument
135 CachedFrameCallbackHandle(std::vector<sptr<FrameRecord>> frameRecords, EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation) CachedFrameCallbackHandle() argument
/foundation/multimedia/camera_framework/services/camera_service/include/avcodec/
H A Dmoving_photo_video_cache.h50 EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation);
51 void DoMuxerVideo(vector<sptr<FrameRecord>> frameRecords, uint64_t taskName, int32_t rotation);
64 EncodedEndCbFunc encodedEndCbFunc, uint64_t taskName, int32_t rotation);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/
H A Drs_display_node_test.cpp355 uint32_t rotation = 0; in HWTEST_F() local
356 displayNode->SetScreenRotation(rotation); in HWTEST_F()
358 rotation = 1; in HWTEST_F()
359 displayNode->SetScreenRotation(rotation); in HWTEST_F()
361 rotation = 2; in HWTEST_F()
362 displayNode->SetScreenRotation(rotation); in HWTEST_F()
364 rotation = 3; in HWTEST_F()
365 displayNode->SetScreenRotation(rotation); in HWTEST_F()
367 rotation = 4; in HWTEST_F()
368 displayNode->SetScreenRotation(rotation); in HWTEST_F()
[all...]

Completed in 14 milliseconds

12345678910>>...13