Home
last modified time | relevance | path

Searched refs:originCap (Results 1 - 2 of 2) sorted by relevance

/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dcompatible_check.h27 * merge otherCap keys with originCap keys:
28 * 1. if key exists in only one Cap (e.g. only exists in originCap or otherCap), then put key into resCap directly
29 * 2. if key exists in both originCap and otherCap, then intersections will be calculated
34 * @param originCap originCap
39 bool MergeCapabilityKeys(const Capability& originCap, const Capability& otherCap, Capability& resCap);
42 * merge otherCap with originCap. The rule of merging keys is the same as MergeCapabilityKeys. Besides, it requires that
43 * mime in originCap should be subset of mime in otherCap. The mime of resCap is set as originCap.mime.
45 * @param originCap originCa
[all...]
H A Dcompatible_check.cpp365 bool MergeCapabilityKeys(const Capability& originCap, const Capability& otherCap, Capability& resCap) in MergeCapabilityKeys() argument
368 for (const auto& pairKey : originCap.keys) { in MergeCapabilityKeys()
387 MEDIA_LOG_W("No intersections, originCap.mime: " PUBLIC_LOG_S ", tag: " PUBLIC_LOG_S, in MergeCapabilityKeys()
388 originCap.mime.c_str(), Plugin::Tag2String(static_cast<Plugin::Tag>(pairKey.first))); in MergeCapabilityKeys()
392 // if key is otherCap but not in originCap, put into resCap in MergeCapabilityKeys()
401 bool MergeCapability(const Capability& originCap, const Capability& otherCap, Capability& resCap) in MergeCapability() argument
405 if (!IsSubsetMime(originCap.mime, otherCap.mime)) { in MergeCapability()
408 if (!MergeCapabilityKeys(originCap, otherCap, resCap)) { in MergeCapability()
411 resCap.mime = originCap.mime; in MergeCapability()
415 bool ApplyCapabilitySet(const Capability& originCap, cons argument
[all...]

Completed in 1 milliseconds