/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/ |
H A D | http_source_plugin.cpp | 155 FALSE_RETURN_V(downloader_ == nullptr, Status::ERROR_INVALID_OPERATION); // not allowed set again in SetSource() 163 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in SetSource() 170 FALSE_RETURN_V(downloader_->Open(uri), Status::ERROR_UNKNOWN); in SetSource() 184 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in Read() 209 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in GetSize() 218 FALSE_RETURN_V(downloader_ != nullptr, Seekable::INVALID); in GetSeekable() 226 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in SeekToPos() 227 FALSE_RETURN_V(downloader_->GetSeekable() == Seekable::SEEKABLE, Status::ERROR_INVALID_OPERATION); in SeekToPos() 228 FALSE_RETURN_V(offset <= downloader_->GetContentLength(), Status::ERROR_INVALID_PARAMETER); in SeekToPos() 229 FALSE_RETURN_V(downloader in SeekToPos() [all...] |
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/ |
H A D | http_source_plugin.cpp | 102 FALSE_RETURN_V(downloader_ != nullptr, Status::OK); in SetReadBlockingFlag() 110 FALSE_RETURN_V(downloader_ != nullptr, Status::OK); in GetStreamInfo() 118 FALSE_RETURN_V(downloader_ != nullptr, Status::OK); in SelectStream() 186 FALSE_RETURN_V(downloader_ == nullptr, Status::ERROR_INVALID_OPERATION); // not allowed set again in SetSource() 187 FALSE_RETURN_V(source != nullptr, Status::ERROR_INVALID_OPERATION); in SetSource() 189 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in SetSource() 193 FALSE_RETURN_V(downloader_->Open(uri_, httpHeader_), Status::ERROR_UNKNOWN); in SetSource() 262 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in Read() 303 FALSE_RETURN_V(downloader_ != nullptr, Status::ERROR_NULL_POINTER); in GetSize() 312 FALSE_RETURN_V(downloader in GetSeekable() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 140 FALSE_RETURN_V(meta.Get<Tag::MIME>(mime), Status::ERROR_INVALID_PARAMETER); in SetCodecOfTrack() 154 FALSE_RETURN_V(meta.Get<Tag::AUDIO_SAMPLE_FORMAT>(sampleFormat), in SetParameterOfAuTrack() 158 FALSE_RETURN_V(meta.Get<Tag::AUDIO_CHANNELS>(channels), in SetParameterOfAuTrack() 162 FALSE_RETURN_V(meta.Get<Tag::AUDIO_SAMPLE_RATE>(sampleRate), in SetParameterOfAuTrack() 166 FALSE_RETURN_V(meta.Get<Tag::AUDIO_SAMPLE_PER_FRAME>(perFrame), in SetParameterOfAuTrack() 170 FALSE_RETURN_V(meta.Get<Tag::AUDIO_CHANNEL_LAYOUT>(layout), in SetParameterOfAuTrack() 184 FALSE_RETURN_V(meta.Get<Tag::VIDEO_PIXEL_FORMAT>(format), in SetParameterOfVdTrack() 188 FALSE_RETURN_V(meta.Get<Tag::VIDEO_WIDTH>(width), in SetParameterOfVdTrack() 192 FALSE_RETURN_V(meta.Get<Tag::VIDEO_HEIGHT>(height), in SetParameterOfVdTrack() 196 FALSE_RETURN_V(met in SetParameterOfVdTrack() [all...] |
/foundation/multimedia/media_foundation/src/buffer/avbuffer_queue/ |
H A D | avbuffer_queue.cpp | 43 FALSE_RETURN_V(shared_this != nullptr, nullptr); in GetLocalProducer() 57 FALSE_RETURN_V(shared_this != nullptr, nullptr); in GetLocalConsumer() 70 FALSE_RETURN_V(shared_this != nullptr, nullptr); in GetProducer() 84 FALSE_RETURN_V(shared_this != nullptr, nullptr); in GetConsumer() 110 FALSE_RETURN_V(size >= 0 && size <= AVBUFFER_QUEUE_MAX_QUEUE_SIZE && size != size_, in SetQueueSize() 129 FALSE_RETURN_V(buffer != nullptr, false); in IsBufferInQueue() 164 FALSE_RETURN_V(!dirtyBufferList_.empty(), Status::ERROR_NO_DIRTY_BUFFER); in PopFromDirtyBufferList() 174 FALSE_RETURN_V(bufferImpl != nullptr, Status::ERROR_CREATE_BUFFER); in AllocBuffer() 191 FALSE_RETURN_V(buffer != nullptr, Status::ERROR_NULL_POINT_BUFFER); in RequestReuseBuffer() 194 FALSE_RETURN_V(cachedBufferMap in RequestReuseBuffer() [all...] |
H A D | avbuffer_queue_producer_proxy.cpp | 31 FALSE_RETURN_V(arguments.WriteInterfaceToken(GetDescriptor()), \ 71 FALSE_RETURN_V(object != nullptr, nullptr); in Create() 83 FALSE_RETURN_V(arguments.WriteInterfaceToken(GetDescriptor()), 0); in GetQueueSize() 110 FALSE_RETURN_V(outBuffer != nullptr, Status::ERROR_CREATE_BUFFER); in RequestBuffer() 118 FALSE_RETURN_V(inBuffer != nullptr, Status::ERROR_NULL_POINT_BUFFER); in PushBuffer() 132 FALSE_RETURN_V(inBuffer != nullptr, Status::ERROR_NULL_POINT_BUFFER); in ReturnBuffer() 146 FALSE_RETURN_V(inBuffer != nullptr, Status::ERROR_NULL_POINT_BUFFER); in AttachBuffer() 160 FALSE_RETURN_V(outBuffer != nullptr, Status::ERROR_NULL_POINT_BUFFER); in DetachBuffer()
|
H A D | avbuffer_queue_producer_stub.cpp | 45 FALSE_RETURN_V(it != stubFuncMap_.end(), IPC_STUB_INVALID_DATA_ERR); in OnRemoteRequest() 46 FALSE_RETURN_V(it->second != nullptr, IPC_STUB_ERR); in OnRemoteRequest() 47 FALSE_RETURN_V(GetDescriptor() == arguments.ReadInterfaceToken(), ERR_INVALID_STATE); in OnRemoteRequest()
|
/foundation/multimedia/media_foundation/engine/scene/recorder/standard/ |
H A D | hirecorder_impl.cpp | 87 FALSE_RETURN_V(source != AudioSourceType::AUDIO_SOURCE_INVALID, in SetAudioSource() 89 FALSE_RETURN_V(audioCount_ < static_cast<int32_t>(AUDIO_SOURCE_MAX_COUNT), in SetAudioSource() 108 FALSE_RETURN_V(source != VideoSourceType::VIDEO_SOURCE_BUTT, 110 FALSE_RETURN_V(videoCount_ < static_cast<int32_t>(VIDEO_SOURCE_MAX_COUNT), 129 FALSE_RETURN_V(SourceIdGenerator::IsVideo(sourceId) && sourceId == static_cast<int32_t>(videoSourceId_) && 132 FALSE_RETURN_V(videoCapture_ ->GetParameter(static_cast<int32_t>(Plugin::Tag::VIDEO_SURFACE), any) 143 FALSE_RETURN_V(format != OutputFormatType::FORMAT_BUTT, TransErrorCode(ErrorCode::ERROR_INVALID_OPERATION)); 144 FALSE_RETURN_V((audioCount_ + videoCount_) > static_cast<uint32_t>(0), 165 FALSE_RETURN_V(outputFormatType_ != OutputFormatType::FORMAT_BUTT, in Configure() 167 FALSE_RETURN_V(CheckParamTyp in Configure() [all...] |
/foundation/multimedia/av_codec/services/media_engine/modules/sink/ |
H A D | calc_max_amplitude.cpp | 35 FALSE_RETURN_V(frame != nullptr && nSamples != 0, 0.0f);
in CalculateMaxAmplitudeForPCM8Bit() 51 FALSE_RETURN_V(frame != nullptr && nSamples != 0, 0.0f);
in CalculateMaxAmplitudeForPCM16Bit() 67 FALSE_RETURN_V(frame != nullptr && nSamples != 0, 0.0f);
in CalculateMaxAmplitudeForPCM24Bit() 87 FALSE_RETURN_V(frame != nullptr && nSamples != 0, 0.0f);
in CalculateMaxAmplitudeForPCM32Bit() 103 FALSE_RETURN_V(frame != nullptr && replyBytes != 0, 0.0f);
in UpdateMaxAmplitude()
|
H A D | video_sink.cpp | 96 FALSE_RETURN_V(buffer != nullptr, false); in DoSyncWrite() 103 FALSE_RETURN_V(syncCenter != nullptr, false); in DoSyncWrite() 163 FALSE_RETURN_V(buffer != nullptr, true); in CheckBufferLatenessMayWait() 166 FALSE_RETURN_V(syncCenter != nullptr, true); in CheckBufferLatenessMayWait() 171 FALSE_RETURN_V(ct4Buffer != Plugins::HST_TIME_NONE, 0); in CheckBufferLatenessMayWait()
|
H A D | audio_sink.cpp | 61 FALSE_RETURN_V(plugin_ != nullptr, Status::ERROR_NULL_POINTER); in Init() 62 FALSE_RETURN_V(meta != nullptr, Status::ERROR_NULL_POINTER); in Init() 105 FALSE_RETURN_V(meta != nullptr, Status::ERROR_NULL_POINTER); in SetParameter() 108 FALSE_RETURN_V(plugin_ != nullptr, Status::ERROR_NULL_POINTER); in SetParameter() 522 FALSE_RETURN_V(syncCenter != nullptr, false); in UpdateTimeAnchorIfNeeded() 677 FALSE_RETURN_V(plugin_ != nullptr, Status::ERROR_NULL_POINTER); in ChangeTrack() 678 FALSE_RETURN_V(meta != nullptr, Status::ERROR_NULL_POINTER); in ChangeTrack() 707 FALSE_RETURN_V(plugin_ != nullptr, Status::ERROR_NULL_POINTER); in SetMuted()
|
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | audio_sink_filter.cpp | 240 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in SetVolume() 260 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in SetSpeed() 273 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in SetAudioEffectMode() 282 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in GetAudioEffectMode() 290 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in SetIsTransitent() 297 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in ChangeTrack() 315 FALSE_RETURN_V(audioSink_ != nullptr, Status::ERROR_INVALID_STATE); in SetMuted() 321 FALSE_RETURN_V(audioSink_ != nullptr, 0.0f); in GetMaxAmplitude() 327 FALSE_RETURN_V(audioSink_ != nullptr, MSERR_INVALID_VAL); in SetMaxAmplitudeCbStatus() 334 FALSE_RETURN_V(audioSink in SetSeekTime() [all...] |
/foundation/multimedia/media_foundation/test/scenetest/helper/ |
H A D | std_audio_recorder.cpp | 87 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audSampleRate)) == 0, ERR_INVALID_VALUE); in Configure() 88 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audChannel)) == 0, ERR_INVALID_VALUE); in Configure() 89 FALSE_RETURN_V((recorder_->Configure(audioSourceId, audBitRate)) == 0, ERR_INVALID_VALUE); in Configure() 90 FALSE_RETURN_V((recorder_->Configure(audioSourceId, auEncoder)) == 0, ERR_INVALID_VALUE); in Configure()
|
/foundation/multimedia/av_codec/services/media_engine/modules/media_codec/ |
H A D | media_codec.cpp | 162 FALSE_RETURN_V(state_ == CodecState::INITIALIZED, (int32_t)Status::ERROR_INVALID_STATE); in Configure() 164 FALSE_RETURN_V(ret == Status::OK, (int32_t)ret); in Configure() 166 FALSE_RETURN_V(ret == Status::OK, (int32_t)ret); in Configure() 175 FALSE_RETURN_V(state_ == CodecState::INITIALIZED || state_ == CodecState::CONFIGURED, in SetOutputBufferQueue() 185 FALSE_RETURN_V(state_ == CodecState::INITIALIZED || state_ == CodecState::CONFIGURED, in SetCodecCallback() 191 FALSE_RETURN_V(ret == Status::OK, (int32_t)ret); in SetCodecCallback() 198 FALSE_RETURN_V(state_ == CodecState::INITIALIZED || state_ == CodecState::CONFIGURED, in SetCodecCallback() 209 FALSE_RETURN_V(state_ == CodecState::INITIALIZED || state_ == CodecState::CONFIGURED, in SetOutputSurface() 222 FALSE_RETURN_V(state_ != CodecState::PREPARED, (int32_t)Status::OK); in Prepare() 223 FALSE_RETURN_V(state in Prepare() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/http/ |
H A D | http_media_downloader.cpp | 51 FALSE_RETURN_V(statusCallback_ != nullptr, false); in Open() 88 FALSE_RETURN_V(buffer_ != nullptr, false); in Read() 117 FALSE_RETURN_V(buffer_ != nullptr, false); in SeekToPos() 166 FALSE_RETURN_V(buffer_->WriteBuffer(data, len), false); in SaveData()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/audio_decoder/ |
H A D | audio_decoder_filter.cpp | 87 FALSE_RETURN_V(CodecFilterBase::Negotiate(inPort, upstreamCap, negotiatedCap, upstreamParams, downstreamParams), in Negotiate() 97 FALSE_RETURN_V(CodecFilterBase::Configure(inPort, upstreamMeta, upstreamParams, downstreamParams), false); in Configure() 131 FALSE_RETURN_V(meta->Get<Plugin::Tag::AUDIO_SAMPLE_PER_FRAME>(samplesPerFrame), 0); in CalculateBufferSize() 134 FALSE_RETURN_V(meta->Get<Plugin::Tag::AUDIO_CHANNELS>(channels), 0); in CalculateBufferSize() 137 FALSE_RETURN_V(meta->Get<Plugin::Tag::AUDIO_SAMPLE_FORMAT>(format), 0); in CalculateBufferSize()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_decoder/ |
H A D | video_decoder_filter.cpp | 109 FALSE_RETURN_V(CodecFilterBase::Configure(inPort, upstreamMeta, upstreamParams, downstreamParams), false); in Configure() 120 FALSE_RETURN_V(CodecFilterBase::Negotiate(inPort, upstreamCap, negotiatedCap, upstreamParams, downstreamParams), in Negotiate() 138 FALSE_RETURN_V(meta->Get<Plugin::Tag::VIDEO_WIDTH>(vdecWidth), 0); in CalculateBufferSize() 139 FALSE_RETURN_V(meta->Get<Plugin::Tag::VIDEO_HEIGHT>(vdecHeight), 0); in CalculateBufferSize() 140 FALSE_RETURN_V(meta->Get<Plugin::Tag::VIDEO_PIXEL_FORMAT>(vdecFormat), 0); in CalculateBufferSize()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/download/ |
H A D | downloader.cpp | 214 FALSE_RETURN_V(currentRequest_ != nullptr, false); in Seek() 233 FALSE_RETURN_V(client_ != nullptr && !shouldStartNextRequest, false); in Retry() 239 FALSE_RETURN_V(client_ != nullptr && !shouldStartNextRequest, false); in Retry() 259 FALSE_RETURN_V(!url.empty(), false); in BeginDownload() 396 FALSE_RETURN_V(key != nullptr, size * nitems); in RxHeaderData() 399 FALSE_RETURN_V(token != nullptr, size * nitems); in RxHeaderData() 407 FALSE_RETURN_V(token != nullptr, size * nitems); in RxHeaderData() 415 FALSE_RETURN_V(token != nullptr, size * nitems); in RxHeaderData() 425 FALSE_RETURN_V(token != nullptr, size * nitems); in RxHeaderData()
|
H A D | http_curl_client.cpp | 54 FALSE_RETURN_V(easyHandle_ != nullptr, Status::ERROR_NULL_POINTER); in Open() 122 FALSE_RETURN_V(easyHandle_ != nullptr, Status::ERROR_NULL_POINTER); in RequestData() 141 FALSE_RETURN_V(easyHandle_ != nullptr, Status::ERROR_NULL_POINTER); in RequestData()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/stream_source/ |
H A D | stream_source_plugin.cpp | 112 FALSE_RETURN_V(stream_ != nullptr, Status::ERROR_INVALID_PARAMETER); in SetSource() 118 FALSE_RETURN_V(dataBuffer != nullptr, nullptr); in WrapDataBuffer() 136 FALSE_RETURN_V(stream_->GetDataBuffer(dataBuffer), Status::ERROR_TIMED_OUT); in Read()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/ |
H A D | data_packer.cpp | 162 FALSE_RETURN_V(dstPtr != nullptr, false); in PeekRangeInternal() 218 FALSE_RETURN_V(!que_.empty(), false); in GetRange() 221 FALSE_RETURN_V(PeekRangeInternal(offset, size, bufferPtr, true), false); in GetRange() 256 FALSE_RETURN_V(!que_.empty(), false); in GetRange() 263 FALSE_RETURN_V(dstPtr != nullptr, false); in GetRange() 382 FALSE_RETURN_V(UpdateWhenFrontDataRemoved(removeSize), false); in RemoveTo() 392 FALSE_RETURN_V(UpdateWhenFrontDataRemoved(removeSize), false); in RemoveTo()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/ |
H A D | downloader.cpp | 387 FALSE_RETURN_V(currentRequest_ != nullptr, false); in Seek() 433 FALSE_RETURN_V(client_ != nullptr && !shouldStartNextRequest && !isDestructor_ && !isInterruptNeeded_, false); in Retry() 440 FALSE_RETURN_V(client_ != nullptr && !shouldStartNextRequest && !isDestructor_ && !isInterruptNeeded_, false); in Retry() 488 FALSE_RETURN_V(!url.empty(), false); in BeginDownload() 792 FALSE_RETURN_V(token != nullptr, false); in HandleContentRange() 813 FALSE_RETURN_V(token != nullptr, false); in HandleContentType() 827 FALSE_RETURN_V(token != nullptr, false); in HandleContentEncode() 836 FALSE_RETURN_V(key != nullptr, false); in HandleContentLength() 839 FALSE_RETURN_V(next != nullptr, false); in HandleContentLength() 841 FALSE_RETURN_V(toke in HandleContentLength() [all...] |
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | avbuffer_common.cpp | 72 FALSE_RETURN_V(&rhs != this, *this); 85 FALSE_RETURN_V(memoryType == rhs.memoryType, false); in operator <=()
|
/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 110 FALSE_RETURN_V(!IsExists(path), true); in MakeMultipleDir() 117 FALSE_RETURN_V(IsExists(tPath) || MakeDir(tPath), false); in MakeMultipleDir()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/ |
H A D | data_stream_source_plugin.cpp | 79 FALSE_RETURN_V(dataSrc_ != nullptr, Status::ERROR_INVALID_PARAMETER); in SetSource() 142 FALSE_RETURN_V(static_cast<int64_t>(offset_) <= size_, Status::END_OF_STREAM); in Read() 175 FALSE_RETURN_V(buffer != nullptr, Status::ERROR_AGAIN); in Read() 179 FALSE_RETURN_V(realLen != 0, Status::ERROR_AGAIN); in Read()
|
/foundation/multimedia/media_foundation/engine/pipeline/core/ |
H A D | port.cpp | 126 FALSE_RETURN_V(filter1 != nullptr, false); in InSamePipeline() 128 FALSE_RETURN_V(filter2 != nullptr, false); in InSamePipeline() 130 FALSE_RETURN_V(pipeline1 != nullptr, false); in InSamePipeline() 132 FALSE_RETURN_V(pipeline2 != nullptr, false); in InSamePipeline()
|