/foundation/distributedhardware/distributed_screen/services/screentransport/screensinkprocessor/decoder/src/ |
H A D | image_decoder_callback.cpp | 26 std::shared_ptr<ImageSinkDecoder> decoder = videoDecoder_.lock(); in OnError() local 27 if (decoder == nullptr) { in OnError() 28 DHLOGE("decoder is nullptr."); in OnError() 31 decoder->OnError(errorType, errorCode); in OnError() 38 std::shared_ptr<ImageSinkDecoder> decoder = videoDecoder_.lock(); in OnOutputBufferAvailable() local 39 if (decoder == nullptr) { in OnOutputBufferAvailable() 40 DHLOGE("decoder is nullptr."); in OnOutputBufferAvailable() 43 decoder->OnOutputBufferAvailable(index, info, flag, buffer); in OnOutputBufferAvailable() 49 std::shared_ptr<ImageSinkDecoder> decoder = videoDecoder_.lock(); in OnInputBufferAvailable() local 50 if (decoder in OnInputBufferAvailable() 60 std::shared_ptr<ImageSinkDecoder> decoder = videoDecoder_.lock(); OnOutputFormatChanged() local [all...] |
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/ |
H A D | wrapper_decoder_test.cpp | 64 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); in HWTEST_F() local 66 auto ret = decoder->DecodeAscii(buffer.data(), buffer.length()); in HWTEST_F() 73 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); in HWTEST_F() local 75 auto ret = decoder->DecodeAscii(buffer.data(), 0); in HWTEST_F() 82 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); in HWTEST_F() local 84 auto ret = decoder->DecodeAscii(buffer.data(), buffer.length()); in HWTEST_F() 91 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); in HWTEST_F() local 92 auto ret = decoder->DecodeAscii(TEST_ASCII_MESSAGE, sizeof(TEST_ASCII_MESSAGE)); in HWTEST_F() 99 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); in HWTEST_F() local 113 auto ret = decoder in HWTEST_F() 135 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local 156 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local 207 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local 286 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local 344 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local 352 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(msg); HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_wifi_display/services/codec/src/ |
H A D | codec_factory.cpp | 53 std::shared_ptr<AudioDecoder> decoder; in CreateAudioDecoder() local 56 decoder.reset(new AudioG711Decoder(G711_TYPE::G711_ALAW)); in CreateAudioDecoder() 59 decoder.reset(new AudioG711Decoder(G711_TYPE::G711_ULAW)); in CreateAudioDecoder() 62 decoder.reset(new AudioAACDecoder()); in CreateAudioDecoder() 69 return decoder; in CreateAudioDecoder() 94 std::shared_ptr<VideoDecoder> decoder; in CreateVideoDecoder() local 107 return decoder; in CreateVideoDecoder()
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/codec/ |
H A D | codec_demo.cpp | 93 std::shared_ptr<AudioDecoder> decoder = CodecFactory::CreateAudioDecoder(CODEC_G711A); in DecodeG711() local 94 if (!decoder) { in DecodeG711() 97 decoder->Init(); in DecodeG711() 101 decoder->AddAudioDestination(rawReceiver); in DecodeG711() 109 decoder->OnFrame(g711Frame); in DecodeG711() 117 std::shared_ptr<AudioDecoder> decoder = CodecFactory::CreateAudioDecoder(OHOS::Sharing::CODEC_AAC); in DecodeAAC() local 118 if (!decoder) { in DecodeAAC() 121 decoder->Init(); in DecodeAAC() 125 decoder->AddAudioDestination(rawReceiver); in DecodeAAC() 133 decoder in DecodeAAC() [all...] |
/foundation/arkui/ui_lite/frameworks/imgdecode/ |
H A D | cache_manager.cpp | 30 if (dsc_.decoder != nullptr) { in ReadLine() 31 ret = dsc_.decoder->ReadLine(dsc_, start, len, buf); in ReadLine() 41 if (dsc_.decoder != nullptr) { in Clear() 42 dsc_.decoder->Close(dsc_); in Clear() 45 dsc_.decoder = nullptr; in Clear() 135 if ((entryArr_[indexHitted].dsc_.path != nullptr) && (entryArr_[indexHitted].dsc_.decoder != nullptr)) { in Open() 136 entryArr_[indexHitted].dsc_.decoder->Close(entryArr_[indexHitted].dsc_); in Open() 209 if (entry.dsc_.decoder == nullptr) { in ReadToCache() 212 return entry.dsc_.decoder->ReadToCache(entry.dsc_); in ReadToCache() 271 FileImgDecoder* decoder in TryDecode() local [all...] |
H A D | file_img_decoder.h | 39 FileImgDecoder* decoder; member
|
/foundation/CastEngine/castengine_wifi_display/tests/demo/player/ |
H A D | player_demo.cpp | 118 std::shared_ptr<AudioDecoder> decoder = CodecFactory::CreateAudioDecoder(CODEC_G711A); in DecodeG711ByTime() local 119 if (!decoder) { in DecodeG711ByTime() 123 decoder->Init(); in DecodeG711ByTime() 132 decoder->AddAudioDestination(rawReceiver); in DecodeG711ByTime() 146 decoder->OnFrame(g711Frame); in DecodeG711ByTime() 223 std::shared_ptr<AudioDecoder> decoder = CodecFactory::CreateAudioDecoder(CODEC_G711A); in main() local 224 if (!decoder) { in main() 228 decoder->Init(); in main() 231 decoder->AddAudioDestination(rawReceiver); in main() 243 decoder in main() [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_object.h | 34 const RefPtr<PNGImageDecoder>& decoder) in ApngImageObject() 38 apngDecoder_ = decoder; in ApngImageObject() 46 const RefPtr<PNGImageDecoder>& decoder) 50 apngDecoder_ = decoder; 29 ApngImageObject( ImageSourceInfo source, const Size& imageSize, int32_t frameCount, const sk_sp<SkData>& data, const RefPtr<PNGImageDecoder>& decoder) ApngImageObject() argument
|
/foundation/multimedia/av_codec/interfaces/inner_api/native/ |
H A D | avcodec_video_decoder.h | 33 * @brief Configure the decoder. This interface must be called before {@link Prepare} is called. 74 * @brief Flush both input and output buffers of the decoder. 83 * @brief Restores the decoder to the initial state. 92 * @brief Releases decoder resources. All methods are unavailable after calling this. 101 * @brief Sets the surface on which to render the output of this decoder. 113 * @brief Submits input buffer to decoder. 117 * index is submitted to the video decoder, the buffer cannot be accessed again until the {@link 119 * In addition, for some decoders, it is required to input Codec-Specific-Data to the decoder at the beginning to 120 * initialize the decoding process of the decoder, such as PPS/SPS data in H264 format. 132 * @brief Submits input buffer to decoder 256 CreateByMime(const std::string &mime, Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) CreateByMime() argument 264 CreateByName(const std::string &name, Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) CreateByName() argument [all...] |
H A D | dragging_player.h | 33 const std::shared_ptr<Pipeline::DecoderSurfaceFilter> &decoder) = 0;
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hdecoder_unit_test.h | 71 bool ConfigureDecoder(std::shared_ptr<HCodec>& decoder); 72 bool SetOutputSurfaceToDecoder(std::shared_ptr<HCodec>& decoder); 73 bool SetCallbackToDecoder(std::shared_ptr<HCodec>& decoder);
|
/foundation/distributedhardware/distributed_screen/services/screentransport/test/fuzztest/screensinkprocessor/onbufferavailable_fuzzer/ |
H A D | onbufferavailable_fuzzer.cpp | 40 std::shared_ptr<ImageSinkDecoder> decoder = std::make_shared<ImageSinkDecoder>(listener); in OnBufferAvailableFuzzTest() local 41 std::shared_ptr<ConsumBufferListener> bufferListen = std::make_shared<ConsumBufferListener>(decoder); in OnBufferAvailableFuzzTest()
|
/foundation/distributedhardware/distributed_screen/services/screentransport/screensinkprocessor/decoder/include/ |
H A D | image_decoder_callback.h | 30 explicit ImageDecoderCallback(const std::shared_ptr<ImageSinkDecoder> &decoder) in ImageDecoderCallback() argument 31 : videoDecoder_(decoder) {}; in ImageDecoderCallback()
|
H A D | image_sink_decoder.h | 42 ConsumBufferListener(const std::shared_ptr<ImageSinkDecoder> decoder) : decoder_(decoder) {}; in ConsumBufferListener() argument
|
/foundation/multimedia/player_framework/services/engine/histreamer/player/ |
H A D | dragging_player_agent.cpp | 99 const shared_ptr<DecoderSurfaceFilter> &decoder, std::string playerId) in Init() 101 FALSE_RETURN_V_MSG_E(demuxer != nullptr && decoder != nullptr, in Init() 104 decoder_ = decoder; in Init() 105 Status ret = draggingPlayer_->Init(demuxer, decoder); in Init() 114 decoder->RegisterVideoFrameReadyCallback(videoFrameReadyCb_); in Init() 98 Init(const shared_ptr<DemuxerFilter> &demuxer, const shared_ptr<DecoderSurfaceFilter> &decoder, std::string playerId) Init() argument
|
H A D | dragging_player_agent.h | 35 Status Init(const shared_ptr<DemuxerFilter> &demuxer, const shared_ptr<DecoderSurfaceFilter> &decoder,
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | data_receiver.cpp | 61 std::unique_ptr<WrapperDecoder> decoder = std::make_unique<WrapperDecoder>(message); in StartReceive() local 63 isSuccess = decoder->DecodeBinary(buffer_, recvTimes); in StartReceive() 65 isSuccess = decoder->DecodeAscii(buffer_, recvTimes); in StartReceive()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 304 HeifHardwareDecoder decoder;
in HeapMemAlloc() local 313 sptr<SurfaceBuffer> hwBuffer = decoder.AllocateOutputBuffer(gridInfo.tileWidth * gridInfo.cols,
in HeapMemAlloc() 1524 auto decoder = reinterpret_cast<HeifDecoder *>(codec->getHeifContext());
in HeapMemAlloc() local 1525 if (decoder == nullptr) {
in HeapMemAlloc() 1529 if (!decoder->getImageInfo(&info)) {
in HeapMemAlloc() 1872 auto decoder = reinterpret_cast<HeifDecoder*>(codec_->getHeifContext());
in HeapMemAlloc() local 1873 if (decoder == nullptr) {
in HeapMemAlloc() 1882 decoder->setOutputColor(context.info.pixelFormat
in HeapMemAlloc() 1884 decoder->setDstBuffer(reinterpret_cast<uint8_t *>(context.pixelsBuffer.buffer),
in HeapMemAlloc() 1886 bool decodeRet = decoder in HeapMemAlloc() 1907 auto decoder = reinterpret_cast<HeifDecoder*>(codec_->getHeifContext()); HeapMemAlloc() local 1998 auto decoder = reinterpret_cast<HeifDecoderImpl*>(codec_->getHeifContext()); HeapMemAlloc() local 2017 auto decoder = reinterpret_cast<HeifDecoder*>(codec_->getHeifContext()); HeapMemAlloc() local 2062 auto decoder = reinterpret_cast<HeifDecoder*>(codec_->getHeifContext()); HeapMemAlloc() local 2096 auto decoder = reinterpret_cast<HeifDecoder*>(codec_->getHeifContext()); HeapMemAlloc() local 2160 auto decoder = reinterpret_cast<HeifDecoderImpl*>(codec_->getHeifContext()); HeapMemAlloc() local 2183 auto decoder = reinterpret_cast<HeifDecoderImpl*>(codec_->getHeifContext()); HeapMemAlloc() local [all...] |
/foundation/multimedia/av_codec/frameworks/native/avcodec/ |
H A D | avcodec_video_decoder_impl.cpp | 35 "AVCodec video decoder impl init failed, %{public}s", in CreateByMime() 47 "AVCodec video decoder impl init failed, %{public}s", in CreateByName() 54 Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) in CreateByMime() 59 CHECK_AND_RETURN_RET_LOG(ret == AVCS_ERR_OK, ret, "AVCodec video decoder impl init failed, %{public}s", in CreateByMime() 62 decoder = impl; in CreateByMime() 67 Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) in CreateByName() 72 CHECK_AND_RETURN_RET_LOG(ret == AVCS_ERR_OK, ret, "AVCodec video decoder impl init failed, %{public}s", in CreateByName() 75 decoder = impl; in CreateByName() 53 CreateByMime(const std::string &mime, Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) CreateByMime() argument 66 CreateByName(const std::string &name, Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) CreateByName() argument
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | auxiliary_generator.cpp | 64 static uint32_t SetAuxiliaryDecodeOption(std::unique_ptr<AbsImageDecoder> &decoder, PlImageInfo &plInfo, in SetAuxiliaryDecodeOption() argument 68 uint32_t errorCode = decoder->GetImageSize(FIRST_FRAME, size); in SetAuxiliaryDecodeOption() 76 errorCode = decoder->SetDecodeOptions(FIRST_FRAME, plOptions, plInfo); in SetAuxiliaryDecodeOption() 143 std::unique_ptr<AbsImageDecoder> &decoder, const std::string &encodedFormat, uint32_t &errorCode) in CreatePixelMapByContext() 171 } else if (decoder->IsSupportICCProfile()) { in CreatePixelMapByContext() 172 pixelMap->InnerSetColorSpace(decoder->getGrColorSpace()); in CreatePixelMapByContext() 293 IMAGE_LOGI("Generate by decoder, type: %{public}d, format: %{public}s", static_cast<int>(type), format.c_str()); in GenerateAuxiliaryPicture() 142 CreatePixelMapByContext(DecodeContext &context, std::unique_ptr<AbsImageDecoder> &decoder, const std::string &encodedFormat, uint32_t &errorCode) CreatePixelMapByContext() argument
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | tester_common.cpp | 77 shared_ptr<TesterCommon> decoder = Create(decOpt); in RunDecEnc() local 82 bool ret = decoder->InitDemuxer(); in RunDecEnc() 84 ret = decoder->Create(); in RunDecEnc() 86 ret = decoder->SetCallback(); in RunDecEnc() 88 ret = decoder->ConfigureDecoder(); in RunDecEnc() 100 ret = decoder->SetOutputSurface(surface); in RunDecEnc() 105 ret = decoder->Start(); in RunDecEnc() 107 thread decOutThread(&TesterCommon::OutputLoop, decoder.get()); in RunDecEnc() 109 decoder->DecoderInputLoop(); in RunDecEnc() 117 decoder in RunDecEnc() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/ |
H A D | rtp_unpack_impl.cpp | 44 auto decoder = rtpDecoder_[pt]; in ParseRtp() local 46 if (!decoder) { in ParseRtp()
|
/foundation/CastEngine/castengine_wifi_display/tests/unittest/protocol/rtp/ |
H A D | rtp_unit_test.cpp | 590 auto decoder = std::make_shared<RtpDecoderTs>(); in HWTEST_F() local 591 EXPECT_NE(decoder, nullptr); in HWTEST_F() 596 auto decoder = std::make_shared<RtpDecoderTs>(); in HWTEST_F() local 597 EXPECT_NE(decoder, nullptr); in HWTEST_F() 598 decoder->onFrame_ = [=](const Frame::Ptr &frame) { (void)frame; }; in HWTEST_F() 602 decoder->InputRtp(rtp); in HWTEST_F() 607 auto decoder = std::make_shared<RtpDecoderTs>(); in HWTEST_F() local 608 EXPECT_NE(decoder, nullptr); in HWTEST_F() 610 decoder->SetOnFrame(f); in HWTEST_F() 615 auto decoder in HWTEST_F() local 621 auto decoder = std::make_shared<RtpDecoderTs>(); HWTEST_F() local 628 auto decoder = std::make_shared<RtpDecoderTs>(); HWTEST_F() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_codec_thread.cpp | 131 A2dpDecoder* decoder = decoder_.release(); in ProcessMessage() local 132 delete decoder; in ProcessMessage()
|
/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | image_source.h | 138 std::unique_ptr<ImagePlugin::AbsImageDecoder> decoder; member 277 uint32_t SetDecodeOptions(std::unique_ptr<ImagePlugin::AbsImageDecoder> &decoder, uint32_t index, 318 uint32_t SetGainMapDecodeOption(std::unique_ptr<ImagePlugin::AbsImageDecoder>& decoder, 351 std::unique_ptr<ImagePlugin::AbsImageDecoder>& decoder); 382 // The main decoder is responsible for ordinary decoding (non-Incremental decoding),
|