/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | VideoRenderQualityTracker.h | 39 int64_t firstRenderTimeUs; 42 int64_t lastRenderTimeUs; 45 int64_t frameReleasedCount; 48 int64_t frameRenderedCount; 51 int64_t frameDroppedCount; 54 int64_t frameSkippedCount; 176 std::vector<int64_t> freezeDurationMsHistogramToScore; 202 std::vector<int64_t> judderScoreHistogramToScore; 237 int64_t initialTimeUs; 242 int64_t count; [all …]
|
D | MediaClock.h | 39 void setStartingTimeMedia(int64_t startingTimeMediaUs); 45 int64_t anchorTimeMediaUs, 46 int64_t anchorTimeRealUs, 47 int64_t maxTimeMediaUs = INT64_MAX); 49 void updateMaxTimeMedia(int64_t maxTimeMediaUs); 57 int64_t realUs, 58 int64_t *outMediaUs, 62 status_t getRealTimeFor(int64_t targetMediaUs, int64_t *outRealUs) const; 67 void addTimer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs = 0); 84 Timer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs); [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | IsochronousClockModel.h | 40 void start(int64_t nanoTime); 41 void stop(int64_t nanoTime); 53 void processTimestamp(int64_t framePosition, int64_t nanoTime); 60 void setPositionAndTime(int64_t framePosition, int64_t nanoTime); 83 int64_t convertPositionToTime(int64_t framePosition) const; 92 int64_t convertPositionToLatestTime(int64_t framePosition) const; 100 int64_t convertTimeToPosition(int64_t nanoTime) const; 112 int64_t convertLatestTimeToPosition(int64_t nanoTime) const; 118 int64_t convertDeltaPositionToTime(int64_t framesDelta) const; 124 int64_t convertDeltaTimeToPosition(int64_t nanosDelta) const; [all …]
|
D | IsochronousClockModel.cpp | 53 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) { in setPositionAndTime() 59 void IsochronousClockModel::start(int64_t nanoTime) { in start() 70 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() 92 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() 97 int64_t framesDelta = framePosition - mMarkerFramePosition; in processTimestamp() 98 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp() 107 int64_t expectedNanosDelta = convertDeltaPositionToTime(framesDelta); in processTimestamp() 115 int64_t latenessNanos = nanosDelta - expectedNanosDelta; in processTimestamp() 215 void IsochronousClockModel::driftForward(int64_t latenessNanos, in driftForward() 216 int64_t expectedNanosDelta, in driftForward() [all …]
|
D | AudioStreamInternalPlay.cpp | 120 int64_t validFramesInBuffer = getFramesWritten() - getFramesRead(); in prepareBuffersForStop() 122 int64_t emptyFramesInBuffer = ((int64_t) getBufferCapacity()) - validFramesInBuffer; in prepareBuffersForStop() 127 int64_t framesToErase = std::max((int64_t) 0, in prepareBuffersForStop() 134 int64_t positionInEmptyMemory = getFramesWritten() + getFramesPerBurst(); in prepareBuffersForStop() 135 int64_t timeAllConsumed = mClockModel.convertPositionToTime(positionInEmptyMemory); in prepareBuffersForStop() 136 int64_t durationAllConsumed = timeAllConsumed - AudioClock::getNanoseconds(); in prepareBuffersForStop() 156 int64_t dacPosition = timestamp.getPosition(); in prepareBuffersForStop() 157 int64_t hardwareReadTime = mClockModel.convertPositionToTime(dacPosition); in prepareBuffersForStop() 158 int64_t hardwareLatencyNanos = timestamp.getNanoseconds() - hardwareReadTime; in prepareBuffersForStop() 169 int64_t readCounter = mAudioEndpoint->getDataReadCounter() + serverMargin; in advanceClientToMatchServerPosition() [all …]
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | clock_ns.h | 10 constexpr int64_t kNanosPerSecond = 1000000000ll; 26 static inline int64_t GetSystemClockNs() { in GetSystemClockNs() 28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs() 32 static inline int64_t GetSystemClockRawNs() { in GetSystemClockRawNs() 34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs() 38 static inline double NsToSec(int64_t nanoseconds) { in NsToSec() 48 static inline timespec NsToTimespec(int64_t ns) { in NsToTimespec() 64 static inline bool TimestampLT(int64_t a, int64_t b) { in TimestampLT() 65 return static_cast<int64_t>(static_cast<uint64_t>(a) - in TimestampLT() 68 static inline bool TimestampLE(int64_t a, int64_t b) { in TimestampLE() [all …]
|
D | benchmark.h | 30 static inline void Btrace(const char* name, int64_t nanoseconds_monotonic); 33 int64_t nanoseconds_monotonic); 37 static inline void BtraceData(const char* name, int64_t nanoseconds_monotonic, 38 int64_t data); 39 static inline void BtraceData(const char* name, int64_t data); 41 int64_t nanoseconds_monotonic, int64_t data); 42 static inline void BtraceData(FILE* file, const char* name, int64_t data); 44 static inline void Btrace(const char* name, int64_t nanoseconds_monotonic) { in Btrace() 56 int64_t nanoseconds_monotonic) { in Btrace() 64 static inline void BtraceData(const char* name, int64_t nanoseconds_monotonic, in BtraceData() [all …]
|
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/ |
D | ARTPAssembler.h | 48 inline int64_t findRTPTime(const uint32_t& firstRTPTime, const sp<ABuffer>& buffer); 49 inline int64_t MsToRtp(int64_t ms, int64_t clockRate); 50 inline int64_t RtpToMs(int64_t rtp, int64_t clockRate); 51 inline void printNowTimeMs(int64_t start, int64_t now, int64_t play); 52 inline void printRTPTime(int64_t rtp, int64_t play, int64_t exp, bool isExp); 75 int64_t mFirstFailureTimeUs; 80 inline int64_t ARTPAssembler::findRTPTime(const uint32_t& firstRTPTime, const sp<ABuffer>& buffer) { in findRTPTime() 83 int64_t rtpTime = 0; in findRTPTime() 86 int64_t overflowMask = (firstRTPTime & 0x80000000 & ~rtpTime) << 1; in findRTPTime() 90 inline int64_t ARTPAssembler::MsToRtp(int64_t ms, int64_t clockRate) { in MsToRtp() [all …]
|
D | ARTPSource.h | 65 int64_t recvTimeUs, uint32_t senderId, sp<ReceptionReportBlock> rrb); 67 void timeUpdate(int64_t recvTimeUs, uint32_t rtpTime, uint64_t ntpTime); 86 void setJbAlarmTime(int64_t nowTimeUs, int64_t alarmAfterUs); 89 void notifyPktInfo(int32_t bitrate, int64_t nowUs, bool isRegular); 96 int64_t mFirstSysTime; 99 int64_t mSysAnchorTime; 100 int64_t mLastSysAnchorTimeUpdatedUs; 138 int64_t mLastSrUpdateTimeUs; 140 int64_t mLastRrUpdateTimeUs; 145 int64_t mLastJbAlarmTimeUs; [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_clock_model.cpp | 63 const int64_t startTimeNanos = 500000000; // arbitrary in checkDriftingClock() 64 int64_t jumpOffsetNanos = 0; in checkDriftingClock() 69 const int64_t startPositionFrames = HW_FRAMES_PER_BURST; // hardware in checkDriftingClock() 71 const int64_t markerTime = startTimeNanos + NANOS_PER_MILLISECOND in checkDriftingClock() 83 const int64_t elapsedTimeNanos = (int64_t)(elapsedTimeSeconds * NANOS_PER_SECOND); in checkDriftingClock() 84 const int64_t currentTimeNanos = startTimeNanos + elapsedTimeNanos; in checkDriftingClock() 86 const int64_t currentTimeFrames = startPositionFrames + in checkDriftingClock() 87 (int64_t)(hardwareFramesPerSecond * elapsedTimeSeconds); in checkDriftingClock() 88 const int64_t numBursts = currentTimeFrames / HW_FRAMES_PER_BURST; in checkDriftingClock() 89 const int64_t hardwarePosition = startPositionFrames in checkDriftingClock() [all …]
|
/frameworks/base/libs/hwui/ |
D | FrameInfo.h | 83 static constexpr int64_t INVALID_VSYNC_ID = -1; 84 static constexpr int64_t UNKNOWN_DEADLINE = std::numeric_limits<int64_t>::max(); 85 static constexpr int64_t UNKNOWN_FRAME_INTERVAL = -1; 88 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { in UiFrameInfoBuilder() 89 memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); in UiFrameInfoBuilder() 95 set(FrameInfoIndex::FrameDeadline) = std::numeric_limits<int64_t>::max(); in UiFrameInfoBuilder() 99 int64_t vsyncId, int64_t frameDeadline, nsecs_t frameInterval) { in setVsync() 121 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set() 123 int64_t* mBuffer; 128 void importUiThreadInfo(int64_t* info); [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/ |
D | NuPlayerRenderer.h | 74 status_t getCurrentPosition(int64_t *mediaUs); 75 int64_t getVideoLateByUs(); 154 static const int64_t kMinPositionUpdateDelayUs; 181 int64_t mAudioFirstAnchorTimeMediaUs; 183 int64_t mAudioAnchorTimeMediaUs; 185 int64_t mAnchorTimeMediaUs; 186 int64_t mAnchorNumFramesWritten; 187 int64_t mVideoLateByUs; 188 int64_t mNextVideoTimeMediaUs; 199 int64_t mPauseDrainAudioAllowedUs; // time when we can drain/deliver audio in pause mode. [all …]
|
/frameworks/native/libs/ftl/ |
D | cast_test.cpp | 67 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) - 1) == CastSafety::kSafe); 68 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>)) == CastSafety::kSafe); 69 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) + 1) == 79 static_assert(cast_safety<uint32_t>(max<int64_t>) == CastSafety::kOverflow); 81 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) - 1) == CastSafety::kSafe); 82 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>)) == CastSafety::kSafe); 83 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) + 1) == 93 static_assert(cast_safety<int32_t>(static_cast<int64_t>(min<int32_t>)) == CastSafety::kSafe); 94 static_assert(cast_safety<int32_t>(static_cast<int64_t>(max<int32_t>)) == CastSafety::kSafe); 97 static_assert(cast_safety<int32_t>(max<int64_t>) == CastSafety::kOverflow); [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaClock.cpp | 31 static const int64_t kAnchorFluctuationAllowedUs = 10000LL; 33 MediaClock::Timer::Timer(const sp<AMessage> ¬ify, int64_t mediaTimeUs, int64_t adjustRealUs) in Timer() 79 void MediaClock::setStartingTimeMedia(int64_t startingTimeMediaUs) { in setStartingTimeMedia() 90 int64_t anchorTimeMediaUs, in updateAnchor() 91 int64_t anchorTimeRealUs, in updateAnchor() 92 int64_t maxTimeMediaUs) { in updateAnchor() 99 int64_t nowUs = ALooper::GetNowUs(); in updateAnchor() 100 int64_t nowMediaUs = in updateAnchor() 111 int64_t oldNowMediaUs = in updateAnchor() 128 void MediaClock::updateMaxTimeMedia(int64_t maxTimeMediaUs) { in updateMaxTimeMedia() [all …]
|
/frameworks/av/services/audioflinger/timing/tests/ |
D | monotonicframecounter_tests.cpp | 31 const std::vector<std::pair<int64_t, int64_t>> frametimes{ in TEST() 35 int64_t maxReceivedFrameCount = 0; in TEST() 47 const std::vector<std::pair<int64_t, int64_t>> frametimes{ in TEST() 51 int64_t prevFrameCount = 0; in TEST() 52 int64_t maxReceivedFrameCount = 0; in TEST() 55 const int64_t frameCount = in TEST() 68 const std::vector<std::vector<std::pair<int64_t, int64_t>>> frameset{ in TEST() 74 int64_t prevFrameCount = 0; in TEST() 75 int64_t maxReceivedFrameCount = 0; in TEST() 76 int64_t sumMaxReceivedFrameCount = 0; in TEST() [all …]
|
/frameworks/av/services/audioflinger/timing/ |
D | MonotonicFrameCounter.h | 46 int64_t updateAndGetMonotonicFrameCount(int64_t newFrameCount, int64_t newTime); 53 int64_t onFlush(); 61 [[nodiscard]] int64_t getOffsetFrameCount() const { return mOffsetFrameCount; } in getOffsetFrameCount() 66 [[nodiscard]] int64_t getLastReceivedFrameCount() const { in getLastReceivedFrameCount() 73 [[nodiscard]] int64_t getLastReportedFrameCount() const { in getLastReportedFrameCount() 79 int64_t mOffsetFrameCount = 0; 80 int64_t mLastReceivedFrameCount = 0;
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | MediaClockFuzzer.cpp | 39 int64_t startingTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 48 int64_t anchorTimeRealUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 49 int64_t anchorTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 50 int64_t maxTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput() 56 int64_t maxTimeMediaUs = fdp.ConsumeIntegral<int64_t>(); in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/httplive/ |
D | LiveSession.h | 78 int64_t calculateMediaTimeUs(int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq); 92 status_t seekTo(int64_t timeUs, MediaPlayerSeekMode mode); 94 status_t getDuration(int64_t *durationUs) const; 139 static const int64_t kUpSwitchMarkUs; 140 static const int64_t kDownSwitchMarkUs; 141 static const int64_t kUpSwitchMarginUs; 142 static const int64_t kResumeThresholdUs; 151 int64_t mLastFailureUs; 156 int64_t mDurationUs; 166 int64_t mLastDequeuedTimeUs; [all …]
|
D | PlaylistFetcher.h | 38 static const int64_t kMinBufferedDurationUs; 40 static const int64_t kFetcherResumeThreshold; 71 int64_t startTimeUs = -1ll, // starting timestamps 72 int64_t segmentStartTimeUs = -1ll, // starting position within playlist 110 static const int64_t kMaxMonitorDelayUs; 127 int64_t mStartTimeUs; 132 int64_t mSegmentStartTimeUs; 143 int64_t mLastPlaylistFetchTimeUs; 144 int64_t mPlaylistTimeUs; 153 int64_t mNextPTSTimeUs; [all …]
|
/frameworks/av/media/module/bqhelper/include/media/stagefright/bqhelper/ |
D | GraphicBufferSource.h | 157 status_t setSuspend(bool suspend, int64_t timeUs); 166 status_t setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs); 170 status_t setTimeOffsetUs(int64_t timeOffsetUs); 196 status_t setStartTimeUs(int64_t startTimeUs); 200 status_t setStopTimeUs(int64_t stopTimeUs); 207 status_t getStopTimeOffsetUs(int64_t *stopTimeOffsetUs); 380 int64_t mLastFrameTimestampUs; 389 int64_t mStopTimeUs; 398 int64_t mActionTimeUs; 403 int64_t mLastActionTimeUs; [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerProperties.h | 32 int64_t vsync_event_phase_offset_ns(int64_t defaultValue); 34 int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue); 38 int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue); 49 int64_t present_time_offset_from_vsync_ns(int64_t defaultValue); 53 int64_t max_virtual_display_dimension(int64_t defaultValue); 62 int64_t default_composition_dataspace( 68 int64_t wcg_composition_dataspace(
|
/frameworks/av/media/libheadtracking/ |
D | ModeSelector.h | 68 int64_t freshnessTimeout = std::numeric_limits<int64_t>::max(); 87 void setScreenToHeadPose(int64_t timestamp, const std::optional<Pose3f>& screenToHead); 94 void setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead); 100 void setScreenStable(int64_t timestamp, bool stable); 105 void calculate(int64_t timestamp); 126 int64_t mScreenToHeadTimestamp; 128 int64_t mWorldToHeadTimestamp; 130 int64_t mScreenStableTimestamp; 138 void calculateActualMode(int64_t timestamp);
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | AudioPowerUsage.h | 91 bool saveAsItem_l(int32_t device, int64_t duration, int32_t type, double average_vol, 92 int64_t max_volume_duration, double max_volume, 93 int64_t min_volume_duration, double min_volume) 97 bool saveAsItems_l(int32_t device, int64_t duration, int32_t type, double average_vol, 98 int64_t max_volume_duration, double max_volume, 99 int64_t min_volume_duration, double min_volume) 102 const int64_t cur_max_volume_duration_ns, const double cur_max_volume, 103 const int64_t cur_min_volume_duration_ns, const double cur_min_volume, 104 int64_t& f_max_volume_duration_ns, double& f_max_volume, 105 int64_t& f_min_volume_duration_ns, double& f_min_volume); [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | VsyncEventData.h | 28 static constexpr int64_t kFrameTimelinesCapacity = 7; 31 int64_t frameInterval; 43 int64_t vsyncId; 47 int64_t deadlineTimestamp; 50 int64_t expectedPresentationTime; 54 int64_t preferredVsyncId() const; 57 int64_t preferredDeadlineTimestamp() const; 60 int64_t preferredExpectedPresentationTime() const;
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | JpegRCompositeStream.h | 55 int64_t dynamicProfile, int64_t streamUseCase, bool useReadoutTimestamp) override; 86 int64_t frameNumber; 99 void releaseInputFramesLocked(int64_t currentTs); 102 bool getNextReadyInputLocked(int64_t *currentTs /*inout*/); 105 int64_t getNextFailingInputLocked(int64_t *currentTs /*inout*/); 107 static void deriveDynamicRangeAndDataspace(int64_t dynamicProfile, int64_t* /*out*/dynamicRange, 108 int64_t* /*out*/dataSpace); 120 int64_t mP010DataSpace = HAL_DATASPACE_BT2020_HLG; 121 int64_t mP010DynamicRange = 129 int64_t mOutputStreamUseCase; [all …]
|