/frameworks/native/services/surfaceflinger/ |
D | BufferLayerConsumer.cpp | 181 auto buffer = mPendingRelease.isPending ? mPendingRelease.graphicBuffer in setReleaseFence() 182 : mCurrentTextureBuffer->graphicBuffer(); in setReleaseFence() 197 releaseBufferLocked(mPendingRelease.currentTexture, mPendingRelease.graphicBuffer); in releasePendingBuffer() 221 if (mImages[item->mSlot] == nullptr || mImages[item->mSlot]->graphicBuffer() == nullptr || in acquireBufferLocked() 222 mImages[item->mSlot]->graphicBuffer()->getId() != item->mGraphicBuffer->getId()) { in acquireBufferLocked() 237 (mCurrentTextureBuffer != nullptr && mCurrentTextureBuffer->graphicBuffer() != nullptr) in updateAndReleaseLocked() 238 ? mCurrentTextureBuffer->graphicBuffer()->handle in updateAndReleaseLocked() 256 releaseBufferLocked(mCurrentTexture, mCurrentTextureBuffer->graphicBuffer()); in updateAndReleaseLocked() 265 pendingRelease->graphicBuffer = mCurrentTextureBuffer->graphicBuffer(); in updateAndReleaseLocked() 294 if (mCurrentTextureBuffer != nullptr && mCurrentTextureBuffer->graphicBuffer() != nullptr) { in bindTextureImageLocked() [all …]
|
D | BufferLayerConsumer.h | 201 PendingRelease() : isPending(false), currentTexture(-1), graphicBuffer() {} in PendingRelease() 205 sp<GraphicBuffer> graphicBuffer; member 226 Image(const sp<GraphicBuffer>& graphicBuffer, renderengine::RenderEngine& engine); 228 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() function
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 254 const sp<GraphicBuffer> graphicBuffer, 258 const sp<GraphicBuffer> graphicBuffer, EGLSyncKHR eglFence) { in releaseBufferLocked() argument 259 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); in releaseBufferLocked() 264 graphicBuffer(), display(nullptr), fence(nullptr) {} in PendingRelease() 268 sp<GraphicBuffer> graphicBuffer; member 304 explicit EglImage(sp<GraphicBuffer> graphicBuffer); 315 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() function 327 const sp<GraphicBuffer>& graphicBuffer);
|
D | ConsumerBase.h | 201 const sp<GraphicBuffer> graphicBuffer, 205 bool stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer); 213 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 215 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
|
D | BufferItemConsumer.h | 41 virtual void onBufferFreed(const wp<GraphicBuffer>& graphicBuffer) = 0;
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | ClientBlockHelper.cpp | 61 sp<GraphicBuffer> graphicBuffer = in createGraphicBuffer() local 67 return graphicBuffer; in createGraphicBuffer() 114 sp<GraphicBuffer> graphicBuffer = createGraphicBuffer(block); in attachToBufferQueue() local 115 graphicBuffer->setGenerationNumber(generation); in attachToBufferQueue() 120 << ", graphicBuffer dimension " << graphicBuffer->getWidth() << "x" in attachToBufferQueue() 121 << graphicBuffer->getHeight() in attachToBufferQueue() 123 << ", format 0x" << std::setw(8) << graphicBuffer->getPixelFormat() in attachToBufferQueue() 124 << ", usage 0x" << std::setw(16) << graphicBuffer->getUsage() in attachToBufferQueue() 126 << ", stride " << graphicBuffer->getStride() in attachToBufferQueue() 127 << ", generation " << graphicBuffer->getGenerationNumber(); in attachToBufferQueue() [all …]
|
/frameworks/base/libs/hwui/surfacetexture/ |
D | EGLConsumer.h | 121 , graphicBuffer() in PendingRelease() 127 sp<GraphicBuffer> graphicBuffer; member 170 EglImage(sp<GraphicBuffer> graphicBuffer); 184 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() function 195 EGLImageKHR createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer);
|
D | ImageConsumer.cpp | 71 void makeImage(sp<GraphicBuffer>& graphicBuffer, android_dataspace dataspace, 143 void AutoBackendTextureRelease::makeImage(sp<GraphicBuffer>& graphicBuffer, in makeImage() argument 146 graphicBuffer->getPixelFormat()); in makeImage() 167 void ImageConsumer::ImageSlot::createIfNeeded(sp<GraphicBuffer> graphicBuffer, in createIfNeeded() argument 172 if (!graphicBuffer.get()) { in createIfNeeded() 178 mTextureRelease = new AutoBackendTextureRelease(context, graphicBuffer.get()); in createIfNeeded() 184 mTextureRelease->makeImage(graphicBuffer, dataspace, context); in createIfNeeded()
|
D | EGLConsumer.cpp | 288 st.mCurrentTexture, mCurrentTextureImage->graphicBuffer(), mEglDisplay, in updateAndReleaseLocked() 298 pendingRelease->graphicBuffer = mCurrentTextureImage->graphicBuffer(); in updateAndReleaseLocked() 497 mCurrentTextureImage->graphicBuffer(), fence); in syncForReleaseLocked() 604 EGLConsumer::EglImage::EglImage(sp<GraphicBuffer> graphicBuffer) in EglImage() argument 605 : mGraphicBuffer(graphicBuffer), mEglImage(EGL_NO_IMAGE_KHR), mEglDisplay(EGL_NO_DISPLAY) {} in EglImage() 653 const sp<GraphicBuffer>& graphicBuffer) { in createImage() argument 654 EGLClientBuffer cbuf = static_cast<EGLClientBuffer>(graphicBuffer->getNativeBuffer()); in createImage() 656 (graphicBuffer->getUsage() & GRALLOC_USAGE_PROTECTED) && hasEglProtectedContent(); in createImage()
|
D | ImageConsumer.h | 77 void createIfNeeded(sp<GraphicBuffer> graphicBuffer, android_dataspace dataspace,
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
D | Conversion.h | 411 inline CodecBuffer *wrapAs(CodecBuffer *t, sp<GraphicBuffer> const& graphicBuffer) { in wrapAs() argument 415 if (graphicBuffer == nullptr) { in wrapAs() 424 t->attr.anwBuffer.width = graphicBuffer->getWidth(); in wrapAs() 425 t->attr.anwBuffer.height = graphicBuffer->getHeight(); in wrapAs() 426 t->attr.anwBuffer.stride = graphicBuffer->getStride(); in wrapAs() 428 graphicBuffer->getPixelFormat()); in wrapAs() 429 t->attr.anwBuffer.layerCount = graphicBuffer->getLayerCount(); in wrapAs() 430 t->attr.anwBuffer.usage = graphicBuffer->getUsage(); in wrapAs() 431 t->nativeHandle = graphicBuffer->handle; in wrapAs() 511 sp<GraphicBuffer> graphicBuffer = new GraphicBuffer(); in convertTo() local [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | FrameRenderTracker.h | 60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, in RenderedFrameInfo() 65 mGraphicBuffer(graphicBuffer), in RenderedFrameInfo() 101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
|
/frameworks/native/libs/gui/ |
D | ConsumerBase.cpp | 372 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence() argument 374 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence() 378 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked() argument 383 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked() 439 int slot, const sp<GraphicBuffer> graphicBuffer, in releaseBufferLocked() argument 448 if (!stillTracking(slot, graphicBuffer)) { in releaseBufferLocked() 467 const sp<GraphicBuffer> graphicBuffer) { in stillTracking() argument 472 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()
|
D | GLConsumer.cpp | 345 sp<GraphicBuffer> graphicBuffer, in releaseBufferLocked() argument 352 buf, graphicBuffer, display, eglFence); in releaseBufferLocked() 422 mCurrentTexture, mCurrentTextureImage->graphicBuffer(), in updateAndReleaseLocked() 432 pendingRelease->graphicBuffer = in updateAndReleaseLocked() 433 mCurrentTextureImage->graphicBuffer(); in updateAndReleaseLocked() 540 mCurrentTextureImage->graphicBuffer(), fence); in setReleaseFence() 668 mCurrentTextureImage->graphicBuffer(), fence); in syncForReleaseLocked() 740 nullptr : mCurrentTextureImage->graphicBuffer(); in computeCurrentTransformMatrixLocked() 815 nullptr : mCurrentTextureImage->graphicBuffer(); in getCurrentBuffer() 937 GLConsumer::EglImage::EglImage(sp<GraphicBuffer> graphicBuffer) : in EglImage() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | HardwareBitmapUploader.cpp | 74 sp<GraphicBuffer> graphicBuffer) { in uploadHardwareBitmap() argument 77 bool result = onUploadHardwareBitmap(bitmap, format, graphicBuffer); in uploadHardwareBitmap() 96 sp<GraphicBuffer> graphicBuffer) = 0; 168 sp<GraphicBuffer> graphicBuffer) override { in onUploadHardwareBitmap() argument 177 EGLClientBuffer clientBuffer = (EGLClientBuffer)graphicBuffer->getNativeBuffer(); in onUploadHardwareBitmap() 266 sp<GraphicBuffer> graphicBuffer) override { in onUploadHardwareBitmap() argument 272 bitmap.pixmap(), reinterpret_cast<AHardwareBuffer*>(graphicBuffer.get())); in onUploadHardwareBitmap()
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/ |
D | OMXNodeInstance.h | 205 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, 209 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, 213 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, 222 IOMX::buffer_id buffer, const sp<GraphicBuffer> &graphicBuffer, 272 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer,
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXNodeInstance.cpp | 122 explicit BufferMeta(const sp<GraphicBuffer> &graphicBuffer, OMX_U32 portIndex) in BufferMeta() 123 : mGraphicBuffer(graphicBuffer), in BufferMeta() 171 void setGraphicBuffer(const sp<GraphicBuffer> &graphicBuffer) { in setGraphicBuffer() 172 mGraphicBuffer = graphicBuffer; in setGraphicBuffer() 1285 OMX_U32 portIndex, const sp<GraphicBuffer>& graphicBuffer, in useGraphicBuffer2_l() argument 1287 if (graphicBuffer == NULL || buffer == NULL) { in useGraphicBuffer2_l() 1304 BufferMeta *bufferMeta = new BufferMeta(graphicBuffer, portIndex); in useGraphicBuffer2_l() 1308 reinterpret_cast<const OMX_U8*>(graphicBuffer->handle)); in useGraphicBuffer2_l() 1341 OMX_U32 portIndex, const sp<GraphicBuffer>& graphicBuffer, in useGraphicBuffer_l() argument 1343 if (graphicBuffer == NULL || buffer == NULL) { in useGraphicBuffer_l() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.cpp | 281 buffer.graphicBuffer = new GraphicBuffer( in getBufferForStream() 285 status_t res = buffer.graphicBuffer->initCheck(); in getBufferForStream() 289 buffer.graphicBuffer.get(), buffer.graphicBuffer->handle); in getBufferForStream() 306 *gb = buffer.graphicBuffer; in getBufferForStream() 309 __FUNCTION__, buffer.graphicBuffer.get(), buffer.graphicBuffer->handle); in getBufferForStream()
|
D | Camera3BufferManager.h | 208 sp<GraphicBuffer> graphicBuffer; member 211 graphicBuffer(gb), in graphicBuffer() function
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestVirtualDisplay.cpp | 76 ComparatorResult::get().CompareBuffers(mOutputBuffer.graphicBuffer(), in verifyOutputBuffer() 77 mExpectedBuffer.graphicBuffer()); in verifyOutputBuffer()
|
/frameworks/base/core/java/android/hardware/ |
D | HardwareBuffer.java | 227 public static HardwareBuffer createFromGraphicBuffer(@NonNull GraphicBuffer graphicBuffer) { in createFromGraphicBuffer() argument 228 long nativeObject = nCreateFromGraphicBuffer(graphicBuffer); in createFromGraphicBuffer() 424 private static native long nCreateFromGraphicBuffer(GraphicBuffer graphicBuffer); in nCreateFromGraphicBuffer() argument
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 136 sk_sp<Bitmap> Bitmap::createFrom(sp<GraphicBuffer> graphicBuffer, SkColorType colorType, in createFrom() argument 139 SkImageInfo info = SkImageInfo::Make(graphicBuffer->getWidth(), graphicBuffer->getHeight(), in createFrom() 141 return sk_sp<Bitmap>(new Bitmap(graphicBuffer.get(), info, palette)); in createFrom() 321 GraphicBuffer* Bitmap::graphicBuffer() { in graphicBuffer() function in android::Bitmap
|
D | Bitmap.h | 74 static sk_sp<Bitmap> createFrom(sp<GraphicBuffer> graphicBuffer, 108 GraphicBuffer* graphicBuffer();
|
/frameworks/av/media/libstagefright/ |
D | FrameRenderTracker.cpp | 46 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) { in onFrameQueued() argument 47 mRenderQueue.emplace_back(mediaTimeUs, graphicBuffer, fence); in onFrameQueued()
|
/frameworks/base/core/java/android/app/ |
D | SharedElementCallback.java | 189 GraphicBuffer graphicBuffer = bitmap.createGraphicBufferHandle(); in onCaptureSharedElementSnapshot() local 190 bundle.putParcelable(BUNDLE_SNAPSHOT_GRAPHIC_BUFFER, graphicBuffer); in onCaptureSharedElementSnapshot()
|