Home
last modified time | relevance | path

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

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/src/
H A Dimage_receiver.cpp45 iraContext_ = nullptr; in ~ImageReceiver()
150 if (iraContext_ != nullptr) { in ReleaseBuffer()
216 iva->iraContext_->SetWidth(width); in CreateImageReceiver()
217 iva->iraContext_->SetHeight(height); in CreateImageReceiver()
218 iva->iraContext_->SetFormat(format); in CreateImageReceiver()
219 iva->iraContext_->SetCapicity(capicity); in CreateImageReceiver()
243 return iraContext_->GetCurrentBuffer(); in ReadNextImage()
260 return iraContext_->GetCurrentBuffer(); in ReadNextImage()
278 return iraContext_->GetCurrentBuffer(); in ReadLastImage()
297 return iraContext_->GetCurrentBuffer(); in ReadLastImage()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/src/
H A Dimage_creator.cpp37 if (iraContext_ != nullptr) { in ~ImageCreator()
42 iraContext_ = nullptr; in ~ImageCreator()
107 iva->iraContext_->SetWidth(width); in CreateImageCreator()
108 iva->iraContext_->SetHeight(height); in CreateImageCreator()
109 iva->iraContext_->SetFormat(format); in CreateImageCreator()
110 iva->iraContext_->SetCapicity(capicity); in CreateImageCreator()
113 iva->iraContext_->SetCreatorKey(creatorKey); in CreateImageCreator()
253 config.width = iraContext_->GetWidth(); in DequeueImage()
254 config.height = iraContext_->GetHeight(); in DequeueImage()
270 return iraContext_->currentCreatorBuffer_; in DequeueImage()
[all …]
/ohos5.0/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.cpp1260 std::shared_ptr<ImageCreatorContext> context = imageCreator->iraContext_; in FFiOHOSImageCreatorGetCapacity()
1288 std::shared_ptr<ImageCreatorContext> context = imageCreator->iraContext_; in FFiOHOSImageCreatorGetformat()
/ohos5.0/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_ == nullptr) { 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()
/ohos5.0/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()
/ohos5.0/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_ == nullptr) { in JsGetReceivingSurfaceId()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_receiver_test.cpp212 ASSERT_NE(imageReceiver->iraContext_, nullptr);
213 auto listenerConsumerSurface = imageReceiver->iraContext_->GetReceiverBufferConsumer();
249 iva->iraContext_ = ImageReceiverContext::CreateImageReceiverContext();
315 ASSERT_NE(imageReceiver->iraContext_, nullptr);
316 auto listenerConsumerSurface = imageReceiver->iraContext_->GetReceiverBufferConsumer();
339 imageReceiver->iraContext_ = nullptr;
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/include/
H A Dimage_creator.h48 std::shared_ptr<ImageCreatorContext> iraContext_ = nullptr; variable
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/include/
H A Dimage_receiver.h46 std::shared_ptr<ImageReceiverContext> iraContext_ = nullptr;
/ohos5.0/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()
3365 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey();
3473 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey();
3529 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey();
3586 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey();
3641 std::string receiverKey = imageReceiver->iraContext_->GetReceiverKey();