Home
last modified time | relevance | path

Searched refs:previewSurface (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/
H A Dcamera_capture.cpp232 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in main() local
233 if (previewSurface == nullptr) { in main()
240 previewFd, previewSurface); in main()
244 previewSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)listener); in main()
245 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer(); in main()
H A Dcamera_video.cpp336 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in main() local
337 previewSurface->SetDefaultWidthAndHeight(previewWidth, previewHeight); in main()
338 previewSurface->SetUserData(CameraManager::surfaceFormat, std::to_string(previewFormat)); in main()
342 …stener> listener = new SurfaceListener("Preview", SurfaceType::PREVIEW, previewFd, previewSurface); in main()
343 previewSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)listener); in main()
345 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in main()
H A Dcamera_capture_mode.cpp467 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in main() local
468 if (previewSurface == nullptr) { in main()
493 previewFd, previewSurface); in main()
497 previewSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)listener); in main()
498 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer(); in main()
/ohos5.0/base/useriam/face_auth/frameworks/js/napi/src/
H A Dface_auth_napi.cpp98 sptr<Surface> previewSurface = surfaceUtils->GetSurface(surfaceId); in GetBufferProducerBySurfaceId() local
99 if (previewSurface == nullptr) { in GetBufferProducerBySurfaceId()
104 bufferProducer = previewSurface->GetProducer(); in GetBufferProducerBySurfaceId()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcamera_component.cpp362 Surface *previewSurface = cameraView_->GetSurface(); in PostRender() local
363 if (previewSurface != nullptr) { in PostRender()
364 previewSurface->SetWidthAndHeight(IMAG_W_PIXELS, IMAG_H_PIXELS); in PostRender()
365 previewSurface->SetUsage(BUFFER_CONSUMER_USAGE_HARDWARE); in PostRender()
366 cameraCallback_->SetPreviewSurface(*previewSurface); in PostRender()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/test/sample/
H A Dmain.cpp174 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in InitPreviewOutput() local
175 …tr<IBufferConsumerListener> previewListener(new DemoDCameraPreviewSurfaceListener(previewSurface)); in InitPreviewOutput()
176 previewSurface->RegisterConsumerListener(previewListener); in InitPreviewOutput()
180 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer(); in InitPreviewOutput()
/ohos5.0/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/
H A Ddcamera_client_demo.cpp177 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in InitPreviewOutput() local
178 …r<IBufferConsumerListener> previewListener = new DemoDCameraPreviewSurfaceListener(previewSurface); in InitPreviewOutput()
179 previewSurface->RegisterConsumerListener(previewListener); in InitPreviewOutput()
183 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer(); in InitPreviewOutput()
/ohos5.0/foundation/multimedia/camera_framework/
H A DREADME_zh.md214previewSurface->SetUserData(CameraManager::surfaceFormat, std::to_string(OHOS_CAMERA_FORMAT_YCRCB_…
215 …sptr<CaptureOutput> previewOutput = camManagerObj->CreateCustomPreviewOutput(previewSurface, previ…
H A DREADME.md215previewSurface->SetUserData(CameraManager::surfaceFormat, std::to_string(OHOS_CAMERA_FORMAT_YCRCB_…
216 …sptr<CaptureOutput> previewOutput = camManagerObj->CreateCustomPreviewOutput(previewSurface, previ…
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/
H A Dcamera_framework_moduletest.cpp474 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in CreatePreviewOutput() local
483 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in CreatePreviewOutput()
524 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in CreatePreviewOutput() local
531 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in CreatePreviewOutput()
721 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in ConfigSlowMotionSession() local
729 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in ConfigSlowMotionSession()
755 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in CreateHighResPhotoOutput() local
764 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in CreateHighResPhotoOutput()
809 sptr<IBufferProducer> bp = previewSurface->GetProducer(); in ConfigVideoSession()
6059 producer = previewSurface->GetProducer();
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_framework_unittest.cpp8080 sptr<Surface> previewSurface = Surface::CreateSurfaceAsConsumer(); variable
8086 …<CaptureOutput> previewOutput = cameraManager->CreatePreviewOutput(previewProfile, previewSurface);
8146 sptr<Surface> previewSurface = Surface::CreateSurfaceAsConsumer(); variable
8152 …<CaptureOutput> previewOutput = cameraManager->CreatePreviewOutput(previewProfile, previewSurface);
8228 sptr<Surface> previewSurface = Surface::CreateSurfaceAsConsumer(); variable
8234 …<CaptureOutput> previewOutput = cameraManager->CreatePreviewOutput(previewProfile, previewSurface);
8282 sptr<Surface> previewSurface = Surface::CreateSurfaceAsConsumer(); variable
8288 …<CaptureOutput> previewOutput = cameraManager->CreatePreviewOutput(previewProfile, previewSurface);
H A Dcamera_ndk_unittest.cpp95 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); in CreatePreviewOutput() local
96 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer(); in CreatePreviewOutput()
3308 sptr<IConsumerSurface> previewSurface = IConsumerSurface::Create(); variable
3309 sptr<IBufferProducer> previewProducer = previewSurface->GetProducer();