Exemplo n.º 1
0
	//----------
	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;
	}
Exemplo n.º 2
0
void
CodecList::append (CodecList& other)
{
  codecs.insert (end (), other.begin (), other.end ());
}