Lines Matching defs:timestampUs
239 bool CameraSourceTimeLapse::skipCurrentFrame(int64_t /* timestampUs */) {
249 bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) {
253 // to current time (timestampUs) and save frame data.
256 mLastTimeLapseFrameRealTimestampUs = *timestampUs;
268 *timestampUs =
272 if (*timestampUs < mStartTimeUs) {
273 ALOGI("set timestampUs to start time stamp %" PRId64 " us", mStartTimeUs);
274 *timestampUs = mStartTimeUs;
283 if (mNumFramesEncoded >= 1 && *timestampUs <
293 // - Artificially modify timestampUs to be one frame time (1/framerate) ahead
297 mLastTimeLapseFrameRealTimestampUs = *timestampUs;
298 *timestampUs = mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs;
304 void CameraSourceTimeLapse::dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
307 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(×tampUs);
308 CameraSource::dataCallbackTimestamp(timestampUs, msgType, data);
311 void CameraSourceTimeLapse::recordingFrameHandleCallbackTimestamp(int64_t timestampUs,
314 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(×tampUs);
315 CameraSource::recordingFrameHandleCallbackTimestamp(timestampUs, handle);
320 int64_t timestampUs = buffer.mTimestamp / 1000;
321 mSkipCurrentFrame = skipFrameAndModifyTimeStamp(×tampUs);
322 buffer.mTimestamp = timestampUs * 1000;