当我尝试执行我的应用程序时,我会收到无数不包含我的包名称的消息。我无法理解他们的意思以及问题所在。logcat 中的一些消息如下:
03-01 21:51:21.980: I/SecCameraCoreManager(1555): SecCameraCoreManager created: pid=1555, cameraId=0
03-01 21:51:21.980: D/SteExtIspCamera(1555): > android::SteExtIspCamera::SteExtIspCamera(int)
03-01 21:51:21.980: D/SteExtIspCamera(1555): < android::SteExtIspCamera::SteExtIspCamera(int)
03-01 21:51:21.980: D/SteExtIspCamera(1555): > OMX_ERRORTYPE android::SteExtIspCamera::init()
03-01 21:51:21.980: I/SteExtIspCamera(1555): debug.libcamera.level = 255
03-01 21:51:21.980: D/SteExtIspCamera(1555): > OMX_ERRORTYPE android::SteExtIspCamera::initPrimaryDefaultParameters()
03-01 21:51:21.980: D/SteExtIspCamera(1555): Default preview Witdh: 640 Height: 480 framerate 30
03-01 21:51:21.980: D/SteExtIspCamera(1555): Default preview framerate: 30
03-01 21:51:21.980: D/SteExtIspCamera(1555): Default picture Width: 2560 Height: 1920 quality; 100
03-01 21:51:21.980: D/SteExtIspCamera(1555): > virtual android::status_t android::SteExtIspCamera::setParameters(const android::CameraParameters&)
03-01 21:51:21.980: D/SteExtIspCamera(1555): Preview Width: 640 Height: 480 Format : yuv420sp
03-01 21:51:21.980: D/SteExtIspCamera(1555): Record Width: 640 Height: 480
03-01 21:51:21.980: D/SteExtIspCamera(1555): VPB0 Width: 640 Height: 480
03-01 21:51:21.980: D/SteExtIspCamera(1555): Picture Width: 2560 Height: 1920 Format : jpeg Quality: 100
03-01 21:51:21.980: D/SteExtIspCamera(1555): Thumbnail Width: 320 Height: 240 Quality: 70
03-01 21:51:21.980: D/SteExtIspCamera(1555): Rotation: (null) WhiteBalance: auto Effect: none Antibanding: 50hz
03-01 21:51:21.980: D/SteExtIspCamera(1555): SceneMode: auto Flash: off Focus: auto
03-01 21:51:21.980: D/SteExtIspCamera(1555): < virtual android::status_t android::SteExtIspCamera::setParameters(const android::CameraParameters&)
03-01 21:51:21.980: D/SteExtIspCamera(1555): < OMX_ERRORTYPE android::SteExtIspCamera::initPrimaryDefaultParameters()
03-01 21:51:21.980: I/ENSLoader(1555): CreateComponent OMX.ST.ExtHSMCamera
03-01 21:51:21.990: D/dalvikvm(17529): GC_EXTERNAL_ALLOC freed 22K, 45% free 3521K/6343K, external 0K/0K, paused 77ms
03-01 21:51:22.000: I/OSI-Trace(1555): =========== persist.debug.extcamera.level enabled with level 777 =======
03-01 21:51:22.000: D/OSI-Trace(1555): EXTCAMERA > Camera
03-01 21:51:22.000: D/OSI-Trace(1555): > setDefaultFormatInPortDefinition
03-01 21:51:22.000: I/OSI-Trace(1555): PortIndex = 0
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.xFramerate = 10
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nFrameWidth = 320
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nFrameHeight = 240
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.eCompressionFormat = 0
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.eColorFormat = 27
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nStride = 320
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nSliceHeight = 1
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.nBufferSize = 153600
03-01 21:51:22.000: D/OSI-Trace(1555): > setDefaultFormatInPortDefinition
03-01 21:51:22.000: I/OSI-Trace(1555): PortIndex = 2
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.xFramerate = 10
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nFrameWidth = 320
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.nFrameHeight = 240
03-01 21:51:22.000: I/OSI-Trace(1555): mParamPortDefinition.format.video.eCompressionFormat = 0
出了什么问题?
编辑:我唯一的想法是,在我的 centerLayout 中,它是一个 cameraPreview(SurfaceView),我有很多覆盖 cameraPreview 的相对布局,也许这会一直计算每个布局的尺寸和距离