Searched refs:timeUs (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/media/libstagefright/
H A DMediaSource.cpp62 void MediaSource::ReadOptions::setSkipFrame(int64_t timeUs) { argument
64 mSkipFrameUntilTimeUs = timeUs;
67 bool MediaSource::ReadOptions::getSkipFrame(int64_t *timeUs) const {
68 *timeUs = mSkipFrameUntilTimeUs;
H A DStagefrightMetadataRetriever.cpp190 int64_t timeUs; local
191 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs));
193 if (timeUs != thumbNailTime) {
197 LOGV("thumbNailTime = %lld us, timeUs = %lld us, mime = %s",
198 thumbNailTime, timeUs, mime);
244 int64_t timeUs, int option) {
246 LOGV("getFrameAtTime: %lld us option: %d", timeUs, option);
284 timeUs, option);
291 timeUs, option);
243 getFrameAtTime( int64_t timeUs, int option) argument
/frameworks/base/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp69 uint64_t timeUs; local
71 "time", (int64_t *)&timeUs));
74 mediaBuffer->meta_data()->setInt64(kKeyTime, timeUs);
94 int64_t timeUs; local
95 CHECK(buffer->meta()->findInt64("time", &timeUs));
96 LOGV("queueAccessUnit timeUs=%lld us (%.2f secs)", timeUs, timeUs / 1E6);
H A DESQueue.h37 status_t appendData(const void *data, size_t size, int64_t timeUs);
H A DESQueue.cpp50 const void *data, size_t size, int64_t timeUs) {
97 mTimestamps.push_back(timeUs);
191 int64_t timeUs = *mTimestamps.begin(); local
194 accessUnit->meta()->setInt64("time", timeUs);
337 int64_t timeUs = *mTimestamps.begin(); local
340 accessUnit->meta()->setInt64("time", timeUs);
49 appendData( const void *data, size_t size, int64_t timeUs) argument
/frameworks/base/include/media/
H A DMediaMetadataRetrieverInterface.h35 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) = 0;
47 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) { return NULL; } argument
H A DIMediaMetadataRetriever.h35 virtual sp<IMemory> getFrameAtTime(int64_t timeUs, int option) = 0;
/frameworks/base/media/java/android/media/
H A DMediaMetadataRetriever.java169 * @param timeUs The time position where the frame will be retrieved.
172 * When this happens, a frame nearby will be returned. If timeUs is
178 * that has a timestamp earlier than or the same as timeUs. Use
180 * that has a timestamp later than or the same as timeUs. Use
182 * that has a timestamp closest to or the same as timeUs. Use
184 * or may not be a sync frame but is closest to or the same as timeUs.
186 * to the other options if there is no sync frame located at timeUs.
191 public Bitmap getFrameAtTime(long timeUs, int option) { argument
197 return _getFrameAtTime(timeUs, option);
208 * @param timeUs Th
220 getFrameAtTime(long timeUs) argument
242 _getFrameAtTime(long timeUs, int option) argument
[all...]
/frameworks/base/include/media/stagefright/
H A DMediaSource.h87 bool getSkipFrame(int64_t *timeUs) const;
88 void setSkipFrame(int64_t timeUs);
H A DMPEG4Writer.h88 void setStartTimestampUs(int64_t timeUs);
100 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
101 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
156 void trackProgressStatus(const Track* track, int64_t timeUs, status_t err = OK);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/
H A DM4vH263Decoder.cpp246 int64_t timeUs; local
247 CHECK(inputBuffer->meta_data()->findInt64(kKeyTime, &timeUs));
255 CHECK(timeUs <= mTargetTimeUs);
257 if (timeUs < mTargetTimeUs) {
262 LOGV("skipping frame at %lld us", timeUs);
264 LOGV("found target frame at %lld us", timeUs);
275 (*out)->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/base/media/libstagefright/codecs/on2/dec/
H A DVPXDecoder.cpp175 int64_t timeUs; local
176 CHECK(input->meta_data()->findInt64(kKeyTime, &timeUs));
184 CHECK(timeUs <= mTargetTimeUs);
186 if (timeUs < mTargetTimeUs) {
191 LOGV("skipping frame at %lld us", timeUs);
193 LOGV("found target frame at %lld us", timeUs);
267 output->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/base/media/libstagefright/include/
H A DStagefrightMetadataRetriever.h38 virtual VideoFrame *getFrameAtTime(int64_t timeUs, int option);
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/
H A DM4vH263Encoder.cpp306 int64_t timeUs; local
307 CHECK(mInputBuffer->meta_data()->findInt64(kKeyTime, &timeUs));
313 (mNextModTimeUs > timeUs || mPrevTimestampUs == timeUs)) {
323 CHECK(mPrevTimestampUs < timeUs);
324 mPrevTimestampUs = timeUs;
327 outputBuffer->meta_data()->setInt64(kKeyTime, timeUs);
342 vin.timestamp = (timeUs + 500) / 1000; // in ms
/frameworks/base/media/libmedia/
H A DIMediaMetadataRetriever.cpp125 sp<IMemory> getFrameAtTime(int64_t timeUs, int option) argument
127 LOGV("getTimeAtTime: time(%lld us) and option(%d)", timeUs, option);
130 data.writeInt64(timeUs);
204 int64_t timeUs = data.readInt64(); local
206 LOGV("getTimeAtTime: time(%lld us) and option(%d)", timeUs, option);
210 sp<IMemory> bitmap = getFrameAtTime(timeUs, option);
H A Dmediametadataretriever.cpp126 sp<IMemory> MediaMetadataRetriever::getFrameAtTime(int64_t timeUs, int option) argument
128 LOGV("getFrameAtTime: time(%lld us) option(%d)", timeUs, option);
134 return mRetriever->getFrameAtTime(timeUs, option);
/frameworks/base/media/libstagefright/codecs/avc/dec/
H A DAVCDecoder.cpp256 int64_t timeUs; local
257 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs));
258 CHECK(timeUs <= mTargetTimeUs);
260 if (timeUs < mTargetTimeUs) {
265 LOGV("skipping frame at %lld us", timeUs);
267 LOGV("found target frame at %lld us", timeUs);
582 int64_t timeUs;
583 CHECK(mInputBuffer->meta_data()->findInt64(kKeyTime, &timeUs));
584 mFrames[index]->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/base/media/libstagefright/codecs/aacenc/
H A DAACEncoder.cpp242 int64_t timeUs; local
243 if (mInputBuffer->meta_data()->findInt64(kKeyDriftTime, &timeUs)) {
244 wallClockTimeUs = timeUs;
246 if (mInputBuffer->meta_data()->findInt64(kKeyAnchorTime, &timeUs)) {
247 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/codecs/amrnb/enc/
H A DAMRNBEncoder.cpp173 int64_t timeUs; local
174 if (mInputBuffer->meta_data()->findInt64(kKeyDriftTime, &timeUs)) {
175 wallClockTimeUs = timeUs;
177 if (mInputBuffer->meta_data()->findInt64(kKeyAnchorTime, &timeUs)) {
178 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/codecs/amrwbenc/
H A DAMRWBEncoder.cpp223 int64_t timeUs; local
224 if (mInputBuffer->meta_data()->findInt64(kKeyDriftTime, &timeUs)) {
225 wallClockTimeUs = timeUs;
227 if (mInputBuffer->meta_data()->findInt64(kKeyAnchorTime, &timeUs)) {
228 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/codecs/amrnb/dec/
H A DAMRNBDecoder.cpp141 int64_t timeUs; local
142 if (mInputBuffer->meta_data()->findInt64(kKeyTime, &timeUs)) {
143 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/codecs/amrwb/
H A DAMRWBDecoder.cpp159 int64_t timeUs; local
160 if (mInputBuffer->meta_data()->findInt64(kKeyTime, &timeUs)) {
161 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/codecs/g711/dec/
H A DG711Decoder.cpp136 int64_t timeUs; local
137 CHECK(inBuffer->meta_data()->findInt64(kKeyTime, &timeUs));
158 outBuffer->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/base/media/libstagefright/codecs/mp3dec/
H A DMP3Decoder.cpp150 int64_t timeUs; local
151 if (mInputBuffer->meta_data()->findInt64(kKeyTime, &timeUs)) {
152 mAnchorTimeUs = timeUs;
/frameworks/base/media/libstagefright/rtsp/
H A Drtp_test.cpp213 int64_t timeUs; local
214 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs));
217 buffer->range_length(), timeUs / 1E6);

Completed in 375 milliseconds

12