Skip to content

Commit

Permalink
Remove designated initializers
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 598854022
  • Loading branch information
MediaPipe Team authored and copybara-github committed Jan 16, 2024
1 parent 750e773 commit 2a8b76b
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,16 +427,16 @@ class HolisticLandmarkerGraph : public core::ModelTaskGraph {
RET_CHECK(pose_output.world_landmarks.has_value());

PoseIndices pose_indices = {
.wrist_idx =
static_cast<int>(pose_landmarker::PoseLandmarkName::kLeftWrist),
.pinky_idx = static_cast<int>(
pose_landmarker::PoseLandmarkName::kLeftPinky1),
.index_idx = static_cast<int>(
pose_landmarker::PoseLandmarkName::kLeftIndex1),
/*.wrist_idx =*/
static_cast<int>(pose_landmarker::PoseLandmarkName::kLeftWrist),
/*.pinky_idx =*/
static_cast<int>(pose_landmarker::PoseLandmarkName::kLeftPinky1),
/*.index_idx = */
static_cast<int>(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,
Expand All @@ -456,16 +456,16 @@ class HolisticLandmarkerGraph : public core::ModelTaskGraph {
RET_CHECK(pose_output.world_landmarks.has_value());

PoseIndices pose_indices = {
.wrist_idx = static_cast<int>(
/*.wrist_idx = */ static_cast<int>(
pose_landmarker::PoseLandmarkName::kRightWrist),
.pinky_idx = static_cast<int>(
pose_landmarker::PoseLandmarkName::kRightPinky1),
.index_idx = static_cast<int>(
pose_landmarker::PoseLandmarkName::kRightIndex1),
/*.pinky_idx = */
static_cast<int>(pose_landmarker::PoseLandmarkName::kRightPinky1),
/*.index_idx = */
static_cast<int>(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,
Expand All @@ -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,
Expand Down

0 comments on commit 2a8b76b

Please sign in to comment.