root/src/SWFFilter.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. get

#include <SWFFilter.h>
#include "SWF.h"

namespace SWF {

Filter *Filter::get( Reader *r, int end, Context *ctx ) {
        int type = r->getByte();
        int len = end - r->getPosition();
        
        Filter* ret = getByType( type );

        if( !ret ) {
                Filter* ret = new UnknownFilter();
        }

        if( ret ) {
                ret->setType( type );
                ret->setLength( len );
                ret->parse( r, end, ctx );
        } 

        return ret;
}       

}

/* [<][>][^][v][top][bottom][index][help] */