在华为P8上实现传统摄像头的任何已知问题?

时间:2016-03-23 18:30:01

标签: android camera

我从现场得到了一些报告,我的相机应用程序无法在华为P8上运行。相机冻结,MediaRecorder不起作用。相机预览似乎不稳定,一旦启动MediaRecorder,预览就会完全冻结。我正在使用传统相机API和MediaRecorder配置文件CamcorderProfile.QUALITY_HIGH。我还在MediaRecorder mMediaRecorder.setVideoSize(mOptimalVideoSize.width, mOptimalVideoSize.height);上设置视频大小,但是现在我没有显示此处设置宽度/高度的日志。

我在日志中看到的错误:

03-16 16:02:06.170    2776-3345/? I/HwaStatInfo﹕ [d39e516_I] isTafCapture ,isTafCapture 0
03-16 16:02:06.170    2776-3345/? I/HwaPPExecuter﹕ [d39e516_I] dumpPPStatInfo,  mOrientation = 0, mCameraId = 0, mBeautyLevel = 7, mPictureWidth = 4160, mPictureHeight = 2336, mIspOutWidth = 0, mIspOutHeight = 0,      mPreviewWidth = 1280, mPreviewHeight = 720, mIsDualCamera = 0, mFrameCount = 1
03-16 16:02:06.190   2776-18168/? I/AntiBanding﹕ [d39e516_I] setBandingMsgToDriver() Really set banding msg to miniIsp
03-16 16:02:06.190    2776-3344/? I/ImagingSystem﹕ void hw::CAltek6045Controller::setAntibandingMsg(uint32_t, uint32_t). outcome = 61, threshold = 60
03-16 16:02:06.190    2776-2949/? I/ImagingSystem﹕ int hw::CAltek6045Controller::executeConfig(const hwextisp_config_data_t&) restricted cmd:0x400810ae
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]test: bHoldToMove = 0, iMovingFrmCnt = 0, mPreFrmResult = 8, mResult = 8
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]int SMARTAF::smartAfAlgo::rect_protected(HWAF_TYPE), mFocusRect[0, 0, 0, 0]
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]int SMARTAF::smartAfAlgo::rect_protected(HWAF_TYPE), preview_width: 1280 preview_height: 720
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]int SMARTAF::smartAfAlgo::rect_protected(HWAF_TYPE), rect[560, 280, 160, 160]
03-16 16:02:06.190   2776-18163/? I/HwaStatInfo﹕ [d39e516_I] isTafCapture ,isTafCapture 0
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]diff[contrast,lum,ae][rbratio, xyz] = [23 2 99][0 2 16 23]
03-16 16:02:06.190   2776-18164/? I/﹕ [SmartAfAlgo_Grace_1.0.33]af result is 8.
03-16 16:02:06.200   2776-18173/? W/CFilterDownscale﹕ virtual hw::TRetCode hw::CFilterDownscale::receive(hw::IBuffer*): instance[0xaaf44120], drop.
03-16 16:02:06.200   2776-18169/? W/CFilterDownscale﹕ virtual hw::TRetCode hw::CFilterDownscale::receive(hw::IBuffer*): instance[0xab0a0bc0], drop.
03-16 16:02:06.200   2776-18168/? I/ThumbnailHW﹕ Src base(0xf0b08000) size(3112960, w1920 h1080); Dest base(0xf2c1e000) size(1843200)
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ src->w      = [1920]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ src->h      = [1080]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ src->format = [17]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ src->base   = [0xf0b08000]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ src->handle = [0xaae28068]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ srcHandle->format [17]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dst->w      = [1280]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dst->h      = [720]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dst->format = [20]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dst->base   = [0xf2c1e000]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dst->handle = [0xaaeb3fc0]
03-16 16:02:06.200   2776-18168/? I/libcopybit﹕ dstHandle->format [20]
03-16 16:02:06.200    2776-3345/? I/HwaStatInfo﹕ [d39e516_I] isTafCapture ,isTafCapture 0
03-16 16:02:06.200    2776-3345/? I/HwaPPExecuter﹕ [d39e516_I] dumpPPStatInfo,  mOrientation = 0, mCameraId = 0, mBeautyLevel = 7, mPictureWidth = 4160, mPictureHeight = 2336, mIspOutWidth = 0, mIspOutHeight = 0,      mPreviewWidth = 1280, mPreviewHeight = 720, mIsDualCamera = 0, mFrameCount = 1
03-16 16:02:06.210   3000-18083/? I/CameraEventHandler﹕ virtual void hw::CameraBufferStuckHandler::handleMessage(const android::Message&)(129): instance[0xab07e148].
03-16 16:02:06.210   3000-18083/? I/CameraEventHandler﹕ [I/DMD] open dev -1
03-16 16:02:06.210   3000-18083/? E/CameraEventHandler﹕ I/DMD: open dev fail
03-16 16:02:06.210   3000-18083/? I/Camera3Device﹕ virtual void hw::Camera3Device::onError(int)(588): instance[0xaaed8650].
03-16 16:02:06.210   3000-18083/? E/Camera3-Device﹕ Camera 0: notifyError: Camera HAL reported serious device error
03-16 16:02:06.210   3000-18083/? E/Camera2Client﹕ Error condition 1 reported by HAL

该设备上是否存在任何已知问题?像往常一样,它可能是相机上设置的参数或者也可能是媒体记录器配置文件,但不幸的是我没有物理设备,也无法真正开始修复此盲人。

1 个答案:

答案 0 :(得分:0)

我在华为荣誉上遇到了同样的问题7.一旦我删除了MediaRecorder.setVideoSize,它就变得正常了。