私のカメラアプリはHuawei P8で動作しないという報告がいくつかありました。カメラが凍結しており、MediaRecorder
は機能しません。カメラのプレビューが不安定になり、MediaRecorder
が起動すると、プレビューは完全にフリーズします。私は従来のカメラAPIとMediaRecorder
をCamcorderProfile.QUALITY_HIGH
のプロファイルで使用しています。 MediaRecorder
mMediaRecorder.setVideoSize(mOptimalVideoSize.width, mOptimalVideoSize.height);
でもビデオサイズを設定していますが、現在はどの幅/高さが設定されているかを示すログはありません。私は、ログから見ているHuawei P8にレガシーカメラを実装する際の既知の問題はありますか?
エラー:
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
そのデバイス上の既知の問題はありますか?いつものように、それはおそらくカメラやメディアレコーダーのプロファイルに設定されているパラメータですが、残念ながら私は物理的なデバイスを持っていないので、本当にこのブラインドを修正することはできません。
あなたは運がありましたか? – rupinderjeet
いいえ、この問題に戻ったことはありません。ジョエルが答えてくれたことを試してみましたか? – vkislicins
私はすべてのhuaweiモデル、Ascend、Honor、P'X '、G'XXX'のようにカメラを開くことができません。これらのデバイスでカメラを開く前に特別な設定があると思いました – rupinderjeet