From 2a8b76b440955c349c2d5c0e8957a544c4e2ec5c Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 16 Jan 2024 08:47:32 -0800 Subject: [PATCH] Remove designated initializers PiperOrigin-RevId: 598854022 --- .../holistic_landmarker_graph.cc | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/mediapipe/tasks/cc/vision/holistic_landmarker/holistic_landmarker_graph.cc b/mediapipe/tasks/cc/vision/holistic_landmarker/holistic_landmarker_graph.cc index ee486e03b2..2ff140c070 100644 --- a/mediapipe/tasks/cc/vision/holistic_landmarker/holistic_landmarker_graph.cc +++ b/mediapipe/tasks/cc/vision/holistic_landmarker/holistic_landmarker_graph.cc @@ -427,16 +427,16 @@ class HolisticLandmarkerGraph : public core::ModelTaskGraph { RET_CHECK(pose_output.world_landmarks.has_value()); PoseIndices pose_indices = { - .wrist_idx = - static_cast(pose_landmarker::PoseLandmarkName::kLeftWrist), - .pinky_idx = static_cast( - pose_landmarker::PoseLandmarkName::kLeftPinky1), - .index_idx = static_cast( - pose_landmarker::PoseLandmarkName::kLeftIndex1), + /*.wrist_idx =*/ + static_cast(pose_landmarker::PoseLandmarkName::kLeftWrist), + /*.pinky_idx =*/ + static_cast(pose_landmarker::PoseLandmarkName::kLeftPinky1), + /*.index_idx = */ + static_cast(pose_landmarker::PoseLandmarkName::kLeftIndex1), }; HolisticHandTrackingRequest hand_request = { - .landmarks = is_left_hand_requested, - .world_landmarks = is_left_hand_world_requested, + /*.landmarks = */ is_left_hand_requested, + /*.world_landmarks = */ is_left_hand_world_requested, }; MP_ASSIGN_OR_RETURN( HolisticHandTrackingOutput hand_output, @@ -456,16 +456,16 @@ class HolisticLandmarkerGraph : public core::ModelTaskGraph { RET_CHECK(pose_output.world_landmarks.has_value()); PoseIndices pose_indices = { - .wrist_idx = static_cast( + /*.wrist_idx = */ static_cast( pose_landmarker::PoseLandmarkName::kRightWrist), - .pinky_idx = static_cast( - pose_landmarker::PoseLandmarkName::kRightPinky1), - .index_idx = static_cast( - pose_landmarker::PoseLandmarkName::kRightIndex1), + /*.pinky_idx = */ + static_cast(pose_landmarker::PoseLandmarkName::kRightPinky1), + /*.index_idx = */ + static_cast(pose_landmarker::PoseLandmarkName::kRightIndex1), }; HolisticHandTrackingRequest hand_request = { - .landmarks = is_right_hand_requested, - .world_landmarks = is_right_hand_world_requested, + /*.landmarks = */ is_right_hand_requested, + /*.world_landmarks = */ is_right_hand_world_requested, }; MP_ASSIGN_OR_RETURN( HolisticHandTrackingOutput hand_output, @@ -490,7 +490,7 @@ class HolisticLandmarkerGraph : public core::ModelTaskGraph { graph)[0]; HolisticFaceTrackingRequest face_request = { - .classifications = is_face_blendshapes_requested, + /*.classifications = */ is_face_blendshapes_requested, }; MP_ASSIGN_OR_RETURN( HolisticFaceTrackingOutput face_output,