Repository navigation
Fix mirrored Android background masks after a flipped readback - #242
Open
sierpinskid wants to merge 1 commit into
Open
sierpinskid wants to merge 1 commit into
sierpinskid wants to merge 1 commit into
Conversation
Undo the post-readback Y flip before upload so a rotated portrait mask lines up with the camera. Co-authored-by: Cursor <cursoragent@cursor.com>
👋 Hi Daniel, want a second pair of eyes on this?I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.
Or comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PersonMaskOrientation.ToReadbackLayoutmaps the mask back to the readback layout. GLES is still not flipped. Vulkan and Metal still flip once, and that flip is now reversed beforeSetPixelData.STREAM_DEBUG_ENABLED && STREAM_LOG_BG_FILTER. No sample, package, or native binary changes.Test plan
PersonMaskOrientationTests14 passed, including the new readback round-trip at 0/90/180/270 with and without the Y flip.AndroidMlKitPersonSegmenterTests1 passed.2021.3.36f1and6000.2.12f1.Made with Cursor