Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/IcoImagePlugin.cpython-310.pyc

121 lines
8.6 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j/3<00>@sddlmZddlZddlmZddlmZmZddlm Z m
Z
ddl m Z m Z mZmZddlmZdd lmZdd
lmZdd lmZdd lmZd Zd%dd<17>Zd&dd<1C>ZGdd<1E>de
<EFBFBD>ZGdd <20>d <20>ZGd!d"<22>d"ej<0E>Ze <0A> ej!ee<1C>e <0A>"ej!e<1B>e <0A>#ej!d#<23>e <0A>$ej!d$<24>dS)'<27>)<01> annotationsN)<01>BytesIO)<02>ceil<69>log)<02>IO<49>
NamedTuple<EFBFBD>)<04>BmpImagePlugin<69>Image<67> ImageFile<6C>PngImagePlugin)<01>i16le)<01>i32le)<01>o8)<01>o16le)<01>o32les<00>im<69> Image.Image<67>fp<66> IO[bytes]<5D>filename<6D> str | bytes<65>return<72>Nonec Cs<>|<01>t<01>|j<02>d<01>dk}|j<02>dgd<04><01>}g}|g|j<02>dg<00>}|j\}}tt|<04><01>D]m} | d|ksG| d|ksG| ddksG| ddkrHq-|D]<}
|
j| krRqJ|<05>|
<EFBFBD>|r<>tj |
j
d} | g} |D]} | j| krnqftj | j
d} | | vr<>|<05>| <0A>| <0C>| <0B>qfn|
<EFBFBD> <0B>}|j | t jjdd <09>|<05>|<0E>q-|<01>tt|<05><01><01>|<01><12>t|<05>d
}|D]<5D>}|j\}}|<01>t|dkr<>|nd<06><01>|<01>t|dkr<>|nd<06><01>|r<>tj |j
dd<00>nd \} }|<01>t|<10><01>|<01>d <0C>|<01>d <0A>|<01>t| <0B><01>t<14>}|<03>r!|<0E>|d<0E>| dk<03>r t <0A>d| <09>}t<17>||t<17>dd| dd<13>g<01>n|<0E>|d<14>|<11>d<06>|<11><1B>}|<03>rE|dd<15>t|d<00>|dd<00>}t|<13>}|<01>t|<14><01>|<01>t|<0F><01>|<01><12>}|<01>|<0F>|<01>|<13>||}|<01>|<15>q<>dS)N<> bitmap_format<61>bmp<6D>sizes))<02>r)<02>r)<02> r)<02>0r )<02>@r!)<02><>r")<02>r#<00> append_imagesrrr#)<01> reducing_gapr)rr<00>s<00>dibr<00>1<>raw<61>rr)r(r<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>png<6E><00><00> )<1D>write<74>_MAGIC<49> encoderinfo<66>get<65>size<7A>sorted<65>set<65>appendr <00>SAVE<56>mode<64>copy<70> thumbnailr
<00>
Resampling<EFBFBD>LANCZOS<4F>o16<31>len<65>tellrr<00>save<76>newr <00>_save<76>_Tile<6C>seek<65>read<61>o32)rrrrr<00>frames<65> provided_ims<6D>width<74>heightr4<00> provided_im<69>bits<74> bits_used<65>other_im<69>frame<6D>offset<65>colors<72>image_io<69>and_mask<73> image_bytes<65> bytes_len<65>current<6E>rX<00>u/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/IcoImagePlugin.pyrC9s<>
<04>
0




<02>
<02>
 

 
 <04><02> 
$

 <04>rC<00>prefix<69>bytes<65>boolcCs
|<00>t<01>S<00>N)<02>
startswithr1)rZrXrXrY<00>_accept<70>s
r_c@sfeZdZUded<ded<ded<ded<ded<ded<ded<ded <d
ed <ded <ded <dS)<0F>
IconHeader<EFBFBD>intrJrK<00>nb_color<6F>reserved<65>planes<65>bppr4rQ<00>tuple[int, int]<5D>dim<69>square<72> color_depthN)<04>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__annotations__rXrXrXrYr`<00>s
 r`c@sBeZdZddd<06>Zddd <09>Zdddd<11>Zdddd<14>Zddd<17>ZdS)<1F>IcoFile<6C>bufrrrc
