/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hcodec_state.cpp | 33 reply->SetValue("hidumper-info", codec_->OnGetHidumperInfo()); in OnMsgReceived() 35 codec_->PostReply(info.id, reply); in OnMsgReceived() 45 codec_->OnOMXEmptyBufferDone(bufferId, inputMode_); in OnMsgReceived() 51 codec_->OnOMXFillBufferDone(omxBuffer, outputMode_); in OnMsgReceived() 84 codec_->PostReply(id, reply); in ReplyErrorCode() 108 codec_->SignalError(AVCODEC_ERROR_INTERNAL, AVCS_ERR_UNKNOWN); in OnCodecEvent() 117 codec_->inputFormat_ : codec_->outputFormat_; in OnGetFormat() 122 codec_->PostReply(info.id, reply); in OnGetFormat() 132 ReplyErrorCode(info.id, codec_ in OnSetParameters() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/ |
H A D | codec_state.cpp | 37 codec_->OnOMXEmptyBufferDone(bufferId, inputMode_); in OnMsgReceived() 45 codec_->OnOMXFillBufferDone(omxBuffer, outputMode_); in OnMsgReceived() 77 codec_->PostReply(id, reply); in ReplyErrorCode() 101 codec_->SignalError(IC_ERR_SERVICE_DIED); in OnCodecEvent() 110 codec_->inputFormat_ : codec_->outputFormat_; in OnGetFormat() 115 codec_->PostReply(info.id, reply); in OnGetFormat() 125 if (generation == codec_->stateGeneration_) { in OnCheckIfStuck() 127 codec_->PrintAllBufferInfo(); in OnCheckIfStuck() 128 codec_ in OnCheckIfStuck() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_decoder/ |
H A D | video_decoder.cpp | 34 codec_ = std::shared_ptr<OH_AVCodec>(
in Create() 36 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Create failed");
in Create() 44 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Decoder is null");
in Config() 53 ret = OH_VideoDecoder_SetSurface(codec_.get(), sampleInfo.window.get());
in Config() 64 ret = OH_VideoDecoder_Prepare(codec_.get());
in Config() 72 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Decoder is null");
in Start() 74 int ret = OH_VideoDecoder_Start(codec_.get());
in Start() 81 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Decoder is null");
in Flush() 83 int ret = OH_VideoDecoder_Flush(codec_.get());
in Flush() 90 CHECK_AND_RETURN_RET_LOG(codec_ ! in Stop() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_encoder/ |
H A D | video_encoder.cpp | 38 codec_ = std::shared_ptr<OH_AVCodec>(
in Create() 40 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Create failed");
in Create() 48 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Encoder is null");
in Config() 60 ret = OH_VideoEncoder_Prepare(codec_.get());
in Config() 68 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Encoder is null");
in Start() 70 int ret = OH_VideoEncoder_Start(codec_.get());
in Start() 77 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Encoder is null");
in Flush() 79 int ret = OH_VideoEncoder_Flush(codec_.get());
in Flush() 86 CHECK_AND_RETURN_RET_LOG(codec_ != nullptr, AVCODEC_SAMPLE_ERR_ERROR, "Encoder is null");
in Stop() 88 int32_t ret = OH_VideoEncoder_Stop(codec_ in Stop() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/mock/capi/ |
H A D | videodec_capi_mock.cpp | 151 SetCallback(codec_, cb); in SetCallback() 157 return OH_VideoDecoder_SetCallback(codec_, callback, NULL); in SetCallback() 162 SetCallback(codec_, cb); in SetCallback() 168 return OH_VideoDecoder_RegisterCallback(codec_, callback, NULL); in SetCallback() 177 return OH_VideoDecoder_SetSurface(codec_, nativeWindow); in SetOutputSurface() 188 return OH_VideoDecoder_Configure(codec_, avFormat); in Configure() 195 return OH_VideoDecoder_Prepare(codec_); in Prepare() 200 return OH_VideoDecoder_Start(codec_); in Start() 205 return OH_VideoDecoder_Stop(codec_); in Stop() 210 return OH_VideoDecoder_Flush(codec_); in Flush() [all...] |
H A D | videoenc_capi_mock.cpp | 179 if (cb != nullptr && codec_ != nullptr) { in SetCallback() 180 SetCallback(codec_, cb); in SetCallback() 186 return OH_VideoEncoder_SetCallback(codec_, callback, NULL); in SetCallback() 193 SetCallback(codec_, cb); in SetCallback() 199 return OH_VideoEncoder_RegisterCallback(codec_, callback, NULL); in SetCallback() 204 SetCallback(codec_, cb); in SetCallback() 206 return OH_VideoEncoder_RegisterParameterCallback(codec_, callback, NULL); in SetCallback() 220 return OH_VideoEncoder_Configure(codec_, avFormat); in Configure() 229 return OH_VideoEncoder_Prepare(codec_); in Prepare() 240 return OH_VideoEncoder_Start(codec_); in Start() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | videodec_func_unit_test.cpp | 118 OH_AVCodec *codec_ = nullptr; member in __anon10479::TEST_SUIT 155 if (codec_ != nullptr) { in TearDown() 156 EXPECT_EQ(AV_ERR_OK, OH_VideoDecoder_Destroy(codec_)); in TearDown() 157 codec_ = nullptr; in TearDown() 376 codec_ = OH_VideoDecoder_CreateByMime((CodecMimeType::VIDEO_AVC).data()); in HWTEST_F() 377 ASSERT_NE(nullptr, codec_); in HWTEST_F() 389 codec_ = OH_VideoDecoder_CreateByMime((CodecMimeType::VIDEO_AVC).data()); in HWTEST_F() 390 ASSERT_NE(nullptr, codec_); in HWTEST_F() 393 EXPECT_EQ(AV_ERR_INVALID_VAL, OH_VideoDecoder_RegisterCallback(codec_, cb, nullptr)); in HWTEST_F() 403 codec_ in HWTEST_F() [all...] |
H A D | videoenc_func_unit_test.cpp | 148 OH_AVCodec *codec_ = nullptr; member in __anon10485::TEST_SUIT 191 if (codec_ != nullptr) { in TearDown() 192 EXPECT_EQ(AV_ERR_OK, OH_VideoEncoder_Destroy(codec_)); in TearDown() 193 codec_ = nullptr; in TearDown() 521 codec_ = OH_VideoEncoder_CreateByMime((CodecMimeType::VIDEO_AVC).data()); in HWTEST_F() 522 ASSERT_NE(nullptr, codec_); in HWTEST_F() 534 codec_ = OH_VideoEncoder_CreateByMime((CodecMimeType::VIDEO_AVC).data()); in HWTEST_F() 535 ASSERT_NE(nullptr, codec_); in HWTEST_F() 538 EXPECT_EQ(AV_ERR_INVALID_VAL, OH_VideoEncoder_RegisterCallback(codec_, cb, nullptr)); in HWTEST_F() 548 codec_ in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | tester_capi.cpp | 89 codec_ = opt_.isEncoder ? OH_VideoEncoder_CreateByMime(mime.c_str()) : OH_VideoDecoder_CreateByMime(mime.c_str()); in Create() 90 if (codec_ == nullptr) { in Create() 108 OH_AVErrCode ret = opt_.isEncoder ? OH_VideoEncoder_SetCallback(codec_, cb, this) : in SetCallback() 109 OH_VideoDecoder_SetCallback(codec_, cb, this); in SetCallback() 128 OH_AVErrCode ret = opt_.isEncoder ? OH_VideoEncoder_RegisterCallback(codec_, cb, this) : in SetCallback() 129 OH_VideoDecoder_RegisterCallback(codec_, cb, this); in SetCallback() 142 OH_AVErrCode ret = opt_.isEncoder ? OH_VideoEncoder_Start(codec_) : in Start() 143 OH_VideoDecoder_Start(codec_); in Start() 156 OH_AVErrCode ret = opt_.isEncoder ? OH_VideoEncoder_Stop(codec_) : in Stop() 157 OH_VideoDecoder_Stop(codec_); in Stop() [all...] |
H A D | tester_codecbase.cpp | 64 CreateHCodecByName(name, codec_); in Create() 65 if (codec_ == nullptr) { in Create() 70 int32_t err = codec_->Init(meta); in Create() 83 int32_t err = codec_->SetCallback(cb); in SetCallback() 95 int32_t err = codec_->Start(); in Start() 107 int32_t err = codec_->Stop(); in Stop() 119 int32_t err = codec_->Release(); in Release() 131 int32_t err = codec_->Flush(); in Flush() 231 int32_t err = codec_->Configure(fmt); in ConfigureEncoder() 240 err = codec_ in ConfigureEncoder() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/core/ |
H A D | codec.cpp | 25 : Base(pkgVer, apiVer, plugin), codec_(std::move(plugin)) in Codec() 31 return codec_->QueueInputBuffer(inputBuffer, timeoutMs); in QueueInputBuffer() 36 return codec_->QueueOutputBuffer(outputBuffers, timeoutMs); in QueueOutputBuffer() 41 return codec_->Flush(); in Flush() 70 return codec_->SetDataCallback(dataCallback_.get()); in SetDataCallback()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/ |
H A D | audio_codec_worker.cpp | 41 codec_(codec), in AudioCodecWorker() 42 inputBufferSize(codec_->GetInputBufferSize()), in AudioCodecWorker() 43 outputBufferSize(codec_->GetOutputBufferSize()), in AudioCodecWorker() 67 if (codec_) { in ~AudioCodecWorker() 68 codec_ = nullptr; in ~AudioCodecWorker() 90 if (!codec_) { in PushInputData() 105 if (!codec_) { in Configure() 132 if (!codec_) { in Start() 133 AVCODEC_LOGE("Start failed in worker, codec_ is nullptr, please check the codec_ in Start() [all...] |
/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/ |
H A D | native_video_encoder.cpp | 74 : codec_(codec), asyncCallback_(cb), userData_(userData) in NativeVideoEncoderCallback() 79 : codec_(codec), onInputParameter_(onInputParameter), paramUserData_(userData) in NativeVideoEncoderCallback() 84 : codec_(codec), callback_(cb), userData_(userData) in NativeVideoEncoderCallback() 94 CHECK_AND_RETURN_LOG(codec_ != nullptr, "Codec is nullptr"); 95 CHECK_AND_RETURN_LOG(codec_->magic_ == AVMagic::AVCODEC_MAGIC_VIDEO_ENCODER, "Codec magic error!"); 99 asyncCallback_.onError(codec_, extErr, userData_); 101 callback_.onError(codec_, extErr, userData_); 109 CHECK_AND_RETURN_LOG(codec_ != nullptr, "Codec is nullptr"); 110 CHECK_AND_RETURN_LOG(codec_->magic_ == AVMagic::AVCODEC_MAGIC_VIDEO_ENCODER, "Codec magic error!"); 117 asyncCallback_.onStreamChanged(codec_, reinterpret_cas 347 struct OH_AVCodec *codec_ = nullptr; global() member in __anon10055::NativeVideoEncoderCallback [all...] |
H A D | native_video_decoder.cpp | 74 : codec_(codec), asyncCallback_(cb), userData_(userData) in NativeVideoDecoderCallback() 78 : codec_(codec), callback_(cb), userData_(userData) in NativeVideoDecoderCallback() 88 CHECK_AND_RETURN_LOG(codec_ != nullptr, "Codec is nullptr"); 89 CHECK_AND_RETURN_LOG(codec_->magic_ == AVMagic::AVCODEC_MAGIC_VIDEO_DECODER, "Codec magic error!"); 93 asyncCallback_.onError(codec_, extErr, userData_); 95 callback_.onError(codec_, extErr, userData_); 103 CHECK_AND_RETURN_LOG(codec_ != nullptr, "Codec is nullptr"); 104 CHECK_AND_RETURN_LOG(codec_->magic_ == AVMagic::AVCODEC_MAGIC_VIDEO_DECODER, "Codec magic error!"); 111 asyncCallback_.onStreamChanged(codec_, reinterpret_cast<OH_AVFormat *>(object.GetRefPtr()), userData_); 113 callback_.onStreamChanged(codec_, reinterpret_cas 286 struct OH_AVCodec *codec_ = nullptr; global() member in __anon10054::NativeVideoDecoderCallback [all...] |
H A D | native_audio_encoder.cpp | 56 : codec_(codec), callback_(cb), userData_(userData) in NativeAudioEncoderCallback() 65 if (codec_ != nullptr && callback_.onError != nullptr) { 67 callback_.onError(codec_, extErr, userData_); 74 if (codec_ != nullptr && callback_.onStreamChanged != nullptr) { 77 callback_.onStreamChanged(codec_, reinterpret_cast<OH_AVFormat *>(object.GetRefPtr()), userData_); 84 if (codec_ != nullptr && callback_.onNeedInputData != nullptr) { 85 struct AudioEncoderObject *audioEncObj = reinterpret_cast<AudioEncoderObject *>(codec_); 93 OH_AVMemory *data = GetInputData(codec_, index, buffer); 94 callback_.onNeedInputData(codec_, index, data, userData_); 102 if (codec_ ! 176 struct OH_AVCodec *codec_; global() member in NativeAudioEncoderCallback [all...] |
H A D | native_audio_decoder.cpp | 54 : codec_(codec), callback_(cb), userData_(userData) {} in NativeAudioDecoder() 61 if (codec_ != nullptr && callback_.onError != nullptr) { 63 callback_.onError(codec_, extErr, userData_); 70 if (codec_ != nullptr && callback_.onStreamChanged != nullptr) { 73 callback_.onStreamChanged(codec_, reinterpret_cast<OH_AVFormat *>(object.GetRefPtr()), userData_); 80 if (codec_ != nullptr && callback_.onNeedInputData != nullptr) { 81 struct AudioDecoderObject *audioDecObj = reinterpret_cast<AudioDecoderObject *>(codec_); 89 OH_AVMemory *data = GetInputData(codec_, index, buffer); 90 callback_.onNeedInputData(codec_, index, data, userData_); 98 if (codec_ ! 176 struct OH_AVCodec *codec_; global() member in NativeAudioDecoder [all...] |
H A D | native_audio_codec.cpp | 61 : codec_(codec), callback_(cb), userData_(userData) in NativeAudioCodec() 70 if (codec_ != nullptr && callback_.onError != nullptr) { 72 callback_.onError(codec_, extErr, userData_); 79 if (codec_ != nullptr && callback_.onStreamChanged != nullptr) { 82 callback_.onStreamChanged(codec_, reinterpret_cast<OH_AVFormat *>(object.GetRefPtr()), userData_); 89 if (codec_ != nullptr && callback_.onNeedInputBuffer != nullptr) { 90 struct AudioCodecObject *audioCodecObj = reinterpret_cast<AudioCodecObject *>(codec_); 97 OH_AVBuffer *data = GetTransData(codec_, index, buffer); 98 callback_.onNeedInputBuffer(codec_, index, data, userData_); 105 if (codec_ ! 151 struct OH_AVCodec *codec_; global() member in NativeAudioCodec [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | animated_image_player.h | 39 : imageSource_(source), successCallback_(successCallback), context_(weakContext), codec_(std::move(codec)), in AnimatedImagePlayer() 40 frameCount_(codec_->getFrameCount()), repetitionCount_(codec_->getRepetitionCount()), in AnimatedImagePlayer() 41 frameInfos_(codec_->getFrameInfo()), dstWidth_(dstWidth), dstHeight_(dstHeight) in AnimatedImagePlayer() 110 const std::unique_ptr<SkCodec> codec_; member in OHOS::Ace::AnimatedImagePlayer
|
H A D | animated_image_player.cpp | 100 SkImageInfo info = codec_->getInfo().makeColorType(kN32_SkColorType); in DecodeFrameImage() 119 if (SkCodec::kSuccess != codec_->getPixels(info, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in DecodeFrameImage() 174 SkImageInfo skImageInfo = codec_->getInfo().makeColorType(kN32_SkColorType); in DecodeFrameImage() 194 if (SkCodec::kSuccess != codec_->getPixels(skImageInfo, bitmap.GetPixels(), bitmap.GetRowBytes(), &options)) { in DecodeFrameImage()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 298 auto heifContext = reinterpret_cast<HeifDecoderImpl*>(codec_->getHeifContext());
in HeapMemAlloc() 356 ExtDecoder::ExtDecoder() : codec_(nullptr), frameCount_(ZERO)
in HeapMemAlloc() 380 codec_ = nullptr;
in HeapMemAlloc() 406 auto scaledDimension = codec_->getScaledDimensions(finalScale);
in HeapMemAlloc() 474 if (orgbounds.contains(target) && codec_->getValidSubset(&target)) {
in HeapMemAlloc() 577 if (codec_) {
in HeapMemAlloc() 578 SkEncodedImageFormat skEncodeFormat = codec_->getEncodedFormat();
in HeapMemAlloc() 747 if (codec_ == nullptr) {
in HeapMemAlloc() 778 SkEncodedImageFormat skEncodeFormat = codec_->getEncodedFormat();
in HeapMemAlloc() 796 if (!IsColorSpaceSupport(static_cast<SkJpegCodec*>(codec_ in HeapMemAlloc() [all...] |
/foundation/multimedia/av_codec/services/engine/codec/include/audio/ |
H A D | audio_codec.h | 30 AudioCodecCallback(const std::shared_ptr<AudioCodec> &codec) : codec_(codec) {} in AudioCodecCallback() 33 codec_ = nullptr; in ~AudioCodecCallback() 41 std::shared_ptr<AudioCodec> codec_; member in OHOS::MediaAVCodec::AudioCodecCallback 190 if (codec_) { in OnError() 191 codec_->OnError(errorType, errorCode); in OnError() 197 if (codec_) { in OnOutputBufferDone() 198 codec_->OnOutputBufferDone(outputBuffer); in OnOutputBufferDone()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/ |
H A D | image_codec_log.h | 67 codec_->compUniqueStr_.c_str(), stateName_.c_str(), __FUNCTION__, __LINE__, ##__VA_ARGS__) 69 codec_->compUniqueStr_.c_str(), stateName_.c_str(), __FUNCTION__, __LINE__, ##__VA_ARGS__) 71 codec_->compUniqueStr_.c_str(), stateName_.c_str(), __FUNCTION__, __LINE__, ##__VA_ARGS__) 74 if (codec_->debugMode_) { \ 76 codec_->compUniqueStr_.c_str(), stateName_.c_str(), __FUNCTION__, __LINE__, ##__VA_ARGS__); \
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | ext_decoder_test.cpp | 63 ASSERT_EQ(extDecoder->codec_, nullptr);
in HWTEST_F() 78 extDecoder->codec_ = nullptr;
in HWTEST_F() 100 extDecoder->codec_ = nullptr;
in HWTEST_F() 119 extDecoder->codec_ = nullptr;
in HWTEST_F() 135 extDecoder->codec_ = nullptr;
in HWTEST_F() 151 extDecoder->codec_ = nullptr;
in HWTEST_F() 170 extDecoder->codec_ = nullptr;
in HWTEST_F() 199 extDecoder->codec_ = nullptr;
in HWTEST_F() 256 extDecoder->codec_ = nullptr;
in HWTEST_F() 307 extDecoder->codec_ in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | codec_server.cpp | 951 CodecBaseCallback::CodecBaseCallback(const std::shared_ptr<CodecServer> &codec) : codec_(codec) in CodecBaseCallback() 963 if (codec_ != nullptr) { in OnError() 964 codec_->OnError(errorType, errorCode); in OnError() 970 if (codec_ != nullptr) { in OnOutputFormatChanged() 971 codec_->OnOutputFormatChanged(format); in OnOutputFormatChanged() 977 if (codec_ != nullptr) { in OnInputBufferAvailable() 978 codec_->OnInputBufferAvailable(index, buffer); in OnInputBufferAvailable() 985 if (codec_ != nullptr) { in OnOutputBufferAvailable() 986 codec_->OnOutputBufferAvailable(index, info, flag, buffer); in OnOutputBufferAvailable() 990 VCodecBaseCallback::VCodecBaseCallback(const std::shared_ptr<CodecServer> &codec) : codec_(code [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | animated_image.h | 122 : AnimatedImage(codec, std::move(url)), codec_(std::move(codec)) in AnimatedSkImage() 132 : AnimatedImage(codec, std::move(url)), codec_(std::move(codec)) in AnimatedRSImage() 163 std::unique_ptr<SkCodec> codec_; member in OHOS::Ace::NG::AnimatedSkImage::AnimatedRSImage 169 std::unique_ptr<SkCodec> codec_; member in OHOS::Ace::NG::AnimatedSkImage::AnimatedRSImage
|