HomeSort by relevance Sort by last modified time
    Searched refs:mMaxFrames (Results 1 - 6 of 6) sorted by null

  /frameworks/av/include/media/nbaio/
Pipe.h 50 virtual ssize_t availableToWrite() const { return mMaxFrames; }
56 const size_t mMaxFrames; // always a power of 2
MonoPipe.h 81 size_t maxFrames() const { return mMaxFrames; }
116 const size_t mMaxFrames; // always a power of 2
118 // mFront and mRear will never be separated by more than mMaxFrames.
120 // safe because we "&" with (mMaxFrames-1) at end of computations to calculate a buffer index.
  /frameworks/av/media/libnbaio/
Pipe.cpp 30 mMaxFrames(roundup(maxFrames)),
31 mBuffer(malloc(mMaxFrames * Format_frameSize(format))),
50 size_t rear = mRear & (mMaxFrames - 1);
51 size_t written = mMaxFrames - rear;
56 if (CC_UNLIKELY(rear + written == mMaxFrames)) {
PipeReader.cpp 51 if (CC_UNLIKELY(avail > mPipe.mMaxFrames)) {
54 mFront = rear - mPipe.mMaxFrames + (mPipe.mMaxFrames >> 4);
73 size_t front = mFront & (mPipe.mMaxFrames - 1);
74 size_t red = mPipe.mMaxFrames - front;
81 if (CC_UNLIKELY(front + red == mPipe.mMaxFrames)) {
MonoPipeReader.cpp 42 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames));
70 size_t front = mPipe->mFront & (mPipe->mMaxFrames - 1);
71 size_t part1 = mPipe->mMaxFrames - front;
77 if (CC_UNLIKELY(front + part1 == mPipe->mMaxFrames)) {
MonoPipe.cpp 37 mMaxFrames(roundup(reqFrames)),
38 mBuffer(malloc(mMaxFrames * Format_frameSize(format))),
93 // uses mMaxFrames not mReqFrames, so allows "over-filling" the pipe beyond requested limit
94 ssize_t ret = mMaxFrames - (mRear - android_atomic_acquire_load(&mFront));
95 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames));
112 size_t rear = mRear & (mMaxFrames - 1);
113 size_t part1 = mMaxFrames - rear;
119 if (CC_UNLIKELY(rear + part1 == mMaxFrames)) {
137 size_t filled = (mMaxFrames - avail) + written;
226 size_t pendingFrames = (mRear - front) & (mMaxFrames - 1)
    [all...]

Completed in 2835 milliseconds