Skip to content

Handle padding included on image from Camera2 API#2991

Merged
sauwming merged 2 commits intomasterfrom
handle-camera2-padding
Feb 22, 2022
Merged

Handle padding included on image from Camera2 API#2991
sauwming merged 2 commits intomasterfrom
handle-camera2-padding

Conversation

@trengginas
Copy link
Copy Markdown
Member

@trengginas trengginas commented Feb 21, 2022

Since #2797, android camera are using Camera2 API. The image returned might include padding which should be stripped.
The padding is included on some devices, e.g: One plus 8, Pixel 3, Pixel 4, Samsung Galaxy Note 9.

This may trigger assertion in OnGetFrame2():

pj_assert(p1 == p0_end || p2 == p0_end);

@sauwming sauwming merged commit 88b9126 into master Feb 22, 2022
@sauwming sauwming deleted the handle-camera2-padding branch February 22, 2022 03:47
BarryYin pushed a commit to BarryYin/pjproject that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants