Lines Matching refs:traits
685 std::shared_ptr<C2Component::Traits> traits(new (std::nothrow) C2Component::Traits); in init() local
686 if (traits) { in init()
690 traits->name = alias; in init()
692 bool encoder = (traits->name.find("encoder") != std::string::npos); in init()
710 traits->mediaType = mediaTypeConfig->m.value; in init()
712 traits->rank = 0x200; in init()
715 bool decoder = (traits->name.find("decoder") != std::string::npos); in init()
716 traits->kind = in init()
720 if (strncmp(traits->mediaType.c_str(), "audio/", 6) == 0) { in init()
721 traits->domain = C2Component::DOMAIN_AUDIO; in init()
722 } else if (strncmp(traits->mediaType.c_str(), "video/", 6) == 0) { in init()
723 traits->domain = C2Component::DOMAIN_VIDEO; in init()
724 } else if (strncmp(traits->mediaType.c_str(), "image/", 6) == 0) { in init()
725 traits->domain = C2Component::DOMAIN_IMAGE; in init()
727 traits->domain = C2Component::DOMAIN_OTHER; in init()
730 mTraits = traits; in init()
890 std::shared_ptr<const C2Component::Traits> traits = module->getTraits(); in listComponents() local
891 if (traits) { in listComponents()
892 list.push_back(traits); in listComponents()