Open bohrasd opened 6 years ago
Camera2 API 似乎并不是必要要求?
怎么点赞呢?
研究了好久Camera2 API,目前暂时放弃了,重新回到旧版Camera API了~
Camera2 用起来有点复杂,之前碰到过一个录制时变形的问题 https://github.com/googlesamples/android-Camera2Video/issues/73
这个应该是高通的原因吧,从4.9的内核开始就都是Camera2 API了
真的不明白为什么,第三方适配小米手机的ROM都是开启了CAMERA2。MIUI难道有什么难言之隐?在他们的论坛上提这个,然后贴子就不见了。对付用吧,等换手机时改华为吧。小米无爱了。
HAL3在厂家层要一些特殊支持(比如第三方算法库 e.g jason开了hal3之后ois就挂了
小米 2018 年的机型大多已经支持 Camera2 API,不过仅限 FULL 级别,尚未支持 Level 3。
mi9 + miui欧洲版 (国内版不清楚,拿到手直接刷欧洲版) 前后摄像头 都支持 Level 3。
Manufacturer:Xiaomi
Build:9
SDK:28
------------------------------------------
Camera ID: 0
Camera Facing: Back
SupportLevel:LEVEL_3
Hardware Support Level:LEVEL_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash, red eye reduction:1
AE Lock:1
Manual focus:1
Auto focus:1
Auto focus macro:1
Auto focus continuous picture:1
Auto focus continuous video:1
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
previewSize: 4000 * 3000 (4:3)
previewSize: 4000 * 2250 (16:9)
previewSize: 3840 * 2160 (16:9)
previewSize: 2688 * 1512 (16:9)
previewSize: 2592 * 1940 (648:485)
previewSize: 1920 * 1440 (4:3)
previewSize: 2340 * 1080 (13:6)
previewSize: 2160 * 1080 (2:1)
previewSize: 1920 * 1080 (16:9)
previewSize: 1600 * 1200 (4:3)
previewSize: 1440 * 1080 (4:3)
previewSize: 1280 * 960 (4:3)
previewSize: 1560 * 720 (13:6)
previewSize: 1440 * 720 (2:1)
previewSize: 1280 * 720 (16:9)
previewSize: 800 * 600 (4:3)
previewSize: 720 * 480 (3:2)
previewSize: 640 * 480 (4:3)
previewSize: 640 * 360 (16:9)
previewSize: 352 * 288 (11:9)
previewSize: 320 * 240 (4:3)
previewSize: 176 * 144 (11:9)
photoSize: 4000 * 3000 (4:3)
photoSize: 4000 * 2250 (16:9)
photoSize: 3840 * 2160 (16:9)
photoSize: 2688 * 1512 (16:9)
photoSize: 2592 * 1940 (648:485)
photoSize: 1920 * 1440 (4:3)
photoSize: 2340 * 1080 (13:6)
photoSize: 2160 * 1080 (2:1)
photoSize: 1920 * 1080 (16:9)
photoSize: 1600 * 1200 (4:3)
photoSize: 1440 * 1080 (4:3)
photoSize: 1280 * 960 (4:3)
photoSize: 1560 * 720 (13:6)
photoSize: 1440 * 720 (2:1)
photoSize: 1280 * 720 (16:9)
photoSize: 800 * 600 (4:3)
photoSize: 720 * 480 (3:2)
photoSize: 640 * 480 (4:3)
photoSize: 640 * 360 (16:9)
photoSize: 352 * 288 (11:9)
photoSize: 320 * 240 (4:3)
photoSize: 176 * 144 (11:9)
photoSize: 8000 * 6000 (4:3)
videoSize: 4000 * 3000 (4:3)
videoSize: 4000 * 2250 (16:9)
videoSize: 3840 * 2160 (16:9)
videoSize: 2688 * 1512 (16:9)
videoSize: 2592 * 1940 (648:485)
videoSize: 1920 * 1440 (4:3)
videoSize: 2340 * 1080 (13:6)
videoSize: 2160 * 1080 (2:1)
videoSize: 1920 * 1080 (16:9)
videoSize: 1600 * 1200 (4:3)
videoSize: 1440 * 1080 (4:3)
videoSize: 1280 * 960 (4:3)
videoSize: 1560 * 720 (13:6)
videoSize: 1440 * 720 (2:1)
videoSize: 1280 * 720 (16:9)
videoSize: 800 * 600 (4:3)
videoSize: 720 * 480 (3:2)
videoSize: 640 * 480 (4:3)
videoSize: 640 * 360 (16:9)
videoSize: 352 * 288 (11:9)
videoSize: 320 * 240 (4:3)
videoSize: 176 * 144 (11:9)
------------------------------------------
Camera ID: 1
Camera Facing: Front
SupportLevel:LEVEL_3
Hardware Support Level:LEVEL_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:0
Auto exposure, auto flash:0
Auto exposure, auto flash, red eye reduction:0
AE Lock:1
Manual focus:1
Auto focus:0
Auto focus macro:0
Auto focus continuous picture:0
Auto focus continuous video:0
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
previewSize: 2592 * 1940 (648:485)
previewSize: 1920 * 1440 (4:3)
previewSize: 2340 * 1080 (13:6)
previewSize: 2160 * 1080 (2:1)
previewSize: 1920 * 1080 (16:9)
previewSize: 1600 * 1200 (4:3)
previewSize: 1440 * 1080 (4:3)
previewSize: 1280 * 960 (4:3)
previewSize: 1560 * 720 (13:6)
previewSize: 1440 * 720 (2:1)
previewSize: 1280 * 720 (16:9)
previewSize: 800 * 600 (4:3)
previewSize: 720 * 480 (3:2)
previewSize: 640 * 480 (4:3)
previewSize: 640 * 360 (16:9)
previewSize: 352 * 288 (11:9)
previewSize: 320 * 240 (4:3)
previewSize: 176 * 144 (11:9)
photoSize: 2592 * 1940 (648:485)
photoSize: 1920 * 1440 (4:3)
photoSize: 2340 * 1080 (13:6)
photoSize: 2160 * 1080 (2:1)
photoSize: 1920 * 1080 (16:9)
photoSize: 1600 * 1200 (4:3)
photoSize: 1440 * 1080 (4:3)
photoSize: 1280 * 960 (4:3)
photoSize: 1560 * 720 (13:6)
photoSize: 1440 * 720 (2:1)
photoSize: 1280 * 720 (16:9)
photoSize: 800 * 600 (4:3)
photoSize: 720 * 480 (3:2)
photoSize: 640 * 480 (4:3)
photoSize: 640 * 360 (16:9)
photoSize: 352 * 288 (11:9)
photoSize: 320 * 240 (4:3)
photoSize: 176 * 144 (11:9)
videoSize: 2592 * 1940 (648:485)
videoSize: 1920 * 1440 (4:3)
videoSize: 2340 * 1080 (13:6)
videoSize: 2160 * 1080 (2:1)
videoSize: 1920 * 1080 (16:9)
videoSize: 1600 * 1200 (4:3)
videoSize: 1440 * 1080 (4:3)
videoSize: 1280 * 960 (4:3)
videoSize: 1560 * 720 (13:6)
videoSize: 1440 * 720 (2:1)
videoSize: 1280 * 720 (16:9)
videoSize: 800 * 600 (4:3)
videoSize: 720 * 480 (3:2)
videoSize: 640 * 480 (4:3)
videoSize: 640 * 360 (16:9)
videoSize: 352 * 288 (11:9)
videoSize: 320 * 240 (4:3)
videoSize: 176 * 144 (11:9)