Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Print AttributeLoad NameLoad attr Str Continue TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Print AttributeLoad NameLoad attr Str Continue Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq NameLoad Num body Print AttributeLoad NameLoad attr Str Continue Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print AttributeLoad NameLoad attr Str Continue Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr Str body Continue If CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr If UnaryOpNot Call AttributeLoad NameLoad attr CompareLt NameLoad Num body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad orelse If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Num NameLoad If CompareNotEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice UnaryOpUSub Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore IfExp CompareNotEq NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad AttributeLoad NameLoad attr While CompareIn BinOpAdd NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Str Assign AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list Return Call NameLoad decorator_list ImportFrom alias Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad attr NameLoad
N/A meshtool.filters.base_filters OptimizationFilter meshtool.util Image N/A sys StringIO StringIO N/A numpy optimizeTextures N/A N/A mesh N/A N/A N/A previous_images N/A N/A cimg N/A mesh images N/A N/A N/A N/A previous_images append N/A cimg path N/A pilimg N/A cimg pilimage N/A N/A pilimg None N/A N/A imgdata N/A cimg data N/A N/A imgdata None N/A N/A N/A sys stderr Couldn't load image data N/A N/A N/A panda3d.core Texture panda3d.core StringStream panda3d.core PNMImage N/A N/A N/A ImportError N/A N/A N/A sys stderr Tried loading image with PIL and DDS and both failed N/A N/A t N/A Texture N/A success N/A N/A t readDds N/A StringStream imgdata N/A N/A success 0 N/A N/A N/A sys stderr Tried loading image as DDS and failed N/A N/A outdata N/A N/A N/A N/A t getRamImageAs RGB getData N/A N/A N/A im N/A N/A Image fromstring RGB N/A N/A N/A t getXSize N/A N/A t getYSize outdata N/A N/A N/A im load N/A N/A N/A IOError N/A N/A N/A sys stderr Problem loading DDS file with PIL N/A N/A pilimg im N/A N/A N/A pilimg format JPEG N/A N/A N/A N/A A N/A N/A pilimg getbands N/A N/A alpha N/A N/A numpy array N/A N/A N/A N/A N/A pilimg split N/A -1 getdata N/A N/A N/A N/A numpy any N/A alpha 255 N/A N/A alpha None N/A pilimg N/A N/A pilimg convert RGB N/A N/A A N/A N/A pilimg getbands N/A N/A output_format PNG N/A output_extension .png N/A output_options N/A optimize True N/A N/A N/A N/A pilimg format RGB N/A N/A pilimg N/A N/A pilimg convert RGB N/A output_format JPEG N/A output_extension .jpg N/A output_options N/A quality optimize 95 True N/A N/A N/A N/A N/A N/A cimg path lower N/A N/A N/A len output_extension output_extension N/A N/A dot N/A N/A N/A cimg path rfind . N/A before_ext N/A N/A dot -1 N/A N/A cimg path N/A 0 dot N/A cimg path N/A N/A N/A before_ext output_extension previous_images N/A N/A before_ext N/A before_ext -x N/A N/A cimg path N/A before_ext output_extension N/A N/A N/A previous_images append N/A cimg path N/A outbuf N/A StringIO N/A N/A N/A N/A N/A pilimg save outbuf output_format output_options N/A N/A N/A IOError N/A ex N/A N/A ex N/A N/A cimg data N/A N/A outbuf getvalue N/A FilterGenerator N/A N/A N/A N/A OptimizeTexturesFilter N/A OptimizationFilter N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super OptimizeTexturesFilter self __init__ optimize_textures Converts all textures with alpha channel to PNG and ones without to JPEG N/A apply N/A N/A self mesh N/A N/A N/A N/A optimizeTextures mesh N/A mesh N/A N/A N/A N/A OptimizeTexturesFilter N/A meshtool.filters factory N/A N/A N/A factory register N/A N/A FilterGenerator name FilterGenerator