//---------- map<string, Codec> getCodecList(bool returnOnlyValid) { ofxSquash::initialize(); CodecList codecs; squash_foreach_codec(populateCodecListCallback, &codecs); if (returnOnlyValid) { //erase invalid codecs for (auto it = codecs.begin(); it != codecs.end(); ) { if (it->second.isValid()) { it++; } else { it = codecs.erase(it); } } } return codecs; }
void CodecList::append (CodecList& other) { codecs.insert (end (), other.begin (), other.end ()); }