Implementation of Android 11.0 MTK Camera2 setting default photo size function

1 Introduction
 

In the customized development of the 11.0 system rom, in some functional modifications of camera2 on the mtk platform regarding taking pictures, the maximum resolution needs to be set by default on some platforms
for taking pictures resolution, so you need to understand the photo size setting process, and then implement related functions

As shown in the picture:

2.MTK Camera2 is the core class for setting the default photo size function.

\vendor\mediatek\proprietary\packages\apps\Camera2\feature\setting\picturesize\src\com\mediatek\camera\feature\setting\picturesize\PictureSizeSettingView.java
vendor/mediatek/proprietary/packages/apps/Camera2/feature/setting/picturesize/src/com/mediatek/camera/feature/setting/picturesize/PictureSize.java
vendor/mediatek/proprietary/packages/apps/Camera2/feature/setting/picturesize/src/com/mediatek/camera/feature/setting/picturesize/PictureSizeHelper.java

3. Analysis and implementation of the core functions of setting the default photo size function in MTK Camera2

Camera API mainly involves the following key classes
CameraManager: the actual manager of the camera, calling the camera API to operate the camera, take pictures and record videos, etc.
Camer

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/134818192