Merge "Camera: Update for video buffer binder changes" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b99d272e43
@@ -77,6 +77,7 @@ public:
|
|||||||
virtual void postData(int32_t msgType, const sp<IMemory>& dataPtr,
|
virtual void postData(int32_t msgType, const sp<IMemory>& dataPtr,
|
||||||
camera_frame_metadata_t *metadata);
|
camera_frame_metadata_t *metadata);
|
||||||
virtual void postDataTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr);
|
virtual void postDataTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr);
|
||||||
|
virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle);
|
||||||
void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata);
|
void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata);
|
||||||
void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType);
|
void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType);
|
||||||
void setCallbackMode(JNIEnv *env, bool installed, bool manualMode);
|
void setCallbackMode(JNIEnv *env, bool installed, bool manualMode);
|
||||||
@@ -349,6 +350,11 @@ void JNICameraContext::postDataTimestamp(nsecs_t timestamp, int32_t msgType, con
|
|||||||
postData(msgType, dataPtr, NULL);
|
postData(msgType, dataPtr, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JNICameraContext::postRecordingFrameHandleTimestamp(nsecs_t, native_handle_t*) {
|
||||||
|
// This is not needed at app layer. This should not be called because JNICameraContext cannot
|
||||||
|
// start video recording.
|
||||||
|
}
|
||||||
|
|
||||||
void JNICameraContext::postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata)
|
void JNICameraContext::postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata)
|
||||||
{
|
{
|
||||||
jobjectArray obj = NULL;
|
jobjectArray obj = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user