Cs|<01>d<01>}t|<02>sd}t|<03><01>||_g|_t|d<03>|_t|j<06>D]P}|<01>d<04>}|dp,d}|dp2d}|d}t|d<01>}t||||d t|d<03>t|d<01>t |d
<EFBFBD>t |d <0B>||f|||pg|dkrft
t |d<08><02>pgdd <0C> } |j<04> | <09>q t |jd d<0E>d<0F>|_t |jdd<0E>dd<12>|_dS)zL
Parse image from file-like object containing ico file data
<20>znot an ICO file<6C>rrr#rr.<00>r-r/) rJrKrbrcrdrer4rQrgrhricS<01>|jSr])ri<00><01>xrXrXrY<00><lambda><3E><00>z"IcoFile.__init__.<locals>.<lambda>)<01>keycSrsr])rhrtrXrXrYrv<00>rwT)rx<00>reverseN)rFr_<00> SyntaxErrorro<00>entry<72>i16<31>nb_items<6D>ranger`<00>i32rrr7r5)
<EFBFBD>selfro<00>s<>msg<73>irJrKrbre<00> icon_headerrXrXrY<00>__init__<5F>s:
 
  
<06>zIcoFile.__init__<5F>set[tuple[int, int]]cCsdd<02>|jD<00>S)zI
Get a set of all available icon sizes and color depths.
cSsh|]}|j|jf<02>qSrX)rJrK)<02>.0<EFBFBD>hrXrXrY<00> <setcomp><3E>sz IcoFile.sizes.<locals>.<setcomp>)r{<00>r<>rXrXrYr<00>sz IcoFile.sizesFr4rfre<00>
int | boolracCs<t|j<01>D]\}}||jkr|dus||jkr|SqdS)NFr)<04> enumerater{rgri)r<>r4rer<>r<>rXrXrY<00> getentryindex<65>s
<02>zIcoFile.getentryindexrcCs|<00>|<00>||<02><02>S)z,
Get an image from the icon
)rPr<>)r<>r4rerXrXrY<00>getimage<67>szIcoFile.getimage<67>idxc
Cs|j|}|j<01>|j<03>|j<01>d<01>}|j<01>|j<03>|dd<01>tjkr0t<05>|j<01>}t<08> |j
<EFBFBD>|St <0B> |j<01>}t<08> |j
<EFBFBD>|j
dt |j
dd<00>f|_|jd\}}}}t<10>|d|j
||<08>|jd<|jdkr<>|j<01>|<07>|j<01>|j
d|j
dd<00>d dd<08>} z t<08>d
|j
| d d <0C>}
Wnity<>tjr<>d}
n<01>YnZw|j
d} | ddkr<>| d|j
dd7} t | |j
dd<00>} |j|j
| } |j<01>| <0A>|j<01>| <0C>}zt<08>d |j
|d dt | d<00>df<03>}
Wnty<>tjr<>d}
n<01>Ynw|
<EFBFBD>r|<04>d<10>}|<04>|
<EFBFBD>|S)z-
Get an image from frame idx
r-Nrrr.r*rrqrr<00>Lr))r<>rr+r(z1;Ir+<00>RGBA)r{rorErQrFr r1<00> PngImageFiler
<00>_decompression_bomb_checkr4r <00> DibImageFilera<00>_size<7A>tiler rDre<00>
frombuffer<EFBFBD>
ValueError<EFBFBD>LOAD_TRUNCATED_IMAGES<45>convert<72>putalpha)r<>r<><00>header<65>datar<00>d<>e<>o<>a<> alpha_bytes<65>mask<73>w<> total_bytes<65>and_mask_offset<65> mask_datarXrXrYrP<00>sn
   K <0C> 
 *<08> <04><02>
   <08> <04><02>

z IcoFile.frameN)rorrr)rr<>)F)r4rfrer<>rra)r4rfrer<>rr)r<>rarr)rjrkrlr<>rr<>r<>rPrXrXrXrYrn<00>s 

2  rnc@sTeZdZdZdZdZddd<07>Zedd d
<EFBFBD><04>Zej dd d
<EFBFBD><04>Zddd<0F>Z
ddd<13>Z dS)<1A> IcoImageFilea<65>
PIL read-only image support for Microsoft Windows .ico files.
By default the largest resolution image in the file will be loaded. This
can be changed by altering the 'size' attribute before calling 'load'.
The info dictionary has a key 'sizes' that is a list of the sizes available
in the icon file.
Handles classic, XP and Vista icon formats.
When saving, PNG compression is used. Support for this was only added in
Windows Vista. If you are unable to view the icon in Windows, convert the
image to "RGBA" mode before saving.
This plugin is a refactored version of Win32IconImagePlugin by Bryan Davis
<casadebender@gmail.com>.
https://code.google.com/archive/p/casadebender/wikis/Win32IconImagePlugin.wiki
<20>ICOz Windows IconrrcCsF|jdusJ<00>t|j<00>|_|j<02><03>|jd<|jjdj|_|<00><08>dS)Nrr) rrn<00>icor<00>infor{rgr4<00>loadr<64>rXrXrY<00>_openVs
  zIcoImageFile._openrfcCrsr])r<>r<>rXrXrYr4]szIcoImageFile.size<7A>valuecCs$||jdvr d}t|<02><01>||_dS)Nrz2This is not one of the allowed sizes of this image)r<>r<>r<>)r<>r<>r<>rXrXrYr4as
<01>Image.core.PixelAccess | NonecCs<>|jdur|jj|jkrtj<03>|<00>S|j<05>|j<02>}|<01><04>|j|_|j|_|j r,|j |_ |j|jkrUt
<EFBFBD> d<01>|j<05> |j<02>}t |jd<00>}|j||<t|<03>|jd<|j|_tj<03>|<00>S)NzImage was not the expected sizer)<10>_imrr4r
r<>r<>r<>r9<00>_mode<64>palette<74>warnings<67>warnr<6E><00>listr<74>r6)r<>r<00>indexrrXrXrYr<>hs   

 zIcoImageFile.load<61>posracCsdSr]rX)r<>r<>rXrXrY<00> load_seek~szIcoImageFile.load_seekN)rr)rrf)r<>rfrr)rr<>)r<>rarr) rjrkrl<00>__doc__<5F>format<61>format_descriptionr<6E><00>propertyr4<00>setterr<72>r<>rXrXrXrYr<>>s
  
r<>z.icoz image/x-icon)rrrrrrrr)rZr[rr\)%<25>
__future__rr<><00>ior<00>mathrr<00>typingrr<00>r r
r r <00>_binaryr r|rrrrr>rrGr1rCr_r`rnr<><00> register_openr<6E><00> register_save<76>register_extension<6F> register_mimerXrXrXrY<00><module>s, $      

M'J