Home
last modified time | relevance | path

Searched refs:iraContext_ (Results 1 - 13 of 13) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/src/
H A Dimage_receiver.cpp45 iraContext_ = nullptr; in ~ImageReceiver()
86 uint32_t *addr = reinterpret_cast<uint32_t *>(iraContext_->currentBuffer_->GetVirAddr()); in getSurfacePixelMap()
87 int32_t size = iraContext_->currentBuffer_->GetSize(); in getSurfacePixelMap()
125 if ((iraContext_->GetReceiverBufferConsumer()) != nullptr) { in SaveBufferAsImage()
126 (iraContext_->GetReceiverBufferConsumer())->ReleaseBuffer(buffer, -1); in SaveBufferAsImage()
128 IMAGE_LOGD("iraContext_->GetReceiverBufferConsumer() == nullptr"); in SaveBufferAsImage()
139 if (iraContext_->currentBuffer_ != nullptr) { in SaveBufferAsImage()
140 return SaveBufferAsImage(fd, iraContext_->currentBuffer_, initializationOpts); in SaveBufferAsImage()
142 IMAGE_LOGD("iraContext_->GetCurrentBuffer() == nullptr"); in SaveBufferAsImage()
150 if (iraContext_ ! in ReleaseBuffer()
[all...]
/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dimage_receiver_impl.cpp70 if (imageReceiver_ == nullptr || imageReceiver_->iraContext_ == nullptr) { in GetSize()
75 ret->width = imageReceiver_->iraContext_->GetWidth(); in GetSize()
76 ret->height = imageReceiver_->iraContext_->GetHeight(); in GetSize()
82 if (imageReceiver_ == nullptr || imageReceiver_->iraContext_ == nullptr) { in GetCapacity()
87 *ret = imageReceiver_->iraContext_->GetCapicity(); in GetCapacity()
93 if (imageReceiver_ == nullptr || imageReceiver_->iraContext_ == nullptr) { in GetFormat()
98 *ret = imageReceiver_->iraContext_->GetFormat(); in GetFormat()
107 std::shared_ptr<ImageReceiverContext> iraContext = imageReceiver_->iraContext_; in GetReceivingSurfaceId()
H A Dimage_ffi.cpp1468 std::shared_ptr<ImageCreatorContext> context = imageCreator->iraContext_; in FFiOHOSImageCreatorGetCapacity()
1496 std::shared_ptr<ImageCreatorContext> context = imageCreator->iraContext_; in FFiOHOSImageCreatorGetformat()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/src/
H A Dimage_creator.cpp37 if (iraContext_ != nullptr) { in ~ImageCreator()
38 ImageCreatorManager::ReleaseCreatorById(iraContext_->GetCreatorKey()); in ~ImageCreator()
42 iraContext_ = nullptr; in ~ImageCreator()
86 iva->iraContext_ = ImageCreatorContext::CreateImageCreatorContext(); in CreateImageCreator()
105 iva->iraContext_->SetCreatorBufferConsumer(iva->creatorConsumerSurface_); in CreateImageCreator()
106 iva->iraContext_->SetCreatorBufferProducer(iva->creatorProducerSurface_); in CreateImageCreator()
107 iva->iraContext_->SetWidth(width); in CreateImageCreator()
108 iva->iraContext_->SetHeight(height); in CreateImageCreator()
109 iva->iraContext_->SetFormat(format); in CreateImageCreator()
110 iva->iraContext_ in CreateImageCreator()
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_receiver_mdk_kits.cpp66 if (receiver == nullptr || receiver->iraContext_ == nullptr || args->id == nullptr) { in ImageReceiverNapiGetReceiverId()
69 auto sId = receiver->iraContext_->GetReceiverKey(); in ImageReceiverNapiGetReceiverId()
122 if (receiver == nullptr || receiver->iraContext_ == nullptr || args->outSize == nullptr) { in ImageReceiverNapiGetSize()
125 args->outSize->width = receiver->iraContext_->GetWidth(); in ImageReceiverNapiGetSize()
126 args->outSize->height = receiver->iraContext_->GetHeight(); in ImageReceiverNapiGetSize()
133 if (receiver == nullptr || receiver->iraContext_ == nullptr) { in ImageReceiverNapiGetCapacity()
136 *(args->outNum0) = receiver->iraContext_->GetCapicity(); in ImageReceiverNapiGetCapacity()
143 if (receiver == nullptr || receiver->iraContext_ == nullptr) { in ImageReceiverNapiGetFormat()
146 *(args->outNum0) = receiver->iraContext_->GetFormat(); in ImageReceiverNapiGetFormat()
H A Dimage_receiver_napi.cpp468 if (native->iraContext_ == nullptr) { in JsGetSize()
473 native->iraContext_->GetWidth(), in JsGetSize()
474 native->iraContext_->GetHeight()); in JsGetSize()
498 if (native->iraContext_ == nullptr) { in JsGetCapacity()
502 napi_create_int32(args.env, native->iraContext_->GetCapicity(), &(ic.result)); in JsGetCapacity()
526 if (native->iraContext_ == nullptr) { in JsGetFormat()
530 napi_create_int32(args.env, native->iraContext_->GetFormat(), &(ic.result)); in JsGetFormat()
585 if (imageReceiver == nullptr || imageReceiver->iraContext_ == nullptr) { in DoTest()
589 std::string receiveKey = imageReceiver->iraContext_->GetReceiverKey(); in DoTest()
688 } else if (native->iraContext_ in JsGetReceivingSurfaceId()
[all...]
H A Dimage_creator_napi.cpp395 if (native->iraContext_ == nullptr) { in JsGetSize()
400 native->iraContext_->GetWidth(), in JsGetSize()
401 native->iraContext_->GetHeight()); in JsGetSize()
429 if (native->iraContext_ == nullptr) { in JsGetCapacity()
433 napi_create_int32(args.env, native->iraContext_->GetCapicity(), &(ic.result)); in JsGetCapacity()
461 if (native->iraContext_ == nullptr) { in JsGetFormat()
465 napi_create_int32(args.env, native->iraContext_->GetFormat(), &(ic.result)); in JsGetFormat()
499 if (imageCreator == nullptr || imageCreator->iraContext_ == nullptr) { in DoTest()
503 std::string creatorKey = imageCreator->iraContext_->GetCreatorKey(); in DoTest()
/foundation/multimedia/image_framework/frameworks/kits/native/common/ndk/
H A Dimage_receiver_native.cpp183 if (nullptr == receiver->ptrImgRcv || nullptr == receiver->ptrImgRcv->iraContext_) { in OH_ImageReceiverNative_GetReceivingSurfaceId()
188 std::string strKey = receiver->ptrImgRcv->iraContext_->GetReceiverKey(); in OH_ImageReceiverNative_GetReceivingSurfaceId()
329 if (nullptr == receiver->ptrImgRcv || nullptr == receiver->ptrImgRcv->iraContext_) { in OH_ImageReceiverNative_GetSize()
334 size->width = static_cast<uint32_t>(receiver->ptrImgRcv->iraContext_->GetWidth()); in OH_ImageReceiverNative_GetSize()
335 size->height = static_cast<uint32_t>(receiver->ptrImgRcv->iraContext_->GetHeight()); in OH_ImageReceiverNative_GetSize()
346 if (nullptr == receiver->ptrImgRcv || nullptr == receiver->ptrImgRcv->iraContext_) { in OH_ImageReceiverNative_GetCapacity()
351 *capacity = receiver->ptrImgRcv->iraContext_->GetCapicity(); in OH_ImageReceiverNative_GetCapacity()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_receiver_test.cpp212 ASSERT_NE(imageReceiver->iraContext_, nullptr); in HWTEST_F()
213 auto listenerConsumerSurface = imageReceiver->iraContext_->GetReceiverBufferConsumer(); in HWTEST_F()
249 iva->iraContext_ = ImageReceiverContext::CreateImageReceiverContext(); in HWTEST_F()
270 * @tc.desc: test ReadNextImage iraContext_ is not nullptr
286 * @tc.desc: test ReadLastImage iraContext_ is not nullptr
315 ASSERT_NE(imageReceiver->iraContext_, nullptr); in HWTEST_F()
316 auto listenerConsumerSurface = imageReceiver->iraContext_->GetReceiverBufferConsumer(); in HWTEST_F()
325 * @tc.desc: test ReleaseBuffer iraContext_ is nullptr
339 imageReceiver->iraContext_ = nullptr; in HWTEST_F()
554 ASSERT_NE(imageReceiver->iraContext_, nullpt in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/
H A Dsendable_image_receiver_napi.cpp466 if (native->iraContext_ == nullptr) { in JsGetSize()
471 native->iraContext_->GetWidth(), in JsGetSize()
472 native->iraContext_->GetHeight()); in JsGetSize()
496 if (native->iraContext_ == nullptr) { in JsGetCapacity()
500 napi_create_int32(args.env, native->iraContext_->GetCapicity(), &(ic.result)); in JsGetCapacity()
524 if (native->iraContext_ == nullptr) { in JsGetFormat()
528 napi_create_int32(args.env, native->iraContext_->GetFormat(), &(ic.result)); in JsGetFormat()
583 if (imageReceiver == nullptr || imageReceiver->iraContext_ == nullptr) { in DoTest()
587 std::string receiveKey = imageReceiver->iraContext_->GetReceiverKey(); in DoTest()
686 } else if (native->iraContext_ in JsGetReceivingSurfaceId()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/include/
H A Dimage_creator.h48 std::shared_ptr<ImageCreatorContext> iraContext_ = nullptr; member in OHOS::Media::ImageCreator
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/include/
H A Dimage_receiver.h46 std::shared_ptr<ImageReceiverContext> iraContext_ = nullptr; member in OHOS::Media::ImageReceiver
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_ndk_unittest.cpp64 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in CreatePhotoOutput()
251 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in ReleaseImageReceiver()
3452 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in HWTEST_F()
3560 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in HWTEST_F()
3616 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in HWTEST_F()
3673 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in HWTEST_F()
3728 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey(); in HWTEST_F()

Completed in 19 milliseconds