Home
last modified time | relevance | path

Searched refs:mMaxFrames (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libnbaio/
DPipeReader.cpp56 if (CC_UNLIKELY(avail > mPipe.mMaxFrames)) { in availableToRead()
59 mFront = rear - mPipe.mMaxFrames + (mPipe.mMaxFrames >> 4); in availableToRead()
78 size_t front = mFront & (mPipe.mMaxFrames - 1); in read()
79 size_t red = mPipe.mMaxFrames - front; in read()
86 if (CC_UNLIKELY(front + red == mPipe.mMaxFrames)) { in read()
DPipe.cpp30 mMaxFrames(roundup(maxFrames)), in Pipe()
31 mBuffer(buffer == NULL ? malloc(mMaxFrames * Format_frameSize(format)) : buffer), in Pipe()
53 size_t rear = mRear & (mMaxFrames - 1); in write()
54 size_t written = mMaxFrames - rear; in write()
59 if (CC_UNLIKELY(rear + written == mMaxFrames)) { in write()
DMonoPipe.cpp36 mMaxFrames(roundup(reqFrames)), in MonoPipe()
37 mBuffer(malloc(mMaxFrames * Format_frameSize(format))), in MonoPipe()
62 ssize_t ret = mMaxFrames - (mRear - android_atomic_acquire_load(&mFront)); in availableToWrite()
63 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames)); in availableToWrite()
80 size_t rear = mRear & (mMaxFrames - 1); in write()
81 size_t part1 = mMaxFrames - rear; in write()
87 if (CC_UNLIKELY(rear + part1 == mMaxFrames)) { in write()
105 size_t filled = (mMaxFrames - avail) + written; in write()
DMonoPipeReader.cpp42 ALOG_ASSERT((0 <= ret) && ((size_t) ret <= mPipe->mMaxFrames)); in availableToRead()
56 size_t front = mPipe->mFront & (mPipe->mMaxFrames - 1); in read()
57 size_t part1 = mPipe->mMaxFrames - front; in read()
63 if (CC_UNLIKELY(front + part1 == mPipe->mMaxFrames)) { in read()
/frameworks/av/include/media/nbaio/
DPipe.h54 virtual ssize_t availableToWrite() const { return mMaxFrames; } in availableToWrite()
60 const size_t mMaxFrames; // always a power of 2
DMonoPipe.h66 size_t maxFrames() const { return mMaxFrames; } in maxFrames()
84 const size_t mMaxFrames; // always a power of 2 variable