Home
last modified time | relevance | path

Searched refs:gbp (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp207 sp<IGraphicBufferProducer> gbp = outputQueue->getIGraphicBufferProducer(); in addOutputLocked() local
209 sp<OutputListener> listener(new OutputListener(this, gbp)); in addOutputLocked()
210 IInterface::asBinder(gbp)->linkToDeath(listener); in addOutputLocked()
253 res = gbp->allowAllocation(false); in addOutputLocked()
260 mOutputs[surfaceId] = gbp; in addOutputLocked()
266 mNotifiers[gbp] = listener; in addOutputLocked()
267 mOutputSlots[gbp] = std::make_unique<OutputSlots>(totalBufferCount); in addOutputLocked()
300 sp<IGraphicBufferProducer> gbp = mOutputs[surfaceId]; in removeOutputLocked() local
304 auto& outputSlots = *mOutputSlots[gbp]; in removeOutputLocked()
308 auto rc = gbp->detachBuffer(i); in removeOutputLocked()
[all …]
DCamera3StreamSplitter.h225 int getSlotForOutputLocked(const sp<IGraphicBufferProducer>& gbp,
/frameworks/native/libs/gui/
DISurfaceComposerClient.cpp52 sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp, in createSurface() argument
58 handle, gbp, outLayerId, in createSurface()
66 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId, in createWithSurfaceParent() argument
72 std::move(metadata), handle, gbp, in createWithSurfaceParent()
DSurfaceControl.cpp52 const sp<IGraphicBufferProducer>& gbp, int32_t layerId, in SurfaceControl() argument
57 mGraphicBufferProducer(gbp), in SurfaceControl()
DBLASTBufferQueue.cpp642 auto gbp = getIGraphicBufferProducer(); in allocateBuffers() local
643 std::thread ([reqWidth, reqHeight, gbp=getIGraphicBufferProducer(), in allocateBuffers()
645 gbp->allocateBuffers(reqWidth, reqHeight, in allocateBuffers()
DSurfaceComposerClient.cpp1856 sp<IGraphicBufferProducer> gbp; in createWithSurfaceParent() local
1861 std::move(metadata), &handle, &gbp, &id, in createWithSurfaceParent()
1868 return new SurfaceControl(this, handle, gbp, id, transformHint); in createWithSurfaceParent()
1885 sp<IGraphicBufferProducer> gbp; in createSurfaceChecked() local
1890 &handle, &gbp, &id, &transformHint); in createSurfaceChecked()
1898 new SurfaceControl(this, handle, gbp, id, w, h, format, transformHint, flags); in createSurfaceChecked()
/frameworks/native/services/surfaceflinger/
DClient.cpp82 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId, in createSurface() argument
85 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createSurface()
93 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId, in createWithSurfaceParent() argument
106 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createWithSurfaceParent()
DClient.h53 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
60 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
DSurfaceFlinger.h871 sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp,
DSurfaceFlinger.cpp4292 sp<IGraphicBufferProducer>* gbp, in createLayer() argument
4354 result = addClientLayer(client, *handle, *gbp, layer, parentHandle, parentLayer, addToRoot, in createLayer()
4395 sp<IGraphicBufferProducer>* gbp, in createBufferQueueLayer() argument
4422 *gbp = layer->getProducer(); in createBufferQueueLayer()
/frameworks/av/camera/include/camera/camera2/
DOutputConfiguration.h71 OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation,
140 void addGraphicProducer(sp<IGraphicBufferProducer> gbp) {mGbps.push_back(gbp);} in addGraphicProducer() argument
/frameworks/native/libs/gui/include/gui/
DISurfaceComposerClient.h62 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
72 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
DSurfaceControl.h95 const sp<IGraphicBufferProducer>& gbp, int32_t layerId,
/frameworks/base/core/jni/
Dandroid_hardware_camera2_utils_SurfaceUtils.cpp193 sp<IGraphicBufferProducer> gbp = s->getIGraphicBufferProducer(); in SurfaceUtils_nativeGetSurfaceId() local
194 if (gbp == NULL) { in SurfaceUtils_nativeGetSurfaceId()
198 sp<IBinder> b = IInterface::asBinder(gbp); in SurfaceUtils_nativeGetSurfaceId()
Dandroid_hardware_Camera.cpp679 sp<IGraphicBufferProducer> gbp; in android_hardware_Camera_setPreviewSurface() local
684 gbp = surface->getIGraphicBufferProducer(); in android_hardware_Camera_setPreviewSurface()
688 if (camera->setPreviewTarget(gbp) != NO_ERROR) { in android_hardware_Camera_setPreviewSurface()
725 sp<IGraphicBufferProducer> gbp; in android_hardware_Camera_setPreviewCallbackSurface() local
730 gbp = surface->getIGraphicBufferProducer(); in android_hardware_Camera_setPreviewCallbackSurface()
736 if (camera->setPreviewCallbackTarget(gbp) != NO_ERROR) { in android_hardware_Camera_setPreviewCallbackSurface()
/frameworks/av/camera/camera2/
DOutputConfiguration.cpp192 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, in OutputConfiguration() argument
195 mGbps.push_back(gbp); in OutputConfiguration()
239 for (auto& gbp : mGbps) { in writeToParcel() local
242 surfaceShim.graphicBufferProducer = gbp; in writeToParcel()
/frameworks/av/services/camera/libcameraservice/utils/
DSessionConfigurationUtils.h98 sp<Surface>& surface, const sp<IGraphicBufferProducer>& gbp,
DSessionConfigurationUtils.cpp292 sp<Surface>& surface, const sp<IGraphicBufferProducer>& gbp, in createSurfaceFromGbp() argument
296 if (gbp == nullptr) { in createSurfaceFromGbp()
307 if ((err = gbp->getConsumerUsage(&consumerUsage)) != OK) { in createSurfaceFromGbp()
327 surface = new Surface(gbp, useAsync); in createSurfaceFromGbp()
/frameworks/native/libs/vr/libdvr/
Ddvr_buffer_queue.cpp32 sp<IGraphicBufferProducer> gbp = BufferHubProducer::Create(producer_queue_); in GetNativeWindow() local
33 native_window_ = new Surface(gbp, true); in GetNativeWindow()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp170 binder::Status CameraDeviceClient::insertGbpLocked(const sp<IGraphicBufferProducer>& gbp, in insertGbpLocked() argument
173 int idx = mStreamMap.indexOfKey(IInterface::asBinder(gbp)); in insertGbpLocked()
182 } else if ((compositeIdx = mCompositeStreamMap.indexOfKey(IInterface::asBinder(gbp))) in insertGbpLocked()
305 sp<IGraphicBufferProducer> gbp = surface->getIGraphicBufferProducer(); in submitRequestList() local
306 res = insertGbpLocked(gbp, &surfaceMap, &outputStreamIds, &streamId); in submitRequestList()
1690 for (const auto& gbp : mConfiguredOutputs[streamId].getGraphicBufferProducers()) { in switchToOffline() local
1691 sp<Surface> s = new Surface(gbp, false /*controlledByApp*/); in switchToOffline()
1695 auto compositeIdx = mCompositeStreamMap.indexOfKey(IInterface::asBinder(gbp)); in switchToOffline()
DCameraDeviceClient.h288 binder::Status insertGbpLocked(const sp<IGraphicBufferProducer>& gbp,
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp685 IGraphicBufferProducer* gbp = ImageReader_getProducer(env, thiz); in ImageReader_getSurface() local
686 if (gbp == NULL) { in ImageReader_getSurface()
692 return android_view_Surface_createFromIGraphicBufferProducer(env, gbp); in ImageReader_getSurface()
/frameworks/av/media/codec2/sfplugin/
DCCodec.cpp1473 android::sp<HGraphicBufferProducer> gbp; in CreateOmxInputSurface() local
1478 [&s, &gbp, &gbs]( in CreateOmxInputSurface()
1483 gbp = producer; in CreateOmxInputSurface()
1487 return new PersistentSurface(new H2BGraphicBufferProducer(gbp), gbs); in CreateOmxInputSurface()
2487 sp<IGraphicBufferProducer> gbp; in CreateInputSurface() local