Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DVideoFrameScheduler2.cpp146 double sampleAvgX = 0.0; in updateModelLocked() local
154 sampleAvgX += cos(samplePhase); in updateModelLocked()
158 sampleAvgX /= (double) mNumSamples - 1.0; in updateModelLocked()
160 mPhase = (long) (atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.cpp680 double sampleAvgX = 0; in updateModelLocked() local
688 sampleAvgX += cos(samplePhase); in updateModelLocked()
692 sampleAvgX /= double(mNumResyncSamples - 1); in updateModelLocked()
695 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale); in updateModelLocked()