status_t Camera::connectLegacy(int cameraId, int halVersion, const String16& clientPackageName, int clientUid, sp<Camera>& camera) { sp<Camera> c = new Camera(cameraId); sp<ICameraClient> cl = c; const sp<ICameraService>& cs = CameraBaseT::getCameraService(); if (cs != 0) { status = cs.get()->connectLegacy(cl, cameraId, halVersion, clientPackageName, clientUid, c->mCamera); } //分析 }
分析cl和c->mCamera传递到哪里去了。
时间: 2024-09-29 00:08:42