Searched defs:timestamp (Results 1 - 25 of 165) sorted by path

1234567

/frameworks/av/camera/
H A DCamera.cpp363 void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) argument
374 proxylistener->dataCallbackTimestamp(timestamp, msgType, dataPtr);
385 listener->postDataTimestamp(timestamp, msgType, dataPtr);
392 void Camera::recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
403 proxylistener->recordingFrameHandleCallbackTimestamp(timestamp, handle);
414 listener->postRecordingFrameHandleTimestamp(timestamp, handle);
H A DICameraClient.cpp74 void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& imageData) argument
79 data.writeInt64(timestamp);
85 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { argument
89 data.writeInt64(timestamp);
132 nsecs_t timestamp = data.readInt64(); local
135 dataCallbackTimestamp(timestamp, msgType, imageData);
141 nsecs_t timestamp; local
142 status_t res = data.readInt64(&timestamp);
144 ALOGE("%s: Failed to read timestamp: %s (%d)", __FUNCTION__, strerror(-res), res);
154 recordingFrameHandleCallbackTimestamp(timestamp, handl
[all...]
H A DICameraRecordingProxyListener.cpp41 void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& imageData) argument
46 data.writeInt64(timestamp);
52 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { argument
56 data.writeInt64(timestamp);
78 nsecs_t timestamp = data.readInt64(); local
81 dataCallbackTimestamp(timestamp, msgType, imageData);
87 nsecs_t timestamp; local
88 status_t res = data.readInt64(&timestamp);
90 ALOGE("%s: Failed to read timestamp: %s (%d)", __FUNCTION__, strerror(-res), res);
101 recordingFrameHandleCallbackTimestamp(timestamp, handl
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraDevice.cpp886 int64_t timestamp; local
887 found = msg->findInt64(kTimeStampKey, &timestamp);
889 ALOGE("%s: Cannot find timestamp!", __FUNCTION__);
893 (*onStart)(context, session.get(), request, timestamp);
1237 int64_t timestamp) {
1268 msg->setInt64(kTimeStampKey, timestamp);
1235 onCaptureStarted( const CaptureResultExtras& resultExtras, int64_t timestamp) argument
/frameworks/av/camera/tests/
H A DCameraBinderTests.cpp188 int64_t timestamp) {
190 (void) timestamp;
187 onCaptureStarted(const CaptureResultExtras& resultExtras, int64_t timestamp) argument
/frameworks/av/include/media/
H A DAudioTimestamp.h41 LOCATION_CLIENT, // timestamp of last read frame from client-server track buffer.
42 LOCATION_SERVER, // timestamp of newest frame from client-server track buffer.
43 LOCATION_KERNEL, // timestamp of newest frame in the kernel (alsa) buffer.
45 // Historical data: info when the kernel timestamp was OK (prior to the newest frame).
46 // This may be useful when the newest frame kernel timestamp is unavailable.
48 LOCATION_SERVER_LASTKERNELOK, // timestamp of server the prior time kernel timestamp OK.
49 LOCATION_KERNEL_LASTKERNELOK, // timestamp of kernel the prior time kernel timestamp OK.
76 // timestamp wa
124 getBestTimestamp(AudioTimestamp *timestamp, Location *location = nullptr) const argument
[all...]
H A DExtendedAudioBufferProvider.h32 // Invoked by buffer consumer when a new timestamp is available.
33 // Default implementation ignores the timestamp.
34 virtual void onTimestamp(const ExtendedTimestamp& timestamp) { } argument
H A DIOMX.h173 // |range_length|, |flags| and |timestamp|). Passes |fenceFd| to component if it
180 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1) = 0;
234 OMX_TICKS timestamp; member in struct:android::omx_message::__anon47::__anon50
239 OMX_TICKS timestamp; member in struct:android::omx_message::__anon47::__anon51
/frameworks/av/include/media/nbaio/
H A DNBAIO.h212 // Returns NO_ERROR if a timestamp is available. The timestamp includes the total number
214 // as of this presentation count. The timestamp parameter is undefined if error is returned.
215 virtual status_t getTimestamp(ExtendedTimestamp &timestamp) { return INVALID_OPERATION; } argument
300 // Invoked asynchronously by corresponding sink when a new timestamp is available.
301 // Default implementation ignores the timestamp.
302 virtual void onTimestamp(const ExtendedTimestamp& timestamp) { } argument
/frameworks/av/include/private/media/
H A DAudioTrackShared.h325 status_t getTimestamp(ExtendedTimestamp *timestamp) { argument
326 if (timestamp == nullptr) {
330 *timestamp = mTimestamp;
344 // The shared buffer contents referred to by the timestamp observer
345 // is initialized when the server proxy created. A local zero timestamp
520 // Expose timestamp to client proxy. Should only be called by a single thread.
521 virtual void setTimestamp(const ExtendedTimestamp &timestamp) { argument
522 mTimestampMutator.push(timestamp);
585 // Set the internal drain state of the track buffer from the timestamp received.
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp304 mProxy->clearTimestamp(); // timestamp is invalid until next server push
456 status_t AudioRecord::getTimestamp(ExtendedTimestamp *timestamp) argument
458 if (timestamp == nullptr) {
462 status_t status = mProxy->getTimestamp(timestamp);
464 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesRead;
465 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_CLIENT] = 0;
469 if (timestamp->mTimeNs[i] >= 0) {
470 timestamp->mPosition[i] += mFramesReadServerOffset;
H A DAudioTrack.cpp573 // read last server side position change via timestamp.
588 mProxy->clearTimestamp(); // need new server push for valid timestamp
735 // the same configuration. A timestamp query for a paused track
2280 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) argument
2282 if (timestamp == nullptr) {
2286 return getTimestamp_l(timestamp);
2289 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) argument
2303 status_t status = mProxy->getTimestamp(timestamp);
2306 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesWritten;
2307 timestamp
2321 getTimestamp(AudioTimestamp& timestamp) argument
[all...]
H A DIAudioTrack.cpp126 virtual status_t getTimestamp(AudioTimestamp& timestamp) { argument
133 timestamp.mPosition = reply.readInt32();
134 timestamp.mTime.tv_sec = reply.readInt32();
135 timestamp.mTime.tv_nsec = reply.readInt32();
194 AudioTimestamp timestamp; local
195 status_t status = getTimestamp(timestamp);
198 reply->writeInt32(timestamp.mPosition);
199 reply->writeInt32(timestamp.mTime.tv_sec);
200 reply->writeInt32(timestamp.mTime.tv_nsec);
H A DIOMX.cpp570 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
578 data.writeInt64(timestamp);
1187 OMX_TICKS timestamp = data.readInt64(); local
1191 node, buffer, range_offset, range_length, flags, timestamp, fenceFd));
566 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument
/frameworks/av/media/libnbaio/
H A DAudioStreamOutSink.cpp69 status_t AudioStreamOutSink::getTimestamp(ExtendedTimestamp &timestamp) argument
80 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = position64;
81 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] =
H A DMonoPipe.cpp186 status_t MonoPipe::getTimestamp(ExtendedTimestamp &timestamp) argument
190 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] =
192 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] =
H A DMonoPipeReader.cpp75 void MonoPipeReader::onTimestamp(const ExtendedTimestamp &timestamp) argument
77 mPipe->mTimestampMutator.push(timestamp);
H A DNBLog.cpp343 String8 timestamp, body; local
347 // TODO timestamp empty here, only other choice to wait for the first timestamp event in the
348 // log to push it out. Consider keeping the timestamp/body between calls to readAt().
349 dumpLine(timestamp, body);
357 timestamp.appendFormat("[%*s]", (int) width + 4, "");
402 dumpLine(timestamp, body);
405 timestamp.clear();
407 timestamp.appendFormat("[%d.%03d to .%.03d by .%.03d to .%.03d]",
415 timestamp
438 dumpLine(const String8& timestamp, String8& body) argument
[all...]
H A DSourceAudioBufferProvider.cpp120 void SourceAudioBufferProvider::onTimestamp(const ExtendedTimestamp &timestamp) argument
122 mSource->onTimestamp(timestamp);
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp57 nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr);
59 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle);
97 nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) {
101 source->dataCallbackTimestamp(timestamp/1000, msgType, dataPtr);
105 void CameraSourceListener::postRecordingFrameHandleTimestamp(nsecs_t timestamp, argument
109 source->recordingFrameHandleCallbackTimestamp(timestamp/1000, handle);
1058 // May need to skip frame or modify timestamp. Currently implemented
1066 ALOGW("Dropping frame with backward timestamp %lld (last %lld)",
1094 ALOGV("dataCallbackTimestamp: timestamp %lld us", (long long)timestampUs);
1125 ALOGV("%s: timestamp
96 postDataTimestamp( nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) argument
1266 dataCallbackTimestamp( nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) argument
1271 recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
[all...]
H A DOMXClient.cpp149 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
468 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
470 node, buffer, range_offset, range_length, flags, timestamp, fenceFd);
464 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp221 // so use fake timestamp instead
222 uint32_t timestamp = 0xFFFFFFFF; local
225 timestamp = mPvTime;
244 mHandle, &bitstream, &timestamp, &tmp,
261 outHeader->nTimeStamp = mPvToOmxTimeMap.valueFor(timestamp);
262 mPvToOmxTimeMap.removeItem(timestamp);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/include/
H A Dmp4dec_api.h109 uint32 timestamp; member in struct:tagVopHeaderInfo
155 Bool PVDecSetReference(VideoDecControls *decCtrl, uint8 *refYUV, uint32 timestamp);
156 Bool PVDecSetEnhReference(VideoDecControls *decCtrl, uint8 *refYUV, uint32 timestamp);
157 OSCL_IMPORT_REF Bool PVDecodeVideoFrame(VideoDecControls *decCtrl, uint8 *bitstream[], uint32 *timestamp, int32 *buffer_size, uint use_ext_timestamp[], uint8* currYUV);
158 Bool PVDecodeVopHeader(VideoDecControls *decCtrl, uint8 *buffer[], uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp[], uint8 *currYUV);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp1054 uint32 timestamp[], int32 buffer_size[], uint use_ext_timestamp[], uint8 *currYUV)
1059 status = (PV_STATUS)PVDecodeVopHeader(decCtrl, buffer, timestamp, buffer_size, &header_info, use_ext_timestamp, currYUV);
1082 uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp [], uint8 *currYUV)
1106 timestamp[idx] = -1;
1110 /* did the application provide a timestamp for this vop? */
1111 if (timestamp[idx] < 0)
1115 /* decode the timestamp in the bitstream */
1134 timestamp[idx] = CalcVopDisplayTime(video->vol[idx], vopHeader[idx], video->shortVideoHeader);
1141 timestamp[idx] = vopHeader[idx]->timeStamp;
1146 if (timestamp[id
1053 PVDecodeVideoFrame(VideoDecControls *decCtrl, uint8 *buffer[], uint32 timestamp[], int32 buffer_size[], uint use_ext_timestamp[], uint8 *currYUV) argument
1081 PVDecodeVopHeader(VideoDecControls *decCtrl, uint8 *buffer[], uint32 timestamp[], int32 buffer_size[], VopHeaderInfo *header_info, uint use_ext_timestamp [], uint8 *currYUV) argument
1650 PVDecSetReference(VideoDecControls *decCtrl, uint8 *refYUV, uint32 timestamp) argument
1691 PVDecSetEnhReference(VideoDecControls *decCtrl, uint8 *refYUV, uint32 timestamp) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/
H A Dmp4enc_api.h123 ULong timestamp; /* modulo timestamp in millisecond*/ member in struct:tagvideoEncFrameIO
331 * @param nextModTime is the timestamp encoder expects from the next input
354 * @brief This function sets the input YUV frame and timestamp to be encoded by the slice-based encoding function PVEncodeSlice().
356 * The encoder library processes the timestamp and determine if this frame is to be encoded or not. If the current frame
361 * @param nextModTime is the timestamp encoder expects from the next input if this input is rejected and nLayer is set to -1.
373 * At the end-of-frame, the next video input address and the next video modulo timestamp will be set.
380 * @param nextModTime is the timestamp encoder expects from the next input

Completed in 3697 milliseconds

1234567