Package 

Class CameraConfigFactory


  • 
    public final class CameraConfigFactory
    
                        

    相机配置工厂类:主要用于创建CameraConfig,提供相对简单的创建方式

    • Method Summary

      Modifier and Type Method Description
      static CameraConfig createDefaultCameraConfig(Context context, int lensFacing) 根据设备配置创建一个相匹配的CameraConfig;自适应相机配置:主要是根据纵横比和设备屏幕的分辨率找到与相机之间合适的相机配置;在适配、性能与体验之间找到平衡点,最终创建一个比较适合当前设备的 CameraConfig。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createDefaultCameraConfig

         static CameraConfig createDefaultCameraConfig(Context context, int lensFacing)

        根据设备配置创建一个相匹配的CameraConfig;

        自适应相机配置:主要是根据纵横比和设备屏幕的分辨率找到与相机之间合适的相机配置;在适配、性能与体验之间找到平衡点,最终创建一个比较适合当前设备的 CameraConfig。

        Parameters:
        context - Context
        lensFacing - LENS_FACING_BACK or LENS_FACING_FRONT