³ò À’qEc @sïddkZddkZddkZddkZddkZdZdZhdd<dd<dd<d d <d d R-( RR`tskipRORGRPRR-tflagRFRHRI((s ImageFile.pyctfeedXsZ               cCs§|io;|idƒd|_|_|iptdƒ‚qEn|iptdƒ‚n|io7z%t|iƒ}ti |ƒ|_Wd|i ƒXn|iS(NR#simage was incompletescannot parse this image( RlRpRR`RkR&R^R_RRRb(RR((s ImageFile.pycRb­s     N( RSRTRt incrementalR^R`RlRkRjRpRb(((s ImageFile.pycRiBs Uc Cs|iƒt|dƒp d|_n|itƒtt|iddƒ}y|iƒ}|i ƒWnÚt j oÎxk|D]¼\}}}}t i |i |||iƒ}|djo|i|dƒn|i|i|ƒx4|i|ƒ\} } } |i| ƒ| oPqçqç| djotd| ƒ‚q€q€Wn¤XxŸ|D]—\}}}}t i |i |||iƒ}|djo|i|dƒn|i|i|ƒ|i||ƒ} | djotd| ƒ‚qLqLWy|i ƒWnnXdS(s'Helper to save image based on tile listt encoderconfigiis(encoder error %d when writing image fileN((R%R)RrR;RtmaxR RR2tflushR4Rt _getencoderRR+R>R-tencodetwriteR&tencode_to_file( R-RR tbufsizetfhRGRLRHRItlRNRF((s ImageFile.pyct_saveÊsF         cCsŸ|djodSn|tjo|i|ƒSng}xS|djoE|it|tƒƒ}|pPn|i|ƒ|t|ƒ}q<Wti|dƒS(NiR#(t SAFEBLOCKR9RmtappendR'tstringtjoin(RRR`tblock((s ImageFile.pyct _safe_readüs    i(((RRtsysRR/R R}RARRRVR_RiR|R‚(((s ImageFile.pycss 0      º/ˆ 2