camera service的callback
大家好!
有个疑问,camera service 的 callback:
是怎么和驱动联系起来的呢?不是很理解……
我是菜鸟,请高手指教!!!
有个疑问,camera service 的 callback:
void Camera::notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2)
{
sp<CameraListener> listener;
{
Mutex::Autolock _l(mLock);
listener = mListener;
}
if (listener != NULL) {
listener->notify(msgType, ext1, ext2);
}
}
class ICameraClient: public IInterface
{
public:
DECLARE_META_INTERFACE(CameraClient);
virtual void notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2) = 0;
virtual void dataCallback(int32_t msgType, const sp<IMemory>& data) = 0;
virtual void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& data) = 0;
};
是怎么和驱动联系起来的呢?不是很理解……
我是菜鸟,请高手指教!!!
...全文


