Lines Matching refs:buffer
133 OMX_ERRORTYPE OMXVideoDecoderAVC::PrepareDecodeBuffer(OMX_BUFFERHEADERTYPE *buffer, buffer_retain_t… in PrepareDecodeBuffer() argument
135 ret = OMXVideoDecoderBase::PrepareDecodeBuffer(buffer, retain, p); in PrepareDecodeBuffer()
140 if (buffer->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in PrepareDecodeBuffer()
146 if (buffer->nFlags & (OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_EOS)) { in PrepareDecodeBuffer()
149 mTimeStamp = buffer->nTimeStamp; in PrepareDecodeBuffer()
155 ret = AccumulateBuffer(buffer); in PrepareDecodeBuffer()
166 mTimeStamp = buffer->nTimeStamp; in PrepareDecodeBuffer()
169 if (mTimeStamp != buffer->nTimeStamp && mFilledLen != 0) { in PrepareDecodeBuffer()
178 ret = AccumulateBuffer(buffer); in PrepareDecodeBuffer()
183 if (buffer->nFilledLen != 0) { in PrepareDecodeBuffer()
184 mTimeStamp = buffer->nTimeStamp; in PrepareDecodeBuffer()
189 OMX_ERRORTYPE OMXVideoDecoderAVC::AccumulateBuffer(OMX_BUFFERHEADERTYPE *buffer) { in AccumulateBuffer() argument
191 if (mFilledLen + buffer->nFilledLen > mBufferSize) { in AccumulateBuffer()
192 mBufferSize = mFilledLen + buffer->nFilledLen; in AccumulateBuffer()
212 if (buffer->nFilledLen != 0) { in AccumulateBuffer()
213 … memcpy(mAccumulateBuffer + mFilledLen, buffer->pBuffer + buffer->nOffset, buffer->nFilledLen); in AccumulateBuffer()
215 mFilledLen += buffer->nFilledLen; in AccumulateBuffer()