Home
last modified time | relevance | path

Searched refs:outBuffer (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp51 status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer, in acquireBuffer() argument
209 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
210 outBuffer->mFence = Fence::NO_FENCE; in acquireBuffer()
211 outBuffer->mFenceTime = FenceTime::NO_FENCE; in acquireBuffer()
212 outBuffer->mCrop = mCore->mSharedBufferCache.crop; in acquireBuffer()
213 outBuffer->mTransform = mCore->mSharedBufferCache.transform & in acquireBuffer()
216 outBuffer->mScalingMode = mCore->mSharedBufferCache.scalingMode; in acquireBuffer()
217 outBuffer->mDataSpace = mCore->mSharedBufferCache.dataspace; in acquireBuffer()
218 outBuffer->mFrameNumber = mCore->mFrameCounter; in acquireBuffer()
219 outBuffer->mSlot = slot; in acquireBuffer()
[all …]
DIGraphicBufferProducer.cpp188 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument
190 if (outBuffer == NULL) { in detachNextBuffer()
207 *outBuffer = new GraphicBuffer; in detachNextBuffer()
208 result = reply.read(**outBuffer); in detachNextBuffer()
210 outBuffer->clear(); in detachNextBuffer()
219 outBuffer->clear(); in detachNextBuffer()
432 virtual status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer, in getLastQueuedBuffer() argument
465 *outBuffer = buffer; in getLastQueuedBuffer()
561 sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence) override { in detachNextBuffer() argument
562 return mBase->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
[all …]
/frameworks/native/cmds/surfacereplayer/replayer/
DBufferQueueScheduler.cpp81 ANativeWindow_Buffer outBuffer; in fillSurface() local
84 status_t status = s->lock(&outBuffer, nullptr); in fillSurface()
93 auto img = reinterpret_cast<uint8_t*>(outBuffer.bits); in fillSurface()
94 for (int y = 0; y < outBuffer.height; y++) { in fillSurface()
95 for (int x = 0; x < outBuffer.width; x++) { in fillSurface()
96 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x)); in fillSurface()
/frameworks/av/media/libstagefright/filters/
DZeroFilter.cpp41 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument
45 uint32_t* dest = (uint32_t*)outBuffer->data(); in processBuffers()
50 memcpy(outBuffer->data(), srcBuffer->data(), srcBuffer->size()); in processBuffers()
52 outBuffer->setRange(0, srcBuffer->size()); in processBuffers()
DRSFilter.cpp88 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument
91 mAllocOut->copy1DRangeTo(0, mWidth * mHeight, outBuffer->data()); in processBuffers()
DSaturationFilter.cpp91 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument
94 mAllocOut->copy1DRangeTo(0, mWidth * mHeight, outBuffer->data()); in processBuffers()
DIntrinsicBlurFilter.cpp91 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument
94 mAllocOut->copy1DRangeTo(0, mWidth * mHeight, outBuffer->data()); in processBuffers()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp121 sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence, in nextBuffer() argument
124 status_t FramebufferSurface::nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence) { in nextBuffer()
133 &outSlot, &outBuffer); in nextBuffer()
135 outBuffer = mCurrentBuffer; in nextBuffer()
174 &outSlot, &outBuffer); in nextBuffer()
177 mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace); in nextBuffer()
183 outBuffer = mCurrentBuffer; in nextBuffer()
DHWComposerBufferCache.cpp30 uint32_t* outSlot, sp<GraphicBuffer>* outBuffer) in getHwcBuffer() argument
45 *outBuffer = nullptr; in getHwcBuffer()
47 *outBuffer = buffer; in getHwcBuffer()
DFramebufferSurface.h72 status_t nextBuffer(uint32_t& outSlot, sp<GraphicBuffer>& outBuffer,
75 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence);
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp270 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
279 outBuffer == NULL || outBuffer->raw == NULL || in LE_process()
280 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
298 if (inBuffer->raw != outBuffer->raw) { in LE_process()
300 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in LE_process()
301 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process()
304 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in LE_process()
/frameworks/base/libs/input/
DSpriteController.cpp205 ANativeWindow_Buffer outBuffer; in doUpdateSprites() local
206 status_t status = surface->lock(&outBuffer, NULL); in doUpdateSprites()
211 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in doUpdateSprites()
212 … surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height), in doUpdateSprites()
213 outBuffer.bits, bpr); in doUpdateSprites()
221 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites()
224 outBuffer.width, update.state.icon.bitmap.height()), paint); in doUpdateSprites()
226 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites()
229 outBuffer.width, outBuffer.height), paint); in doUpdateSprites()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp43 int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer) { in AHardwareBuffer_allocate() argument
44 if (!outBuffer || !desc) in AHardwareBuffer_allocate()
78 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gbuffer.get()); in AHardwareBuffer_allocate()
81 AHardwareBuffer_acquire(*outBuffer); in AHardwareBuffer_allocate()
199 int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer) { in AHardwareBuffer_recvHandleFromUnixSocket() argument
200 if (!outBuffer) return BAD_VALUE; in AHardwareBuffer_recvHandleFromUnixSocket()
263 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gBuffer); in AHardwareBuffer_recvHandleFromUnixSocket()
265 AHardwareBuffer_acquire(*outBuffer); in AHardwareBuffer_recvHandleFromUnixSocket()
/frameworks/base/core/jni/
Dandroid_view_Surface.cpp322 ANativeWindow_Buffer outBuffer; in nativeLockCanvas() local
323 status_t err = surface->lock(&outBuffer, dirtyRectPtr); in nativeLockCanvas()
332 SkImageInfo info = SkImageInfo::Make(outBuffer.width, outBuffer.height, in nativeLockCanvas()
333 convertPixelFormat(outBuffer.format), in nativeLockCanvas()
334 outBuffer.format == PIXEL_FORMAT_RGBX_8888 in nativeLockCanvas()
339 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
341 if (outBuffer.width > 0 && outBuffer.height > 0) { in nativeLockCanvas()
342 bitmap.setPixels(outBuffer.bits); in nativeLockCanvas()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp312 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
321 outBuffer == NULL || outBuffer->raw == NULL || in Visualizer_process()
322 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
402 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process()
404 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in Visualizer_process()
405 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
408 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp82 status_t MonitoredProducer::detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument
84 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
147 status_t MonitoredProducer::getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer, in getLastQueuedBuffer() argument
149 return mProducer->getLastQueuedBuffer(outBuffer, outFence, in getLastQueuedBuffer()
DMonitoredProducer.h46 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer,
64 virtual status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer,
/frameworks/native/libs/nativewindow/include/android/
Dhardware_buffer.h160 AHardwareBuffer** outBuffer);
242 int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer);
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c308 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
319 outBuffer == NULL || outBuffer->raw == NULL || in Downmix_Process()
320 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
335 pDst = outBuffer->s16; in Downmix_Process()
336 size_t numFrames = outBuffer->frameCount; in Downmix_Process()
407 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
418 outBuffer == NULL || outBuffer->raw == NULL || in Downmix_Process()
419 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
434 pDst = (LVM_FLOAT *) outBuffer->s16; in Downmix_Process()
435 size_t numFrames = outBuffer->frameCount; in Downmix_Process()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfUtils.cpp31 int getBlock(void* param, unsigned long position, unsigned char* outBuffer, in getBlock() argument
34 const int readCount = pread(fd, outBuffer, size, position); in getBlock()
/frameworks/native/libs/gui/tests/
DMalicious.cpp47 status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence) override { in detachNextBuffer() argument
48 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
89 status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence, in getLastQueuedBuffer() argument
91 return mProducer->getLastQueuedBuffer(outBuffer, outFence, outTransformMatrix); in getLastQueuedBuffer()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp604 …C" int Equalizer_process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Equalizer_process() argument
612 outBuffer == NULL || outBuffer->raw == NULL || in Equalizer_process()
613 inBuffer->frameCount != outBuffer->frameCount) { in Equalizer_process()
624 pContext->adapter.process(inBuffer->raw, outBuffer->raw, outBuffer->frameCount); in Equalizer_process()
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferProducer.cpp118 sp<GraphicBuffer> outBuffer; in detachNextBuffer() local
120 status_t status = mBase->detachNextBuffer(&outBuffer, &outFence); in detachNextBuffer()
124 if (outBuffer == nullptr) { in detachNextBuffer()
130 wrapAs(&tBuffer, *outBuffer); in detachNextBuffer()
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp65 std::vector<GLubyte> outBuffer(width * height * 3); in writePPM() local
91 auto outPtr = reinterpret_cast<char*>(outBuffer.data()); in writePPM()
104 file.write(reinterpret_cast<char*>(outBuffer.data()), outBuffer.size()); in writePPM()
/frameworks/native/libs/gui/include/gui/
DBufferQueueProducer.h92 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer,
177 virtual status_t getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer,

1234