Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp212 sp<IGraphicBufferProducer> gbp = outputQueue->getIGraphicBufferProducer(); in addOutputLocked() local
214 sp<OutputListener> listener(new OutputListener(this, gbp)); in addOutputLocked()
215 IInterface::asBinder(gbp)->linkToDeath(listener); in addOutputLocked()
258 res = gbp->allowAllocation(false); in addOutputLocked()
265 mOutputs[surfaceId] = gbp; in addOutputLocked()
272 mNotifiers[gbp] = listener; in addOutputLocked()
273 mOutputSlots[gbp] = std::make_unique<OutputSlots>(totalBufferCount); in addOutputLocked()
306 sp<IGraphicBufferProducer> gbp = mOutputs[surfaceId]; in removeOutputLocked() local
310 auto& outputSlots = *mOutputSlots[gbp]; in removeOutputLocked()
314 auto rc = gbp->detachBuffer(i); in removeOutputLocked()
[all …]
DCamera3StreamSplitter.h228 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.cpp860 auto gbp = getIGraphicBufferProducer(); in allocateBuffers() local
861 std::thread ([reqWidth, reqHeight, gbp=getIGraphicBufferProducer(), in allocateBuffers()
863 gbp->allocateBuffers(reqWidth, reqHeight, in allocateBuffers()
DSurfaceComposerClient.cpp2091 sp<IGraphicBufferProducer> gbp; in createWithSurfaceParent() local
2096 std::move(metadata), &handle, &gbp, &id, in createWithSurfaceParent()
2103 return new SurfaceControl(this, handle, gbp, id, transformHint); in createWithSurfaceParent()
2120 sp<IGraphicBufferProducer> gbp; in createSurfaceChecked() local
2125 &handle, &gbp, &id, &transformHint); in createSurfaceChecked()
2133 new SurfaceControl(this, handle, gbp, id, w, h, format, transformHint, flags); in createSurfaceChecked()
/frameworks/native/services/surfaceflinger/
DClient.h53 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
60 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
DSurfaceFlinger.cpp4752 sp<IGraphicBufferProducer>* gbp, in createBufferQueueLayer() argument
4778 *gbp = layer->getProducer(); in createBufferQueueLayer()
/frameworks/native/libs/gui/include/gui/
DISurfaceComposerClient.h62 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
72 sp<IGraphicBufferProducer>* gbp, int32_t* outLayerId,
DSurfaceControl.h96 const sp<IGraphicBufferProducer>& gbp, int32_t layerId,
/frameworks/av/camera/include/camera/camera2/
DOutputConfiguration.h91 OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation,
176 void addGraphicProducer(sp<IGraphicBufferProducer> gbp) {mGbps.push_back(gbp);} in addGraphicProducer() argument
/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.cpp680 sp<IGraphicBufferProducer> gbp; in android_hardware_Camera_setPreviewSurface() local
685 gbp = surface->getIGraphicBufferProducer(); in android_hardware_Camera_setPreviewSurface()
689 if (camera->setPreviewTarget(gbp) != NO_ERROR) { in android_hardware_Camera_setPreviewSurface()
726 sp<IGraphicBufferProducer> gbp; in android_hardware_Camera_setPreviewCallbackSurface() local
731 gbp = surface->getIGraphicBufferProducer(); in android_hardware_Camera_setPreviewCallbackSurface()
737 if (camera->setPreviewCallbackTarget(gbp) != NO_ERROR) { in android_hardware_Camera_setPreviewCallbackSurface()
/frameworks/av/camera/camera2/
DOutputConfiguration.cpp244 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, in OutputConfiguration() argument
247 mGbps.push_back(gbp); in OutputConfiguration()
299 for (auto& gbp : mGbps) { in writeToParcel() local
302 surfaceShim.graphicBufferProducer = gbp; in writeToParcel()
/frameworks/av/services/camera/libcameraservice/utils/
DSessionConfigurationUtils.h98 sp<Surface>& surface, const sp<IGraphicBufferProducer>& gbp,
DSessionConfigurationUtils.cpp336 sp<Surface>& surface, const sp<IGraphicBufferProducer>& gbp, in createSurfaceFromGbp() argument
341 if (gbp == nullptr) { in createSurfaceFromGbp()
352 if ((err = gbp->getConsumerUsage(&consumerUsage)) != OK) { in createSurfaceFromGbp()
372 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.cpp210 binder::Status CameraDeviceClient::insertGbpLocked(const sp<IGraphicBufferProducer>& gbp, in insertGbpLocked() argument
213 int idx = mStreamMap.indexOfKey(IInterface::asBinder(gbp)); in insertGbpLocked()
223 } else if ((compositeIdx = mCompositeStreamMap.indexOfKey(IInterface::asBinder(gbp))) in insertGbpLocked()
347 sp<IGraphicBufferProducer> gbp = surface->getIGraphicBufferProducer(); in submitRequestList() local
348 res = insertGbpLocked(gbp, &surfaceMap, &outputStreamIds, &streamId); in submitRequestList()
1813 for (const auto& gbp : mConfiguredOutputs.valueAt(index).getGraphicBufferProducers()) { in switchToOffline() local
1814 sp<Surface> s = new Surface(gbp, false /*controlledByApp*/); in switchToOffline()
1818 auto compositeIdx = mCompositeStreamMap.indexOfKey(IInterface::asBinder(gbp)); in switchToOffline()
DCameraDeviceClient.h302 binder::Status insertGbpLocked(const sp<IGraphicBufferProducer>& gbp,
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp697 IGraphicBufferProducer* gbp = ImageReader_getProducer(env, thiz); in ImageReader_getSurface() local
698 if (gbp == NULL) { in ImageReader_getSurface()
704 return android_view_Surface_createFromIGraphicBufferProducer(env, gbp); in ImageReader_getSurface()
/frameworks/av/media/codec2/sfplugin/
DCCodec.cpp1570 android::sp<HGraphicBufferProducer> gbp; in CreateOmxInputSurface() local
1575 [&s, &gbp, &gbs]( in CreateOmxInputSurface()
1580 gbp = producer; in CreateOmxInputSurface()
1584 return new PersistentSurface(new H2BGraphicBufferProducer(gbp), gbs); in CreateOmxInputSurface()
2647 sp<IGraphicBufferProducer> gbp; in CreateInputSurface() local