Home
last modified time | relevance | path

Searched refs:sampleAvgY (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/
DVideoFrameScheduler2.cpp147 double sampleAvgY = 0.0; in updateModelLocked() local
155 sampleAvgY += sin(samplePhase); in updateModelLocked()
159 sampleAvgY /= (double) mNumSamples - 1.0; in updateModelLocked()
160 mPhase = (long) (atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.cpp681 double sampleAvgY = 0; in updateModelLocked() local
689 sampleAvgY += sin(samplePhase); in updateModelLocked()
693 sampleAvgY /= double(mNumResyncSamples - 1); in updateModelLocked()
695 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()