diff options
author | Dave Sparks <davidsparks@android.com> | 2009-07-08 15:56:53 -0700 |
---|---|---|
committer | Dave Sparks <davidsparks@android.com> | 2009-07-08 15:59:25 -0700 |
commit | f72d640b7c7de40b4c5d83b69748535e4254c941 (patch) | |
tree | 984c3ef3759970c80d7f794eb06020776307453e /include/ui/Camera.h | |
parent | ed65428df256e3d51c1817acdd05ad15c6a91396 (diff) | |
download | frameworks_native-f72d640b7c7de40b4c5d83b69748535e4254c941.zip frameworks_native-f72d640b7c7de40b4c5d83b69748535e4254c941.tar.gz frameworks_native-f72d640b7c7de40b4c5d83b69748535e4254c941.tar.bz2 |
Add timestamps to video frames to improve A/V sync.
Bug 1927069.
Diffstat (limited to 'include/ui/Camera.h')
-rw-r--r-- | include/ui/Camera.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/Camera.h b/include/ui/Camera.h index e3544ab..afb07b5 100644 --- a/include/ui/Camera.h +++ b/include/ui/Camera.h @@ -18,6 +18,7 @@ #ifndef ANDROID_HARDWARE_CAMERA_H #define ANDROID_HARDWARE_CAMERA_H +#include <utils/Timers.h> #include <ui/ICameraClient.h> namespace android { @@ -94,6 +95,7 @@ class CameraListener: virtual public RefBase public: virtual void notify(int32_t msgType, int32_t ext1, int32_t ext2) = 0; virtual void postData(int32_t msgType, const sp<IMemory>& dataPtr) = 0; + virtual void postDataTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) = 0; }; class Camera : public BnCameraClient, public IBinder::DeathRecipient @@ -155,6 +157,7 @@ public: // ICameraClient interface virtual void notifyCallback(int32_t msgType, int32_t ext, int32_t ext2); virtual void dataCallback(int32_t msgType, const sp<IMemory>& dataPtr); + virtual void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr); sp<ICamera> remote(); |