コード例 #1
0
ファイル: codec-description.cpp プロジェクト: UIKit0/ekiga
bool
CodecList::operator== (const CodecList & c) const
{
  CodecList::const_iterator it2 = c.begin ();

  if (codecs.size () != c.codecs.size ())
    return false;

  for (const_iterator it = begin ();
       it != end ();
       it++) {

    if ((*it) != (*it2))
      return false;

    it2++;
  }

  return true;
}
コード例 #2
0
ファイル: ofxSquash.cpp プロジェクト: danielmorena/ofxSquash
	//----------
	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;
	}
コード例 #3
0
ファイル: codec-description.cpp プロジェクト: UIKit0/ekiga
void
CodecList::append (CodecList& other)
{
  codecs.insert (end (), other.begin (), other.end ());
}