+
    %i                       ^ RI Ht ^ RIt^ RIt^ RIHt ^RIHtHtH	t	 ^RI
Ht ^RI
Ht ^RI
Ht ^RI
Ht RR	RR
RRRRRRRRRR/t ! R R]P                  4      tR
RRRRR R	R!RR"RR#/tR R lt]P,                  ! ]P.                  ]4       ]P0                  ! ]P.                  ]4       ]P2                  ! ]P.                  . R$O4       ]P4                  ! ]P.                  R4       R# )%    )annotationsN)IO)Image	ImageFileImagePalette)i16le)i32le)o8)o16leP1LLABGRA;15ZBGRBGRAc                  6    ] tR t^3tRtRtR R ltR R ltRtR# )	TgaImageFileTGATargac                   V ^8  d   QhRR/#    returnNone )formats   "P/var/www/html/photoedit/myenv/lib/python3.14/site-packages/PIL/TgaImagePlugin.py__annotate__TgaImageFile.__annotate__7   s     h ht h    c                	   V P                   f   Q hV P                   P                  ^4      pV^ ,          pV^,          pV^,          pV^,          pV^,          p\        V^4      \        V^4      3V n        VR9  g8   V P                  ^ ,          ^ 8:  g    V P                  ^,          ^ 8:  g   VR9  d   Rp\        V4      hVR9   d&   RV n        V^8X  d	   RV n        MMV^8X  d   RV n        M>VR9   d   V'       d   RMRV n        M%VR9   d   V^8X  d   RMRV n        MRp\        V4      hV^0,          pVR9   V n        VR9   d   ^pMVR9   d   RpMR	p\        V4      hWP                  R
&   V^,          '       d   RV P                  R&   V'       d)   V P                   P                  V4      V P                  R&   V'       EdP   \        V^4      \        V^4      V^,          rp	V^8X  df   \        P                  ! R\        ^V	,          4      V P                   P                  ^V
,          4      ,           4      V n        RV P                  n        MV^8X  dU   \        P                  ! R\        ^V	,          4      V P                   P                  ^V
,          4      ,           4      V n        MhV^ 8X  dU   \        P                  ! R\        ^V	,          4      V P                   P                  ^V
,          4      ,           4      V n        MRp\        V4      h \        V^,          V3,          pV^,          '       dM   \        P                   ! RRV P                  ,           V P                   P#                  4       WV34      .V n        R # \        P                   ! RRV P                  ,           V P                   P#                  4       V^ V34      .V n        R #   \&         d     R # i ; i)Nznot a TGA filer   r   r   r   RGBRGBAzunknown TGA modezunknown TGA orientationorientationtga_rlecompression
id_sectionr   r   r   zunknown TGA map depthraw)r      )r*                )      )r*   	   )r   
   )r,   0   )r.   r3   )r   r,   r   r   )fpreadi16_sizesizeSyntaxError_mode_flip_horizontallyinfor   r)   bytespalettemodeMODESr   _TiletelltileKeyError)selfsid_lencolormaptype	imagetypedepthflagsmsgr%   startr:   mapdepthrawmodes   &            r   _openTgaImageFile._open7   s=   ww"""GGLL1taD	""BZQ+
 &yy|q yy|q .."Cc"" DJz 
"!
&  ,#DJ'!"'2+6DJ$Cc"" dl"-"=,&KI%K+Cc""#.		- q=='0DIIm$&*ggll6&:DIIl#<$'1Is1ay!A$E2~+//a%i 0477<<D3I I  %+!R+//5U+dggll1t8.DD  R+//E!e),tww||AH/EE  .!#&&	Y]E23G1}} OO!* u5		 OO* ![1		  		s    $O 9A
O AO O! O!c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r       s     I I$ Ir!   c                	~   V P                   R 8X  d   V P                  f   Q hV P                  P                  R\        P                  4       V P                  P                  ^4      pVP                  R4      '       dt   \        V4      pV'       da   V P                  P                  VR,           4       V P                  P                  ^4      pVR8X  d   V P                  P                  ^^4       V P                  '       d;   V P                  P                  \        P                  P                  4      V n        R# R# )r$   Ns   TRUEVISION-XFILE. i      i)rA   r6   seekosSEEK_ENDr7   endswithi32imfillbandr=   	transposer   	TransposeFLIP_LEFT_RIGHT)rG   footerextension_offsetattributes_types   &   r   load_endTgaImageFile.load_end   s    9977&&&GGLLbkk*WW\\"%F788#&v; #GGLL!1C!78&*ggll1oO&'1((C0"""gg''(G(GHDG #r!   )r=   r<   r9   r\   r@   rE   N)	__name__
__module____qualname____firstlineno__r   format_descriptionrR   rd   __static_attributes__r   r!   r   r   r   3   s     F hTI Ir!   r   r#   r$   c               (    V ^8  d   QhRRRRRRRR/# )	r   r\   zImage.Imager6   z	IO[bytes]filenamezstr | bytesr   r   r   )r   s   "r   r   r      s.     H; H;k H;y H;K H;D H;r!   c                    \         V P                  ,          w  r4rVRT P                  9   d   T P                  R,          p	M:T P                  P                  RT P                  P                  R4      4      p
T
R8H  p	T	'       d
   T^,          pT P                  P                  RT P                  P                  RR4      4      p\        T4      pT^8  d"   ^pTR,          p\        P                  ! R	4       T'       d1   T P                  P                  R
R4      p\        T4      ^,          ^rM^ ^ rT P                  R9   d   ^pM^ pT P                  P                  RT P                  P                  RR4      4      pT^ 8  d
   T^ ,          pTP                  \        T4      \        T4      ,           \        T4      ,           \        ^ 4      ,           \        T4      ,           \        T4      ,           \        ^ 4      ,           \        ^ 4      ,           \        T P                  ^ ,          4      ,           \        T P                  ^,          4      ,           \        T4      ,           \        T4      ,           4       T'       d   TP                  T4       T'       d   TP                  X4       T	'       dE   \         P"                  ! T T\         P$                  ! RRT P                  ,           ^ TT34      .4       MD\         P"                  ! T T\         P$                  ! RRT P                  ,           ^ T^ T34      .4       TP                  R4       R#   \         d"   pR T P                   R2p\        T4      ThRp?ii ; i)zcannot write mode z as TGANrler'   r&   r(    :N   Nz-id_section has been trimmed to 255 charactersr#   r   r%   r)   )r   r$   r4   r5   s           TRUEVISION-XFILE. )SAVErA   rF   OSErrorencoderinfogetr>   lenwarningswarnr\   
getpalettewriter
   o16r:   r   _saverC   )r\   r6   rm   rQ   bitsrJ   rK   erN   ro   r'   r(   rI   r@   colormaplengthcolormapentryrM   r%   s   &&&               r   r|   r|      s   "15bgg.|
 nnU#nn((M8RSY&
Q	##L"''++lB2OPJ_F|%
EF%%""5%0(+G(92()1	ww. ..$$]BGGKKr4RSKQHH
6

\
	
Y-	 a&	 n
		
 ]
	 a&	 a&	 bggaj/	 bggaj/		 T(
	 U)	 


__Y(8!g{=STU	
 	__UFRWW$4a'1k9RST	
 HH9:K  ""277)73cl!"s   M M9M44M9zimage/x-tga)r*   r+   )r/   r*   )r/   r+   )r/   r,   )r   r,   )r   r-   )r   r.   )r   r*   r   r/   )r   r+   r   r/   )r   r,   r   r/   )r   r+   r*   r*   )r   r-   r   r   )r   r.   r   r   )z.tgaz.icbz.vdaz.vst)
__future__r   rX   rw   typingr   rp   r   r   r   _binaryr   r8   r	   r[   r
   r   r{   rB   r   rr   r|   register_openr   register_saveregister_extensionsregister_mimer   r!   r   <module>r      s   $ # 	   , , ! !  ! C
C
CTZUV		 ~I9&& ~IN 
	
H;`   L'' 6   L'' /   ,--/O P   L'' 7r!   