Wrong picture orientation on Samsung devices
还没有人认领这个 Issue。
评估
调研方向
首先,使用提供的 OrientationEventListener 和 imageCapture 的 targetRotation 逻辑,在 Samsung 设备上重现方向问题。将生成的图片方向与 OnePlus 的行为进行比较;当 Samsung 上捕获的图片方向正确,且不破坏已报告为正常工作的行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Please follow the following instructions before filing a bug:
i have added the orientationEventListener for getting the rotated image bt it not worked in Samsung and worked on one plus
private val orientationEventListener by lazy {
object : OrientationEventListener(this) {
override fun onOrientationChanged(orientation: Int) {
if (orientation == ORIENTATION_UNKNOWN) {
return
}
val rotation = when (orientation) {
in 45 until 135 -> Surface.ROTATION_270
in 135 until 225 -> Surface.ROTATION_180
in 225 until 315 -> Surface.ROTATION_90
else -> Surface.ROTATION_0
}
imageCapture?.targetRotation = rotation
}
}
}
- 主要语言
- Kotlin
- 星标
- 5.5k
- 派生
- 2.4k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/camera-samples 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
android/camera-samples#546 ·
-
难度 4/5 3-5 天 新手友好度 25/100
android/camera-samples#545 · 1 条评论 ·
-
Does CameraX plan to support USB Camera? When was the launch date? Someone raised Issues in 2019未关闭
难度 5/5 一周以上 新手友好度 15/100
android/camera-samples#543 · 2 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
android/camera-samples#542 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
android/camera-samples#541 · 1 条评论 · 1 个 reaction ·
查看 android/camera-samples 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
mrmans0n/asyncresult#102 ·
维护者通常 2 天内回复
-
follow-up
难度 2/5 1-3 小时 新手友好度 88/100
yschimke/homeassistant-remotecompose#680 ·
维护者通常 1 天内回复
-
task
难度 2/5 1-3 小时 新手友好度 72/100
-
feature-request
难度 2/5 1-3 小时 新手友好度 72/100
aws/aws-toolkit-jetbrains#6426 ·
-
Flaky: a relaunched catch-up replay can still report catching up right after its marker is written未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
johanhaleby/occurrent#1134 ·
维护者通常 1 天内回复