Lines Matching refs:trait

73         const Traits& trait, const std::string &mediaType) {  in addSupportedProfileLevels()  argument
75 C2Mapper::GetProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
81 bool encoder = trait.kind == C2Component::KIND_ENCODER; in addSupportedProfileLevels()
148 auto hdrMapper = C2Mapper::GetHdrProfileLevelMapper(trait.mediaType); in addSupportedProfileLevels()
154 trait.mediaType, true /*isHdr10Plus*/); in addSupportedProfileLevels()
191 const Traits& trait, const std::string &mediaType) { in addSupportedColorFormats() argument
196 bool encoder = trait.kind == C2Component::KIND_ENCODER; in addSupportedColorFormats()
200 if (trait.name.find("android") == std::string::npos) { in addSupportedColorFormats()
210 if (encoder && trait.name.find("android") != std::string::npos) { in addSupportedColorFormats()
350 for (const Traits& trait : traits) { in buildMediaCodecList() local
351 C2Component::rank_t rank = trait.rank; in buildMediaCodecList()
359 std::vector<std::string> nameAndAliases = trait.aliases; in buildMediaCodecList()
360 nameAndAliases.insert(nameAndAliases.begin(), trait.name); in buildMediaCodecList()
362 bool isAlias = trait.name != nameOrAlias; in buildMediaCodecList()
374 writer->findMediaCodecInfo(trait.name.c_str()); in buildMediaCodecList()
378 trait.name.c_str()); in buildMediaCodecList()
386 ALOGD("component '%s' not found in xml", trait.name.c_str()); in buildMediaCodecList()
390 std::string canonName = trait.name; in buildMediaCodecList()
401 if (trait.domain == C2Component::DOMAIN_AUDIO) { in buildMediaCodecList()
469 codecInfo->setOwner(("codec2::" + trait.owner).c_str()); in buildMediaCodecList()
471 bool encoder = trait.kind == C2Component::KIND_ENCODER; in buildMediaCodecList()
477 if (trait.owner == "software") { in buildMediaCodecList()
481 if (trait.owner == "vendor-software") { in buildMediaCodecList()
549 addSupportedProfileLevels(intf, caps.get(), trait, mediaType); in buildMediaCodecList()
550 addSupportedColorFormats(intf, caps.get(), trait, mediaType); in buildMediaCodecList()